Intent over instructions
Most AI adoption writes imperative, per-vendor instructions. Leji captures durable intent (what things mean, what must hold, why it is so) and lets people and agents derive actions from declared intent plus task context.
/LEH-jee/ · is legible · an open specification
Leji defines the shared context layer of AI-native teams: one versioned, repo-owned record of how a team thinks (domain language, constraints, decisions, conventions, guardrails). People and AI agents read it on every task; changes pass the same governance gate.
Most AI adoption writes imperative, per-vendor instructions. Leji captures durable intent (what things mean, what must hold, why it is so) and lets people and agents derive actions from declared intent plus task context.
Human-to-human, human-to-AI, and human-to-AI-to-human are first-class flows around one shared context layer. Equal access, not equal authority: everyone reads, anyone proposes, people approve.
Partial adoption is by design. Four conformance levels, each containing the last.
coremanifest, boot profile, real content, a first decision, a named owner. indexeda generated index and a machine-readable changelog: a tooling run.governedreview-gated changes, agent profiles, CI on the mechanics.federatedone context layer across a multi-repo org, pinned, with sibling context layers intact. leji.json at the repository root is the machine entrypoint: it declares the context root, the
boot profile, the category mappings, and the conformance claim. Your existing docs/ tree conforms
by mapping, not by renaming.
The cleanest context layer needs no vendor files at all: invocation points the agent host straight at the
boot profile, zero hops. Vendor entrypoints (CLAUDE.md,
AGENTS.md, .cursor/rules) are the fallback for cold starts; any you must keep
becomes a one-line redirect, never a home.
{
"leji": "1.0",
"name": "your-team-context",
"rootPath": "docs/",
"bootProfilePath": "docs/boot-profile.md",
"categories": {
"domain": { "paths": ["docs/business/"] },
"system": { "paths": ["docs/architecture/"] },
"decisions": { "paths": ["docs/decisions/"] }
},
"agents": {
"thought-partner": "docs/agents/thought-partner.md"
},
"owners": {
"primary": { "name": "A. Named Owner" }
},
…
}