Skip to content
Agentmart
Submit a tool

previous-work

Search past agent sessions across all three harnesses (pi, Cursor, Claude Code) when asked about earlier work.

Skill by scott-fryxell

IndexedMIT★ 125
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/scott-fryxell-previous-work

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Search past agent sessions across all three harnesses (pi, Cursor, Claude Code) when asked about earlier work. Use when the user asks "what did we do about X", "did we already discuss/try/fix X", "find that earlier session", "review previous work", or when a task smells like a repeat of something already done. Knows where each tool stores its JSONL transcripts and how to search them without tripping over ignore files.

Use cases: productivity, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/previous-work

What's inside

Skill name
previous-work
Description
Search past agent sessions across all three harnesses (pi, Cursor, Claude Code) when asked about earlier work. Use when the user asks "what did we do about X", "did we already discuss/try/fix X", "find that earlier session", "review previous work", or when a task smells like a repeat of something already done. Knows where each tool stores its JSONL transcripts and how to search them without tripping over ignore files.
License
MIT
Instructions
73 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Previous Work

Raw transcript archaeology across pi, Cursor, and Claude Code. For distilled
lessons, `AGENTS.local.md` Learnings is already in context (`memory`
skill) - check it first; only dig transcripts when you need what actually
happened.

## Ranked recall first

The `remember` tool (extension `extensions/memory/`) indexes pi's own sessions
into an FTS5 store, ~4 ms a query, newest turns re-indexed automatically. Use
it before `rg`:

- `remember` search "firecracker lima mac" - ranked turns with snippets, dates,
  and the session file to reopen. Tolerates typos; the last word also matches as
  a prefix. An exchange is one row, so a question and its answer surface
  together.
- `rg` is for raw archaeology: every occurrence, exact strings, and the Cursor
  and Claude Code stores, which the index does not cover.

The store is derived, never synced, and lives at `.pi/agent/memory.db`. If it
looks empty or stale, `remember` action `index` rebuilds it (about a second for
400 sessions).

## Where sessions live

| Agent       | Path                                                                                    | Shape                      |
| ----------- | --------------------------------------------------------------------------------------- | -------------------------- |
| pi          | `.pi/agent/sessions/*.jsonl`                                                            | timestamp + uuid filenames |
| Cursor      | `~/.cursor/projects/Users-scott-Desktop-brayness/agent-transcripts/<uuid>/<uuid>.jsonl` | one dir per chat           |
| Claude Code | `~/.claude/projects/-Users-scott-Desktop-brayness*/*.jsonl`                             | one store per cwd          |

Notes:

- Claude fragments by working directory: `work/realness` sessions live in
  `-Users-scott-Desktop-brayness-work-realness`, etc. Older stores named
  `-Users-scott-Desktop-brain*` (previous harness names) hold early work.
- Cursor keeps one store per opened folder under `~/.cursor/projects/`;
  project windows like `work/realness` have their own.

## How to search

pi sessions are hidden from rg by the repo `.ignore` (`sessions/` pattern) -
always pass `--no-ignore`:

```bash
rg --no-ignore -li 'search term' .pi/agent/sessions/
rg -li 'search term' ~/.cursor/projects/Users-scott-Desktop-brayness/agent-transcripts/
rg -li 'search term' ~/.claude/projects/-Users-scott-Desktop-brayness*/
```

Then narrow inside a hit (JSONL, one message per line):

```bash
rg --no-ignore -i 'term' <file> | head -5     # locate lines
ls -t <dir> | head                             # most recent first
```

Filenames carry the date (pi) or check file mtime (Cursor/Claude) to order by
recency when the user says "yesterday" or "last week".

## Ground rules

- Transcripts contain secrets and personal info. Quote the minimum that
  answers the question, and leave it in the transcript otherwise.
- Cite where the answer came from (which store, which file, the date) so the
  user can reopen the session.
- Not found is a real answer: say which stores you searched and with what
  terms instead of guessing.
- Durable lessons discovered while digging go to `AGENTS.local.md` Learnings
  (`memory` skill) so the next search is unnecessary.

From scott-fryxell/brayness, MIT.

More from scott-fryxell/brayness

Signals

Stars
125
Forks
15
Open issues
0
Last commit (this folder)
Sep 28, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from scott-fryxell

Cite this page

previous-work skill. Agent Mart. https://agentmart.dev/skills/scott-fryxell-previous-work (last updated 2026-10-24)