acc is a CLI and framework that makes software repositories agent-native,
navigable, declarative, graph-oriented, and self-describing — without
requiring an ACC-specific agent. The repository is the sole source of
truth; the acc CLI is an optional deterministic accelerator.
- Preserve 100% compatibility with the existing
AGENTS.mdecosystem (agents.md standard). Removing.acc/or theaccCLI MUST leave a valid agents.md repository. - Derive the architecture graph from
AGENTS.md(declared) + source imports (discovered) + filesystem structure, in-memory, at query time. - Produce focused, progressive, provenance-tagged agent-ready context
via
acc context. - Validate repositories with stable diagnostic codes (
ACC0xx). - Stay offline, filesystem-first, language-agnostic in core, and safe on untrusted repositories (no code execution, no network).
Owner: EnzoVezzaro/agents-code-context
- Repository filesystem (files, folders,
AGENTS.md, source). .acc/config/config.yaml(optional; defaults when absent).
- Terminal prose and JSON (
--json) for every command. .acc-memory.mdfiles (viaacc memorysubcommands only).AGENTS.mdtemplates (viaacc document --applyonly).- Diagnostics with stable
ACC0xxcodes.
- docs/ (this project's specification and guides)
- MUST NOT introduce a competing instruction-file standard.
AGENTS.mdstays Markdown with no proprietary schema. - MUST NOT require an ACC-specific agent, LLM wrapper, IDE, or runtime.
- MUST NOT execute arbitrary code, npm scripts, Makefiles, or build scripts (untrusted-repo safety).
- MUST NOT make telemetry calls or upload repository contents (offline-first).
- MUST NOT require a database; V1 uses an in-memory graph.
- Declared facts win over discovered facts; inferred facts are never asserted as authoritative (see docs/04-epistemology.md).
- Diagnostic codes (
ACC0xx) and JSONschema_versionare stable; renumbering/renaming is forbidden after release.
The project is organized as a set of functionality boundaries, each with
its own AGENTS.md. V1 implementation language: see docs/05-cli-commands.md
for the CLI contract and docs/04-epistemology.md for the graph model.
Layers (top to bottom):
- CLI command layer — argument parsing, output formatting (terminal/JSON).
- Context engine — progressive depth, provenance, section assembly.
- Graph derivation — filesystem walk,
AGENTS.mdheuristic parse, language analyzers (optional), truth resolution. - Diagnostics — stable code registry, severity, config overrides.
- Memory —
.acc-memory.mdread/write (including interrupt records). - Control plane —
.acc/config/config + agents/workflows/standards/templates.
See docs/README.md for the full documentation index.
See 11 — Multi-Agent Orchestration for the agent-agnostic coordination substrate: graph-driven partitioning, dynamic concurrency, functionality ownership, isolation, structured handoff, and deterministic validation.
- See
.acc/config/workflows/feature.mdfor adding a new functionality. - See
.acc/config/workflows/diagnostic.mdfor adding a new diagnostic code. - See
.acc/config/workflows/release.mdfor the release checklist.
When modifying this repository:
- Read the relevant
AGENTS.md(this file, or the functionality-local one). - Inspect
.acc-memory.mdif present in the functionality directory. - Understand graph relationships (
acc graph,acc dependencies). - Preserve declared invariants (the Constraints section above and in
each functionality's
AGENTS.md). - Validate affected functionality after changes (
acc check,acc impact). - Update durable functionality knowledge in
.acc-memory.mdwhen appropriate. - If interrupted or corrected by the human, immediately record the
reason in
.acc-memory.mdunder "Interrupts & Corrections". - When changing behavior that affects the JSON or diagnostic contract,
bump
schema_versionper docs/08-json-schema.md and never reuse a diagnostic code per docs/07-diagnostic-codes.md.
An agent that has never heard of ACC can follow these instructions as
plain Markdown. The acc CLI commands are accelerators; the fallback is
reading files and source directly.