Skip to content

[feature request] Search across past agent conversations #413

Open

Description

@kiwimato

Use case

I often remember that an agent worked something out in an earlier task (a command, a decision, an error and its fix) but not which task it was. My memory is pretty bad nowadays, and I tend to work on many projects at the same time.
The History page search only matches task metadata (name, branch, project, agent, PR title/number; see src/lib/historySearch.ts), so it can't find a task by what was said in it. Today the only way is to grep ~/.claude/projects/**/*.jsonl and the Codex rollout-* files by hand, then work out which task each session belonged to.

What I would like instead

A search across the conversations of all past and current tasks: type a few words, get matching sessions, newest first, each showing the task, project, agent, date and a short snippet around the match. Clicking a result opens the task (restoring it from the archive if needed) with that session in a tab, or copies the session id if the task is gone.

Sketch

  • No index, no embeddings: stream the agents' own transcript files line by line, match all query words case-insensitively, pull a snippet, and stop on cancel. docs/ideas/agent-orchestration.md ("Session search is keyword, not vectors") already notes this approach.
  • Termic already knows which task produced which session id and where each agent keeps its transcripts per account (agent_dirs), so results can be tied back to tasks without guessing from the cwd slug.
  • Search only user and assistant text, not tool output, so file dumps don't flood the results.
  • A per-agent capability like [feature request] When a session resume fails, say so and offer the recent sessions instead of starting fresh in silence #311's session list: claude and codex first, and an agent with no readable transcripts is just left out.
  • Scope filter matching the History page (all projects / this project), and a termic CLI verb could reuse the same command so an agent can search its own past sessions.

Happy to implement this if the direction fits.

Activity

  1. yb-yu commented on Oct 29, 2026

    @yb-yu
    Contributor

    +1, I’d love to see this. I run a lot of parallel work across multiple sessions and projects, so I often vaguely remember a keyword from a past session but have no idea which tab it was in.

    Being able to search for it directly would be much better than navigating through tabs every time.

  2. kiwimato commented on Oct 29, 2026

    @kiwimato
    Author

    @yb-yu i built a solution that's working on my fork, if you're interested i can push it after i test it a bit more and then you can build it locally and try it out if you want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions