Teknium
cc6e8941db
feat(honcho): context injection overhaul, 5-tool surface, cost safety, session isolation (#10619)
Salvaged from PR #9884 by erosika. Cherry-picked plugin changes onto
current main with minimal core modifications.
Plugin changes (plugins/memory/honcho/):
- New honcho_reasoning tool (5th tool, splits LLM calls from honcho_context)
- Two-layer context injection: base context (summary + representation + card)
on contextCadence, dialectic supplement on dialecticCadence
- Multi-pass dialectic depth (1-3 passes) with early bail-out on strong signal
- Cold/warm prompt selection based on session state
- dialecticCadence defaults to 3 (was 1) — ~66% fewer Honcho LLM calls
- Session summary injection for conversational continuity
- Bidirectional peer targeting on all 5 tools
- Correctness fixes: peer param fallback, None guard on set_peer_card,
schema validation, signal_sufficient anchored regex, mid->medium level fix
Core changes (~20 lines across 3 files):
- agent/memory_manager.py: Enhanced sanitize_context() to strip full
<memory-context> blocks and system notes (prevents leak from saveMessages)
- run_agent.py: gateway_session_key param for stable per-chat Honcho sessions,
on_turn_start() call before prefetch_all() for cadence tracking,
sanitize_context() on user messages to strip leaked memory blocks
- gateway/run.py: skip_memory=True on 2 temp agents (prevents orphan sessions),
gateway_session_key threading to main agent
Tests: 509 passed (3 skipped — honcho SDK not installed locally)
Docs: Updated honcho.md, memory-providers.md, tools-reference.md, SKILL.md
Co-authored-by: erosika <erosika@users.noreply.github.com>
2026-04-15 19:12:19 -07:00
..
2026-04-10 03:45:36 -07:00
2026-04-15 19:12:19 -07:00
2026-04-15 17:52:03 -07:00
2026-04-15 11:11:08 -07:00
2026-04-11 13:59:52 -07:00
2026-04-07 17:28:37 -07:00
2026-04-15 17:54:43 -07:00
2026-04-15 16:31:28 -07:00
2026-04-15 19:12:19 -07:00
2026-04-13 16:32:04 -07:00
2026-04-14 10:49:35 -07:00
2026-04-15 19:12:19 -07:00
2026-04-12 00:33:54 -07:00
2026-04-15 17:54:43 -07:00
2026-04-09 13:17:06 -07:00
2026-04-10 13:06:02 -07:00
2026-04-07 17:59:42 -07:00
2026-04-13 10:50:24 -07:00
2026-04-12 03:53:30 -07:00
2026-04-12 16:36:11 -07:00
2026-04-13 10:50:24 -07:00
2026-04-09 02:41:56 -07:00
2026-04-02 15:33:51 -07:00
2026-04-11 23:12:11 -07:00
2026-03-29 15:47:19 -07:00
2026-03-24 08:19:23 -07:00
2026-04-07 17:59:42 -07:00
2026-03-20 15:41:06 -04:00
2026-04-13 22:01:49 -07:00
2026-04-07 22:23:28 -07:00
2026-03-30 17:34:43 -07:00
2026-04-14 10:42:58 -07:00
2026-04-10 21:15:59 -07:00
2026-04-08 00:41:36 -07:00
2026-04-10 13:37:45 -07:00
2026-04-10 03:44:43 -07:00
2026-04-14 17:19:20 -07:00
2026-04-13 10:50:24 -07:00
2026-04-14 10:24:19 -07:00
2026-03-30 13:28:10 +09:00