RyanRana
206f595f66
perf(prompt): cache kanban worker guidance at session init
...
Salvages #24402 by @RyanRana. The KANBAN_GUIDANCE block (~835 tokens)
is session-static — the dispatcher decides at spawn time whether the
process is a kanban worker via the kanban_show tool's check_fn (gated
on HERMES_KANBAN_TASK env var). Re-checking 'kanban_show' in
valid_tool_names and re-loading the reference on every system-prompt
rebuild (init + each context compression) is wasted work.
Caches the resolved string on agent._kanban_worker_guidance once in
agent_init and consumes it in system_prompt.build_system_prompt(),
with a getattr fallback for code paths that bypass agent_init.
2026-05-18 20:56:44 -07:00
..
2026-05-17 02:29:41 -07:00
2026-05-17 11:50:43 -07:00
2026-02-21 22:31:43 -08:00
2026-05-11 11:13:25 -07:00
2026-05-18 20:56:44 -07:00
2026-05-18 20:08:09 -07:00
2026-05-18 10:14:38 -07:00
2026-05-15 14:00:01 -07:00
2026-05-18 10:37:35 -07:00
2026-05-18 10:14:38 -07:00
2026-05-18 20:02:22 -07:00
2026-05-17 02:31:18 -07:00
2026-05-17 04:04:15 -07:00
2026-05-17 04:04:15 -07:00
2026-05-18 10:37:35 -07:00
2026-05-15 16:35:12 -07:00
2026-05-16 23:41:09 -07:00
2026-05-18 10:28:20 -07:00
2026-05-13 22:25:16 -07:00
2026-04-20 01:56:41 -07:00
2026-05-18 10:19:40 -07:00
2026-05-18 20:04:57 -07:00
2026-05-16 02:24:48 -07:00
2026-05-18 10:31:40 -07:00
2026-05-15 12:11:32 -07:00
2026-05-02 01:29:57 -07:00
2026-05-10 06:44:53 -07:00
2026-05-15 10:36:38 +05:30
2026-05-18 10:24:13 -07:00
2026-04-21 01:31:58 -07:00
2026-05-14 08:03:56 -07:00
2026-05-11 11:13:20 -07:00
2026-04-28 06:46:45 -07:00
2026-04-28 06:46:45 -07:00
2026-05-04 03:16:19 -07:00
2026-05-10 07:14:14 -07:00
2026-04-21 21:30:10 -07:00
2026-05-13 22:31:28 -07:00
2026-05-11 11:13:25 -07:00
2026-04-20 05:25:49 -07:00
2026-05-16 17:59:32 -07:00
2026-04-28 12:27:36 -07:00
2026-04-30 23:03:54 -07:00
2026-05-11 16:49:13 -07:00
2026-05-18 10:53:08 -07:00
2026-05-05 13:33:49 -07:00
2026-05-16 17:41:09 -07:00
2026-05-17 02:31:18 -07:00
2026-05-13 23:51:15 -07:00
2026-05-16 13:02:19 -07:00
2026-05-08 14:27:40 -07:00
2026-04-29 08:08:36 -07:00
2026-05-10 07:09:28 -07:00
2026-05-12 20:49:20 -07:00
2026-05-16 17:59:32 -07:00
2026-05-18 20:06:49 -07:00
2026-05-12 20:46:04 -07:00
2026-04-13 16:32:04 -07:00
2026-05-18 10:21:22 -07:00
2026-04-08 00:41:36 -07:00
2026-05-17 02:31:18 -07:00
2026-05-18 00:34:29 -07:00
2026-05-18 19:36:04 -07:00
2026-05-08 16:39:32 -07:00
2026-05-16 18:28:17 -07:00
2026-04-09 03:10:30 -07:00
2026-05-18 20:56:44 -07:00
2026-05-05 04:33:38 -07:00
2026-05-04 12:07:17 -07:00
2026-05-16 23:36:37 -07:00
2026-05-17 23:28:45 -07:00
2026-05-13 06:46:23 -07:00
2026-05-13 06:46:23 -07:00
2026-02-21 22:31:43 -08:00
2026-05-12 16:32:57 -07:00
2026-05-13 16:39:41 -07:00
2026-05-13 16:39:41 -07:00
2026-05-13 22:31:28 -07:00
2026-05-13 22:31:28 -07:00