session-history — скилл для Claude Code: что делает, установка
Показывает историю недавних сессий проекта в виде временной шкалы. Нужен, чтобы быстро восстановить прошлую работу.
npx skills add rohitg00/agentmemory --skill session-history -a claude-codeЧто делает session-history
Скилл запрашивает сессии проекта через memory_sessions и показывает их в обратном хронологическом порядке. Для каждой записи выводятся первые 8 символов идентификатора, проект, время начала, статус и число наблюдений. К сессиям с наблюдениями добавляются ключевые пункты с типом и заголовком.
Сначала используется точный идентификатор проекта. Если его нет, скилл пролистывает страницы через nextCursor и сверяет cwd по границе каталога, сохраняя фильтр области видимости. При наличии сводки он также выводит её заголовок и ключевые решения. Пустая история считается реальным результатом, а не поводом додумывать прошлую работу.
Практическое ограничение: без доступного memory_sessions этот сценарий не отработает. Установка создаёт файл SKILL.md в каталоге скиллов выбранной платформы.
Какие задачи решает
- восстановить ход прошлых сессий проекта
- показать решения и наблюдения по каждой сессии
- найти последнюю работу по точному проекту
- отличить пустую историю от выдуманного результата
Примеры запросов агенту
- Покажи, что мы делали в прошлой сессии этого проекта.
- Сделай обзор последних сессий проекта с ключевыми решениями.
- Покажи историю сессий и число наблюдений для каждой.
Как установить session-history
1Через Skills CLI (Vercel)
npx skills add rohitg00/agentmemory --skill session-history -a claude-code2Вручную: положить файлы
~/.claude/skills/session-history/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/session-history/
1Через Skills CLI (Vercel)
npx skills add rohitg00/agentmemory --skill session-history -a codex2Вручную: положить файлы
.agents/skills/session-history/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add rohitg00/agentmemory --skill session-history -a cursor2Вручную: положить файлы
.cursor/skills/session-history/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install rohitg00/agentmemory session-history2Вручную: положить файлы
.github/skills/session-history/SKILL.md1Через Skills CLI (Vercel)
npx skills add rohitg00/agentmemory --skill session-history -a gemini-cli2Командой платформы
gemini skills install https://github.com/rohitg00/agentmemory --path plugin/skills/session-historyВручную: положить файлы
.devin/skills/session-history/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add rohitg00/agentmemory --skill session-history -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора11
Весь набор →Похожие
Вопросы о session-history
Как установить session-history в Claude Code?
Выполните по порядку: npx skills add rohitg00/agentmemory --skill session-history -a claude-code, затем ещё раз npx skills add rohitg00/agentmemory --skill session-history -a claude-code, после этого проверьте файл ~/.claude/skills/session-history/SKILL.md.
Что делает session-history?
Он показывает недавние сессии текущего проекта как временную шкалу: идентификатор, проект, время начала, статус, число наблюдений и ключевые пункты.
Как скилл выбирает сессии проекта?
Он использует точный идентификатор проекта. Если идентификатор неизвестен, скилл пролистывает страницы через nextCursor и сопоставляет нормализованный cwd по границе каталога.
Исходный текст
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