1
0

fix: add self_reflect tool for past behavior review (#417)

Co-authored-by: Kimi Agent <kimi@timmy.local>
Co-committed-by: Kimi Agent <kimi@timmy.local>
This commit is contained in:
2026-03-19 09:39:14 -04:00
committed by hermes
parent 332fa373b8
commit 3afb62afb7
4 changed files with 306 additions and 5 deletions

View File

@@ -594,9 +594,10 @@ def _register_introspection_tools(toolkit: Toolkit) -> None:
logger.debug("update_gitea_avatar tool not available: %s", exc)
try:
from timmy.session_logger import session_history
from timmy.session_logger import self_reflect, session_history
toolkit.register(session_history, name="session_history")
toolkit.register(self_reflect, name="self_reflect")
except (ImportError, AttributeError) as exc:
logger.warning("Tool execution failed (session_history registration): %s", exc)
logger.debug("session_history tool not available")
@@ -874,6 +875,11 @@ def _introspection_tool_catalog() -> dict:
"description": "Query Timmy's own thought history for past reflections and insights",
"available_in": ["orchestrator"],
},
"self_reflect": {
"name": "Self-Reflect",
"description": "Review recent conversations to spot patterns, low-confidence answers, and errors",
"available_in": ["orchestrator"],
},
"update_gitea_avatar": {
"name": "Update Gitea Avatar",
"description": "Generate and upload a wizard-themed avatar to Timmy's Gitea profile",