AAM Command-Line Interface
The AAM binary provides an extensive suite of commands to scaffolding, validate, analyze, and visualize your repository boundaries.
aam status
$npx @architecture-as-memory/aam status
𩺠Running AAM Cognitive Heartbeat...
ā± Local Telemetry: Hydrated 12 nodes and 9 relationships in 148ms.
System Cognition Status:
ā Domains : 3 active (Frontend, Backend, Infrastructure)
ā Features : 5 capabilities mapped
ā Components : 8 system components verified
ā Health : 100% stable (0 syntax errors, 0 broken relationships)
aam validate
$npx @architecture-as-memory/aam validate
š Running Schema Integrity Validation...
ā Checked system.yaml
ā Checked relationships.yaml
ā Checked 3 domains
ā Checked 5 features
ā Checked 8 components
š Schema validation passed with 0 errors!
Malformed Cognition & Agent ConflictsDuring heavy multi-agent iterations, lower-level AI models (such as OpenCode or sub-agent threads) may mutate yaml schemas incorrectly, producing errors like: **"malformed cognition error: map key must be unique at line 6"**. Run `aam validate` to instantly isolate the malformed file, the exact line number, and structural error locations so you can rectify it before committing.
aam doctor
$npx @architecture-as-memory/aam doctor
𩺠Running AAM Cognitive Doctor Engine...
Cognition Health Diagnostics (2 warnings to review):
MISSING KNOWLEDGE LINK:
- architecture/components/auth-service.yaml: Node 'COMP-AUTH-SERVICE' has no knowledge_links specified.
- architecture/domains/frontend.yaml: Node 'DOM-FRONTEND' has no knowledge_links specified.
ā± Local Telemetry: Hydrated 5 nodes and 1 relationships in 247ms.
aam health
$npx @architecture-as-memory/aam health
š Aggregating Core Repository Cognition Metrics...
ā Schema Syntax Integrity : PASS (100%)
ā Structural Connectivity : PASS (89% - 1 relationship warnings)
ā AI Scaffolding Sync : PASS (3/3 files synced)
ā Offline Topology Hash : 6cf670695a69e7f3be8786f4f50cd8376c17b5dd
š AAM Repository Health is EXCELLENT!
aam snapshot
$npx @architecture-as-memory/aam snapshot
šø Capturing current architecture schema state...
ā Captured snapshot: .aam/snapshots/snapshot-1716834000.json
ā Saved active index signature: 6cf670695a69e7
aam export
$npx @architecture-as-memory/aam export -o architecture-map.html
š¦ Exporting living architecture topology...
ā Read current active graph state
ā Bundled ReactFlow console frame assets
ā Wrote standalone offline visualizer html: architecture-map.html
š Static dashboard successfully created! Open in any browser.
aam reinforce
$npx @architecture-as-memory/aam reinforce claude
Reinforcing AAM cognition context for Claude Code / Claude Desktop...
ā Successfully reinforced AAM reference in CLAUDE.md
š Reinforcement completed!
To reactivate context in an already-running AI session, ask the AI:
"Please read the AAM skill file /architecture/agents/aam-skill.md"
Idempotent Reinforcement OptionsThe `aam reinforce <provider>` command appends a lightweight, non-invasive cognition anchor reference into target configuration files. Supported providers include: `claude` (CLAUDE.md), `gemini` (.gemini/GEMINI.md), `cursor` (.cursorrules), `codex` (.github/copilot-instructions.md), and `generic` (AGENT.md). Running it multiple times is perfectly safe and will not result in duplicate prompts.
