Skip to main content

Module config

Module config 

Source

Modules§

schema
Auto-generated config schema from Config struct metadata.

Structs§

AliasEntry
A user-defined command alias mapping for shell compression patterns.
ArchiveConfig
Settings for the zero-loss compression archive (large tool outputs saved to disk).
AutonomyConfig
Controls autonomous background behaviors (preload, dedup, consolidation).
CloudConfig
Cloud sync and contribution settings (pattern sharing, model pulls).
Config
Global lean-ctx configuration loaded from config.toml, merged with project-local overrides.
LoopDetectionConfig
Thresholds for detecting and throttling repetitive agent tool call loops.
ProxyConfig
API proxy upstream overrides. None = use provider default.

Enums§

CompressionLevel
Unified compression level that replaces the 4 separate legacy concepts: terse_agent, output_density, terse_mode, and crp_mode.
MemoryCleanup
Controls how aggressively lean-ctx frees memory when idle.
MemoryProfile
Controls RAM usage vs. feature richness trade-off.
OutputDensity
Controls how dense/compact MCP tool output is formatted.
ProxyProvider
RulesScope
Where agent rule files are installed: global home dir, project-local, or both.
ShellActivation
Controls when the shell hook auto-activates command aliases.
TeeMode
Controls when shell output is tee’d to disk for later retrieval.
TerseAgent
Controls agent output verbosity level injected into MCP instructions.

Functions§

default_bm25_max_cache_mb
Default BM25 cache cap from config (also used by bm25_index heuristics).
is_local_proxy_url
normalize_url
normalize_url_opt