ReferenceFull Specification

Full Specification

The complete AIM protocol specification is maintained in the repository.

Protocol Version

Current version: AIM 1.0

Core Concepts

Progressive Disclosure (4-Tier Model)

AIM uses a tiered loading model to minimize token consumption:

TierNameToken CostWhen Loaded
0Index~5 tokens/capabilityInitialization
1Schema~50-200 tokensOn relevance match
2InstructionVariableOn commitment
3Execution0 tokensOn dispatch (never in context)

Transport Agnosticism

AIM is transport-agnostic. Tier 3 dispatch supports:

  • MCP: Model Context Protocol servers
  • CLI: Command-line tools
  • REST: HTTP APIs
  • Code: Direct function calls
  • Agent: Delegation to other agents

Enforcement Mechanisms

Three enforcement approaches:

  1. Static: Deterministic tool-based checks (semgrep, tsc, eslint)
  2. Semantic: LLM-as-judge evaluation with configurable thresholds
  3. Injected: Rules included in agent context (guidance only)

Composability

Manifests can be composed through:

  • Inheritance: Extend base manifests
  • Dependencies: Reference other manifests
  • Composition strategies: most_restrictive, last_wins, priority_weighted

Documentation

For the complete specification, see: