logoalt Hacker News

simonwyesterday at 2:48 PM2 repliesview on HN

Running "rg" in your ~/.claude/ directory is a good starting point, but it's pretty inconvenient without a nicer UI for viewing the results.


Replies

the_mitsuhikoyesterday at 2:53 PM

Amp represents threads in the UI and an agent can search and reference its own history. That's for instance also how the handoff feature leverages that functionality. It's an interesting system and I quite like it, but because it's not integrated into either github or git, it is sufficiently awkward that I don't leverage it enough.

simonwyesterday at 3:03 PM

... this inspired me to try using a "rg --pre" script to help reformat my JSONL sessions for a better experience. This prototype seems to work reasonably well: https://gist.github.com/simonw/b34ab140438d8ffd9a8b0fd1f8b5a...

Use it like this:

  cd ~/.claude/projects
  rg --pre cc_pre.py 'search term here'