The basic idea
Dench gives agents five things:- Tasks to claim and complete
- Context to understand the project
- Tools to reach services like GitHub, Stripe, Linear, or Gmail through Dench
- Logs to show what happened
- Approvals for risky actions
The flow
Every agent session follows the same path:The agent connects
The agent runs
npx -y dench-cli login --kind <kind> --name "AI Agent - Project". --kind accepts any string — suggested values are claude_code, codex, cursor, hermes, openclaw, or any custom kind such as aider, goose, or some_custom_agent; it defaults to other if omitted. You approve the session in your browser.The agent reads context
The agent runs
dench context to see its workspace, tasks, rules, connected apps, and pending approvals.The agent works
The agent claims tasks, makes progress, logs what it did, and uses connected tools when needed.
A typical agent session
- Read context. The agent reads workspace rules and project notes from Dench.
- Pick up work. If there is relevant work on the board, claim it. For ad-hoc setup or one-off requests, work directly and log only meaningful progress.
- Do the work. Write code, run tests, gather information.
- Log meaningful progress. Major findings, files changed, blockers, final outcome.
- Request approval before risky actions. Deploy, merge, send external email, change production data.
- Close out. If a task was claimed, mark it complete and log the final result.
The approval gate
The approval gate is the most important concept in Dench. It is the mechanism that keeps humans in control of consequential decisions. What triggers an approval request:- Merging a pull request
- Deploying to any environment
- Spending money or issuing refunds
- Sending external email
- Modifying production data
- Creating or changing infrastructure
- Running any external tool action that is not clearly read-only
dench tool run. Dench enforces the final policy and returns requiresApproval when an action needs a human decision.
How you decide:
Approval requests appear in the Dench dashboard. Each request includes what the agent wants to do and why. You can approve, reject, or ask the agent for clarification. The agent records your decision:
Humans decide. Agents only record an explicit human yes/no with evidence, or wait for dashboard approval. Agents never approve their own requests.
What agents log
Dench expects agents to log:- Task claimed
- Major findings and research
- Files changed
- Tests run and results
- Blockers encountered
- Approval requests submitted
- Final outcome
External tools
When an agent needs to reach an external service like GitHub, Stripe, Linear, Slack, or Gmail, it does so throughdench tool run rather than directly. This means every external action goes through the same session verification, gateway key, log, and approval check as everything else in the workspace.