Skip to main content

Crate agentic_codebase

Crate agentic_codebase 

Source
Expand description

AgenticCodebase — Semantic code compiler for AI agents.

Transforms source code into a navigable graph of concepts, relationships, and patterns. Stores the entire semantic structure of a codebase in a single memory-mappable .acb file.

§Architecture

  • types — All data types. No logic. No I/O.
  • parse — Language-specific parsing via tree-sitter.
  • semantic — Cross-file resolution, FFI tracing, pattern detection.
  • format — Binary .acb file reader/writer.
  • graph — In-memory graph operations.
  • engine — Compilation pipeline and query executor.
  • index — Fast lookup indexes.
  • temporal — Change history, stability, coupling, prophecy.
  • collective — Collective intelligence and pattern sync.
  • grounding — Anti-hallucination verification of code claims.
  • workspace — Multi-context workspaces for cross-codebase queries.
  • ffi — C-compatible FFI bindings.
  • config — Configuration loading and path resolution.
  • cli — Command-line interface.
  • mcp — Model Context Protocol server interface.

Re-exports§

pub use format::AcbReader;
pub use format::AcbWriter;
pub use graph::CodeGraph;
pub use graph::GraphBuilder;
pub use grounding::Evidence;
pub use grounding::Grounded;
pub use grounding::GroundingEngine;
pub use grounding::GroundingResult;
pub use types::AcbError;
pub use types::AcbResult;
pub use types::CodeUnit;
pub use types::CodeUnitBuilder;
pub use types::CodeUnitType;
pub use types::Edge;
pub use types::EdgeType;
pub use types::FileHeader;
pub use types::Language;
pub use types::Span;
pub use types::Visibility;

Modules§

cli
Command-line interface for the acb binary.
collective
Collective intelligence layer.
config
Configuration loading and resolution.
engine
High-level compilation pipeline and query engine.
ffi
C-compatible FFI bindings.
format
Binary file I/O for the .acb format.
graph
In-memory graph operations for the code graph.
grounding
Grounding — Anti-hallucination layer for code claims.
index
Index structures for fast lookup.
mcp
Model Context Protocol server interface.
parse
Multi-language parsing engine using tree-sitter.
semantic
Semantic analysis layer.
temporal
Time-based analysis for code evolution.
types
Core data types for the AgenticCodebase semantic code compiler.
workspace
Multi-context workspaces for loading and querying multiple codebases.