agentctl
Reviewed
at commit a4d4bc1
Caution: Runs a review-state.js script from the opened project with node every 30 seconds and after each turn, without asking.
Agent Control Plane for one Claude Code session: task scope, evidence, hand-over. A control and a display, not an isolation boundary.
0 upvotes
Log in to upvote or save- Made by
- sd0xdev
- Pinned commit
-
a4d4bc1493a936a20721aeecf7391e347a4be88e - What we checked
-
Refuses direct git push, gh pr merge and kubectl, helm or gcloud write commands even without a task. Once you accept a task scope, it also refuses edits outside the allowed folders, reads outside the project and commands you named. It shows a status band, runs read-only git commands to record check evidence, saves hand-over notes in its own store and makes no network calls.
Review details
Static review of the source at the pinned commit; not run. Registers session.start, turn.start, turn.complete, session.measure, classic.UserPromptSubmit, classic.PostToolUse, classic.PermissionRequest, classic.Stop, tool.call (all tools, plus Bash and GetTask brackets), tool.check, prompt.submit (only task-notification prompts are parsed), prompt.suggest, command.run for /agentctl and ui.render AbovePrompt. tool.call returns deny for built-in classes (kubectl apply/delete/patch/rollout/scale/edit/replace, helm install/upgrade/uninstall/rollback, gcloud deploy/delete/update, git push, gh pr merge) with or without a task, and with a bound task for edits outside editRoots, Read outside the worktree and task forbid entries; it fails closed if its own check throws. tool.check never creates an allow: needs-user entries become ask only on a verified interactive terminal, otherwise deny. Uses $.process.run for git rev-parse, ls-files, status and hash-object --stdin-paths (no -w, read-only, 5 s timeout) around declared check commands and on a 30 s tick while evidence exists, and for node .claude/scripts/review-state.js check --format=json (or scripts/review-state.js) from the project, which the README calls a gate reading but never says is a project script it executes. Also uses $.store (session records, tasks, checkpoints; command text redacted for tokens and URL credentials, capped, retention 7 days and 5 per task), $.env.get('HOME') and $.fs.read of ~/.claude/agentctl/proposals/<worktree>.json, which the bundled bin/propose.mjs writes when Claude runs it after a drafting request the user sends (the mod only fills the prompt box in append mode, never submits). $.prompt.suggest, $.ui.toast/log/invalidate, $.turn.abort on /agentctl stop, $.session.usage for context and rate-limit readings. Task and accept commands only work from the user's own composer. No model calls, no network, no settings changes. All 17 files read in full; the README was grepped for disclosures.
- What it uses
-
- Reads your prompts: yes
- Sees tool calls: yes
- Blocks or changes tool calls: yes
- Reads or writes files: yes
- Runs programs on your machine: yes
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: yes
- Shows something on screen: yes
- Hooked events
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/agentctl/)