Human approval
Human approval is the safety valve for side effects. When enabled, an agent cannot write a file or run a command until you review the exact action and choose to apply it.
What is gated
Section titled “What is gated”Only two tools are gated:
write_filerun_command
delete_file and rename_file are workspace-confined but not separately gated. Read tools and web
tools never need approval. If you need stricter control, remove the tool from the agent entirely.
Turning approval on
Section titled “Turning approval on”Approval is controlled by autoApply on each agent. It defaults to true, which means side effects
run immediately.
Set it to false:
tapplack config set agents.assistant.autoApply falseOr in JSON:
{ "agents": { "assistant": { "autoApply": false } }}Setting an agent’s skillMode to manual also sets autoApply: false, and auto sets it back to
true. Override afterward if you need a different combination.
With TAPPLACK_NO_TUI or in a non-TTY run, the gate still works; it prompts on stdin.
What happens at the gate
Section titled “What happens at the gate”- The agent requests
write_fileorrun_command. - The action is intercepted before execution, not after.
- The run stops and a pending action is recorded with the agent id, tool, arguments, and reason.
- The APPROVAL tab opens (or a prompt is printed).
- A preview is rendered: a diff for writes, the exact command for runs.
- You choose:
- apply — execute this exact action now.
- keep pending — leave it for later with
/apply.
Applying does not re-run the agent. It executes the reviewed action only. That is what makes the gate trustworthy: the thing you approved is the thing that runs.
The approval prompt
Section titled “The approval prompt”
Apply this exact action? [y/N]:y/yes/a/auto— apply.- Anything else — keep pending and return to the prompt.
The default is no. When you keep it pending, the session stores the original task so it can resume later.
Managing the pending action
Section titled “Managing the pending action”Inside a session:
| Command | Effect |
|---|---|
/apply |
Show and apply the pending action. |
/apply status |
Inspect the pending action without applying. |
/apply cancel |
Discard it. |
/apply help |
Usage. |
The APPROVAL tab shows the same information. After a successful apply, the original task resumes with the applied action recorded, so the agent does not repeat it.
Apply failures
Section titled “Apply failures”If the approved action itself fails — a write error, a non-zero command — the error is passed back to the agent with a clear instruction to try a different approach. The agent gets several rounds to adapt (up to 10) before the task is marked failed. An apply failure is not treated as an immediate dead end.
Why not re-run the agent?
Section titled “Why not re-run the agent?”Re-running could:
- repeat earlier work,
- produce a different action than the one you reviewed,
- apply something you did not approve.
Instead, the pipeline saves the pending action, executes exactly that action, then resumes with the original task and the applied-action list as context.
Approval in multi-agent runs
Section titled “Approval in multi-agent runs”A pending approval pauses the whole pipeline, no matter which stage requested it. The stage
artifact records the pending action, and FINAL.md is replaced with a clear
PENDING HUMAN APPLYMENT report. Applying resumes from the task with all completed stages in
context.
Recommended setups
Section titled “Recommended setups”| Situation | Setting |
|---|---|
| Trusted local experiments | autoApply: true |
| Real project, read-heavy work | autoApply: false |
| Code review agent | No write tools at all |
| Unattended CI | No approval prompts; restrict tools instead |
For unattended runs, do not rely on a prompt nobody will answer. Remove side-effecting tools from the agent, or keep the workspace disposable.
Combining with skills
Section titled “Combining with skills”manual skill mode disables auto-apply by design: a human curates knowledge and reviews actions.
auto skill mode enables auto-apply: the agent chooses knowledge and applies actions. Use the
combination that matches how much you trust the agent for that task.
- Safety and permissions — the enforced boundaries.
- Configuration — set
autoApplyand related fields. - Runs and artifacts — how pending actions are recorded.