Files
yvgude--lean-ctx/bench/agent-task/r2/lean-ctx.toml
T
wehub-resource-sync 26382a7ac6
CI / Clippy (push) Failing after 15m13s
CI / Test (ubuntu-latest) (push) Failing after 16m1s
CI / Test (macos-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Build (no embeddings / no ORT) (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Cookbook (Node) (push) Has been cancelled
CI / Pi Extension (Node) (push) Has been cancelled
CI / Rust SDK (lean-ctx-client) (push) Has been cancelled
CI / Embed SDK (lean-ctx-sdk) (push) Has been cancelled
CI / Python SDK (leanctx) (push) Has been cancelled
CI / Hermes Plugin (Python) (push) Has been cancelled
CI / SDK Conformance Matrix (push) Has been cancelled
CI / Coverage (push) Has been cancelled
CI / cargo-deny (push) Has been cancelled
CI / Adversarial Safety (push) Has been cancelled
CI / Benchmarks (push) Has been cancelled
CI / Output-Quality Gate (eval A/B) (push) Has been cancelled
CI / Documentation (push) Has been cancelled
CI / CI Green (push) Has been cancelled
JetBrains Plugin / Actionlint (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
CodeQL / Analyze (rust) (push) Has been cancelled
JetBrains Plugin / Validation (push) Has been cancelled
JetBrains Plugin / Build (push) Has been cancelled
JetBrains Plugin / Test (push) Has been cancelled
Security Check / Security Scan (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:35:30 +08:00

44 lines
2.1 KiB
TOML

# Faithful R2 lean-ctx arm — engine config (config.toml).
#
# Copy to the lean-ctx config dir ($XDG_CONFIG_HOME/lean-ctx/config.toml) or drop
# into the repo workspace as `.lean-ctx.toml` (project-local override). Every key
# below is a real engine setting — no env var is required for these to take effect,
# though each also has a LEAN_CTX_* override (see faithful-arm.env).
#
# Goal: neutralize the R1 +38% injected-prefix tax and keep cold reads
# capability-safe-cheap on a phase-isolated harness.
# Zero-injection: do not inject rule files into the agent's context. The R1 tax
# was a ~3K-token per-turn prefix (rule file + tool schemas) re-billed every turn
# on a non-caching rail. "off" removes the rule-file half entirely.
rules_injection = "off"
# Minimal overhead: trims the per-tool schema/preamble surface so the fixed
# injected cost per turn is as small as possible.
minimal_overhead = true
# Minimal tool profile: expose the 6-tool core instead of the full ~15 ctx_*
# surface, shrinking the other half of the injected prefix (the tool schemas).
tool_profile = "minimal"
# Structure-first cold reads: on a fresh process (no warm session cache to
# amortize a full read) bias `auto` toward `map` for medium source files. This
# is the only read saving that survives phase isolation, and it aids
# localization (deps + located API + task-relevant body). All capability guards
# stay in force: active_diagnostic / edit-fail / small-file / task-named files
# are always read full.
structure_first = true
# Proxy: the cross-tool wire compressor. The only path that reaches another
# tool's output (e.g. forge_* store reads) and native shell/build/test logs, so
# "installed = compressing the whole addressable surface", not just ctx_* tools.
proxy_enabled = true
proxy_port = 4444
[proxy]
# cache-aware history pruning keeps the request prefix byte-stable so a
# cache-priced rail (Anthropic) keeps hitting the prompt cache (#498). Never use
# "rolling" on a cached rail — it rewrites a stable message every turn and turns
# cheap cache reads into full-price writes.
history_mode = "cache-aware"