NCBM
b5950bdb57
core/agent: drop get_truncated hint from token-less generic truncation
2026-08-11 18:21:45 +08:00
NCBM
8cd456171c
core/agent: drop increase-limit hint in favor of truncate tokens
2026-08-11 14:53:49 +08:00
NCBM
3fe1c4cf91
core/agent: add model-friendly hint to truncated tool results
2026-08-01 01:42:17 +08:00
NCBM
aaf7fe8e7b
ci/lint: ruff format pass and fix compact seed test typing
...
Apply pending ruff format; narrow AssistantChatMessage.content before
membership checks so basedpyright accepts Unset|None unions.
2026-07-15 11:36:01 +08:00
NCBM
b1223c8189
core/agent: calibrate soft-compact with last-request prompt_tokens
...
After the first model call, scale char-based token estimates by
API/resolved prompt size so budget checks track near-real tokens.
/compact uses the same calibration when available.
2026-07-15 11:11:15 +08:00
NCBM
58041c6c87
core/agent+config: soft context budget in estimated tokens
...
Replace max_context_chars with max_context_tokens (default 200k est.
tokens via char/4); compact and /status use the token budget.
2026-07-15 10:58:01 +08:00
NCBM
5cfe4d6a24
core/agent: soft context compact and cooperative cancel points
...
Shrink older tool dumps for model requests without mutating history;
check task cancellation between tool/model steps.
2026-07-14 23:42:50 +08:00