Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

session-history — Claude Code skill: what it does, install

Shows recent project sessions as a clean timeline. Use it to recover past decisions, observations, and session status.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add rohitg00/agentmemory --skill session-history -a claude-code
Open on GitHub

What session-history does

The skill queries project sessions through memory_sessions and presents them in reverse chronological order. Each entry includes the first 8 characters of the session ID, project, start time, status, and observation count. Sessions with observations also show key highlights with their type and title.

It starts with the exact project identifier. When that identifier is unavailable, the skill pages through results with nextCursor and matches normalized cwd by directory boundary while preserving the scope filter. If a session summary exists, its title and key decisions are included. An empty history is treated as a real result, not an invitation to fill in missing work.

The practical constraint is that memory_sessions must be available for this workflow to run. Installation places SKILL.md in the skills directory for the selected platform.

What it helps with

  • recover the work from earlier project sessions
  • show decisions and observations for each session
  • find the latest work for the exact project
  • separate an empty history from invented activity

Example prompts for the agent

  • Show what we did in the last session for this project.
  • Give me an overview of recent project sessions with their key decisions.
  • List the session history and observation count for each session.

How to install session-history

1Skills CLI (Vercel)

npx skills add rohitg00/agentmemory --skill session-history -a claude-code

2Manually: put the files in place

~/.claude/skills/session-history/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/session-history/

From the same set11

The whole set →
remember rohitg00 Saves insights, decisions, and learnings to agentmemory long-term storage with concept tags so agents can retrieve them later. Claude Code CX Codex Cursor +1 14,000installs recall rohitg00 Searches past observations, sessions, and learnings through agentmemory. Use it to recover context when you need to know what a project already covered. Claude Code CX Codex Cursor +1 13,900installs forget rohitg00 Deletes selected durable memories from agentmemory after explicit confirmation. Useful when scrubbing secrets or obsolete notes. Claude Code CX Codex Cursor +1 13,800installs commit-history rohitg00 Lists git commits linked to agent sessions with optional filters for branch, repo, and limit. Claude Code CX Codex Cursor +1 13,700installs handoff rohitg00 Resumes the latest agent session for the current directory and surfaces any unanswered questions first. Claude Code CX Codex Cursor +1 13,400installs agentmemory-agents rohitg00 Guides coding agents on linking the memory server via agentmemory connect. It safely merges host configurations without wiping existing MCP servers. Claude Code CX Codex Cursor +1 11,000installs agentmemory-mcp-tools rohitg00 Index of every agentmemory MCP tool with its parameters and workflows. Helps agents pick the right memory tool and format valid arguments. Claude Code CX Codex Cursor +1 10,900installs agentmemory-config rohitg00 This skill helps configure local agentmemory and check its MCP connection. Use it to enable features, inspect authentication, or diagnose a connection failure. Claude Code CX Codex Cursor +1 10,900installs

Similar

firebase-basics official google This skill sets up the Firebase CLI, handles sign-in, creates or switches projects, and downloads Android or iOS app configuration files. Claude Code Gemini CLI CX Codex 14,100installs knowledge-agent thedotmack Builds focused knowledge corpora from claude-mem observations and lets you query them in an AI session. Useful for reviewing past work by topic or project. Claude Code CX Codex Cursor +1 5,700installs stitch::generate-design official google-labs-code Turns a text prompt or an image into a finished UI screen through Stitch MCP, then edits it with targeted prompts. Claude Code CX Codex Cursor +1 10,700installs skill-creator official openai Official guide for drafting and updating agent skills. It structures procedures, bundled scripts, and documentation while keeping token overhead low. Claude Code CX Codex Cursor +1 4,900installs setup-matt-pocock-skills Matt Pocock This skill configures a repository for Matt Pocock's engineering skills by setting its issue tracker, triage labels, and domain docs layout. Run it before using the other skills. Claude Code 1,052,851installs to-tickets Matt Pocock Turns a plan, spec, or conversation into small end-to-end tickets with explicit blockers. Use it to agree on the work breakdown before tickets go to a tracker. Claude Code 711,230installs writing-plans Jesse Vincent This skill turns requirements for a multi-step task into an implementation plan before code changes begin. It helps when another engineer needs exact files, interfaces, and checks. Claude Code CX Codex 282,859installs stitch-loop official google-labs-code Guides agents through iterative website creation with Stitch MCP. The agent reads the baton file, generates UI, integrates the page, and prepares tasks for the next run. Claude Code CX Codex Cursor +1 56,300installs

Questions about session-history

How do I install session-history in Claude Code?

Run these steps in order: npx skills add rohitg00/agentmemory --skill session-history -a claude-code, then run npx skills add rohitg00/agentmemory --skill session-history -a claude-code again, and check ~/.claude/skills/session-history/SKILL.md.

What does session-history do?

It presents recent sessions for the project as a timeline with the session ID, project, start time, status, observation count, and key highlights.

How does the skill select project sessions?

It uses the exact project identifier. When that identifier is unknown, it pages with nextCursor and matches normalized cwd by directory boundary.

Source text

SKILL.md · Apache-2.0
---
name: session-history
description: Show what happened in recent past sessions on this project as a clean timeline. Use when the user asks "what did we do last time", "session history", "past sessions", or wants an overview of previous work.
user-invocable: true
---

The user wants an overview of recent sessions on this project.

## Quick start

```json
memory_sessions { "project": "<current-project-id>", "limit": 20 }
```

Expected output:

```text
7f3a9c2 · app · 2026-06-07 09:00 · completed · 14 obs
  - decision: Rotate refresh tokens on every use
b21d004 · app · 2026-06-05 14:00 · completed · 9 obs
  - code: limit.ts counts per-IP
```

## Why

Only show sessions and observations the tool returned. An empty history is a
real answer, never a cue to invent past work.

## Workflow

1. Use the exact project identifier recorded by the host and pass it to
   `memory_sessions`, with `agentId` when requested. If it is unknown, page
   through sessions using `nextCursor` and match normalized `cwd` by directory
   boundary before choosing the most recent 20. Never substitute another project.
2. Preserve scope filters on every page; stop at the requested count or a null
   `nextCursor`. State when the displayed history is a partial page. Present in
   reverse chronological order: session id (first 8), project, start
   time, status.
3. For sessions with observations, show the key highlights (type plus title).
4. Note the total observation count per session.
5. When a session summary exists, surface its title and the key decisions.

## Anti-patterns

WRONG: the tool returns two sessions, you describe "several sessions of steady
progress" and add ones you remember from the conversation.

RIGHT: show exactly the two sessions returned, each with its real id, status, and
observation count.

## Checklist

- Every session shown came from the tool response.
- Project/directory scope was checked before selecting the displayed window.
- Order is reverse-chronological.
- Per-session observation counts match the response.
- No session or highlight was invented or merged.

## See also

- `recap`: same data grouped by date with highlights.
- `handoff`: jump straight into the most recent session.
- `recall`: search across all sessions by topic.

## Troubleshooting

See [TROUBLESHOOTING.md](TROUBLESHOOTING.md) if `memory_sessions` is not available.

© rohitg00 · Apache-2.0 · rohitg00/agentmemory

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor