Your first model
In your repository, ask your agent:
Extract a Wiremap model of this repository.
It writes wiremap/model.txt and wiremap/evidence.txt, and ends with what to review: the deployment it modelled (the topology), its judgment calls (choices the skill's rules left open) and notes on what the rules left out.
wiremap check
wiremap viewcheck prints nothing when every anchored line is still in its file and the model follows the format and your rules, and view opens the model in your browser. Here is the model of a small online bookshop:
A model with no groups gets a box around the repository's own nodes, named after its directory, to set them apart from the outside systems.
Commit wiremap/ with your code.
Customize the extraction
To settle a choice your way, write it in wiremap/conventions.md, next to the model, and commit it with the model. Every extraction, update and report reads it first, and a convention wins over the skill's rules where they differ. It is free-form Markdown, one convention per bullet:
- The topology is deploy/compose.yaml with deploy/compose.prod.yaml.
- Leave out the admin service and every call to or from it.
- Name the actor for bookshop staff `staff`.
- Each folder under services/ is a group.At the end of an extraction, the agent proposes its judgment calls as conventions and writes the ones you accept, so the next run makes the same choices. An update does the same when it makes new ones. Notes aren't proposed: write a convention only to bring back something a note says was left out.
TIP
You can also edit the skill itself, but your edits then conflict with each new version of it. Conventions keep your choices in your repository, and the skill updates cleanly.
One directory of a monorepo
A model can cover one directory, such as one service of a monorepo. Ask your agent:
Extract a Wiremap model of services/billing.
It writes services/billing/wiremap/. Run wiremap from that directory, or give it the directory with --root:
wiremap check --root services/billingThe other workloads of the repository that the directory's nodes talk to are outside nodes, and an anchor into a file outside the directory starts with /, from the git root (/deploy/compose.yaml).
Next: track changes.