CLAUDE.md makes it reliable.
All examples use a made-up repo, acme/shop.
Check before you edit
Before changing a file, find out which flows cite the lines you’re about to touch, so the agent knows what the change can break. Prompt:
I’m going to change the retry logic in src/payments/charge.ts, lines 20 to 41. Before you edit, use Flowmaps to find which flows depend on those lines and summarize what each one does with them.
What happens:
flows_touchingwithrepo: "acme/shop",path: "src/payments/charge.ts",lines: "20-41".- If
matchediscited, the answer names each flow and the exact steps whose evidence covers those lines, plus the flows those steps reach. The agent callsget_flowon each to read the steps around them, their failure endings and business facts. - If
matchedisread, no step cites the lines but some flows’ traces read them: treat those flows as possibly affected. - If the answer has
unresolved: true(and nomatched), no mapped flow cites or reads those lines. That doesn’t prove nothing runs them; the endpoint that does may not be mapped yet.
stale is true, or your branch has moved on, have the agent run git diff <commit> -- src/payments/charge.ts first so the line numbers line up.
Explain this service
Get a tour of what a repo does without reading it file by file. Prompt:
Using Flowmaps, explain what acme/shop does. Group its entry points by area, and for the order and payment flows walk through the steps and what happens when they fail.
What happens:
list_reposto confirm the repo’s name.list_flowswithrepo: "acme/shop", which gives every flow’s trigger, kind and one-line summary.get_flowon the flows that matter, readingsteps,outcomesandbusinessFacts.- The agent opens only the lines that interesting steps cite, rather than whole files.
find_flows, such as text: "refund".
What does this PR change?
Review a pull request’s effect on behaviour, not only its diff. Prompt:
I’m reviewing the PR on this branch. Use git diff main...HEAD to see which files and lines it changes, then use Flowmaps to list every flow and step those lines touch. For each, say what the step does today and how this change alters it.
What happens:
- The agent reads the diff locally.
- For each changed file and range,
flows_touchingonacme/shop. get_flowon each touched flow to compare the current steps with the change.
Find every call to a vendor
See everywhere a repo talks to a third-party service, for an upgrade, an outage or a security review. Prompt:
List every place acme/shop calls Stripe. For each flow, give the steps that call it, what each step does, and what the caller gets if Stripe fails.
What happens:
external_dependencieswithrepo: "acme/shop". TheStripeentry lists where the code names it (inCode) and the flows and step ids that call it (flows).get_flowon each flow, reading the listed steps and theironFailand outcomes.
inCode but an empty flows list, the code that calls it isn’t mapped yet. Map more of the repo’s endpoints in the app and ask again.
How did this flow change?
Trace a behaviour back to the pull request that introduced it. Prompt:
When did POST /api/orders start holding large orders for review, and which PR did it?
What happens:
flow_historywithrepo: "acme/shop",endpoint: "http:POST /api/orders", perhaps withbehaviour_only: true.- The agent finds the entry whose
steps.addedholds the review step, and reports itsprnumber, title, author and link. - To read the flow as it was before,
get_flowwithatset to the earlier entry’sversionId.
A snippet for CLAUDE.md or AGENTS.md
Add this to the instructions file at the root of a repo Flowmaps maps, so every agent session uses it:CLAUDE.md
owner/name. If your agent works across several repos, add a line naming them.
Next steps
MCP tools
Every tool’s inputs and answers.
Connect your agent
Add the server and choose workspaces.