agentleFS
lordmaculordmacu/nexo-rs/skills/session-logs/SKILL.md

Session Logs

Skill8 starsChanged 7 months agoApache-2.0View on GitHub

Inspect this agent's stored JSONL session transcripts — list, read, search, or recall recent turns.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the agent needs to look at its own prior conversations: "what did I tell you yesterday?", "search whether we ever …

    line 11
  2. Very specific:

    Start with recent for "what did I just say" questions — cheap and enough for short windows.

    line 62
  3. Very specific:

    Use search for "did we ever discuss X" queries.

    line 64
  4. Very specific:

    Always set a reasonable max_chars — full transcripts can blow the LLM context window fast.

    line 66
  5. Very specific:

    If transcripts_dir is not configured, the tool returns {ok: false, error: "transcripts_dir is not configured..."} — ask the operator to set …

    line 68

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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 Logs

Use this skill when the agent needs to look at its own prior conversations: "what did I tell you yesterday?", "search whether we ever discussed X", "show me the last 5 things from this session". Reads the JSONL transcripts under transcripts_dir (Phase 10.4 writes them).

Use when

  • Self-reflection: "what did I commit to in the previous chat?"
  • Debugging: "what tool result did I see in session X?"
  • Lightweight search across the agent's history
  • Replaying recent turns when memory/workspace is insufficient

Do not use when

  • Long-term semantic search across all memory — use the memory tool (vector/keyword) instead; this one is per-session raw transcript
  • Editing the transcript — this tool is read-only
  • Cross-agent inspection — scope is limited to this agent's transcripts

Tools

Single tool session_logs with action dispatch:

list_sessions

  • limit (integer, optional, 1–500, default 50) — most-recent first

Returns {sessions: [{session_id, agent_id, source_plugin, entry_count, first_timestamp, last_timestamp}, ...]}.

read_session

  • session_id (UUID, required)
  • limit (integer, optional) — max entries returned
  • max_chars (integer, optional, 20–4000, default 200) — truncate each content preview

Returns {header, total_entries, returned, truncated, entries: [...]}.

search

  • query (string, required) — case-insensitive substring match
  • limit (integer, optional, default 50)
  • max_chars (integer, optional) — preview length per hit

Returns {hits: [{session_id, timestamp, role, source_plugin, preview}, ...]}.

recent

  • session_id (UUID, optional) — defaults to the current session when omitted
  • limit (integer, optional, default 10)
  • max_chars (integer, optional)

Returns {session_id, count, entries: [...]}.

Execution guidance

  • Start with recent for "what did I just say" questions — cheap and enough for short windows.
  • Use search for "did we ever discuss X" queries; pair with list_sessions if you need to know which session to then read_session.
  • Always set a reasonable max_chars — full transcripts can blow the LLM context window fast.
  • If transcripts_dir is not configured, the tool returns {ok: false, error: "transcripts_dir is not configured..."} — ask the operator to set agents[].transcripts_dir in agents.yaml.
  • For semantic search (what I meant vs what I literally typed), use the memory tool with mode: "vector".
  • The tool is read-only and session-scoped to this agent — no risk of cross-agent bleed.

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.