Skip to content

v0.7.0

Choose a tag to compare

@dotdevdotdev dotdevdotdev released this 10 Nov 14:30
· 5 commits to main since this release
43ee530

Fixed

  • A subagent's ask now reaches you. A subagent cannot answer a prompt, and Claude Code shows none for a background agent, so these asks used to hang or be denied later. They are now blocked at once with the command, its directory and an instruction to end the report with a NEEDS APPROVAL: line.
  • The parent session asks for you. A new approval hook (UserPromptSubmit) reads the report a background agent or dynamic workflow sends back, and tells the parent to run each quoted command. The guard's own prompt for that exact command is the single approval step. The hook fails open, takes about 20 ms and loads no rules. Run damage-control-dev init again to register it. See docs/subagent-approvals.md.
  • Audit rows name the real agent. agent_id comes from the hook payload (the agent_env variable is the fallback, then main), and rows gain an agent_type field. Before, every subagent call was logged as main.
  • No more false "variable filled by read" asks. An assignment from a substitution (c=$(curl ...)) was resolved to its first word and spliced into bash -c payloads, so ordinary read loops asked. They are allowed again.

Notes

  • The hand-back hook acts only on a <task-notification> prompt. A prompt you type is never touched.
  • Known gap: a stricter subagent handing an ask to a parent in bypassPermissions can have that ask lifted by the parent's bypass. Documented in docs/subagent-approvals.md.

Feedback and reports welcome: https://github.com/dotdevdotdev/damage-control-dev/issues