Features¶
Environment Variables (Frontend)¶
| Variable | Default | Description |
|---|---|---|
VITE_ENABLE_ACP |
false |
Enable ACP protocol support alongside AG-UI |
Recent Architecture Changes¶
- Comprehensive API Extensions: Added 20+ new API endpoints for knowledge graph CRUD, knowledge base management, SDD lifecycle, MAGMA views, resource management, and maintenance operations
- Enhanced Frontend Components: Created GraphView with interactive visualization, KnowledgeBaseView for KB management, MemoryView for memory management, and SDDView for spec-driven development
- Testing Infrastructure: Implemented comprehensive testing with Vitest (frontend), Pytest (backend), Playwright (E2E), and CI/CD pipeline with coverage reporting
- Knowledge Graph Integration: Full CRUD operations for memory nodes, article management, and MAGMA orthogonal views (semantic, temporal, causal, entity)
- Backend Abstraction: GraphBackend factory supporting LadybugDB (default), FalkorDB, and Neo4j for hot-swappable database backends
- ACP protocol now routes through the full HSM graph pipeline (not a flat agent) via
create_graph_acp_app() - Graph Activity visualization (
GraphActivity.tsx) shows specialist routing decisions, parallel execution status, tool calls, and expert reasoning in a collapsible timeline - Backend uses
create_agent_web_app()inagent/agent_webui/server.pyto compose Pydantic AI web routes with enhanced workspace APIs - Unified execution: all protocols (AG-UI, ACP, SSE /stream) share the same graph engine via
graph/unified.py - Human-in-the-loop approval (
ApprovalCard.tsx) intercepts security-sensitive tool calls before execution - Conversation persistence merges localStorage entries with server-side records from
/api/enhanced/chats - Model registry is backend-driven: the hardcoded
MODEL_COST_TABLEinChat.tsxhas been removed. Both the model picker and the per-session cost badge now consumeGET /api/enhanced/models(which mirrors theagent-utilitiescoreGET /models). Zero-cost models render as$0.00so token / tool counts remain visible for local / free deployments - Structured trace logger: The backend emits structured log lines to
agent_utilities.graph.tracefor every graph event, enabling server-side prompt-flow tracing without the UI
API Endpoint Summary¶
Knowledge Graph APIs¶
GET /api/enhanced/graph/stats- Graph statisticsGET /api/enhanced/graph/nodes- List graph nodesGET /api/enhanced/graph/relationships- List relationshipsPOST /api/enhanced/graph/memory- Create memory nodeGET /api/enhanced/graph/memory/{id}- Get memory nodePUT /api/enhanced/graph/memory/{id}- Update memory nodeDELETE /api/enhanced/graph/memory/{id}- Delete memory nodePOST /api/enhanced/graph/link- Link nodesGET /api/enhanced/graph/search- Hybrid searchGET /api/enhanced/graph/impact/{symbol}- Impact analysisPOST /api/enhanced/graph/query- Execute Cypher query
Knowledge Base APIs¶
POST /api/enhanced/kb/ingest- Ingest knowledge baseGET /api/enhanced/kb/list- List knowledge basesGET /api/enhanced/kb/search- Search knowledge baseGET /api/enhanced/kb/article/{id}- Get articlePOST /api/enhanced/kb/health- Health check
SDD Lifecycle APIs¶
GET /api/enhanced/sdd/constitution- Get constitutionPOST /api/enhanced/sdd/constitution- Save constitutionGET /api/enhanced/sdd/specs- List specificationsPOST /api/enhanced/sdd/spec- Create specificationGET /api/enhanced/sdd/plans- List implementation plansGET /api/enhanced/sdd/tasks- Get tasksPOST /api/enhanced/sdd/sync- Sync SDD to memory
MAGMA View APIs¶
POST /api/enhanced/graph/magma- Retrieve orthogonal context
Resource Management APIs¶
GET /api/enhanced/resources- List callable resourcesPOST /api/enhanced/resources/spawn- Spawn specialized agent
Maintenance APIs¶
GET /api/enhanced/maintenance/status- Get maintenance statusPOST /api/enhanced/maintenance/trigger- Trigger maintenance operation
Pipeline APIs¶
GET /api/enhanced/pipeline/status- Get pipeline statusPOST /api/enhanced/pipeline/trigger- Trigger pipeline phase