Configuration
All Praxis settings live in .praxis/config.json. The presence of the .praxis/ directory marks the project root — Praxis walks up from the current working directory until it finds one.
Full example
{
"version": "2.4.0",
"sources": ["experts", "practices", "reference", "context"],
"ignore": ["docs/generated/**", "**/.*.md"],
"expertsDir": "experts",
"practicesDir": "practices",
"agentProfilesOutputDir": "./agent-profiles",
"plugins": [
{
"name": "claude-code",
"outputDir": "./plugins/praxis",
"claudeCodePluginName": "praxis"
}
],
"reviewers": [
{
"name": "mercury",
"model": "inception/mercury-2.5",
"apiKeyEnvVar": "OPENROUTER_API_KEY",
"options": { "max_tokens": 16000 }
},
{
"name": "counter",
"model": "none",
"apiKeyEnvVar": "OPENROUTER_API_KEY",
"provider": "./praxis-providers/word-count.js",
"options": { "minWords": 20 }
}
],
"curator": {
"model": "anthropic/claude-sonnet-4.5",
"apiKeyEnvVar": "OPENROUTER_API_KEY"
},
"specFilePattern": "{README.md,*.sme.md}"
}(This is Scoop Society's shape: one hosted reviewer, one offline custom-provider reviewer, a frontier curator, and a spec pattern accepting directory READMEs plus its hand-authored experts.sme.md spec. Compiled profiles are named *.expert.md — a project that wants them discovered as specs uses "{README.md,*.expert.md}" instead.)
version
Type: stringDefault: adopted from the running CLI on first use
The praxis version this project pins, enforced before every command runs. Praxis is installed globally rather than declared in a package.json, so nothing else keeps teammates on one version against one committed cache and ledger — and a praxis upgrade can change reviewer behavior (an epoch).
- No pin: the next command warns and writes the running CLI's version into the config — commit the change.
- Pin matches: silence.
- Pin conflicts: the command refuses (exit 2) and names both ways out — install the pinned version (
npm install -g @zarpay/praxis-cli@<pinned>) or update the pin to the version you run.
sources
Type: string[]Default: ["experts", "practices", "reference", "context"]
Directories that Praxis treats as knowledge sources. All paths are relative to the project root.
Sources are used for:
- Validation discovery — each directory in
sourcesis scanned for spec files - Watch mode —
praxis compile --watchwatches every source directory - Status —
praxis statusscans sources to count documents
Any directory within sources that contains a spec file (default: README.md) becomes a review domain.
{ "sources": ["agents/experts", "agents/practices", "knowledge/reference"] }ignore
Type: string[]Default: []
Glob patterns for files and directories to exclude from all source scans. Patterns are project-root-relative and support the same glob syntax as paths frontmatter.
{ "ignore": ["docs/generated/**", "**/.*.md", "backend/vendor/**"] }Ignored paths are never reviewed and never counted: they are excluded from review targets in praxis eval run and from document counts in praxis status. Spec discovery is unaffected — a spec file under an ignored path is still found, so ignoring a directory shields its files from review without hiding the standard itself. Literal subdirectory paths and filename patterns are both supported.
expertsDir
Type: stringDefault: "experts"
The directory where expert .md files live. Used by praxis compile to discover experts and by praxis add expert to place new files.
practicesDir
Type: stringDefault: "practices"
The directory where practice .md files live. Used by praxis add practice to place new files.
agentProfilesOutputDir
Type: string | falseDefault: "./agent-profiles"
Where compiled pure agent profiles are written. Each expert compiles to {agentProfilesOutputDir}/{alias lowercased}.expert.md.
Set to false to disable pure profile output entirely:
{ "agentProfilesOutputDir": false }This is useful when you only want plugin output and don't need the plain markdown profiles.
plugins
Type: (string | PluginConfigEntry)[]Default: []
Plugins to enable. Each entry is either a plugin name string or an object with plugin-specific options.
String form
{ "plugins": ["claude-code"] }Uses all defaults for that plugin.
Object form
{
"plugins": [
{
"name": "claude-code",
"outputDir": "./plugins/my-agents",
"claudeCodePluginName": "my-org"
}
]
}Claude Code plugin options
| Property | Type | Default | Description |
|---|---|---|---|
name | string | — | Must be "claude-code" |
outputDir | string | "./plugins/praxis" | Full path to plugin output directory, resolved against project root |
claudeCodePluginName | string | "praxis" | The name field in plugin.json and the slash command namespace |
reviewers
Type: arrayDefault: [] (evaluation requires at least one)
The reviewers — named inference backends that evaluate targets against specs. Every configured reviewer evaluates every target, and every report shows results per reviewer, never pooled. Run a single reviewer with praxis eval run --reviewer <name>.
{
"reviewers": [
{
"name": "mercury",
"model": "inception/mercury-2.5",
"apiKeyEnvVar": "OPENROUTER_API_KEY"
},
{
"name": "local",
"model": "org-model",
"baseUrl": "https://inference.internal/v1",
"apiKeyEnvVar": "INTERNAL_KEY"
}
]
}Per-reviewer fields
| Field | Required | Description |
|---|---|---|
name | yes | Unique label identifying the reviewer's verdicts in results and reports |
model | yes | Model identifier the backend understands (e.g. an OpenRouter slug) |
apiKeyEnvVar | yes | Environment variable holding the backend's API key |
baseUrl | no | OpenAI-compatible endpoint base; defaults to OpenRouter |
temperature | no | Sampling temperature for reviews; defaults to 0 |
Each target's cache file holds every reviewer's verdicts, keyed by a hash of the reviewer's behavioral settings — the whole entry minus name and apiKeyEnvVar, plus the complete reviewer-facing prompt surface. Renaming a reviewer or rotating a key keeps its cached verdicts; changing the model, endpoint, temperature, provider, or options invalidates them (and rolls the reviewer's epoch).
Providers
Each reviewer runs through a provider — the backend that executes the review and returns a normalized verdict plus usage (tokens and, where reported, cost). provider defaults to "openrouter", which speaks to OpenRouter or any OpenAI-compatible endpoint (baseUrl). A reviewer can instead point at a local ESM module, resolved from the project root:
{
"reviewers": [
{
"name": "mercury",
"model": "inception/mercury-2.5",
"apiKeyEnvVar": "OPENROUTER_API_KEY"
},
{
"name": "internal",
"model": "org-model",
"apiKeyEnvVar": "INTERNAL_KEY",
"provider": "./praxis-providers/internal.js",
"options": { "region": "us-east-1" }
}
]
}// praxis-providers/internal.js — default export is a factory
export default function internalProvider() {
return {
name: "internal",
async review(request) {
// request: systemPrompt, userPrompt, tools, model, temperature,
// baseUrl, apiKey (resolved), options
// call anything; return the normalized contract:
return {
verdict: {
compliant: false,
severity: "warning", // "warning" | "error" — see below
issues: ["the error message does not say what would be accepted"],
reason: "One advisory deviation.",
},
usage: { promptTokens: 812, completionTokens: 41, costUsd: null },
};
},
};
}The verdict contract, field by field:
| Field | Required | Meaning |
|---|---|---|
compliant | yes | Whether the target satisfies its spec |
reason | yes | The overall explanation, shown with the verdict |
issues | yes | The specific deviations; [] when compliant. Each entry is a plain string, or { text } |
severity | on a non-compliant verdict | "warning" (advisory, does not fail a run) or "error" (fails the run, and CI). Omitted on a non-compliant verdict it defaults to "error" — so a provider that never sets it can only ever produce failures |
usage is { promptTokens, completionTokens, costUsd }, each null where your backend does not report it; return null for the whole object if it reports none.
A provider may also implement complete(request) — the raw structured-output call the curator uses. Only providers that implement it can back the curator.
A complete, runnable example ships with the project: the demo's word-count.js is a real configured reviewer that makes no network call at all.
options is passed to the provider verbatim. For the built-in OpenRouter provider it is spread into the request body first, so it can add backend fields (routing, reasoning settings) but never overrides model, temperature, or the tool-calling protocol. stream is owned too and pinned off: the provider reads one whole JSON body to get one tool call out of it, and a streamed response cannot be parsed that way. Praxis shows a live elapsed line while a call runs instead — a tool call's arguments are not usable until they are complete. Both provider and options are part of the reviewer's behavioral identity: changing them re-reviews that reviewer's targets. A local provider module is code your project runs — treat it with the same trust as an npm script.
Breaking change in v2
The v1 validation section is removed. Configure reviewers instead, and move specFilePattern to the top level.
specFilePattern
Type: stringDefault: "README.md"
The filename or glob pattern that identifies spec files. Change this if your team uses a naming convention other than README.md.
{ "specFilePattern": "SPEC.md" }Glob patterns are supported:
{ "specFilePattern": "*.spec.md" }A brace pattern accepts more than one convention — this one discovers both directory READMEs and compiled expert profiles:
{ "specFilePattern": "{README.md,*.expert.md}" }templateFilePattern
Type: string | falseDefault: "_*.md"
The filename or glob pattern for templates, which are never reviewed or compiled. false disables it.
See also
Breaking changes from 1.x
v2 drops every 1.x compatibility spelling — nothing is aliased or normalized:
| Removed | Use instead |
|---|---|
rolesDir / responsibilitiesDir config keys | expertsDir / practicesDir |
type: role / type: responsibility frontmatter | type: expert / type: practice |
responsibilities: list in an expert file | practices: |
validation: config section | reviewers: + top-level specFilePattern |
constitution: true | an explicit glob, e.g. constitution: "context/constitution/*.md" |
praxis validate document|all|ci|report | praxis eval run|ci|verdict |
praxis add role|responsibility | praxis add expert|practice |
Default sources are ["experts", "practices", "reference", "context"].
curator
The model behind praxis axioms triage labeling and the curate session (its traceability check included) — the taxonomy's librarian. One entry, reviewer-shaped minus name; teams typically point it at a frontier model, since assignment quality bounds every per-axiom rate:
"curator": {
"model": "<model slug>",
"apiKeyEnvVar": "OPENROUTER_API_KEY"
}Optional fields as for reviewers: baseUrl, temperature, provider (including ./relative local modules), options. Not configured means curate refuses with the exact block to add — there is no silent fallback to a reviewer model. axioms triage is gentler: it warns that labeling is deferred and exits 0, so a run pipeline without a curator never breaks.