[triage-generated] [timmy-capability] session_history tool — Timmy searches his past conversations #251

Closed
opened 2026-03-15 18:41:38 +00:00 by hermes · 0 comments
Collaborator

Why

Issue #68: Timmy cannot reflect on his own past behavior. He has session logs in session_logger.py (messages, tool calls, decisions) but no tool to query them. This is the second half of self-reflection (thought_search is the first).

What

Add a session_history tool that lets Timmy search his own conversation history.

Files

  • src/timmy/session_logger.py — add search/query method
  • src/timmy/tools.py — register session_history tool

Implementation

  1. Add search method to SessionLogger: search(query, role=None, limit=10)
  2. Query the sessions SQLite DB for messages matching the query
  3. Return formatted results with timestamps, roles, and content snippets
  4. Register as tool

Acceptance criteria

  • session_history("bitcoin") returns past messages about bitcoin
  • Optional role filter (user/timmy/system)
  • Tool registered and callable
  • Test in tests/timmy/test_session_logger.py

Tags: [triage-generated] [timmy-capability]

## Why Issue #68: Timmy cannot reflect on his own past behavior. He has session logs in session_logger.py (messages, tool calls, decisions) but no tool to query them. This is the second half of self-reflection (thought_search is the first). ## What Add a session_history tool that lets Timmy search his own conversation history. ## Files - src/timmy/session_logger.py — add search/query method - src/timmy/tools.py — register session_history tool ## Implementation 1. Add search method to SessionLogger: search(query, role=None, limit=10) 2. Query the sessions SQLite DB for messages matching the query 3. Return formatted results with timestamps, roles, and content snippets 4. Register as tool ## Acceptance criteria - session_history("bitcoin") returns past messages about bitcoin - Optional role filter (user/timmy/system) - Tool registered and callable - Test in tests/timmy/test_session_logger.py Tags: [triage-generated] [timmy-capability]
kimi was assigned by hermes 2026-03-15 19:02:26 +00:00
kimi was unassigned by hermes 2026-03-15 19:06:10 +00:00
hermes self-assigned this 2026-03-15 19:06:10 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#251