agentleFS
jamesctuckerjamesctucker/moraine/.agents/skills/session-search/SKILL.md

session-search

Skill1 starsChanged 9 days agoMITView on GitHub

Search past agent sessions for discussions, decisions, and context. Use when the user asks about past discussions, decisions, or anything that was covered in a previous session. For pattern analysis across sessions and staging cleanup, see the `reflection` pack if it is enabled.

15 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ml-training-recipe, replication and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • getcompanion-aiSkill

    ml-training-recipe

    Find implementable ML training recipes from papers, datasets, docs, and code. Use when the user wants to fine-tune, train, reproduce, or choose a practical ML method, dataset, hyperparameter setup, or benchmark recipe.

    Also in 3 projects that use this

  • getcompanion-aiSkill

    replication

    Plan a replication of a paper, claim, or benchmark, and execute only after an explicit environment choice. Use when the user asks to replicate results, reproduce an experiment, verify a claim empirically, or build a replication package.

    Also in 3 projects that use this

  • brainbytes-devSkill

    alpha-research

    Also in 3 projects that use this

  • JaimeParkerSkill

    paper-code-audit

    Perform three-way cross-validation of a research paper by comparing the original paper text (via Zotero), official code implementation (via Git), and personal Obsidian notes. Use this skill whenever the user wants to "audit a paper", "verify paper claims against code", "cross-check notes with implementation", "triangulate paper + code + notes", "find discrepancies between paper and code", or mentions wanting a deep, structured comparison of a paper's claims against its implementation and their own notes. Also trigger when the user asks to "analyze this paper thoroughly" with code available, or when they want to systematically reconcile what the paper says, what the code does, and what their notes claim.

    Also in 3 projects that use this

  • JimLiuSkill

    pdf-explore

    Use this skill when the user has attached a PDF, paper, report, or other document and the answer needs content from more than one place in it: summarize the methods or any other section, compare sections, find where a topic is discussed, read a value or label off a figure or chart, or find/list/extract every instance of something across the whole document (datasets, benchmarks, citations, figures, table rows, accession numbers — including appendices). Skip it only for a single lookup of 1–4 pages quoted in your very next response — `read_file(pages=[...])` attaches pages as images that are dropped from context after one turn, so multi-section answers end up re-reading the same ranges repeatedly. Parses the PDF once in the Python kernel: `pdf_pages` (pages as persistent text), `pdf_outline` (TOC), `pdf_scan` (rank pages by relevance), `pdf_map`/`pdf_extract` (per-page summary / structured fields via parallel haiku calls). For PDF creation/manipulation, use reportlab/pypdf directly.

    Also in 3 projects that use this

  • composio-communitySkill

    weekly-digest

    Generate a weekly support digest and post it to [Slack](https://composio.dev/toolkits/slack)

    Also in 3 projects that use this

  • +1 more from getcompanion-ai

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Search past agent session records using a full-text search index built from memory/sessions/ and memory/staging/.

    line 8
  2. Very specific:

    If memory/.index/sessions.db doesn't exist or is stale, rebuild:

    line 24
  3. Distinctive:

    If the search results reference a specific session, read the full session file for more context:

    line 54

“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Session Search

Search past agent session records using a full-text search index built from memory/sessions/ and memory/staging/.

When to use

User asks something like:

  • "what did we discuss about X?"
  • "search sessions for..."
  • "find past decisions on..."
  • "have we talked about..."
  • "when did we decide X?"
  • "what was the outcome of the session on Y?"

Workflow

1. Index (if needed)

If memory/.index/sessions.db doesn't exist or is stale, rebuild:

python scripts/workspace/session-index.py index

This indexes all *.md files in memory/sessions/ and memory/staging/. It's fast (<100ms for ~40 files). The index is always rebuilt from scratch.

2. Search

python scripts/workspace/session-index.py search "<query>"

Options:

  • --limit N — max results (default: 10)
  • --dates YYYY-MM-DD..YYYY-MM-DD — date range filter
  • --section decisions — filter to a specific section (accomplishments, decisions, in_progress, artifacts, notes)
  • --project NAME — filter by project name (e.g., my-app, api-server)

Examples:

python scripts/workspace/session-index.py search "authentication"
python scripts/workspace/session-index.py search "release deploy" --limit 5
python scripts/workspace/session-index.py search "OpenHuman comparison" --section decisions
python scripts/workspace/session-index.py search "gift sheet" --dates 2026-05-01..2026-05-31 --project my-app

3. Read matching sessions

If the search results reference a specific session, read the full session file for more context:

# Read a specific session file
cat memory/sessions/<YYYY-MM-DD>-<topic>.md

# Read a specific staging file
cat memory/staging/<YYYY-MM-DD>.md

How it works

  • Builds an SQLite FTS5 index over all session and staging markdown files
  • Tokenizer: porter unicode61 — Porter stemming (e.g., "auth" matches "authentication") + Unicode-aware tokenization
  • Each H2 section (## Accomplished, ## Decisions, etc.) is indexed as a separate row with a section tag for targeted queries
  • Wikilinks (double-bracket path syntax with alias) and repos/<repo>/ paths are extracted as project_links for project-scoped search
  • Full rebuild on every index run — trivial (~40 files, <100ms)
  • Index stored at memory/.index/sessions.db (gitignored)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.