yongvae

Agentstory — Development skill for Claude Code

Development community

Lightweight agent-memory search in Rust: 5 MB binary, ~30 ms search, ~15 MB RAM.

How to install Agentstory

This entry records only its repository, not the path inside it, so there is no exact command to give. Open yongvae/agentstory and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agentstory does

Lightweight agent-memory search in Rust: 5 MB binary, ~30 ms search, ~15 MB RAM. Index, search and hand off sessions across Claude Code, Codex, Cursor, Gemini, Qwen, OpenCode, Hermes, Pi, DeepSeek Harness; shared memory, wiki, mistakes log. CLI (ags) + MCP.

Alternatives in Development

  • Create Handoff — You are tasked with writing a handoff document to hand off your work to another agent in a new session 10k ★
  • Petdex — A public gallery of animated pets for Codex, Claude Code, DeepSeek Harness, Hermes, OpenCode, Gemini CLI, and 4k ★
  • Zerostack — Lightweight coding agent written in Rust, optimized for memory footprint and performance 1.7k ★

README

agentstory

English · [中文](README.zh-CN.md)

**A lightweight agent-memory search tool written in Rust.** One 5 MB binary indexes the conversation history of every coding agent on your machine (Claude Code, Codex, Cursor, Gemini, Qwen, OpenCode, Hermes, Pi, DeepSeek Harness), answers searches in ~30 ms using ~15 MB of memory, and hands sessions from one agent to another. It also keeps a shared memory, wiki and mistakes log that every agent reads. Short command: `ags`.

Measured on 1.45 GB of real agent history (339 sessions, 6,595 turns, Apple M3 Max)
Binary 5.1 MB, single file, SQLite bundled, no runtime
Search (process start to results, incl. CJK) ~32 ms avg, 15 MB peak memory, at any level
Handoff card ~20 ms, 21 MB
Refresh when nothing changed 0.11 s, 10 MB
Full index build 13.3 s, 112 MB peak
Index on disk 145 MB (10% of the raw history); 112 MB with store_output = false
MCP server idle 8.6 MB

Reproduce with `scripts/bench.sh` (uses a throwaway index).

Every coding agent writes its history somewhere different: Claude Code in JSONL under `~/.claude`, Codex in rollout files, Cursor in agent transcripts, OpenCode and Hermes in SQLite. When you run several agents (or several bots on one machine), none of them can see what the others did, and none of them can find what *they* did last week.

`agentstory` reads all of them in place, keeps a redacted full-text index, and gives you four things:

agentstory search Full-text search across every agent's sessions, including tool output (hits there are labelled [output] and rank below what was said). Works for Chinese/Japanese/Korean with no setup (trigram index), ranks by relevance and recency.
agentstory show Read one session in order: whole, --last 3 turns, or --around .
agentstory handoff A handoff card for continuing someone else's session: the goal, everything the user said since, where