Recipes¶
Review a branch without touching it¶
tynex -p --no-session --no-project --plan \
"review the current branch against main. Focus on bugs, security, and missing tests."
Plan mode is read-only for tools: file edits, shell commands, and MCP calls are denied. The plan is printed to stdout for the turn. --no-project keeps project settings and extensions out of the run.
Review in CI¶
Use the GitHub Action with permission-mode: plan, args: --no-project, and no session file. Keep provider keys in repository secrets, never in the prompt.
Continue a session¶
tynex -c
tynex -c --permission-mode accept-edits "execute the approved plan"
tynex -r <id-prefix>
Sessions are JSONL files under ~/.tynex/agent/sessions/. /export writes a branch as JSONL or a static HTML page.
Undo an edit¶
/undo # last write/edit group
/undo 3 # last three groups
Checkpoints are enabled by default. Disable them with "checkpoints": false in settings.
Cap cost¶
tynex -p --budget cost=0.50 "fix the failing tests"
tynex -p --budget tokens=200000 "summarize the repository"
The turn ends cleanly at the limit, emits limit_reached, and print mode exits 1. /budget shows current usage.
Add project instructions¶
Run tynex init to create .tynex/settings.json, .tynex/permissions.toml, and a starter AGENTS.md. AGENTS.md, SYSTEM.md, .tynex/prompts/, and .tynex/skills/ are loaded automatically when project discovery is on.
Use MCP¶
tynex mcp list
tynex mcp add context7 --project
tynex mcp add github --command uvx --arg mcp-server-github --env GITHUB_TOKEN=…
Servers connect in parallel with an 8-second budget. Failures are warnings and do not stop the run. Tools appear as mcp__<server>__<tool>.
Run in a container¶
docker build -t tynex .
docker run --rm -it -v "$PWD:/work" -w /work \
-e ANTHROPIC_API_KEY tynex "summarize this repository"
For untrusted repositories, use a disposable container and explicit permission rules. See Security.