← Back to the Hub

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

What Codex rebuilds or loses (11)
  • iterate: argument-hint, disable-model-invocation lost, Claude Code frontmatter that Codex does not read; the skill's text is unchanged
  • iterate: $ARGUMENTS lost, Codex does not substitute $ARGUMENTS; the agent reads the request instead
  • verify: allowed-tools lost, Claude Code frontmatter that Codex does not read; the skill's text is unchanged
  • e2e-verifier rebuilt, written as the skill `agent-e2e-verifier`: Codex has no file-defined subagents with their own tools and model, so those two settings are lost
  • electron-security-reviewer rebuilt, 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 lost
  • PreToolUse [Edit|Write|MultiEdit|Bash] → guard.mjs rebuilt, 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 checked
  • PostToolUse [Edit|Write|MultiEdit] → typecheck-on-edit.mjs rebuilt, 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 checked
  • PostToolUseFailure → friction-log.mjs lost, Codex has no PostToolUseFailure event, so this hook never runs
  • Bash(tmux kill-server*) rebuilt, a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the command
  • Bash(git push*) rebuilt, a Codex execution-policy rule (`forbidden`) and, as a second lock, a PreToolUse hook that blocks the command
  • Read(~/.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-verifier rebuilt, 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 model
  • electron-security-reviewer rebuilt, 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 model
  • PreToolUse [Edit|Write|MultiEdit|Bash] → guard.mjs rebuilt, 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 patch
  • PostToolUse [Edit|Write|MultiEdit] → typecheck-on-edit.mjs rebuilt, 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 patch
  • PostToolUseFailure → friction-log.mjs lost, Copilot has no PostToolUseFailure event, so this hook never runs
  • Bash(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-verifier rebuilt, 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 lost
  • electron-security-reviewer rebuilt, 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 lost
  • Bash(tmux kill-server*) lost, written in AGENTS.md as an instruction; nothing enforces it
  • Bash(git push*) lost, written in AGENTS.md as an instruction; nothing enforces it
  • Read(~/.ssh/**) lost, written in AGENTS.md as an instruction; nothing enforces it
  • SessionStart → session-start.mjs lost, no hook system is assumed for this agent: the hook does not run. Install for Claude Code, Codex or GitHub Copilot to enforce it
  • PreToolUse [Edit|Write|MultiEdit|Bash] → guard.mjs lost, no hook system is assumed for this agent: the hook does not run. Install for Claude Code, Codex or GitHub Copilot to enforce it
  • PostToolUse [Edit|Write|MultiEdit] → typecheck-on-edit.mjs lost, no hook system is assumed for this agent: the hook does not run. Install for Claude Code, Codex or GitHub Copilot to enforce it
  • PostToolUseFailure → friction-log.mjs lost, no hook system is assumed for this agent: the hook does not run. Install for Claude Code, Codex or GitHub Copilot to enforce it
  • Stop → stop-gate.mjs lost, 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
CaseMustClaude CodeCodexGitHub Copilot
session start prints statusallow✓ allows✓ allows✓ allows
safe TS editallow✓ allows✓ allows✓ allows
unsafe TS edit (nodeIntegration on)block✓ blocks✓ blocks✓ blocks
raw non-breaking space in a TS fileblock✓ blocks✓ blocks✓ blocks
unsafe text in a .md file is ignoredallow✓ allows✓ allows✓ allows
edit that turns contextIsolation offblock✓ blocks✓ blocks✓ blocks
plain bashallow✓ allows✓ allows✓ allows
tmux on the default socketblock✓ blocks✓ blocks✓ blocks
bare tmuxblock✓ blocks✓ blocks✓ blocks
tmux after &&block✓ blocks✓ blocks✓ blocks
tmux on the agentmob-test socketallow✓ allows✓ allows✓ allows
tmux -Vallow✓ allows✓ allows✓ allows
tmux mentioned in a heredoc bodyallow✓ allows✓ allows✓ allows
tmux mentioned in a quoted stringallow✓ allows✓ allows✓ allows
tmux inside bash -cblock✓ blocks✓ blocks✓ blocks
agentmob socket inside bash -callow✓ allows✓ allows✓ allows
the /verify cleanup commandallow✓ allows✓ allows✓ allows
heredoc body that talks about sh -c and tmuxallow✓ allows✓ allows✓ allows
tmux after a heredoc that was datablock✓ blocks✓ blocks✓ blocks
tmux in a heredoc piped to a shellblock✓ blocks✓ blocks✓ blocks
tmux in a heredoc fed to a shellblock✓ blocks✓ blocks✓ blocks
deny rule: tmux kill-serverblock✓ blocks✓ blocks✓ blocks
deny rule: git pushblock✓ blocks✓ blocks✓ blocks
reading an ssh key is deniedblock✓ blocksno equivalent✓ blocks
stop gate lets a looping stop throughallow✓ 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

  • SessionStart runs session-start.mjs
  • PreToolUse [Edit|Write|MultiEdit|Bash] runs guard.mjs
  • PostToolUse [Edit|Write|MultiEdit] runs typecheck-on-edit.mjs
  • PostToolUseFailure runs friction-log.mjs
  • Stop runs stop-gate.mjs

Refused 3

  • Bash(tmux kill-server*)
  • Bash(git push*)
  • Read(~/.ssh/**)

Skills 3

  • harness-retro End-of-iteration retrospective that evolves the AgentMob Claude Code harness (CLAUDE.md, hooks, skills, agents) from what actually went wrong.
  • iterate Run the next AgentMob roadmap iteration end to end — plan, build, verify, retro, commit.
  • verify Run 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-verifier Independently 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-reviewer Reviews 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

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

All files as JSON · card.json

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.