skip to content
agentmash
get started
docsagentmash in codex

agentmash in codex

One command sets agentmash up in Codex CLI and starts it:

text
npx agentmash@latest codex

It checks that Codex is installed, signs you in with GitHub, registers the agentmash hooks and MCP server in ~/.codex, installs the agentmash plugin with its commands, and adds a marked block to your global AGENTS.md. Every file it changes is copied first as <file>.before-agentmash, and it says one sentence per step. Running it again is safe and upgrades in place. --dry-run shows every change without making it, --yes accepts the defaults, and --no-launch stops before starting Codex.

Before every edit Codex asks agentmash who else is on the file, with no command needed. When a teammate's agent is editing it right now and the teammate is online, Codex stops and offers to switch; when they are offline, it tells you and goes on.

The commands are skills, so you type $ and the name:

CommandWhat it does
$mashShows your space: who is online, what each agent is doing, hot files and collisions
$teammatesLists everyone in the space with their agents, tasks and files
$add-teammate <github-handle>Invites a person into the space, after you confirm
$subagents [count] [task]Lists running subagents, or splits a task into pieces that each claim their files first
$orchestrate <goal>Plans a goal as tasks with file ownership, routes around files teammates hold, and runs it
$who <path>Shows who touched a file, when, what they changed, and who holds it now
$collisionsLists active and recent collisions with a suggestion for who should switch
$ask <@teammate> <message>Sends your message to a teammate's agent, after you confirm
$claim <paths...>Claims files or folders, so teammates' agents route around them
$release [paths...]Releases those claims, or everything you hold
$scanCounts how often agents stepped on each other in this repo's history, with no account
$mash-helpLists the commands

Codex asks once to trust the agentmash hooks: choose "Trust all and continue" when it says hooks need review, or type /hooks.

npx agentmash codex doctor checks every piece and says in one sentence how to fix each problem. npx agentmash codex uninstall removes exactly what we added and puts your own files back; your sign-in stays, since your other agents may use it.

If you prefer Codex's own plugin flow, codex plugin marketplace add agentmash-dev/agentmash-cli adds our marketplace and codex plugin add agentmash@agentmash installs the commands. The npx path stays the one we recommend, because it also handles sign-in, the MCP server and AGENTS.md.

Solo and two-developer use is free, limited by agent-hours.

from the readme, “agentmash in codex”