Skip to content

Reykjavíksunrise --:--sunset --:--

hire

An Asana TUI that starts the agent for you

My tasks live in Asana and my work happens in a terminal. One keypress now gets a task from one to the other.

3 min read

§The gap

My tasks live in Asana. The work happens in a terminal, mostly next to Claude Code. Between the two there was always the same little ritual: open the browser, find the task, read it, copy the link, open a terminal, start Claude, paste, explain.

It's thirty seconds. It's also thirty seconds every single time, and the version of me who skips it is the one who starts an agent with half the context.

So I built a terminal view of Asana where pressing Enter on a task does all of that for me. The code is on GitHub at einargudnig/asana-rex-tui.

§What it shows

It's a Rust app built on ratatui. It reads tasks through asana-cli and takes the token from an environment variable or, failing that, the macOS Keychain, so it starts fine from a key binding in a shell that never sourced my exports.

asana-tui's Today tab: tasks in progress, up next and done, with a session dot on the selected task
The Today tab, with example tasks standing in for my real ones. The dot means a session is already open.

The tabs are numbered, so switching is one key:

  • Today: what's in progress, what's due in the next ten days, and what I finished since yesterday.
  • My Tasks: everything open, grouped by my Asana sections in Asana's order.
  • Sessions: the agent sessions that belong to a task.
  • Milestones, Decisions, Blockers, Questions: open items across our initiative projects.
  • Inbox: unread comments and assignments, one row per task, newest first.

Space opens a details pane with the notes, subtasks, custom fields and the last five comments. Mentions render as @Name and task links as the task's title, so it reads like Asana and not like its API. x completes a task, a comments on it, o opens it in the browser.

The initiative tabs are the ones I didn't expect to use as much as I do. A project counts as an initiative if it uses our Attention type field, and a task in one is a decision, a blocker or a question. Each project header shows its latest status and how old it is, and the age turns amber after seven days, because owners are supposed to update weekly. It's a meeting agenda that writes itself.

§Enter starts the agent

On a task with no session, Enter runs this:

Shell
rex new asana-<last 6 digits of gid>-<slug> -c ~/work -- claude "<prompt>"

The prompt is deliberately boring:

Text
Asana task 1234567890: Fix the reminder email
https://app.asana.com/...

Read the full task (description, comments, subtasks) with the Asana MCP,
summarize what's needed, then propose a plan before changing anything.

Claude reads the task itself, with the comments and subtasks I would have skimmed past, and stops at a plan. I read the plan, not the task.

On a task that already has a session, Enter switches to it instead. A ● next to a task in any list means it has one open. One task, one session, one agent, and I can see at a glance which tasks have someone working on them.

§Sessions get renamed

The first version matched sessions to tasks by label: launch asana-412345-…, then look for a session whose name starts with it. That worked for about a day.

My Claude setup renames its session after the task on the first message, so asana-412345-fix-the-reminder became fix-reminder-email and the TUI lost track of it. The label isn't the app's to keep.

Now it records the session id it gets back from rex new --json in a small file under ~/.local/state/asana-tui/, and matches on that. The label prefix is only a fallback for sessions started before the file existed. Ids that no longer exist get pruned on the next refresh.

§It isn't really about Rex

I use Rex, so the app talks to Rex. But everything Rex-specific sits in one 190-line file, and it does four things:

  • list the open sessions
  • find the session for a task
  • focus a session
  • launch a new one running Claude with a prompt

That's the whole contract. Anything that can create a named session, run a command in it and switch to it can fill it. A colleague of mine runs Herdr instead of Rex and has adopted the TUI on their own machine. I haven't seen their version, but I'd guess it's a fork with those four functions rewritten for Herdr and the rest left alone, because that's all it should take. tmux could do it too, with new-session -d, list-sessions and switch-client.

The same goes for the other end. claude is one argument in that command, and the prompt is a plain string. Codex or anything else that takes a prompt on the command line would slot in.

What carries over is the idea: your task tracker already knows what the work is, so let it start the session, and let the agent read the ticket instead of you retelling it.

§Try it

You need asana-cli, an Asana personal access token, and Rex if you want the sessions part. The task views work without it.

Shell
git clone https://github.com/einargudnig/asana-rex-tui
cd asana-rex-tui
cargo install --path .
asana-tui

ASANA_TUI_CWD sets where new sessions start, and ? shows every key. In Rex I have it on Ctrl+B A, in a tab of its own.

g+

h homeb blogu usesa abouts somedayw nowq quotes