How veeruveerendra05/ace works
ACE is a local repository-context CLI. Its main workflow initializes per-project state, updates structural and symbol-history caches from tracked source and Git, then retrieves relevant symbols and optionally fuses their history into a budgeted context package or prompt. Separate oracle and A/B evaluation harnesses validate tracking and measure historical context utility. The graph follows documented workflows and the supplied source index; several command and evaluation internals were not excerpted, so their links rely on README documentation.
Main entry points: tracker.ts History tracker · fusion.ts Context fusion · commands Project commands · runner.ts A/B evaluation
Components 22
CLI and state
- CLI router
src/cli.ts - Project commands
src/commands - ACE scaffold
src/core/setup.ts - State utilities
src/core - Domain types
src/types
Repository indexing
- Cache updater
src/commands/update.ts - AST extractor
src/structural/extractor.ts - History tracker
src/history/tracker.ts - Symbol matcher
src/history/matcher.ts - Git access
src/git/git.ts - Structural cache
src/structural/structural-store.ts - History store
src/storage/history-store.ts
Context retrieval
- Export command
src/commands/export.ts - Symbol retrieval
src/structural/retriever.ts - Context fusion
src/context/fusion.ts - Prompt renderer
src/context/render.ts
Evaluation
- Oracle evaluation
src/eval/oracle/evaluate.ts - A/B evaluation
src/eval/ab/runner.ts - LLM provider
src/eval/ab/provider.ts - Evaluation reports
src/eval/ab/report.ts
Other components
- Engineer
- Configured LLM endpoint
Connections 26
- Engineer → CLI router: runs commands
- CLI router → Project commands: routes commands
src/cli.ts - Project commands → ACE scaffold: initializes state
- ACE scaffold → State utilities: resolves paths
src/core/setup.ts - Project commands → Cache updater: refreshes caches
- Cache updater → History tracker: tracks changes
- History tracker → AST extractor: extracts symbols
src/history/tracker.ts - History tracker → Symbol matcher: matches versions
src/history/tracker.ts - History tracker → Git access: walks history
src/history/tracker.ts - History tracker → Structural cache: writes index
src/history/tracker.ts - History tracker → History store: appends versions
src/history/tracker.ts - Export command → Context fusion: builds context
src/commands/export.ts - Context fusion → Structural cache: loads index
src/context/fusion.ts - Context fusion → Symbol retrieval: ranks symbols
src/context/fusion.ts - Context fusion → History store: retrieves history
src/context/fusion.ts - Context fusion → Git access: reads revisions
src/context/fusion.ts - Context fusion → Prompt renderer: renders prompt
src/context/fusion.ts - Export command → Engineer: returns package
- Project commands → Oracle evaluation: runs oracle
src/commands/eval.ts - Project commands → A/B evaluation: runs comparison
src/commands/eval.ts - A/B evaluation → LLM provider: queries provider
src/eval/ab/runner.ts - A/B evaluation → Context fusion: builds historical context
src/eval/ab/runner.ts - A/B evaluation → Evaluation reports: writes reports
- LLM provider → Configured LLM endpoint: calls when configured
- Oracle evaluation → History tracker: checks tracking
src/eval/oracle/evaluate.ts - State utilities → Domain types: uses schemas
src/core/setup.ts