workspace.json is an open specification for structured AI agent codebase
intelligence. A machine-generated JSON file at .agents/workspace.json
gives AI coding agents structured context about your repository.
(spec · rendered docs · changelog)
Shipped consumer integrations:
- Buildomator (formerly gsd-plugin) — independent Claude Code implementation reading
.agents/workspace.jsonat SessionStart
This repository is the canonical source for the agents-audit release family.
| Package | Purpose |
|---|---|
@workspacejson/spec |
JSON Schema and TypeScript types for workspace.json |
@workspacejson/rules |
Deterministic parser, scanner, validator, and rule engine |
agents-audit |
CLI for scanning AGENTS.md hygiene and workspace metadata |
The canonical specification lives at packages/spec/.
- JSON Schema:
packages/spec/schema/v1.json - TypeScript types:
packages/spec/src/types.ts - Rendered: workspacejson.dev/spec/
# Audit AGENTS.md hygiene in any repo
npx agents-audit
# Generate .agents/workspace.json
npx agents-audit generateagents-audit/
├── packages/
│ ├── spec/ — JSON Schema + TypeScript types
│ ├── rules/ — Rule engine and validator
│ └── agents-audit/ — CLI binary
├── .github/
├── pnpm-workspace.yaml
├── package.json
├── README.md
└── CHANGELOG.md
pnpm install
pnpm -r typecheck
pnpm -r test
pnpm -r buildTo run the CLI against the current repository:
pnpm --filter agents-audit build
node packages/agents-audit/dist/cli.js scan .Version history is tracked in CHANGELOG.md. GitHub release tags mirror npm package versions.