Spec
Clear boundaries for human and machine authored context.
The spec separates manual guidance from generated intelligence so tools can reason about codebases without replacing the developer's instructions.
Open standard for agent context
workspace.json gives codebases a machine-readable layer of context so AI tools, CI, and contributors stay aligned with what is actually in the repository.
Spec
The spec separates manual guidance from generated intelligence so tools can reason about codebases without replacing the developer's instructions.
Schema
Integrations can validate structure, enforce required fields, and keep generated output aligned with the documented contract.
Audit
agents-audit scans a repository and emits a conformant workspace.json document under .agents/agents.workspace.json. Pair with a daemon for behavioral intelligence over time.
spec
A direct comparison of the two leading AI codebase context formats and why the distinction matters for agent reliability.
workspace.json is a JSON file that describes a codebase to AI agents. It captures file structure, conventions, framework versions, and fragility signals derived from observing how the codebase is actually used — behavioral codebase intelligence derived from the commit record, not from reading the source. Tools generate it, agents read it, developers commit it, and the team shares one view of reality.
It's workspace-local intelligence: scoped to the repository, version-controlled with the code, and consumed at the point where agents make decisions. Apache 2.0 licensed and proposed as a complement to AGENTS.md.
AGENTS.md gives AI coding tools a place to read instructions. Those instructions are prose, written by humans, and they age quickly. A codebase changes; the file describing it should change with it.
workspace.json is for the descriptive layer: what is true about the code right now. It's regenerated by tools that observe the codebase, so it stays current. AI agents read both AGENTS.md and workspace.json: prescriptive context plus descriptive context.
The two files are designed to compose:
A repo can have both, neither, or either. Tools that consume AGENTS.md continue to work unchanged. Tools that also consume workspace.json get richer context.