In your repo¶
Trazo adds a governance layer to a repository that already exists. This page covers what it adds, what stays yours, and which file wins when two instructions disagree.
What Trazo is mounted on¶
Trazo is an overlay. You mount it onto your repo. It does not pick your language, runtime or deploy path.
The only requirement is a build and test environment that one command runs and that an
agent can run from a fresh worktree. Docker, nix, devcontainers and a Makefile all
qualify. Trazo does not require one tool over another
(rules.md, "The mount-time contract").
What Trazo adds¶
| Where | What it is | Who owns it |
|---|---|---|
.trazo/, except project/ |
Rules, roles, skills, hooks, architecture guide | Trazo. Replaced on upgrade. |
.trazo/project/ |
Your charter, decision records, workstreams, status, plan, runbook, reports | You. Never overwritten on upgrade. |
AGENTS.md, CLAUDE.md, .claude/, .codex/, .agents/ |
Adapters that point each tool at .trazo/ |
Shared. The installer changes only the parts listed below. |
CI workflows, PR template, scan and evidence scripts, .env.example |
Harness files | Shared. A file you already have is never overwritten. |
What .trazo/ contains¶
.trazo/
rules.md the rules, stated once, tool-neutral
ARCHITECTURE.md how Trazo is built (pinned copy)
ADVISOR.md the advisor role
roles/ canonical role definitions
skills/ workflow skills
hooks/ guard scripts; known gaps are listed in the hooks README
templates/ blank charter, ADR, workstream and docs files
project/ yours (see below)
VERSION the release installed
INSTALLED manifest of the adapter files placed, with a hash for each
The installer replaces everything in .trazo/ except project/ when you upgrade. Read the
diff before you accept it. Source for these files:
src/overlay/.
.trazo/project/ holds your own state:
charter/,adr/,workstreams/STATUS.md,PLAN.md,RUNBOOK.md,SKEPTIC_BAR.md,reports/
The installer fills it from blank templates only when it is missing (ADR 0011).
What stays yours¶
- Your code, build, tests, runtime and deploy. Trazo does not take them over. The architecture says the installer works "without taking ownership of the host's code, runtime, or project state" (ARCHITECTURE.md).
.trazo/project/. Upgrades never change it. Onlyuninstall --purgeremoves it.- Text outside the
trazo:beginandtrazo:endmarkers inAGENTS.mdandCLAUDE.md. The installer does not read or rewrite it. - Files you already have. If
.claude/or.codex/already has a file with the same name, Trazo installs its copy astrazo-<name>..claude/settings.jsonis placed only if it is missing. .github/CODEOWNERS. Trazo writes it only when it is missing. An existing file is never edited; suggested lines are printed for you to review.
AGENTS.md is how; Trazo is whether¶
AGENTS.md says how to work in your codebase: the command that builds it, the command that
tests it, your conventions. You write it and keep it current.
Trazo says whether the work may be done. Who may act, which limits are human-only, what evidence a claim needs, and which roles must stay separate.
Take a release. Your AGENTS.md can say "run make release". That answers how. Trazo adds
the limits: the release tags only when CI is green, and an existing tag is never moved.
A command existing is not permission to run it.
When they disagree, Trazo wins. .trazo/rules.md says so directly: where a repository
instruction and a rule there disagree, the rule wins. A nested file, or one an agent reads
later, does not override a rule because it was read later.
You can edit your AGENTS.md freely. Changing what it says about permission, safety or
acceptance is a governance change, and Trazo's rules decide it.
Tool adapters¶
- Claude Code.
CLAUDE.mdloads the rules with@.trazo/rules.md. The import is read when the session starts, and it resolves only when the session starts in the repository root. If it does not resolve, nothing warns you and the session runs without the rules (adapter source). - Codex and other
AGENTS.mdreaders. The adapter issrc/adapters/AGENTS.md. Codex support was tested once withcodex-cli 0.162.0-alpha.2. UNVERIFIED on other Codex versions.
Role models¶
Each role runs on a model. The defaults for Claude Code are below. Each value is an alias:
haiku, sonnet and opus resolve to the current model of that family in Claude Code, so
this page names no version.
| Role | What it does | Default model |
|---|---|---|
| Coordinator | Your main session. Routes work, starts the other roles and merges through the gated workflow. | Your session's model. The shipped .claude/settings.json sets haiku. |
| Engineer | Builds an issue in its own worktree and opens a pull request. Run by /eng and /work. |
haiku |
| Senior engineer | The same job for issues labeled tier:senior. |
sonnet |
| PM | Plans, prioritizes and writes issues. Does not write code. | sonnet |
| Reviewer | Reviews a pull request in its own context and posts the verdict. | sonnet |
| Security | Checks secrets, permissions, workflows and dependencies. | sonnet |
| Skeptic | Tries to break a number or empirical result before anyone acts on it. | sonnet |
| Architect | Answers structural questions in your session for one turn. | opus |
To change a model for a role, edit the model: line at the top of its file in
.claude/agents/. For the architect, the file is .claude/commands/architect.md. An edited
file stays as you wrote it on upgrade, and the installer prints the difference. To change the
Coordinator, switch the model in your own session, or change the model key in
.claude/settings.json.
Codex pins a model in each file under .codex/agents/; edit the model line in that file.
The generic AGENTS.md adapter pins no models. There the model is whatever your tool is set
to, so change it in that tool's settings.
A stronger model costs more per run and is usually slower; a lighter one costs less and can miss what a reviewer would catch. Change one role at a time and watch its next few pull requests.
Where to go next¶
- Install and upgrade
- How it works: the loop, the roles and the merge gate
- Guardrails and limits: what agents may do and what stays yours
- Use it: running the repository
- Decision records (ADR index)