How akshatjen/kimevo works
Kimevo is a repository knowledge and change-verification tool for coding agents. The principal workflow starts with a developer invoking the CLI to initialize a repository, gather context for an agent to draft rules, decision records and ontology entries, then accept those drafts and verify them against code. Separate branches provide code-graph and impact queries, agent instructions, and Claude Code hooks. The graph shows evidenced calls and documented workflow links; unsampled command internals are represented only where the README documents their behavior.
Main entry points: bootstrap/command.ts Bootstrap drafts · cli.ts Kimevo CLI · ontology/command.ts Ontology commands · records.ts Decision records
Components 25
CLI workflow
- Kimevo CLI
src/cli.ts - Repo configuration
src/config.ts - Git operations
src/git.ts - Bootstrap drafts
src/bootstrap/command.ts - Context gathering
src/bootstrap/gather.ts
Repository knowledge
- Rules
src/rules/rules.ts - Decision records
src/decisions/records.ts - Code anchors
src/decisions/anchors.ts - Domain ontology
src/ontology/model.ts - Ontology commands
src/ontology/command.ts - Ontology queries
src/ontology/query.ts - Repo knowledge files
Code graph
- Graph extraction
src/graph/structure.ts - API operations
src/graph/api.ts - Change impact
src/graph/impact.ts - Graph lookup
src/graph/lookup.ts
Agent setup
- Repository setup
src/init/init.ts - Agent instructions
src/init/instructions.ts
Checks and hooks
- Verify gate
src/verify.ts - Decision checks
src/decisions/check.ts - Stop hook
src/hooks/stop.ts - Head-move hook
src/hooks/head-move.ts - PR size guard
src/hooks/pr-guard.ts
Other components
- Developer
- Claude Code
Connections 38
- Developer → Kimevo CLI: invokes commands
README.md - Kimevo CLI → Repository setup: dispatches setup
src/cli.ts - Kimevo CLI → Bootstrap drafts: dispatches drafting
src/cli.ts - Kimevo CLI → Verify gate: dispatches verification
src/cli.ts - Kimevo CLI → Ontology commands: dispatches ontology
src/cli.ts - Bootstrap drafts → Context gathering: gathers context
src/bootstrap/command.ts - Bootstrap drafts → Rules: drafts rules
src/bootstrap/command.ts - Bootstrap drafts → Decision records: drafts records
src/bootstrap/command.ts - Bootstrap drafts → Domain ontology: drafts ontology
src/bootstrap/command.ts - Bootstrap drafts → Verify gate: checks drafts
src/bootstrap/command.ts - Repository setup → Repo configuration: loads settings
src/init/init.ts - Repository setup → Git operations: checks tracking
src/init/init.ts - Repository setup → Agent instructions: sets instructions
src/init/init.ts - Agent instructions → Rules: inlines rules
src/init/instructions.ts - Agent instructions → Ontology queries: inlines terms
src/init/instructions.ts - Ontology commands → Domain ontology: loads ontology
src/ontology/command.ts - Ontology commands → Graph extraction: checks stored tables
src/ontology/command.ts - Ontology commands → Graph lookup: looks up terms
src/ontology/command.ts - Ontology commands → Ontology queries: queries terms
src/ontology/command.ts - Decision records → Code anchors: validates symbols
src/decisions/records.ts - Domain ontology → Repo knowledge files: reads ontology files
src/ontology/model.ts - Graph extraction → API operations: extracts operations
src/graph/structure.ts - Change impact → Graph extraction: reads graph
src/graph/impact.ts - Graph lookup → Graph extraction: reads graph
src/graph/lookup.ts - Graph lookup → Decision records: finds anchored records
src/graph/lookup.ts - Graph lookup → Domain ontology: searches terms
src/graph/lookup.ts - Verify gate → Change impact: finds affected tests
src/verify.ts - Verify gate → Decision checks: checks records
src/verify.ts - Decision checks → Decision records: reads records
src/decisions/check.ts - Stop hook → Verify gate: runs changed checks
src/hooks/stop.ts - Stop hook → Decision checks: reviews touched records
src/hooks/stop.ts - Head-move hook → Decision checks: finds records to review
src/hooks/head-move.ts - PR size guard → Git operations: checks branch changes
src/hooks/pr-guard.ts - Claude Code → Stop hook: invokes stop event
README.md - Claude Code → Head-move hook: invokes head events
README.md - Claude Code → PR size guard: invokes edit guard
README.md - Rules → Repo knowledge files: stores rule files
README.md - Decision records → Repo knowledge files: stores decision files
README.md