AMS

AMS – Deterministic Agent Pipeline with A2A‑style Orchestration and Cryptographic Audit

AMS Icon

AMS: Audit Memory System

Durable control plane for multi-agent orchestration.


Audit-first agent memory and orchestration layer for MCP clients.

AMS gives AI assistants durable project scope, task control, proof-oriented execution trails, long-term memory, and orchestration primitives. Every action is auditable. Every decision is traceable. Every completion is provable.

CI GitHub Pages Version License Docker

Coverage Tests TypeScript ESLint

Stars Forks Issues Contributors

Node.js SQLite React MCP

Obsidian Docs API

Docslasteld.github.io/AMS
Tool Referencedocs/api/tool-reference.md
Architecturedocs/architecture/overview.md
Getting Starteddocs/tutorials/getting-started.md
Obsidian Pluginintegrations/obsidian-plugin/README.md
Release NotesRELEASE_NOTES.md

Control Plane v1.1.0

The AMS Control Plane provides a unified dashboard for system oversight and management:

ScreenFeatureDescription
DashboardSystem OverviewReal-time vitals, task stats, roadmap progress, and health indicators
ToolsTool Surface ManagerBrowse, search, and inspect all 484 MCP tools with filtering by tier, domain, and capability
AuditCryptographic Audit LogTamper-evident action logs with Merkle tree verification and chain integrity checks
AgentsAgent RosterReal-time view of active agents, their status, health, and current assignments
WorkflowsPipeline OverviewVisual GSD workflow execution with phase status, dependencies, and progress tracking
MemoryMemory InspectorSearch, browse, and manage memory frames with semantic search and cross-session bridging

Access via Obsidian plugin or programmatically through the AMS MCP tool surface. Tier 1 AMS is the default operating lane; Tier 2 Claude provider tools are supported separately and are not required for core AMS use.

Project Status

MetricValue
Total Tasks364
Completed333 (91.5%)
In Progress0
Todo1
Backlog30
Available Tools484
Test Suite121 passing
Roadmaps8
Core AMS LaneReady
Provider LaneSupported separately

Install

git clone https://github.com/LastEld/AMS.git
cd AMS
npm install
npm test
node src/server.js

MCP Client Configuration

{
  "mcpServers": {
    "ams": {
      "command": "node",
      "args": ["$AMS_ROOT/src/server.js"],
      "env": {
        "AMS_ROOT": "$AMS_ROOT",
        "AMS_WATCH_MODE": "none",
        "DOTENV_CONFIG_QUIET": "true"
      }
    }
  }
}

Replace $AMS_ROOT with your AMS installation path (e.g., /path/to/AMS on Unix or C:/path/to/AMS on Windows).

Optional: add ANTHROPIC_API_KEY only if you need the separate Tier 2 Claude API surface. Core AMS bootstrap does not require it.

Verify with:

unified_init
unified_vitals
unified_help
unified_set_project
task_next_actions

Local Skills (Tier 1)

AMS includes 16 shared skills in .agents/skills/ (Tier 1 mandatory AMS control-plane skills) plus 2 Claude-specific skills in .claude/skills/ (Tier 2 provider surface).

PM and Orchestration

SkillPurpose
ams-project-managerPM and handoff controller
ams-tier1-chainsMeta-prompting tool chains for sub-agent spawning
ams-autonomousAutonomous planning and apply flows

Task and Roadmap

SkillPurpose
ams-task-managementTask CRUD with dependencies
ams-roadmaps-tasksRoadmaps, tasks, and project sync
ams-roadmap-progressRegister roadmaps and update progress

GSD and Execution

SkillPurpose
ams-gsdGSD planning and orchestration
ams-gsd-executionWorkflow execution and agent spawning

Audit, Memory, and Proof

SkillPurpose
ams-audit-memoryAudit, memory, and proof flows
ams-audit-proofAudit sessions and verifiable proof artifacts
ams-memory-contextMemory packing and immutable context snapshots

Infrastructure and Integrations

SkillPurpose
ams-mcp-serverMCP server operation and troubleshooting
ams-observabilityHealth, metrics, logs, and alerts
ams-obsidian-integrationObsidian plugin operation
ams-growth-strategyGrowth strategy execution
repo-facing-polishGitHub-facing cleanup and releases

See AGENTS.md for full skill documentation and coordination rules.

Tool Surface - 484 Tools

AMS exposes 484 MCP tools organized into two tiers. Every tool listed below is a real, callable MCP tool registered in src/controllers/index.js. No placeholders, no stubs.

Tier 1: Core AMS (194 tools)

The mandatory operational control plane. These tools manage projects, tasks, execution, proof, and memory.

DomainCountToolsPurpose
Unified12unified_init, unified_vitals, unified_help, unified_stats, unified_set_project, unified_sync, unified_backup, unified_restore, unified_export, unified_import, unified_metrics, unified_architectureSystem bootstrap, health, diagnostics
Tasks10task_create, task_update, task_delete, task_list, task_deps, task_next_actions, task_eisenhower, task_report, task_create_batch, task_link_roadmap, task_sync_to_gsdTask CRUD, prioritization, dependencies
Roadmaps16roadmap_list, roadmap_get, roadmap_nodes, roadmap_node_get, roadmap_register, roadmap_validate, roadmap_validate_all, roadmap_repair, roadmap_repair_all, roadmap_search, roadmap_analyze, roadmap_export_to_gsd, roadmap_progress_get, roadmap_progress_update, roadmap_progress_update_batch, roadmap_next_topic, roadmap_prerequisites_checkLearning roadmaps, progress tracking
Context7context_create, context_get, context_latest, context_diff, context_history, context_verify, context_ensureImmutable execution snapshots
Audit8audit_session_start, audit_session_end, audit_session_status, audit_session_stats, audit_session_set_context, audit_get_actions, audit_get_chain_info, audit_verify_chain, audit_analyticsAction logs, chain verification
Thought6thought_record, thought_plan, thought_tree, thought_verify, thought_decide, thought_for_action, thought_reasoning_trailPlans, decisions, reasoning trails
Merkle6merkle_finalize, merkle_root, merkle_verify, merkle_proof, merkle_audit, merkle_attestCryptographic proof trees
Memory13memory_smart_store, memory_get, memory_forget, memory_stats, memory_verify, memory_embed, memory_semantic_search, memory_bundle, memory_pack, memory_map, memory_gc, memory_summarize, memory_cross_session, memory_prioritize, memory_retention, memory_tier_migrate, memory_context_compressPersistent memory, semantic search
Analysis10analysis_search, analysis_similar, analysis_compare, analysis_recommend, analysis_keywords, analysis_cache, analysis_rag_index, analysis_rag_search, analysis_rag_statsTF-IDF search, RAG, recommendations
GSD22gsd_plan, gsd_validate, gsd_state, gsd_dash, gsd_discuss, gsd_evolve, gsd_lease, gsd_skill, gsd_vitals, gsd_verify_comprehensive, gsd_report_generate, gsd_agent, gsd_agent_spawn, gsd_agent_status, gsd_agent_terminate, gsd_agent_pool_create, gsd_agent_pool_scale, gsd_parallel_map, gsd_phase_plan, gsd_phase_execute, gsd_phase_status, gsd_workflow_create, gsd_workflow_run, gsd_workflow_status, gsd_workflow_list, gsd_workflow_cancelOrchestration, agents, workflows
Intelligent18intelligent_route, intelligent_learn, intelligent_predict, intelligent_classify, intelligent_match, intelligent_rank, intelligent_suggest, intelligent_optimize, intelligent_anomaly, intelligent_scale, intelligent_retry, intelligent_fallback, intelligent_detect_anomaly, intelligent_recommend, intelligent_analyze, intelligent_stats, intelligent_feedback, intelligent_router_analyze, intelligent_cache_stats, intelligent_cache_warm, intelligent_tune, intelligent_reportML routing, anomaly detection
Observe14observe_health_check, observe_system_metrics, observe_latency_dashboard, observe_throughput_metrics, observe_error_rates, observe_log_analyze, observe_trace_flow, observe_alert_create, observe_alert_list, observe_alert_acknowledge, observe_audit_realtime, observe_claude_usage, observe_claude_cost, observe_token_tracking, observe_metrics_export, observe_report_generateMetrics, tracing, alerting
Other Core52acl_* (4), alert_* (7), ams_autonomous_* (2), ams_session_* (3), analytics_* (14), notify (1), parallel_execute (1), performance_* (3), rag_* (3), watcher_* (3), webhook_* (3), workflow_run (1)ACL, alerts, automation, analytics

Tier 2: Claude API Surface (290 tools)

Direct Anthropic API integration. Supported as a separate capability track. Requires ANTHROPIC_API_KEY in env.

DomainCountPurpose
Core API10claude_chat, claude_complete, claude_embed, claude_stream, claude_models, claude_model_capabilities, claude_configure, claude_health_check, claude_health_check_detailed, claude_health_metrics
Vision19Image analysis, OCR, object detection, scene classification, face analysis, color extraction, chart reading
Batch Processing14Batch job creation, monitoring, results, webhooks for bulk API operations
Streaming9SSE and WebSocket streaming, multiplexing, flow control
Files & Documents16File upload/download, PDF extraction, document Q&A, entity extraction
Conversations14Multi-turn conversation management, search, analytics, archiving
Messages9Message storage, search, indexing, export
Workspaces16Workspace CRUD, members, sharing, comments, activity tracking
Organizations & Projects10Org management, project CRUD, templates
Budget & Billing11Budget tracking, alerts, forecasting, invoices
Usage & Analytics20Token usage, cost analysis, trends, forecasting, anomaly detection
Tool Chains13Tool composition, chaining, discovery, autocomplete
Citations13Source management, citation formatting, validation
Computer Use15Screen interaction, keyboard/mouse control, screenshot capture
Tokens5Token counting, analysis, optimization, validation
Context Management8Context compression, optimization, prioritization, statistics
Threads4Thread forking, merging, import/export
Extended Thinking5Thinking budget, content access, optimization, statistics
Prompt Cache3Cache creation, metrics, status
Resilience8Circuit breakers, bulkheads, fallbacks, rate limiting, deduplication
API Keys4Key creation, listing, revocation, usage tracking
Webhooks10Webhook registration, management, testing, logs
Templates2Template listing and application
Fine-tuning1Model fine-tuning
Cost Estimation3Cost estimation, projection, budget-vs-actual

Full tool reference with every parameter: docs/api/tool-reference.md

Architecture

MCP Client (Claude Code / Obsidian / Codex / Kimi)
    |
    v  stdio JSON-RPC
src/server.js --> MCP Server
    |
    v  middleware (auth, ACL, audit, rate-limit)
src/controllers/ --> Tool Router (484 tools)
    |
    +--> src/domains/     (tasks, roadmaps, gsd, context, audit, memory, merkle, thought, architecture, retention, integrations)
    +--> src/tools/       (claude-api, claude-advanced, claude-workspace, claude-vision)
    +--> src/claude/      (Claude SDK wrappers: core, models, batch, streaming, resilience)
    |
    v
src/db/ --> SQLite (WAL mode, serialized writes)
    |
    v
data/ams.db --> Durable state (tasks, contexts, audit actions, thoughts, memory, merkle trees)

Client Matrix

ClientConfig LocationServer Name
Claude Code (VSCode).vscode/mcp-settings.json or .mcp.jsonams-v5
Claude Desktop%APPDATA%/Claude/claude_desktop_config.jsonams-v5
Codex~/.codex/config.tomlams
Kimi Code~/.kimi/mcp.jsonams-v5
ObsidianPlugin settings (spawns own server)N/A

All clients point to the same node src/server.js entrypoint and same data/ams.db.

Obsidian Plugin (v1.0.0)

The Obsidian plugin provides a full-featured AMS Control Center with real-time visual task management, GSD workflow control, agent pool management, and live dashboards.

Key Features

FeatureDescription
Graph ViewInteractive visualization for tasks, projects, and sessions with expandable hierarchy
Bidirectional SyncReal-time sync between Obsidian and AMS with conflict resolution
Task Tree VisualizationHierarchical task view with status badges, progress bars, and context menus
Session TrackingAudit-backed session notes with Merkle proof trails
Memory Frame IntegrationAccess and manage AMS memory frames directly from Obsidian
GSD Workflow ControlStart, pause, resume workflows and view phase status
Agent Pool ManagementMonitor agent health, spawn/terminate agents, view utilization
Reporting DashboardLive SVG charts for task completion, agent metrics, and workflow timeline

Installation

Via BRAT (Recommended):

  1. Install the BRAT plugin in Obsidian
  2. Add LastEld/AMS with subpath integrations/obsidian-plugin
  3. Enable the AMS plugin in Community Plugins

Manual Installation:

  1. Download the latest release from GitHub Releases
  2. Extract to <vault>/.obsidian/plugins/ams-obsidian/
  3. Enable the plugin in Community Plugins

Configuration

Configure via Settings → AMS Obsidian:

SettingDescriptionExample
amsRootPath to AMS installation$AMS_ROOT or /path/to/AMS
defaultProjectAuto-connect to this projectams-core
nodePathPath to Node.js binarynode
autoStartServerConnect on plugin loadtrue
syncIntervalAuto-sync interval (minutes)5

See integrations/obsidian-plugin/README.md for full documentation.

Repository Layout

src/
  server.js              MCP server entrypoint (production)
  controllers/           Tool definitions and routing (40+ files)
  domains/               Business logic (tasks, gsd, context, audit, memory, merkle, etc.)
  tools/                 Claude API tool handlers
  claude/                Claude SDK wrappers (core, models, batch, streaming, resilience)
  db/                    SQLite schema, repositories, migrations
  middleware/            Auth, ACL, rate limiting, runtime locks
  config/                Runtime configuration (server, claude, security)
  watchers/              File system watchers
  metrics/               Observability and metrics collection
  security/              Security scanning and validation
  validation/            Zod schemas for input validation
  runtime/               Process coordination and daemon management
  websocket/             WebSocket server for streaming
integrations/
  obsidian-plugin/       Full Obsidian plugin v1.0.0 (MCP stdio, rate-limited sync, offline queue, graph view)
tests/
  unit/                  Unit tests
  integration/           Integration tests (121 total, all passing)
docs/                    GitHub Pages documentation
data/                    Runtime database and state
config/                  Configuration files

Proof Model

AMS implements a proof-grade execution trail:

  1. audit_session_start - begin a tracked session
  2. thought_plan - record the execution plan
  3. context_ensure - snapshot the execution context
  4. Execute work (task updates, code changes)
  5. thought_record - record decisions and evidence
  6. audit_verify_chain - verify the action chain integrity
  7. merkle_finalize - generate cryptographic proof tree
  8. merkle_root - retrieve the Merkle root hash

Every step is immutable once written. The Merkle tree provides tamper-evident proof that the recorded execution trail was not modified after the fact.

Operating Constraints

  • SQLite is the durable store. All writes are serialized.
  • MCP clients must share the same AMS_ROOT.
  • Desktop clients: set AMS_WATCH_MODE=none (watchers are for dedicated runtimes).
  • Proof-grade handoff requires audit + thought + merkle flows, not chat text.
  • The server uses console.log = console.error to keep stdout clean for MCP JSON-RPC.
  • Set DOTENV_CONFIG_QUIET=true in env to prevent dependency stdout pollution.

Models (Claude API)

Model IDNameContextMax Tokens
claude-opus-4-6Claude Opus 4.6200K16,384
claude-sonnet-4-6Claude Sonnet 4.6200K16,384
claude-haiku-4-5-20251001Claude Haiku 4.5200K8,192
claude-3-5-sonnet-20241022Claude 3.5 Sonnet200K8,192
claude-3-5-haiku-20241022Claude 3.5 Haiku200K8,192
claude-3-opus-20240229Claude 3 Opus200K4,096
claude-3-sonnet-20240229Claude 3 Sonnet200K4,096
claude-3-haiku-20240307Claude 3 Haiku200K4,096

Default: claude-sonnet-4-6

License

Apache-2.0 WITH Commons-Clause

関連サーバー