Repository avatar
AI Tools
v1.0.0
active

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

HeuristicLaw
H-01Continuous State AnchoringSurface live post-conditions and ambient state continuously, so the agent never reconstructs reality from stale history.
H-02Affirmative Null ObservationsMake empty results and quiet successes explicit, reporting the scope searched and the exact post-state, so silent failures can't pass as success.
H-03Token Hygiene & High Observation YieldMaximize useful signal per token: strip boilerplate and replace raw data firehoses with structured summaries plus drill-down pointers.
H-04Freshness & Context Half-LifeTag volatile observations with version or turn freshness and invalidate superseded state, to prevent Temporal Vertigo and World-Model Drift.

Action & Ergonomics

HeuristicLaw
H-05Align with Interface PriorsHonor conventions deeply embedded in model pretraining; eliminate Norman Tools and justify any bespoke abstraction against its recurring teaching cost.
H-06Deterministic Envelopes & Schema UniformityEnforce uniform naming, pagination cursors, truncation markers and response envelopes across the entire tool surface.
H-07Local Handles & Progressive DisclosureShrink Inference Distance with short, copy-safe local references, and lazy-load specialized tools and context on demand instead of dumping catalogs upfront.
H-08Compositional AcceleratorsLower Semantic Impedance by letting agents filter, batch and compute on the computer's side of the boundary instead of through chatty turn loops.
H-09Executable, Just-in-Time Micro-DocsDesign onboarding into the critical path with ultra-concise inline canonical examples and pull-based deep playbooks.

Safety, Boundaries & Recovery

HeuristicLaw
H-10Poka-Yoke BoundariesValidate arguments, syntax and preconditions synchronously inside the tool call, so preventable mistakes never acquire Token Gravity.
H-11Errors as Steering PromptsTreat every error payload as a prompt: say what failed, the actual observed state, and the exact next valid affordance.
H-12Cheap Speculation & Declared Blast RadiusDeclare reversibility and risk per tool, enable cheap dry-runs and rollbacks, and keep Productive Friction while removing Dead Friction.
H-13Explicit Trust BoundariesStructurally isolate untrusted environment data from agent instructions, to defend against Adversarial Surfaces and prompt injection.

Session Metabolism & Control

HeuristicLaw
H-14Memory MetabolismProvide explicit ways to forget working debris: sub-agent isolation, viewport closing, and structured compaction contracts that minimize Handoff Loss.
H-15Temporal Proprioception & Verification GatesGive 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

PathWhat
guide/heuristics/, guide/lexicon/Every entry as Markdown
data/field-guide.jsonThe whole Guide as structured data (laws, checklists, tensions, links)
skills/ax-tool-design/The review skill and its checklists
.claude-plugin/, .mcp.jsonClaude Code plugin and marketplace
server.jsonMCP 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.