Skip to content

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.

Only two tools are gated:

  • write_file
  • run_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.

Approval is controlled by autoApply on each agent. It defaults to true, which means side effects run immediately.

Set it to false:

Terminal window
tapplack config set agents.assistant.autoApply false

Or 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.

  1. The agent requests write_file or run_command.
  2. The action is intercepted before execution, not after.
  3. The run stops and a pending action is recorded with the agent id, tool, arguments, and reason.
  4. The APPROVAL tab opens (or a prompt is printed).
  5. A preview is rendered: a diff for writes, the exact command for runs.
  6. 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.

tapplack — approval
The APPROVAL tab showing a blocked write_file action and the prompt to apply it or keep it pending.
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.

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.

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.

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.

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.

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.

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.