|
docs: actualize compression mechanics + real-token baseline
mechanics.md: rewrite the Context Compression catalog (adaptive turn importance, intra-turn fallback, would_compress guard, token-budget hard-truncate, per-message view truncation, profile-aware overrides, real-token baseline estimator, meta-summary, archive-on-compress, CompressionStarted/ContextCompressed events); fix Agent Loop rows (run() delegates to run_stream, planning entry condition, pre/mid-turn gates, check_context_size, forced /compact, estimate chars//3 in compressor.py); fix WS image limits (8 / 50MB) and add /compact control message; rebuild the Undocumented Mechanics Summary from current ❌ rows; refresh the cross-reference index. config.md: LLM_STREAM_FIRST_CHUNK_TIMEOUT 180→90; add CONTEXT_MESSAGE_TOKEN_BUDGET. agent.md: run() runs planning; full run_ephemeral signature + compact_stream entry point; cwd ContextVar; planning entry condition; loop pseudocode (midturn compression, check_context_size, ModelInfo, real baseline); streaming guard 90s; workers carry profile; pre-turn estimate-based gate; per-message view truncation. sessions.md: full Message flag table (is_context/is_display/is_compression_critical …); three compression trigger points + forced /compact; real-baseline estimate; check_context_size guard; expanded algorithm (adaptive partitioning, intra-turn fallback, meta-summary, 24k cap, 4000-char critical preview, token-budget hard-truncate fallback, archive-on-compress, baseline clear); compression events; SessionStore archive methods + list_page profile_id. Co-Authored-By: Claude <noreply@anthropic.com> |
|---|
|
|
| docs/agent.md |
|---|
| docs/config.md |
|---|
| docs/mechanics.md |
|---|
| docs/sessions.md |
|---|