Configuration
Configuration file
Section titled “Configuration file”Create baseline.config.ts in your project root:
import type { BaselineConfig } from 'baselineos';
export default { projectRoot: '.', name: 'my-project', knowledge: ['./docs', './src'], llm: { provider: 'anthropic', model: 'claude-sonnet-4-6', }, orchestrator: { defaultTrustScore: 70, selfVerificationRequired: true, qualityReviewSampleRate: 0.1, }, governance: { auditLevel: 'full', requireApproval: ['critical'], restricted: [], },} satisfies Partial<BaselineConfig>;Key options
Section titled “Key options”knowledge
Section titled “knowledge”An array of filesystem paths to index. Baseline scans these directories for docs, code, configs, and specs to build its knowledge graph.
Configure the AI provider and model. Baseline supports multiple providers — see the multi-LLM neutrality design. The ANTHROPIC_API_KEY environment variable is required when using Anthropic models.
orchestrator
Section titled “orchestrator”defaultTrustScore— Initial trust score for new agents (0-100)selfVerificationRequired— Whether agents must self-verify before reviewqualityReviewSampleRate— Fraction of tasks sent to quality review (0.0-1.0)
governance
Section titled “governance”auditLevel—fullrecords every decision;summaryrecords outcomes onlyrequireApproval— Priority levels that require human approval before executionrestricted— Operations that are never allowed autonomously
Environment variables
Section titled “Environment variables”| Variable | Purpose |
|---|---|
ANTHROPIC_API_KEY | Required for LLM-powered execution |
BASELINE_OTEL_DISABLED=1 | Suppress OpenTelemetry noise in local dev |
BASELINE_APPROVAL_SECRET | Optional cryptographic approval token for task approval |
JSON Schemas
Section titled “JSON Schemas”For non-TypeScript implementations, JSON Schemas are available:
specs/schemas/protocol-core.schema.json— Protocol typesspecs/schemas/govern.schema.json— Governance typesspecs/schemas/evidence-bundle.schema.json— Evidence bundle formatspecs/schemas/orchestrator.schema.json— Task and agent types