zeroclaw/src/agent
Argenis c104b23ddb
feat(agent): add token efficiency analyzer layer (#3892) (#4484)
Add history pruning and context-aware tool filtering to reduce token
usage per API call. History pruner collapses old tool call/result pairs
and drops oldest messages when over budget. Context analyzer suggests
relevant tools per iteration based on keyword matching.

New files: history_pruner.rs, context_analyzer.rs
Modified: AgentConfig (new fields), ToolFilterGroup (filter_builtins),
agent loop (pruning integration)
2026-03-24 00:38:15 -04:00
..
agent.rs feat(tools): add built-in ask_user tool for interactive prompts (#4474) 2026-03-23 23:58:50 -04:00
classifier.rs feat(agent): log query classification route decisions 2026-02-24 16:02:59 +08:00
context_analyzer.rs feat(agent): add token efficiency analyzer layer (#3892) (#4484) 2026-03-24 00:38:15 -04:00
dispatcher.rs fix(agent): prevent duplicate tool schema injection in XML dispatcher (#3744) 2026-03-16 18:38:44 -04:00
history_pruner.rs feat(agent): add token efficiency analyzer layer (#3892) (#4484) 2026-03-24 00:38:15 -04:00
loop_.rs feat(agent): add token efficiency analyzer layer (#3892) (#4484) 2026-03-24 00:38:15 -04:00
loop_detector.rs feat(agent): add loop detection guardrail for repetitive tool calls (#4240) 2026-03-23 12:49:47 -04:00
memory_loader.rs feat(memory): restore time-decay scoring lost in main→master migration (#4274) 2026-03-22 19:01:40 -04:00
mod.rs feat(agent): add token efficiency analyzer layer (#3892) (#4484) 2026-03-24 00:38:15 -04:00
prompt.rs fix(agent): use Gregorian datetime and prioritize date context in prompts (#4369) 2026-03-23 14:14:56 -04:00
tests.rs fix(agent): prevent duplicate tool schema injection in XML dispatcher (#3744) 2026-03-16 18:38:44 -04:00
thinking.rs fix(agent): prevent thinking level prefix from leaking across turns (#4277) 2026-03-22 19:09:12 -04:00