
ax-field-guide
io.spektiv/ax-field-guide
15 design heuristics and a 55-term lexicon for tools, APIs and MCP servers that AI agents use.
Documentation
Designing for Agents: The AX Field Guide
AI agents now use your product through its tools, APIs and MCP servers. They don't file bug reports. When an interface confuses them, they guess, and the guess becomes a duplicate ticket, a second refund or a deploy to the wrong environment.
This guide is about designing for that user: 15 heuristics, each traced to the usability rule it grew from, and a 55-term lexicon for what happens inside an agent session. Every heuristic comes with the fix, the signals to look for in your traces, a review checklist, and how it maps to the MCP spec.
Read it on the web at spektiv.io/field-guide, or in this repo as Markdown. Free under CC BY 4.0.
Use it from your agent
Claude Code plugin (the review skill plus the Field Guide MCP server):
/plugin marketplace add prspktvs/ax-field-guide
/plugin install ax-field-guide@spektiv
Agent Skill only, for Claude Code, Codex, Cursor and other tools that read SKILL.md:
npx skills add prspktvs/ax-field-guide
Then ask your agent to review a tool, e.g. "Review the tools in src/mcp/ with the ax-tool-design skill."
MCP server, read-only, no sign-in: https://spektiv.io/mcp/field-guide (Streamable HTTP).
claude mcp add --transport http ax-field-guide https://spektiv.io/mcp/field-guide
Tools: ax_overview, ax_search, ax_get (depth card, summary or full) and ax_traverse. Entries have
short handles: H-01 to H-15, L-01 to L-55.
What the MCP server receives: your agent's tool calls (the entry it asks for, or its search text). It keeps a usage log of the method, tool name, entry handle (e.g. H-02), client software name and latency. It never logs search text, IP addresses or any other argument. The skill runs locally and sends nothing. Privacy policy: https://spektiv.io/privacy
The 15 heuristics
Perception & State
| Heuristic | Law | |
|---|---|---|
| H-01 | Continuous State Anchoring | Surface live post-conditions and ambient state continuously, so the agent never reconstructs reality from stale history. |
| H-02 | Affirmative Null Observations | Make empty results and quiet successes explicit, reporting the scope searched and the exact post-state, so silent failures can't pass as success. |
| H-03 | Token Hygiene & High Observation Yield | Maximize useful signal per token: strip boilerplate and replace raw data firehoses with structured summaries plus drill-down pointers. |
| H-04 | Freshness & Context Half-Life | Tag volatile observations with version or turn freshness and invalidate superseded state, to prevent Temporal Vertigo and World-Model Drift. |
Action & Ergonomics
| Heuristic | Law | |
|---|---|---|
| H-05 | Align with Interface Priors | Honor conventions deeply embedded in model pretraining; eliminate Norman Tools and justify any bespoke abstraction against its recurring teaching cost. |
| H-06 | Deterministic Envelopes & Schema Uniformity | Enforce uniform naming, pagination cursors, truncation markers and response envelopes across the entire tool surface. |
| H-07 | Local Handles & Progressive Disclosure | Shrink Inference Distance with short, copy-safe local references, and lazy-load specialized tools and context on demand instead of dumping catalogs upfront. |
| H-08 | Compositional Accelerators | Lower Semantic Impedance by letting agents filter, batch and compute on the computer's side of the boundary instead of through chatty turn loops. |
| H-09 | Executable, Just-in-Time Micro-Docs | Design onboarding into the critical path with ultra-concise inline canonical examples and pull-based deep playbooks. |
Safety, Boundaries & Recovery
| Heuristic | Law | |
|---|---|---|
| H-10 | Poka-Yoke Boundaries | Validate arguments, syntax and preconditions synchronously inside the tool call, so preventable mistakes never acquire Token Gravity. |
| H-11 | Errors as Steering Prompts | Treat every error payload as a prompt: say what failed, the actual observed state, and the exact next valid affordance. |
| H-12 | Cheap Speculation & Declared Blast Radius | Declare reversibility and risk per tool, enable cheap dry-runs and rollbacks, and keep Productive Friction while removing Dead Friction. |
| H-13 | Explicit Trust Boundaries | Structurally isolate untrusted environment data from agent instructions, to defend against Adversarial Surfaces and prompt injection. |
Session Metabolism & Control
| Heuristic | Law | |
|---|---|---|
| H-14 | Memory Metabolism | Provide explicit ways to forget working debris: sub-agent isolation, viewport closing, and structured compaction contracts that minimize Handoff Loss. |
| H-15 | Temporal Proprioception & Verification Gates | Give agents a sense of elapsed turns, budget and repeated loops, and enforce explicit verification gates against both Thrash Traps and Silent Corner-Cutting. |
The lexicon names what these heuristics fight: token gravity, grounding debt, handoff loss and 52 more.
In this repo
| Path | What |
|---|---|
guide/heuristics/, guide/lexicon/ | Every entry as Markdown |
data/field-guide.json | The whole Guide as structured data (laws, checklists, tensions, links) |
skills/ax-tool-design/ | The review skill and its checklists |
.claude-plugin/, .mcp.json | Claude Code plugin and marketplace |
server.json | MCP Registry entry |
This repo is generated from the Guide's source on every release. To suggest a change, open an issue.
Related
- mcp-sauna: a test bench that reviews an MCP server by running an agent against it.
- Research diary: the experiments behind the Guide, e.g. a 9B model that went from fixing 17% to 58% of simulated incidents when only its tools changed.
License and attribution
Text and data: CC BY 4.0. Copy it, translate it, build on it, with credit:
"Designing for Agents — The AX Field Guide" by Spektiv, https://spektiv.io/field-guide, licensed under CC BY 4.0
No installation packages available.