This file provides guidance to agents when working with code in this repository.
- Rust Backend:
cargo run(dev),cargo test(unit). GPU/Ontology features enabled by default. - Frontend:
cd client && npm install && npm run dev. - Docker:
./scripts/launch.sh up dev(preferred over directdocker compose). - Type Gen:
cargo run --bin generate_typesupdatesclient/src/types/from Rust structs.
The following agent-facing capabilities are available via MCP tools and REST endpoints:
- Ontology Discovery: Semantic search across OWL classes using configurable similarity thresholds.
- Enriched Note Reading: Retrieve notes with full axioms, relationships, and metadata.
- Cypher Query Validation: Schema-aware query validation with Levenshtein-based hints for typos.
- Ontology Graph Traversal: BFS traversal with configurable depth for exploring class hierarchies.
- Note Proposal: Create or amend ontology notes with Whelk consistency checks.
- Quality Scoring: Automated completeness assessment for ontology entries.
- GitHub PR Creation: Automated ontology change PRs via the full GitHub REST API flow.
- Voice Routing: Multi-user real-time voice routing with push-to-talk, LiveKit SFU spatial audio, and Turbo-Whisper STT.
Seven ontology-focused MCP tools are defined in the MCP server:
ontology_discover- Semantic search across OWL classesontology_read- Enriched note reading with axioms and relationshipsontology_query- Schema-aware Cypher query validationontology_traverse- BFS graph traversal with configurable depthontology_propose- Create/amend notes with Whelk consistency checksontology_validate- Automated completeness and quality scoringontology_status- Proposal and PR lifecycle tracking
- Rust:
actix-webfor API,neo4rsfor graph DB.whelk-rs(local path) for ontology reasoning.generate_typesbinary MUST be run after changing API/Data structs.OntologyRepositoryuses in-memoryArc<RwLock<HashMap>>for proposal state.OntologyQueryServiceandOntologyMutationServiceare the agent-facing API layer for ontology operations.
- TypeScript:
client/src/features/architecture (Feature-Sliced Design inspired).- Use
src/types/for generated types (do not edit manually).
- Multi-Agent:
multi-agent-docker/contains independent agent definitions. - MCP Server:
multi-agent-docker/mcp-infrastructure/servers/mcp-server.jshas MCP tool definitions (including the 7 ontology tools). - Orchestration:
CLAUDE.mdmandates specific "Spawn and Wait" pattern for swarms. - Docs:
docs/contains architecture,CLAUDE.mdcontains agent behavior rules. - Ontology Tests:
tests/ontology_agent_integration_test.rscontains 13 integration tests for the ontology pipeline. - Env:
.envis ignored; copy from.env.development.templateormulti-agent-docker/.env.example.