
Human in the loop
Claude hands you the tasks only you can do. They wait until you act, and your answer goes back to Claude.
Why
Claude often needs something only you can do: a key in .env, an approval on staging, a command on your own machine, a decision. Today it says so in the middle of a reply. You're busy steering the next fix, and the ask scrolls away. At best Claude keeps repeating "I still need you to…"; at worst the ask is lost.
With this mod, Claude assigns the ask as a task instead. It waits in the My tasks pane, counted under the prompt, until you do it, answer it or reject it.
An example
Get our Stripe webhooks library ready to open-source.
Claude works through it, and three times hits something only you can do: the integration tests need your Stripe key, making the repo public is your call, and the package needs a name. Each becomes a task, and Claude keeps working:
╭─ My tasks ──────────────────────────────────────────────────────────╮
│ ☐ 3 tasks for you │
│ │
│ ☐ #1 Add STRIPE_SECRET_KEY to .env 2m │
│ The integration tests run against Stripe's test mode and need it. │
│ Done when: It's in .env. Don't paste it here. │
│ d: Done r: Answer… x: Reject… │
│ ☐ #2 Decide whether to make the repo public 1m │
│ ☐ #3 Choose the package's name on npm now │
│ │
│ Esc: back to the prompt Hide │
╰─────────────────────────────────────────────────────────────────────╯
☐ 3 tasks for you · /my-tasks
- #1 you do in your editor, then press
d. The key never passes through Claude.
- #2 is your decision:
1 makes the repo public, 2 keeps it private.
- #3 needs your words: press
r, type @acme/stripe-hooks, Enter.
Answer whenever it suits you. Answers you give while Claude works wait for it, and your next answer after it stops takes them along. Here #1 and #2 were answered while Claude worked and #3 after, so Claude gets them as one message, in your words:
My responses to tasks you gave me (Human in the loop):
#1 Add STRIPE_SECRET_KEY to .env: Done.
#2 Decide whether to make the repo public: I chose "Make it public".
#3 Choose the package's name on npm:
@acme/stripe-hooks
Claude picks up where it left off: the integration tests pass, the repo goes public, and the package gets its name. Publishing is left to you.
How it works
- Claude assigns with
assign_task: an imperative title, why it's needed, what counts as done, and a kind (do, answer or choose).
- The status line under the prompt counts what's waiting:
☐ 3 tasks for you · /my-tasks.
- The My tasks pane opens by itself when a task arrives. In fullscreen it's a sidebar beside the transcript; on the main screen it sits above the prompt.
/my-tasks opens it any time, with the keyboard.
- You respond: Done, an option (
1–4), an answer (r), or a rejection with a reason (x). Click, or focus the pane with /my-tasks or ctrl+x tab and use the keys.
- Your answer reaches Claude:
- while Claude is idle, right away;
- while it works, it waits, so Claude isn't interrupted, and goes when Claude finishes its turn. If a task is still open then, your answers wait for that one too and arrive together (or with your next prompt). Send now sends right away.
- Long answers (a log, a stack trace): in the terminal the answer field holds four lines, and a backslash then Enter starts a new one. For more, or in the desktop app, Long answer… starts your own prompt box with
↳ Answer to #3:, and you paste and press Enter.
- Claude keeps working. Unlike a question dialog, a task doesn't stop Claude: it carries on with everything else while the task waits for you, and takes the task back if it finds another way.
- Nothing is lost across a compaction or a new session: open tasks stay with the project and Claude is told about them again. With several sessions open in one project, each keeps its own tasks, so your answer always reaches the Claude that asked.
It never draws in the band above the prompt, so it works beside band mods such as What's Agent Doing.
Guardrails
- At most 5 open tasks at a time.
- The same ask twice is one task.
- Only the main agent assigns tasks; a subagent reports what it needs in its result.
- An answer that looks like a secret (an API key, a token, a private key) is held with a warning before it is sent.
Install
In Claude Code: