runtrim
v0.1.34
Published
The control layer for AI coding agents.
Maintainers
Readme
RunTrim
RunTrim is the control layer for AI coding agents.
It gives Claude, Codex, Cursor, ChatGPT, and other agents project memory, scoped contracts, MCP guidance, approval flow, and finish verification before changes are accepted.
Website: https://www.runtrim.com
Install
npm install -g runtrimQuickstart
npm install -g runtrim
cd your-project
runtrim start
runtrim doctor
runtrim agent "Fix the homepage copy" --copy
runtrim finishPrimary flow
runtrim startanalyzes the project and prepares local RunTrim memory and instructions.runtrim agent "task" --copycreates a guarded run and handoff prompt for your coding agent.- Agent completes the task inside contract scope.
runtrim finishverifies scope and sensitive-file safety with a clear verdict:PASS,WARN, orBLOCKED.
If scope needs to expand safely:
runtrim approve "Allow <path or scope> for this run only"MCP (optional)
runtrim mcp instructions
runtrim mcp config --print
runtrim mcp startMCP lets compatible agents use RunTrim tools like contract creation, path checks, approval suggestions, and finish guidance.
RunTrim does not silently modify global MCP config files. Use runtrim mcp instructions and runtrim mcp config --print to inspect snippets, and runtrim doctor to check readiness.
In the VS Code/Cursor extension, use Connect agent for a guided setup flow (Cursor/Cursor Studio, Claude Desktop, Claude Code, Generic MCP).
MCP config is ready means config generation succeeded locally; it does not guarantee the external agent has loaded it yet.
Local-first trust model
- Free CLI runs locally.
- Source code stays local by default.
- RunTrim does not read env file contents.
- Ignored
.env.localis warned and reported, not read. - Sensitive tracked/changed or unignored sensitive files still block finish.
Plans and sync
- Free: local control flow and local history.
- Pro+: cloud sync and hosted dashboard history.
Restore and rewind (local)
runtrim restore last --preview
runtrim restore last --applyRestore points are local and source-safe. Apply happens locally through the CLI.
CI merge gate (GitHub Action v1)
RunTrim can run as a CLI-based PR check:
- Add
.github/workflows/runtrim.yml.exampleto your repo as a workflow. - Run
runtrim ci check --stricton pull requests. - Set branch protection to require the RunTrim check.
runtrim ci check returns PASS, WARN, or BLOCKED.
BLOCKEDexits non-zero and can prevent merge.WARNexits zero by default, or non-zero in--strictmode.
GitHub App and team policy sync are coming later.
Core commands
runtrim start
runtrim doctor
runtrim agent "Your task" --copy
runtrim finish
runtrim approve "Allow <scope> for this run only"
runtrim status
runtrim mcp instructions
runtrim ci check
runtrim restore last --previewLegacy bridge compatibility (still supported):
runtrim agent "Your task" --copy