agentmob 0.1.0
Guards for an Electron app built by parallel agents: an edit and shell guard, a stop gate that runs the checks, a verify loop, and a retro skill that improves the harness itself.
Owner: Baudrier AI · AGPL-3.0 · from jmondaut/AgentMob at 995d056
Claude Code 25 of 25 guards holdCodex 24 of 25 guards holdGitHub Copilot 25 of 25 guards hold
Install
$ uv tool install baudrier # once
$ baudrier install agentmob --dry # look first: nothing is written
$ baudrier install agentmob # for the agents your repository uses; or --to claude|codex|copilot|generic
It shows what it will write, hook scripts first, and asks before it writes.
Last step: paste the line the install prints last into your agent, opened in your repository. It fits the harness to your repository. Don’t skip it. For Claude Code:
Read .baudrier/harness/agentmob/FINISH_SETUP.claude.md and follow it.
For another agent, the file ends in .codex.md, .copilot.md or .generic.md.
What each agent keeps
- Claude Code: 11 native, 0 emulated, 0 lost. Checks validated by the publisher: 25 of 25 guard cases give the expected decision, run on 2026-11-27.
- Codex: 5 native, 6 emulated, 5 lost. Checks validated by the publisher: 24 of 25 guard cases give the expected decision, 1 do not apply to this agent, run on 2026-11-27.
- GitHub Copilot: 5 native, 7 emulated, 1 lost. Checks validated by the publisher: 25 of 25 guard cases give the expected decision, run on 2026-11-27.
- Any agent: 3 native, 2 emulated, 8 lost. Its guards are written as instructions: nothing enforces them.
What Codex rebuilds or loses (11)
iterate: argument-hint, disable-model-invocationlost, Claude Code frontmatter that Codex does not read; the skill's text is unchangediterate: $ARGUMENTSlost, Codex does not substitute $ARGUMENTS; the agent reads the request insteadverify: allowed-toolslost, Claude Code frontmatter that Codex does not read; the skill's text is unchangede2e-verifierrebuilt, written as the skill `agent-e2e-verifier`: Codex has no file-defined subagents with their own tools and model, so those two settings are lostelectron-security-reviewerrebuilt, written as the skill `agent-electron-security-reviewer`: Codex has no file-defined subagents with their own tools and model, so those two settings are lostPreToolUse [Edit|Write|MultiEdit|Bash] → guard.mjsrebuilt, Codex edits files with apply_patch: the adapter rebuilds a Write or Edit payload per file and blocks the patch if the hook blocks one of them. Deleting a file is not checkedPostToolUse [Edit|Write|MultiEdit] → typecheck-on-edit.mjsrebuilt, Codex edits files with apply_patch: the adapter rebuilds a Write or Edit payload per file and blocks the patch if the hook blocks one of them. Deleting a file is not checkedPostToolUseFailure → friction-log.mjslost, Codex has no PostToolUseFailure event, so this hook never runsBash(tmux kill-server*)rebuilt, a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the commandBash(git push*)rebuilt, a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the commandRead(~/.ssh/**)lost, Codex rules cover shell commands only; set this limit with Codex's sandbox and approval settings instead
What GitHub Copilot rebuilds or loses (8)
e2e-verifierrebuilt, written as a Copilot custom agent (.github/agents/): its own tool list and model are not carried over, so it gets Copilot's tools and the session's modelelectron-security-reviewerrebuilt, written as a Copilot custom agent (.github/agents/): its own tool list and model are not carried over, so it gets Copilot's tools and the session's modelPreToolUse [Edit|Write|MultiEdit|Bash] → guard.mjsrebuilt, Copilot names its edit arguments differently (path, file_text, old_str, new_str): the adapter rebuilds the Write or Edit payload the hook expects, file by file for a patchPostToolUse [Edit|Write|MultiEdit] → typecheck-on-edit.mjsrebuilt, Copilot names its edit arguments differently (path, file_text, old_str, new_str): the adapter rebuilds the Write or Edit payload the hook expects, file by file for a patchPostToolUseFailure → friction-log.mjslost, Copilot has no PostToolUseFailure event, so this hook never runsBash(tmux kill-server*)rebuilt, a preToolUse hook that refuses the shell command (Copilot keeps its own permission rules outside the repository)Bash(git push*)rebuilt, a preToolUse hook that refuses the shell command (Copilot keeps its own permission rules outside the repository)Read(~/.ssh/**)rebuilt, a preToolUse hook that refuses Copilot's view of a file this rule covers. A shell command that reads the file is not checked, as in Claude Code
What Any agent rebuilds or loses (10)
e2e-verifierrebuilt, written as the skill `agent-e2e-verifier` in .agents/skills, which most agents read (each keeps subagents in its own place): its own tools and model are lostelectron-security-reviewerrebuilt, written as the skill `agent-electron-security-reviewer` in .agents/skills, which most agents read (each keeps subagents in its own place): its own tools and model are lostBash(tmux kill-server*)lost, written in AGENTS.md as an instruction; nothing enforces itBash(git push*)lost, written in AGENTS.md as an instruction; nothing enforces itRead(~/.ssh/**)lost, written in AGENTS.md as an instruction; nothing enforces itSessionStart → session-start.mjslost, no hook system is assumed for this agent: the hook does not run. Install for Claude Code, Codex or GitHub Copilot to enforce itPreToolUse [Edit|Write|MultiEdit|Bash] → guard.mjslost, no hook system is assumed for this agent: the hook does not run. Install for Claude Code, Codex or GitHub Copilot to enforce itPostToolUse [Edit|Write|MultiEdit] → typecheck-on-edit.mjslost, no hook system is assumed for this agent: the hook does not run. Install for Claude Code, Codex or GitHub Copilot to enforce itPostToolUseFailure → friction-log.mjslost, no hook system is assumed for this agent: the hook does not run. Install for Claude Code, Codex or GitHub Copilot to enforce itStop → stop-gate.mjslost, no hook system is assumed for this agent: the hook does not run. Install for Claude Code, Codex or GitHub Copilot to enforce it
The 25 guard cases
| Case | Must | Claude Code | Codex | GitHub Copilot |
|---|---|---|---|---|
| session start prints status | allow | ✓ allows | ✓ allows | ✓ allows |
| safe TS edit | allow | ✓ allows | ✓ allows | ✓ allows |
| unsafe TS edit (nodeIntegration on) | block | ✓ blocks | ✓ blocks | ✓ blocks |
| raw non-breaking space in a TS file | block | ✓ blocks | ✓ blocks | ✓ blocks |
| unsafe text in a .md file is ignored | allow | ✓ allows | ✓ allows | ✓ allows |
| edit that turns contextIsolation off | block | ✓ blocks | ✓ blocks | ✓ blocks |
| plain bash | allow | ✓ allows | ✓ allows | ✓ allows |
| tmux on the default socket | block | ✓ blocks | ✓ blocks | ✓ blocks |
| bare tmux | block | ✓ blocks | ✓ blocks | ✓ blocks |
| tmux after && | block | ✓ blocks | ✓ blocks | ✓ blocks |
| tmux on the agentmob-test socket | allow | ✓ allows | ✓ allows | ✓ allows |
| tmux -V | allow | ✓ allows | ✓ allows | ✓ allows |
| tmux mentioned in a heredoc body | allow | ✓ allows | ✓ allows | ✓ allows |
| tmux mentioned in a quoted string | allow | ✓ allows | ✓ allows | ✓ allows |
| tmux inside bash -c | block | ✓ blocks | ✓ blocks | ✓ blocks |
| agentmob socket inside bash -c | allow | ✓ allows | ✓ allows | ✓ allows |
| the /verify cleanup command | allow | ✓ allows | ✓ allows | ✓ allows |
| heredoc body that talks about sh -c and tmux | allow | ✓ allows | ✓ allows | ✓ allows |
| tmux after a heredoc that was data | block | ✓ blocks | ✓ blocks | ✓ blocks |
| tmux in a heredoc piped to a shell | block | ✓ blocks | ✓ blocks | ✓ blocks |
| tmux in a heredoc fed to a shell | block | ✓ blocks | ✓ blocks | ✓ blocks |
| deny rule: tmux kill-server | block | ✓ blocks | ✓ blocks | ✓ blocks |
| deny rule: git push | block | ✓ blocks | ✓ blocks | ✓ blocks |
| reading an ssh key is denied | block | ✓ blocks | no equivalent | ✓ blocks |
| stop gate lets a looping stop through | allow | ✓ allows | ✓ allows | ✓ allows |
The checks are the publisher's own run: the hub never runs a harness. baudrier selftest runs them again in your repository.
Hooks (run on your computer) 5
SessionStartrunssession-start.mjsPreToolUse [Edit|Write|MultiEdit|Bash]runsguard.mjsPostToolUse [Edit|Write|MultiEdit]runstypecheck-on-edit.mjsPostToolUseFailurerunsfriction-log.mjsStoprunsstop-gate.mjs
Refused 3
Bash(tmux kill-server*)Bash(git push*)Read(~/.ssh/**)
Skills 3
harness-retroEnd-of-iteration retrospective that evolves the AgentMob Claude Code harness (CLAUDE.md, hooks, skills, agents) from what actually went wrong.iterateRun the next AgentMob roadmap iteration end to end — plan, build, verify, retro, commit.verifyRun AgentMob's full verification — typecheck, lint, security scan, hook self-test, unit tests, dev launch, Electron e2e — and look at the screenshots. Use before calling any UI or main-process change done.
Subagents 2
e2e-verifierIndependently checks that an AgentMob iteration meets its "Done when" criteria by building, running the Electron e2e tests and inspecting screenshots. Use at the end of every iteration.electron-security-reviewerReviews AgentMob's Electron security surface (windows, WebContentsViews, preload, IPC, openExternal, partitions, pop-ups). Use after any change to src/main or src/preload that touches these.
Its hooks need node.
Notes from the publisher
- Checked in a real Codex session on 26 November 2026. Codex refused
tmux ls, the creation of a file that turnsnodeIntegrationon, andgit push --dry-run, each time with the harness's own message. - One guard has no equivalent in Codex: the rule that refuses to read
~/.ssh. Codex rules cover shell commands only, so set that limit with Codex's sandbox settings. - The stop gate and the type check call the project's npm scripts (
npm run typecheck,npm test). They do nothing useful until your project has scripts with those names. - In Codex, trust the hooks once: open Codex in the project, trust the folder, type
/hooksand presst, then start Codex again. Until then nothing guards.
Files 16
- 1.3 kB
- 1.8 kB
- 3.5 kB
- 1.2 kB
- 1.4 kB
- 2.3 kB
- 1.7 kB
- 3.1 kB
- 1.1 kB
- 34.5 kB
- 1.4 kB
- 2.0 kB
- 3.7 kB
- 1.9 kB
- 2.2 kB
- 1.5 kB
Loading hooks/friction-log.mjs...
AGPL-3.0 (recognised from the licence file), its licence file travels with every install; from jmondaut/AgentMob at 995d056, absorbed on 2026-11-26; share-alike: what grows from it keeps this licence. The files are the source repository authors' work, copied unchanged; Baudrier AI is not affiliated with that project.