Loading repository data…
Loading repository data…
Draivix / repository
AI-powered code guardian — static analysis that watches your entire codebase
Native Rust whole-codebase analysis for AI agents.
AigisCode scans mixed-language repositories, builds a semantic graph, and emits machine-readable artifacts for structural triage. The current product surface is the Rust CLI. The legacy Python implementation has been removed from this repository.
AigisCode is not only for huge monoliths.
It is useful on:
Use it when you want answers like:
Do not think of AigisCode as “only a big-codebase platform”. Think of it as a layered analyzer:
cargo install --git https://github.com/Draivix/aigiscode.git aigiscore --bin aigiscode
cd your-project
aigiscode analyze .
For local development from this repository:
cargo run --bin aigiscode -- analyze .
For a quick human-readable summary after analysis:
aigiscode report .
cat .aigiscode/aigiscode-report.md
For a graph-backed AI handoff without executing any agent:
aigiscode agent .
Use:
aigiscode analyze .aigiscode report .aigiscode info .Why:
agent-run or cypherUse:
aigiscode analyze .aigiscode surface .aigiscode agent .aigiscode tune .Why:
Use:
aigiscode analyze . --output-dir <dir>aigiscode agent .aigiscode agent-run . --adapter <name>aigiscode graph . --kuzuaigiscode cypher .Why:
AigisCode is easiest to use correctly if you think in layers:
semantic-graph.jsondependency-graph.jsonevidence-graph.jsonarchitecture-surface.jsonreview-surface.jsonconvergence-history.jsonguard-decision.jsonagentic-review.jsongraph-packets.jsonrepository-topology.jsonagent-runagent-spiderThis matters because not every command is for the same job. analyze builds
truth. surface and report summarize it. agent packages it for AI. graph
and cypher expose lower-level graph access.
aigiscode analyze <path> Run deterministic analysis and write native artifacts
aigiscode agent <path> Print the graph-backed AI review contract
aigiscode agent-run <path> Execute the AI review through a concrete adapter and write agent reports
aigiscode agent-spider <path> Crawl top task packets through a concrete adapter and write per-packet reports
aigiscode report <path> Compatibility alias that also writes aigiscode-report.json
aigiscode analyze-rust <path> Compatibility alias for analyze
aigiscode info <path> Inspect existing Rust-native artifact state
aigiscode plugins List built-in runtime/framework overlay plugins
aigiscode tune <path> Suggest a conservative policy patch from current analysis signals
aigiscode surface <path> Emit architecture surface JSON
aigiscode mcp <path> Start the native Rust stdio MCP server for one repository
aigiscode version Print CLI version
Use --output-dir <path> to write artifacts outside .aigiscode/.
Use --no-write to print JSON without writing artifacts.
Use --external-tool <name> or --external-tools all to run native Rust
external adapters alongside deterministic analysis.
aigiscode analyze <path>Use this first.
It runs the full deterministic pipeline and writes the full native artifact family. If you are unsure what command to use, use this one.
Use it when you want:
aigiscode report <path>Use this when you want the same analysis pipeline but care mainly about the consolidated report output.
It is a compatibility alias for analyze that still writes the full artifacts.
aigiscode info <path>Use this when artifacts already exist and you want a quick structured view of their current state without reasoning from scratch.
Good for:
aigiscode surface <path>Use this when you mainly want the architecture-facing summary and not the raw low-level graph files.
Good for:
aigiscode agent <path>Use this when the consumer is another AI agent, not just a human.
It runs the same analysis pipeline, then prints the graph-backed AI review contract built around:
aigiscode agent-run <path>Use this when you want AigisCode to execute the review through a concrete AI adapter, not only prepare the contract.
Current adapters:
codex-execresponses-httpcodex-sdkaigiscode agent-spider <path>Use this when you want multiple top task packets executed, not just a single whole-repo AI review.
This is for crawling the highest-priority bounded investigations.
aigiscode graph <path>Use this when you want graph artifacts without the full detector/report stack.
Good for:
Add --kuzu when you also want the optional Kuzu materialization.
aigiscode cypher <path>Use this when you want to query the optional Kuzu graph index for code understanding.
This is lower-level than surface or agent.
aigiscode tune <path>Use this after analysis when you want a conservative starter patch for
.aigiscode/policy.json.
aigiscode pluginsUse this when you want to know which built-in semantic model packs and runtime plugins are active in the current binary.
aigiscode mcp <path>Use this when another tool or agent wants to consume AigisCode through MCP over stdio instead of reading JSON files directly.
--output-dir <dir>Write artifacts outside .aigiscode/.
Use this when:
--no-writePrint JSON to stdout without writing artifacts.
Use this for:
Do not use it if you want the full reusable artifact family on disk.
--external-tool <name> / --external-tools <csv>Run external analyzers and normalize them into the same report/review surface.
Use this when you want:
aigiscode analyze .
cat .aigiscode/aigiscode-report.md
aigiscode analyze . --output-dir /tmp/my-repo-aigis
cat /tmp/my-repo-aigis/aigiscode-report.md
aigiscode agent . --output-dir /tmp/my-repo-aigis
cat /tmp/my-repo-aigis/agentic-review.json
aigiscode agent-run . --adapter codex-exec --output-dir /tmp/my-repo-aigis
aigiscode graph . --kuzu --output-dir /tmp/my-repo-graph
aigiscode cypher . --output-dir /tmp/my-repo-graph
aigiscode analyze writes:
.aigiscode/deterministic-analysis.json
.aigiscode/semantic-graph.json
.aigiscode/dependency-graph.json
.aigiscode/evidence-graph.json
.aigiscode/contract-inventory.json
.aigiscode/doctrine-registry.json
.aigiscode/deterministic-findings.json
.aigiscode/ast-grep-scan.json
.aigiscode/external-analysis.json
.aigiscode/architecture-surface.json
.aigiscode/review-surface.json
.aigiscode/convergence-history.json
.aigiscode/guard-decision.json
.aigiscode/aigiscode-handoff.json
.aigiscode/agentic-review.json
.aigiscode/graph-packets.json
.aigiscode/repository-topology.json
.aigiscode/aigiscode-report.json
.aigiscode/aigiscode-report.md
When external tools are enabled, raw scanner artifacts are archived under:
.aigiscode/reports/<run_id>/raw/
aigiscode surface prints the architecture surface JSON and also writes:
.aigiscode/architecture-surface.json
aigiscode mcp serves tools, resources, and prompts over stdio from the same
native artifact family.
If you only read a few files, start here:
aigiscode-report.json
aigiscode-report.md
architecture-surface.json
review-surface.json
guard-decision.json
agentic-review.json
Read the lower-level graph artifacts when you need deeper explanation:
semantic-graph.json
dependency-graph.json
evidence-graph.json
deterministic-findings.json
aigiscode agent runs the normal analysis pipeline, writes the same artifact
family, and prints agentic-review.json as the primary machine contract for an
AI reviewer. The AI contract is graph-backed, includes diff-aware task packets,
trace-style evidence chains, bounded typed multi-path graph traces, and bounded
code-flow style evidence paths plus explicit source/sink endpoints, bounded
semantic state-flow evidence for mutable carriers when the slice supports it, and now
carries an adapter catalog with:
codex execast-grep-scan.json is the first secondary scanner-plane artifact. It carries
typed, provenance-rich structural rule hits from in-process ast-grep
evaluation. Today it covers three pilot families:
collection scan, sort, regex compile,