Governance

You can't control what your AI agent does. No budgets. No policies. No audit trail.

LeanCTX enforces roles, tool policies, token budgets, workflow gates, and SLO-driven degradation. Define who can use which tools, set hard limits on cost and tokens, gate transitions between workflow stages with evidence requirements, and run a team server with workspace isolation and audit logs.

The Problem

No Guardrails, No Control

Without guardrails, AI agents can blow through token budgets, skip mandatory review steps, execute dangerous commands, and operate without any audit trail. Teams have no control over agent behavior.

Define workflows with mandatory checkpoints, cost budgets, and role-based permissions in a simple TOML file.

ctx_workflow
ctx_workflow ({ action: "status" })
- workflow: feature/auth-refactor
- state: implement (3/5)
- budget: $1.20 / $2.00 remaining
- next checkpoint: review
Governance

9 tools

01

Roles & Policies

Fine-grained tool access control per role with allow/deny lists and scope restrictions.

02

Workflow Gates

Evidence-gated state machines enforce Plan → Code → Test transitions with tool receipts.

03

Budget Controls

Token, cost, and shell execution budgets with automatic SLO enforcement.

04

Team Policies

Team Server with workspace scoping, audit logs, rate limiting, and multi-tenant isolation.

05

Token Scopes & ACL

Fine-grained access control per team token. Scope events, session mutations, and knowledge access independently.

06

Audit Trail

Every event and tool call is logged with timestamp, agent identity, and scope. Full observability for compliance.

07

Redaction Policies

Event payloads are redacted based on configurable policies. Sensitive data never leaves the server boundary.

08

Context Overlays

Reversible context mutations: pin, suppress, boost, or mark stale. Overlays stack per-project and persist across sessions.

09

Context Policy Engine

Declarative TOML rules for automatic context governance. Auto-pin patterns, enforce token limits, mark outdated files — all project-configurable.

Per-tool Cost Budgets
5 Workflow States
Full Audit Trail
Verification

Every output carries proof

LeanCTX generates proof artifacts for every session: which files were read, what was compressed, which checks passed, and how tokens were spent. This makes AI work auditable, replayable, and trustworthy.

Explore Governance Tools

LeanCTX enforces roles, tool policies, token budgets, workflow gates, and SLO-driven degradation. Define who can use which tools, set hard limits on cost and tokens, gate transitions between workflow stages with evidence requirements, and run a team server with workspace isolation and audit logs.