---
id: gh-session-history
name: "session-history"
url: https://skills.yangsir.net/skill/gh-session-history
author: rohitg00
domain: ai-agent-memory-knowledge
tags: ["session-history", "memory", "context-management", "timeline", "agent-memory"]
install_count: 12200
rating: 4.50 (120 reviews)
github: https://github.com/rohitg00/agentmemory/tree/main/plugin/skills/session-history
---

# session-history

> 此技能能够展示项目近期会话的清晰时间线，帮助用户快速回顾过去的工作内容。当用户需要了解上次做了什么、会话历史或想概览之前的工作时，该 Skill 提供简洁明了的会话记录，提升工作效率和上下文理解。

**Stats**: 12,200 installs · 4.5/5 (120 reviews)

## Before / After 对比

### 会话历史回顾效率提升

**Before**:

在没有此技能之前，用户需要手动翻阅大量日志或聊天记录，耗费大量时间来回忆或查找过去的会话内容和关键决策，导致上下文丢失和效率低下。

**After**:

该 Skill 能够自动整理并展示清晰的会话时间线，用户可以迅速获取关键信息和决策点，大幅减少回顾时间，确保项目上下文的连贯性。

| Metric | Before | After | Change |
|---|---|---|---|
| 回顾时间 | 30分钟 | 2分钟 | -93% |

## Readme

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

## Quick start

```json
memory_sessions { "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. Call `memory_sessions` with `limit: 20` for a meaningful window.
2. 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.
- 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 ../_shared/TROUBLESHOOTING.md if `memory_sessions` is not available.


---
*Source: https://skills.yangsir.net/skill/gh-session-history*
*Markdown mirror: https://skills.yangsir.net/api/skill/gh-session-history/markdown*