Repository navigation
v0.7.0
Fixed
- A subagent's
asknow 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 aNEEDS APPROVAL:line. - The parent session asks for you. A new
approvalhook (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. Rundamage-control-dev initagain to register it. Seedocs/subagent-approvals.md. - Audit rows name the real agent.
agent_idcomes from the hook payload (theagent_envvariable is the fallback, thenmain), and rows gain anagent_typefield. Before, every subagent call was logged asmain. - No more false "variable filled by read" asks. An assignment from a substitution (
c=$(curl ...)) was resolved to its first word and spliced intobash -cpayloads, 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
bypassPermissionscan have that ask lifted by the parent's bypass. Documented indocs/subagent-approvals.md.
Feedback and reports welcome: https://github.com/dotdevdotdev/damage-control-dev/issues