Expand description
The Engine’s core modules (re-exported) and the moved modules above them.
Modules§
- a2a
- a2a_
transport - A2A transport envelope signing for inter-agent communication. Uses HMAC for transport-level message integrity. Distinct from commercial Verified Attribution (Section 8) which provides billing CPAO credit with chain integrity.
- active_
inference - Active Inference Preload — predictive context loading.
- activity
- Facade of
lean-ctx-activity: the per-session activity stream under<data dir>/activity, with this Instance’s secret redaction. Producers (hooks, MCP calls, ACP client callbacks) callrecord; it never fails the caller. - adaptive
- adaptive_
policy - Adaptive compression policy (OSS stub).
- adaptive_
thresholds - admitted_
sources - Admitted acquisition for tools that rank, summarize, cache or index what they read (G01).
- agent_
budget - agent_
identity - agent_
lease - Bounded, payload-free ownership leases for multi-agent mutation planning.
- agent_
registry - First-class agent identities: registry + lifecycle (GL #433, H3 Epic D).
- agent_
runtime_ env - Bridge agent runtime/session environment variables across lean-ctx processes.
- agent_
templates - Agent instruction templates the hook installers write (crate
lean-ctx-hooks). They live with the engine’s other templates
(
rust/src/templates), so every crate that ships them embeds the same bytes from inside its own package. - agents
- aggressiveness
- Single 0.0–1.0 compression-intensity knob.
- anchor
- Hash-anchored line identifiers — the shared spine of anchored editing (epic #1008 / GL#1009).
- app_
presence - Whether LeanCTX Code, the free desktop app, manages this machine
(contract:
docs/contracts/app-presence-v1.md). - archive
- archive_
fts - artifact_
index - artifacts
- atomic_
fs - Facade: atomic-write mechanics live in the
lean-ctx-fscrate. - attribution
- Deterministic identifiers and grouping for savings attribution records.
- audit_
trail - auto_
capture - Opt-in automatic knowledge capture from tool outputs.
- auto_
findings - auto_
mode_ resolver - autonomy
- behavior_
nudge - In-band behavior nudges + turn-economy telemetry.
- benchmark
- binary_
detect - binary_
identity - The binary this process started from, so a long-running MCP server can say when an install replaced it on disk. An MCP server keeps running the engine it started with: on 25.10. every agent session still ran a two-day-old engine after three installs, and fixes reached nobody until a reconnect.
- bm25_
cache - bm25_
index - bm25_
store - BM25 index lifecycle: per-thread shared cache, load-or-refresh with the cold-build budget, resident-cache storage.
- bounce_
tracker - bounded_
lock - budget
- Turn-level context budget controller (#1306).
- budgets
- bypass_
hint - cache
- call_
graph - canonical
- Canonical JSON serialization and Ed25519 signatures for signed artifacts.
- capabilities
- capsule_
transport - Local reference transport for authenticated OCLA A2A capsule delivery (P11).
- causal_
attribution - Causal outcome attribution (OSS stub).
- ccp_
session_ bundle - ccr
- Content-addressed recovery (CCR) for the proxy’s lossy rewrites (#482).
- claim_
extractor - Claim Extraction — decomposes context pipeline outputs into verifiable claims.
- claude_
host - Claude Code host facts the engine reads without the hook installers.
- claude_
md - Claude Code’s global
CLAUDE.mdpointer block and the managed-block helpers every global instructions file (CLAUDE.md / CODEBUDDY.md) shares. - cli_
cache - client_
capabilities - client_
constraints - cloud_
files - Detection of cloud-backed placeholder files (OneDrive “Files On-Demand” on Windows, iCloud Drive “dataless” files on macOS).
- cloud_
gate - Whether this engine may use LeanCTX | Cloud: the release switch, the preview switch for a loopback Cloud, and the lines printed while Cloud is off. The engine reads it to keep Cloud tools and commands out of every list; the Cloud connector re-exports it.
- cloud_
models - The seam through which the local proxy serves the subscription models
(mz6,
docs/model-access-subscription.md§4). - cloud_
signals - Engine signal counts (K10, K12, K13) and redacted-secret hits (K21), named where they happen: an output served truncated or fetched back, a rule that refused or would have, programs no rule covers, a secret the redaction path removed.
- cockpit_
launch_ record - The Cockpit launch record: which local Cockpit server belongs to this data dir.
- code_
health - Native code-health engine — clean code as a token-cost lever.
- codebook
- command_
cwd - Which directory a command’s segments actually run in (GH #1661, #1662).
- command_
root - The project a command-line invocation acts for, and the read boundary a command-line read enforces against it.
- command_
vars - Which shell variables a command has certainly set to a literal (#1953, #2079).
- community
- Community detection on the code graph.
- compact_
directive - Store for the agent-driven conversation-compaction directive (#1570 P1).
- compliance_
evidence - Signed compliance evidence (GL #677) on the one engine.
- compress_
preview - compress_preview — a read-only “what would compression do to this?” inspector (#984, Headroom #1267).
- compression_
safety - compressor
- Generic text compressors.
- config
- config_
heal - Heal a
config.tomlthat got stranded in the DATA dir (#594). - conformance
- Conformance & reproducibility scorecard (
conformance-v1, EPIC 12.17). - consolidation
- Consolidation engine for provider data — hippocampal sleep replay.
- consolidation_
engine - Canonical session→knowledge consolidation (#995 Phase 4).
- content_
cache - Resident, bounded file-content cache shared across the search-index build and
ctx_search(issue #148). - content_
chunk - Universal content chunk — the atomic unit of the Context Engine.
- context_
admission - Context admission: the one local decision every governed source passes before it is cached, compressed, indexed or delivered.
- context_
bundle - Budgeted context bundles for chat products (#1885).
- context_
capsule - Payload-free, delta-capable contract for multi-agent context handoffs.
- context_
checkpoint - Verified context-checkpoint lineage and canonical session storage.
- context_
compiler - Context Compiler – builds minimal context packages under budget constraints.
- context_
deficit - context_
field - Context Field Theory (CFT) – unified potential function for context items.
- context_
gc - context_
handles - Context Handles – sparse, lazy references to context items.
- context_
ir - context_
ledger - context_
lint - Injected-context linter (#960) — keeps lean-ctx’s OWN injected context (the rules block + advertised tool descriptions) high-signal.
- context_
os - context_
overhead - Honest accounting of the fixed per-turn context lean-ctx injects (GitHub #361).
- context_
overlay - Reversible context overlays — user/policy manipulations that modify context items without changing source files (“synaptic modulation”).
- context_
package - context_
packing - Submodular context packing — choosing which items to include under a budget so the selected set maximises coverage of what the task cares about.
- context_
policies - Context Policy Engine – declarative rules for context governance.
- context_
prefetch - Predictive context pre-loading (OSS stub).
- context_
proof - context_
proof_ v2 - ContextProofV2 — Claim-based verification schema.
- context_
quality - Context Quality System — shared vocabulary for quality evidence.
- context_
radar - context_
snapshot - Context Snapshot (
CONTEXT_SNAPSHOT_V1) — the git-anchored, signed, temporal artifact behind the Context Time Machine (GL epic #1022, Phase 0 #1023). - context_
store - The Context Store: one access contract over the stores that already hold LeanCTX state. It is a logical layer, not another database.
- contextops
- contracts
- conversation
- Conversation identity for read-cache scoping.
- crash_
log - Persistent crash log for panic diagnosability.
- cross_
source_ edges - Cross-source graph edges — connects external data to code via the graph index.
- cross_
source_ hints - Cross-source hints — lateral connections between cortical columns.
- crypto_
provider - The process-default rustls
CryptoProvider. - customer_
proof_ v2 - V2 customer-proof assembly from already materialized local observations.
- data_
consolidate - Consolidate a split data layout into one canonical directory (GH #414).
- data_
dir - datadog_
push - Agentless Datadog export (GL #401, setup path B).
- debug_
log - Opt-in human-readable debug log of intercepted tool activity (#520).
- decision_
history - Draft decisions from the local git history (
lean-ctx decisions suggest). - decision_
loop - End-to-end wiring from task triage through execution-value assessment.
- decision_
loop_ runtime - Compatibility adapter from MCP events to the canonical execution lifecycle.
- decisions
- Decision layer (D1): versioned project decisions in
.leanctx/decisions/*.toml. - deep_
queries - Tree-sitter deep queries for extracting imports, call sites, and type definitions.
- dense_
backend - deps
- derivation_
cache - Opt-in, content-addressed cache of pure parse derivations, shared across worktrees and data homes (GitHub #2247).
- diagnostics_
store - Active compiler/linter diagnostics as a context-priority signal (#499).
- dynamic_
tools - Tool categories, the public-surface name lists (local collaboration,
internal host hooks, Cloud) and the dynamic per-category tool state.
Pure name logic: it needs no tool registry, so engine code outside the MCP
server reads it here. The call-resolving helpers (
ctx_callspellings) stay inserver::dynamic_tools, which re-exports this module. - edit_
metering - Edit-efficiency metering (#1008, honest-metering philosophy #361).
- edit_
quality - Quality loop v1 (#494): compression-caused edit failures feed back into mode selection.
- editor_
registry - editor_
signal - Editor focus signal (#500).
- efficacy
- Learning-efficacy evidence (#549, VIS-3).
- egress
- Egress / output DLP for agent writes & actions (GL #676) — the output side of the Great Filter.
- embedding_
access - Policy-gated access to the shared embedding engine. Moved down from
tools/ctx_knowledge/embeddings.rsso engine callers (entropy, extractive, telemetry) do not depend on the tools layer. - embedding_
index - Persistent, incremental embedding index.
- embeddings
- Embedding engine for semantic code search.
- energy
- Electricity-footprint estimate for saved tokens.
- engine_
interface - Internal proof bridge from one native OCLA capability to Engine Interface v1.
- entropy
- error
- Facade: the engine’s error types live in the
lean-ctx-fscrate. - etpao
- ETPAO: Effective Tokens per Accepted Outcome (#1318).
- events
- eviction_
orchestrator - Connects the RSS-based memory_guard to real cache eviction via HomeostasisController.
- evidence_
bundle - Evidence bundle generator (
evidence-bundle-v1, GL #425, H3 Epic A). - execution_
ledger - Append-only, task-aware execution ledger.
- execution_
lifecycle - Canonical execution lifecycle and subordinate Decision Spine state.
- execution_
protocol - Strict validation for the typed execution protocol carried by one lifecycle run.
- extension_
registry - Pluggable read-modes, compressors, and chunkers (
extension-registry-v1). - extractive
- Extractive prose compression: keep the most informative sentences within a char budget instead of truncating to the prefix.
- extractors
- Format extractors & format-aware chunkers (
extractors-v1, EPIC 12.13). - failure_
template - Turns a tool’s error message into a template that is safe to report.
- feature_
list - The feature list of a task: its locked acceptance tests (process-v1 §4,
contracts/process-v1/feature-list.schema.json). - file_
lock - Facade: bounded advisory file locks live in the
lean-ctx-fscrate. - filters
- finops_
export - FinOps cost/savings export (GL #402): CloudZero CBF, Vantage, FOCUS CSV.
- firewall
- Context firewall: replace large tool outputs with a compact digest + retrieval ref.
- gain
- git
- Native git support: remote-repo reading (cached shallow clone) and a shadow history of agent changes.
- git_
cache - TTL-based cache for git command results.
- git_
signals - Git working-set signals for relevance ranking (#497).
- git_
util - Minimal, dependency-free git shell-outs shared by the context-artifact and
analysis tools (
ctx_impact,ctx_architecture,context_artifacts). - git_
worktree - Linked git worktrees, read from git’s own files without running git.
- gotcha_
tracker - governor_
hosts - Governor detection on hosts other than Claude Code: which hosts have a governor setup, where their files live, and whether it is installed.
- grammar_
usage - Persistent per-extension signature-backend telemetry (GH #690 Phase 2).
- graph_
analysis - Static dependency-graph analyses (God-Nodes, import cycles).
- graph_
cache - Resident graph-index cache (Phase 5 of the efficiency epic).
- graph_
context - Graph-driven context loading — automatically includes related files based on Property Graph proximity and token budgeting.
- graph_
coordinator - Non-blocking, PropertyGraph-first build coordinator for the dashboard graph routes (#696 phase C).
- graph_
enricher - Unified Graph Enricher — indexes Git history, tests, and knowledge into the PropertyGraph.
- graph_
export - graph_
index - graph_
parity - Shadow-mode parity harness (#682.3): prove the PropertyGraph reproduces
everything
graph_indexexposes through theGraphProviderfacade — symbols, edges and structural dependencies — before any backend flip (#682.4) relies on PG. - graph_
provider - handle
- Stable cross-turn symbol handles:
path#name@Lline. - handoff_
ledger - handoff_
transfer_ bundle - hasher
- Facade: BLAKE3 hashing helpers live in the
lean-ctx-fscrate. - heatmap
- hnsw
- Lightweight HNSW (Hierarchical Navigable Small World) index for approximate nearest neighbors.
- home
- Facade: home and Codex directory resolution live in the
lean-ctx-fscrate. - homeostasis
- Homeostatic Memory Guard — Proactive multi-level resource management.
- hook_
mode - Hook-mode policy shared by the engine and the agent-hook installers.
- host_
coverage - Host coverage — what the context gateway can actually see and stop per host.
- host_
env - Environment markers as the host that started this process sees them.
- host_
state - Host session state the observe hook records for the rest of the engine.
- hotspots
- Hotspots: files that change often, are changed by merges and reverted,
and are large (Local Read §39, report format
hotspots-v1). - html_
crush - Deterministic HTML content extractor — extracts article/main content from web pages, converts to clean markdown, discards boilerplate (#1124).
- http_
client - hybrid_
search - Hybrid search combining BM25 (lexical) with dense vector search.
- ib
- Task-aware Information Bottleneck compression (F1).
- ide_
permissions - Read the active IDE’s tool-permission configuration and resolve an effective action for a lean-ctx tool, so lean-ctx can mirror (“inherit”) the user’s IDE permission rules instead of forming a second, ungoverned execution path.
- immune_
detector - Immune detector (#8): artificial-immune-system screening for context poisoning.
- import
- Import facts from local AI coding-session histories, and from the project’s own instruction files, documentation and git history (K1).
- import_
resolver - Import-to-file resolution (AST-driven import strings → project paths).
- index_
admission - Admission control for heavy index builds (#685).
- index_
filter - Index-time file filters (#735): one shared corpus-membership decision for every index builder.
- index_
namespace - index_
orchestrator - index_
paths - Index path utilities — project-root normalization and graph match keys.
- index_
progress - Shared progress counters for index builds (BM25, semantic, graph). Build code reports here; CLI / status_json read snapshots. Decouples builders from the orchestrator (no module cycles).
- ingestion
- Ingestion front-door (
ingestion-spec-v1). - input_
filters - Inbound content filters (GL #675) — the input side of the Great Filter.
- installation_
id - Persistent anonymous installation identifier for default-on telemetry.
- instruction_
compiler - instruction_
files - Instruction-file and user-exclusion predicates shared by
ctx_read, the automatic mode resolver and the hook redirect. Moved down fromtools/ctx_read/helpers.rsso engine callers do not depend on the tools layer. - integrity
- Build-origin integrity verification and rebrand resistance.
- intelligence_
runtime - Public installation authority for the optional, separately licensed runtime. No private implementation, account, entitlement, or implicit network access.
- intent_
engine - intent_
protocol - intent_
router - interrupt
- User-initiated cooperative cancellation (Ctrl-C / SIGINT).
- introspect
- Cognition introspection — proves that each scientific subsystem is wired and actually active at runtime.
- io_
boundary - io_
health - journal
- json_
crush - Moved to the
lean-ctx-patternscrate; re-exported so engine paths stay stable. - jsonc
- Facade: the JSONC parser lives in the
lean-ctx-fscrate. - knowledge
- knowledge_
bootstrap - knowledge_
bridge - Cross-Agent Knowledge Bridge — controlled sharing of high-confidence facts between agents.
- knowledge_
consolidate - Consolidation engine: session import, fact lifecycle (quality only — facts
have no count limit), lossless capacity reclaim of the pattern and history
stores, and the consolidation reports (#995). Moved down from
tools::ctx_knowledge, which re-exports it. - knowledge_
embedding - Embedding-based Knowledge Retrieval for
ctx_knowledge. - knowledge_
provider_ extract - Knowledge auto-extraction from provider data (issues, PRs, DB schemas).
- knowledge_
relations - knowledge_
router - Runtime routing from task references to bounded context bundles.
- language_
capabilities - layout_
pin - XDG layout commitment pin (GL #623 / #624).
- legacy_
adoption - Adoption of context that releases before 3.11.5 stored without a provable project (AP05).
- levenshtein
- Shared edit-distance “did you mean” helper (#712).
- limits
- litm
- llm_
feedback - logging
- loop_
detection - mcp_
catalog - MCP Tool-Catalog Federation (#210) — Engine pillar.
- mcp_
manifest - mcp_
roots - memory_
archive - Multi-store, lossless memory archive (#995 Phase 1).
- memory_
boundary - memory_
guard - Process-level RAM guardian with adaptive eviction and hard OOM protection.
- memory_
lifecycle - Memory Lifecycle Management — consolidation, decay, compaction, archival.
- memory_
policy - metering
- Local, append-only metering for the free product.
- model_
catalog - Bundled mz6/mz14 subscription model catalog (
data/model_catalog.json, generated from the Cloud catalog byscripts/sync-model-catalog.py; CI checks it equals the pinned Cloud source). - model_
registry - multi_
repo - ocla
- Open Context & Token Lifecycle Architecture (OCLA) public OSS contract.
- ocla_
bus - OCLA Event Bus (P2 / Track B — Event-Backbone).
- ocp
- Open Context Protocol (OCP) v0.1 export adapter.
- openapi
- OpenAPI 3.0 document for the public
/v1surface, generated from a single in-code endpoint inventory (endpoints). The HTTP route that serves it lives inhttp_server; the SSOT lives here so it stays compiled and drift-tested without thehttp-serverfeature. - opencode_
config - Single source of truth for locating OpenCode’s global config file.
- outcome
- Outcome contracts, local signal adapters, and deterministic evaluation.
- output_
echo - Output-echo detection (#501).
- output_
sanitizer - Output sanitizer: detects and cleans degenerate model artifacts from compressed output.
- output_
shapers - The shapers behind
ctx_shape. The shaping pipeline belongs to the proxy layer, which registers it at start-up (proxy::register_shapers, called by the CLI); the engine’sctx_shapetool runs whatever is registered. Without a registration (library use, tests) there is nothing to shape with, soctx_shapehands the redacted output back unshaped. - output_
verification - owasp_
alignment - Maps lean-ctx security features to the OWASP Top 10 for Agentic Applications (2025).
Used by
lean-ctx auditCLI and/v1/audit/eventsendpoint. - pagerank
- PageRank computation on the Property Graph.
- path_
locks - Process-wide per-path advisory locks.
- path_
mode_ memory - Persistent per-path bounce memory (#496).
- path_
resolve - Shared path-resolution for tool handlers.
- path_
suggest - “Did you mean …?” for a path that does not exist.
- pathjail
- pathjail_
autobind - Project auto-binding for sessions that start without a project.
- pathjail_
scope - Path-jail scope: which directories the jail treats as the user’s own code.
- pathjail_
write - Write destinations below a trusted root that refuse symlinked components.
- paths
- Typed XDG base-directory resolvers for lean-ctx (GH #408 / GL #602).
- pathutil
- patterns
- Shell-output compression patterns.
- persona
- Context personas (
persona-spec-v1). - phase_
timing - Named phases of a long tool call (#2063).
- pipeline
- Context Pipeline
- policy
- Context Policy Packs v1 — Policies-as-Code (GL #489).
- pop_
pruning - portable_
binary - pre_
edit - The one pre-edit check hook.
- preservation
- process_
capture - Captured execution with bounded child waiting and process-tree cleanup.
- product_
capabilities - Canonical v4 product-capability registry.
- profile_
suggest - Repo-stack-aware profile recommendation (#851).
- profiles
- Agent profiles — workload-specific configurations.
- project_
hash - project_
link - Local worktree → team project mapping (AP06-D01, owner decision 19.10.).
- property_
graph - Property Graph Engine — SQLite-backed code knowledge graph.
- prospective_
memory - protect
- Explicit, deterministic preservation of user-marked spans across every compressor (read, shell, proxy, prose).
- protected_
execution - Supervised execution channel for protected sessions (macOS refuses nested Seatbelt profiles, so command children are started by the launcher’s wrapper, outside the MCP sandbox). Supervised execution channel for protected Codex sessions.
- protected_
store - Kernel store boundary of protected sessions: the pinned child rules, the in-process store-path check and the launcher’s control-file profiles. Kernel-enforced control-file immutability for the managed macOS MCP child. Named Unix sockets are restricted too; TCP and Mach are not contained here.
- protocol
- provenance
- Durable provenance records for file edits and git checkpoints.
- provider_
bandit - Provider Bandit — Thompson Sampling for provider selection.
- provider_
cache - Provider caching awareness — helps LLM providers cache repeated context.
- providers
- proxy_
cache_ attribution - Prompt-cache miss attribution counters (#986): the proxy classifies each
anchored turn (
proxy::cache_attribution) and counts the outcome here; the proxy’s/statusand the MCP server’s metrics read the cumulative gauges. - proxy_
endpoint - Where the local lean-ctx proxy listens and whether it answers.
- proxy_
introspect - The proxy’s persisted request introspection: the proxy process writes
proxy-introspect.json(proxy::introspect),gainand the dashboard read it. - proxy_
metrics - Cross-process proxy request totals: the proxy process counts and
persists them,
gain, the dashboard and the context-overhead report read them. - proxy_
usage - On-disk record of the proxy’s measured provider spend (
proxy_usage.json). - proxy_
value_ metrics - Per-session value metrics for proxied completions.
- quality
- rabin_
karp - read_
mode - Type-safe
ctx_readmodes (#528 / #509 Phase 2). - read_
stub_ index - Persistent, conversation-scoped index of fully-delivered file reads (#955).
- recovery
- Recovery-hint policy + grammar.
- redaction
- reference_
docs - Generated reference documentation.
- reference_
store - relevance_
gate - relevance_
tracker - Proactive context expansion (#1122): automatically injects previously compressed data when it becomes relevant to the current request.
- repomap
- Repo map: PageRank-based symbol importance ranking across a codebase.
- request_
ledger - Request ledger of a serving process: counters, oldest pending request and last completions for doctor and health (#2197). Request ledger of a serving process (#2197).
- response_
optimizer - Response Optimizer (P9 / DIM 2 — Output-Optimierung).
- roles
- Role-based access control for agent governance.
- root_
selection - Which of several workspace roots a session binds to, made visible (AP04-G7, owner decision 19.10.).
- rooted_
read - Rooted, admitted file readers shared by the engine and the MCP tools: every
source is opened inside its root (no symlink escape), decoded, and admitted
through the context gateway before its content is returned. Re-exported
from
tools::ctx_readfor the tool layer. - route_
extractor - rule_
artifacts - The committed
LEAN-CTX.mdrule artifacts as(relative_path, content)pairs — the single source shared by the regenerator (gen_rulesexample) and the drift gate (tests/rules_drift.rs) so the project copy and therust/copy can never disagree. - rule_
discovery - Rule discovery for ctx_read (#1325).
- rules_
canonical - Canonical rules source — single source of truth for all lean-ctx guidance.
- rules_
channel - Cross-channel rule deduplication policy (#684).
- rules_
dedup - Collapse duplicated lean-ctx guidance (#578): the planner and fixer behind
lean-ctx rules dedup,setup,doctor --fixand the hook refresh. - rules_
overhead - Shared accounting for the rules files an agent auto-loads each session.
- runtime_
flags - sandbox
- sanitize
- savings_
footer - savings_
ledger - Verified Savings Ledger (G1) — the per-event, auditable counterfactual store.
- savings_
tracker - Per-session compression accounting, persisted when the tracker is dropped.
- scent_
field - Stigmergic scent field for zero-token multi-agent coordination (#540, EFF-3).
- scorecard
- Reproducible scorecard (#211): one command → compression savings + retrieval recall/MRR + latency over a fixed, deterministic scenario matrix.
- search_
delta - search_
hook - Search hot-path bridge for kernel evidence and repeat detection.
- search_
index - Resident line-search index for
ctx_search(Phase 1 of the efficiency epic). - search_
kernel - Evidence and repeated-query tracking for the search tool.
- search_
reranking - Post-RRF Reranking Pipeline for code-aware search.
- search_
walk - Walk limits and file filters shared by
ctx_searchand the search index, so both see the same searchable universe. Moved down fromtools/ctx_search/implementation.rs. - secret_
detection - secure_
fs - Owner-only secret files.
- security_
events - Provable security events for the value surface.
- security_
posture - Unified, human-facing view of lean-ctx’s two independent security planes:
- semantic
- Semantic code intelligence on top of the tree-sitter structure.
- semantic_
cache - Per-project similarity index over the files a session read.
- sensitivity
- Per-item sensitivity model with a uniform policy floor (#212).
- server_
capabilities GET /v1/capabilities— runtime discovery of what this lean-ctx instance supports, so any client (any language) can branch on real features instead of trial calls. The HTTP route lives inhttp_server; the payload builder lives here so it stays compiled (and drift-tested) without thehttp-serverfeature.- session
- session_
diff - Session diffing — structured comparison of two session states.
- session_
readset - Session read set: which files a LeanCTX session actually read, relative to one project root.
- session_
rights - Rights per session (process-v1 §9,
contracts/process-v1/role-profile.schema.json). - session_
summary - AI session summaries (#292): periodically distil the working session into a compact, semantically-recallable digest.
- session_
token - setup_
report - shadow
- Counterfactual cost and quality reporting for completed tasks.
- share
- Frictionless share helpers: copy text to the OS clipboard and open files/URLs.
- shared_
context - Durable facts agents share through
ctx_memory, partitioned by project. - shell_
allowlist - Shell command lexing and the registered shell-allowlist gate.
- shell_
file_ effects - Which files a shell command reads or rewrites, for bounce accounting.
- shell_
history - Shell history as a context source (
discover,sessionstatistics, MCPctx_discover). - signatures
- Signature extraction.
- signer_
trust - Signer trust anchors for handoff bundles and context packages (GHSA-gvg8-285q-m62g).
- skillify
- Skillify (#290): distill a project’s recurring session patterns into versioned,
git-committable
.cursor/rules/skillify-*.mdcrule files. - slow_
log - smells
- Code smell detection engine.
- solution_
auto_ capture - Heuristics for recognizing solution decisions from edit context.
- solution_
tracker - solution_
types - Backward-compatible re-export of the Solution Intelligence types that live in
core::knowledge. Kept on purpose for library users (#1923). Backward-compatible Solution Intelligence type exports. - splade_
retrieval - SPLADE-style sparse expansion layered on BM25 candidate retrieval.
- startup_
guard - stats
- storage_
maintenance - Daemon-safe storage maintenance.
- structured_
read - subagent_
contract - Sub-agent context contracts (GL#450).
- surprise
- Predictive Surprise Scoring — conditional entropy relative to LLM knowledge.
- symbol_
map - syntax_
validate - Post-edit syntax gate (#1008): a tree-sitter parse check used to reject an edit that turns a cleanly parsing file into a broken one.
- system_
info - Host facts (OS, CPU, memory, versions) recorded in benchmark reports.
- tabular_
crush - Deterministic tabular (CSV/TSV) crusher — columnar redundancy factoring for delimited data (#982, Headroom tabular-compressor port, GitLab Epic #973).
- task_
briefing - task_
receipt_ migration - Fail-closed V3 task/receipt compatibility migration.
- task_
relevance - task_
spine - Canonical task lineage with immutable async/blocking execution scopes.
- tdd_
schema - telemetry
- Telemetry and metrics collection following OpenTelemetry GenAI conventions.
- telemetry_
aggregate - Privacy-safe daily telemetry aggregation.
- telemetry_
consent - Disclosure, consent and environment rules for default-on telemetry.
- telemetry_
failure - Why a built-in tool call failed, as a closed class for telemetry.
- telemetry_
features - The closed registry of feature codes for telemetry (3.11.1+).
- telemetry_
ledger - Local append-only ledger of sent telemetry heartbeats.
- telemetry_
notices - Notices from the LeanCTX team, carried back with a telemetry acknowledgement.
- telemetry_
send - Sending the telemetry-v2 daily totals: on MCP exit, on tool-call ticks and from the daemon’s hourly loop, with the local send ledger.
- telemetry_
v2 - Privacy-bounded, versioned telemetry event contract.
- terse
- Terse Compression Engine
- text_
decode - Source-text decoding shared by every reader that feeds the indexes.
- theme
- tokens
- Moved to the
lean-ctx-patternscrate; re-exported so engine paths stay stable. - tool_
catalog - The MCP tool catalog: the definitions of every registered tool.
- tool_
health lean-ctx tools health— does every advertised MCP tool and injected rule earn its always-on token cost? (#848)- tool_
lifecycle - Shared tool lifecycle — ensures CLI and MCP paths have identical side effects.
- tool_
profiles - tool_
visibility - Pure tool-visibility policy for the MCP
tools/listresponse. - transcript_
compact - Transcript/conversation compaction for agent session JSONL files.
- triage
- trust
- Open trust primitives for identity, classification, policy, and evidence.
- type_
ref_ edges - Cross-file type-reference edges (GH #398).
- unit_
claims - Unit claims: which agent is editing which function or section of a file.
- untrusted
- Foreign content as data (X5): every bus message, task body/update and
repo fact pulled from Cloud that reaches an agent’s context passes
wrapfirst. - update_
scheduler - OS-specific auto-update scheduler management. Supports macOS LaunchAgent, Linux systemd/cron, Windows Task Scheduler.
- updater
- value
- Value surface: makes what lean-ctx did visible outside the dashboard — subtly, outside the model’s context, and with every number provable.
- value_
gate - End-to-end task value assessment: execution cost → outcome → CPAO.
- vault_
map <data_dir>/cloud/projects.json: the vaults Cloud resolved for this machine’s repositories and the local checkouts seen for each. Written when a checkout is resolved; read wherever a checkout’s vault matters (bus, sync, and the per-vault policy floor).- verification_
observability - version_
check - walk_
filter - Central
filter_entrypredicate shared by every directory walker (graph/index builders,ctx_search,ctx_tree,ctx_glob, CLI scans). - web
- Web & research context layer.
- work_
graph - Bounded Work Graph for multi-agent orchestration.
- work_
graph_ delegation - Control boundary for host-started Work Graph nodes.
- work_
graph_ store - Crash-safe, project-scoped persistence for the local bounded Work Graph.
- workflow
- workspace_
args - Argument grammar of
lean-ctx workspace …(#2120), shared by the command and by the agent-shell allowlist, so both judge the same verb. - workspace_
authority - Launcher-bound Workspace authority (#2120).
- workspace_
config - workspace_
trust - Workspace trust for project-local
.lean-ctx.tomloverrides (GH security audit, finding 4). - wrapped
- xdg_
migrate - On-demand XDG split migration (GH #408 / GL #606).
- yaml_
crush - Deterministic YAML crusher — structural compaction for YAML documents (#985, Headroom YAML-compressor port, GitLab Epic #973).