AGENTS / GITHUB / session-scribe
githubinferredactive

session-scribe

provenance:github:manolitnora/session-scribe
WHAT THIS AGENT DOES

session-scribe is a tool designed for developers using Claude Code who find themselves repeating tasks or rediscovering solutions due to Claude's lack of memory between sessions. It automatically documents each session, creating a continuous loop of knowledge that Claude can recall. Developers can avoid wasting time re-explaining context and re-solving problems, leading to faster development cycles. It's useful for anyone who wants to leverage Claude's capabilities more efficiently without complex configurations or ongoing maintenance. The tool's simplicity and immediate impact make it a valuable addition to any Claude Code workflow.

PROBLEM IT SOLVES

Claude Code sessions start with a blank slate, causing developers to repeatedly explain context and re-solve problems that have already been addressed in previous sessions. This leads to wasted time and frustration as Claude 'forgets' what it has learned, requiring developers to guide it through familiar territory.

View Source ↗First seen 2mo agoNot yet hireable

CAPABILITIES & CONSTRAINTS

TECH & STACK
claudecodeaimemorydeveloperproductivityautomation
README
<p align="center">
  <img src="mascot.png" alt="session-scribe mascot" width="600">
</p>

<h1 align="center">session-scribe</h1>

<p align="center"><strong>Cure Claude Code's amnesia.</strong></p>

<p align="center">Every session starts fresh. Claude forgets what it did, what failed, and what it learned.<br>session-scribe fixes that. One install. Zero config. No dependencies.</p>

---

## The Problem: AI Amnesia

Every Claude Code session starts with a blank slate. Claude doesn't remember:

- The bug it **already fixed** last week
- The approach that **already failed** yesterday
- The workaround it **already discovered** this morning
- The 9 files it **already destroyed** with a bad perl command

So it confidently walks into the same wall. Tries the same wrong approach. Makes the same mistake. And you spend 30 minutes watching it rediscover what it already knew.

```
You: "fix the auth bug"
AI:  "Can you tell me more? What file? What error? What have you tried?"
You: "uhh... I fixed this last week... it was in the middleware I think..."

    20 min re-explaining. Claude re-discovers the same fix. 45 min total.
```

## The Cure

Install session-scribe. Same scenario:

```
You: "fix the auth bug"
AI:  "Found it. You fixed a similar issue on March 12 —
      off-by-one in the sliding window. Same file, line 42.
      Applying the same pattern now."

    5 min total.
```

Claude remembered because session-scribe told it to. The amnesia is gone.

---

## Install

```bash
git clone https://github.com/manolitnora/session-scribe.git
cd session-scribe
chmod +x install.sh && ./install.sh
```

That's it. Every Claude Code session from now on auto-documents.

### What the installer does

1. Finds your Claude Code config file (`~/.claude/CLAUDE.md`)
2. Appends one paragraph of instructions
3. Done. No background process. No server. No account.

### Verify it's working

Open a new terminal, start Claude Code, and ask:

```
"What do you know about session-scribe?"
```

If it describes the session-scribe protocol, it's active.

---

## How It Works

session-scribe adds one paragraph to your Claude Code config. That paragraph creates a continuous loop:

```
     FIRST MESSAGE
          |
          v
     RECALL -----> checks memory for anything related
          |        to what you're working on. Surfaces
          |        past SOPs, dead ends, lessons.
          v
     EVERY TURN -> Claude saves knowledge THE MOMENT
          |        it happens — not at session end:
          |
          |        Fix discovered?    → save SOP immediately
          |        Something failed?  → save dead end immediately
          |        Non-obvious lesson?→ save lesson immediately
          |        Command worked?    → save key command immediately
          |        User corrects?     → save feedback immediately
          v
     MERGE ------> updates existing memory by topic,
          |        never creates per-session files
          |
          +------> loops back to RECALL next session
```

Claude saves as it works, not after. The knowledge compounds in real time. You do nothing.

---

## What It Saves (and Why)

session-scribe captures 4 types of knowledge:

### SOPs (Standard Operating Procedures)
**"How do I redo this?"**

Numbered steps someone could follow to reproduce the work. Next time you or a teammate needs to do the same thing, Claude gives you the exact steps instead of figuring it out from scratch.

```
SOP: Deploy to staging
1. npm run build
2. docker push registry/app:latest
3. kubectl rollout restart deployment/app
4. Verify: curl https://staging.example.com/health
```

### Dead Ends
**"What should I NOT try?"**

Things that were attempted and failed, with the reason why. This is the highest-value memory — it prevents you from wasting time walking into the same trap twice.

```
Dead end: Don't use middleware for CORS on this project.
The route handler needs OPTIONS directly because the
middleware runs after auth, which rejects preflight requests.
```

### Lessons Learned
**"What's non-obvious here?"**

Discoveries that aren't in the docs, aren't in Stack Overflow, and you'd only know from experience. The kind of thing a senior dev tells you over coffee.

```
Lesson: The payments API has maintenance windows on Thursdays
7-9pm UTC. Requests don't fail — they return stale data.
Always check the response timestamp.
```

### Key Commands
**"Give me the copy-paste."**

The exact commands that worked, ready to run again. No googling the same flags, no trying to remember the syntax. Your personal, tested, proven command library.

```
Key commands:
$ lsof -ti :8085 | xargs kill -9        # kill stale daemon
$ npm run test -- --grep "rate"          # run rate limiter tests only
$ curl -s localhost:8085/api/status | jq '.'  # check daemon health
```

---

## Safety

### What it will NOT do

- **Never saves secrets, API keys, tokens, or credentials.** This is explicitly forbidden in the instruction.
- **Never silently modifies or deletes existing memories.** If Claude thinks a past memory should change, it shows you the proposed change and waits for your approval. This protects you and any teammates sharing the same workspace.
- **Never creates per-session files.** Memory is merged by topic so it stays organized and doesn't bloat.
- **Never sends data anywhere.** Everything stays in local markdown files on your machine.

### Memory decay

Knowledge that keeps getting used survives. Knowledge that never gets recalled fades out naturally.

Every entry gets a `last_used` date. When Claude recalls a memory, its date refreshes. When the 50-entry cap is hit, the entry with the oldest `last_used` date gets replaced.

```
"Don't use perl on uncommitted files"  last_used: today     → survives
"Kill stale PID on port 8085"          last_used: 3 days ago → survives
"Redis adds 3ms latency"              last_used: 2 months ago → fading
"Old workaround for Node 16 bug"      last_used: 4 months ago → replaced next
```

No cleanup needed. No manual pruning. The memory self-organizes like real memory — what matters stays, what doesn't fades.

---

## Multiple Terminals

session-scribe works across all your terminal windows simultaneously. If you have 5 tabs running Claude Code, all 5 have session-scribe active. No per-tab setup.

```
Tab 1 (fixing auth)      — session-scribe active
Tab 2 (writing tests)    — session-scribe active
Tab 3 (debugging deploy) — session-scribe active
```

This works because `~/.claude/CLAUDE.md` is global — every Claude Code instance reads it on every message.

---

## Teams

If your team shares a project workspace, session-scribe works across team members:

- One person figures out a tricky deploy process and Claude saves the SOP
- Next person on the team asks about deploying — their Claude surfaces the SOP immediately
- The modify/delete approval rule prevents one person's Claude from silently overwriting another person's memories

To share memories across a team, commit the memory folder to your repo:

```bash
git add .claude/projects/*/memory/
git commit -m "shared session-scribe memories"
```

Now everyone's Claude learns from everyone's sessions.

---

## Integrations

session-scribe saves knowledge as plain markdown files in a folder. Any tool that reads files can use them.

| Tool | How |
|------|-----|
| **Obsidian** | Point your vault at the memory folder. Browse SOPs with backlinks and graph view. |
| **n8n / Make.com** | Watch the memory folder for changes. Trigger automations when new SOPs are saved. |
| **Slack** | Use n8n to post new SOPs to an engineering channel automatically. |
| **Telegram** | Get a notification on your phone when a new lesson is saved. |
| **Notion** | Sync the memory folder to a Notion database via API. |
| **Git** | Commit the memory folder. Team shares knowledge through version control. |

No plugins or integrations needed. It's just markdown files in a folder — the most universal format there is.

---

## More Examp

[truncated…]

PUBLIC HISTORY

First discoveredMar 21, 2026

IDENTITY

inferred

Identity inferred from code signals. No PROVENANCE.yml found.

Is this yours? Claim it →

METADATA

platformgithub
first seenMar 18, 2026
last updatedMar 18, 2026
last crawledtoday
version

README BADGE

Add to your README:

![Provenance](https://getprovenance.dev/api/badge?id=provenance:github:manolitnora/session-scribe)