Your agent forgets.Your repo doesn't.

Goldfish gives AI coding agents a memory that lives in your project. Checkpoints record what changed and why. Briefs hold the direction. Recall brings both back when a new session starts. Everything is plain markdown, committed with your code.

Plugins for Claude Code, Codex, and Cursor. Works with OpenCode, Antigravity, VS Code, and any MCP client.

YouFix the login timeout bug.

AgentFound it: the token had no refresh path. Fixed and tested. Saving a checkpoint before the commit.

๐Ÿ  Checkpoint saved: checkpoint_a1b2c3d4
Saved: .memories/2026-09-22/143022_a1b2.md โ€” include this file in your git commit.
Branch: fix/jwt-timeout @ 3f9c21e
Tags: bug-fix, auth

## Fixed JWT timeout with refresh-token rotation
- **Why:** tokens were single-use with no renewal path
- **How:** added RefreshTokenStore, 7-day expiry
- **Impact:** unblocks the auth PR; admin SSO untouched

Agents are great at the task. They lose the story.

Coding agents plan, write, and test well inside one session. They do not keep a record of why the project moved the way it did. That record usually lives in one chat, and chats do not last.

Three tools. Markdown underneath.

Goldfish is an MCP server with three tools. The agent calls them; the files land in a .memories/ folder in your project; git carries them everywhere the code goes.

checkpoint

Save what happened and why

At each milestone the agent writes a short structured note: what changed, why, how, and what it unblocks. Goldfish adds the time, branch, commit, and changed files for you.

---
id: checkpoint_a1b2c3d4
timestamp: 2026-09-22T14:30:22.000Z
tags: [bug-fix, auth]
git:
  branch: fix/jwt-timeout
  commit: 3f9c21e
  files: [src/auth/jwt.ts, tests/auth.test.ts]
symbols: [RefreshTokenStore, validateToken]
---

## Fixed JWT timeout with refresh-token rotation
...

brief

Keep the direction steady

A brief is a short document with the goal, the constraints, and what success looks like. It sits at the top of every recall, so each session starts pointed the same way.

---
id: auth-system-redesign
title: Auth System Redesign
status: active
---

## Goal
Redesign auth around durable refresh-token sessions.

## Constraints
- Keep one-release compatibility for old clients
- Do not break admin SSO

recall

Bring it back when it matters

Recall returns the active brief and recent checkpoints. It can also search by keyword, filter by date, tag, or type, and answer "who touched this file, and why?"

# the last 5 checkpoints and the active brief
recall({ workspace: "/path/to/project" })

# keyword search, ranked by relevance
recall({ workspace, search: "auth timeout" })

# why did this file change?
recall({ workspace, file: "jwt.ts" })

# every project, for a standup
recall({ workspace: "all", days: 1 })

What you get

Memory that travels with the code
Checkpoints are committed files. Clone the repo on another machine and the history comes with it.
Reviewable in pull requests
A checkpoint shows up in the diff next to the code it explains. Reviewers see the reasoning, not only the result.
One memory for every tool
Claude Code, Codex, Cursor, and other MCP clients read and write the same .memories/ folder. Switch tools without losing the thread.
Readable without Goldfish
Every entry is markdown with a small header. Open it in any editor, grep it, or browse it as a table in Obsidian.
Answers "why is it like this?"
Filter recall by file or function name to find the decision behind a line of code, like git blame for intent.
Standups and handoffs for free
/standup summarizes work across all your projects. /handoff writes a resume note for the next agent or the next you.
Fast and small
A save takes about 10 ms. A week of recall takes about 30 ms. No database, no background service, three runtime dependencies.
Quiet by design
One static note loads when a session starts. No hooks fire during your work, and nothing phones home.

Best practices

Goldfish stores what the agent writes, and nothing smarter. The value of your memory depends on the quality of each entry. These habits make the difference.

A checkpoint nobody can use
Fixed auth bug.
A checkpoint the next session can act on
## Fixed JWT timeout with refresh-token rotation

Expired sessions logged users out mid-task.

- **What:** added RefreshTokenStore, 7-day expiry
- **Why:** tokens were single-use, no renewal path
- **How:** rotate on each refresh; rejected sliding
  expiry because it breaks admin SSO
- **Impact:** unblocks the auth PR. Next: revocation

Write what, why, how, and impact

A future session reads only these words. Name the files and functions you touched, the reason for the change, the options you rejected, and what comes next. Add symbols so file and function searches find it later.

Checkpoint at milestones, not every step

One checkpoint per meaningful unit of progress. Good moments:

  • A feature, fix, or refactor step is done
  • You made a key decision or found something surprising
  • You are about to stop for the day
  • The context window is about to compact

Checkpoint before you commit

Save the checkpoint first, then commit. The checkpoint file goes into the same commit as the code it describes, so the two never drift apart.

Always commit .memories/

The folder is a project record, like docs or tests. Never add it to .gitignore. Each checkpoint is its own file, so teammates and parallel agents do not get merge conflicts.

Use briefs for direction, not task lists

Your harness already plans the steps of a session. A brief holds what outlasts a session: the goal, the constraints, and the finish line. Link to detailed plans instead of pasting them in.

Keep the brief honest

Update the brief when goals or constraints change. Complete it when the work lands. Archive it when a new direction replaces it. Goldfish warns you when an active brief goes stale.

Recall when the past matters

Recall when you resume earlier work, after a compaction, or when an old decision affects the task. A quick question in a new session does not need it.

Treat recalled facts as history

Keep the decisions. Check the details that change over time, such as file paths, versions, and test counts, against the current code before you rely on them.

Seven skills for the common jobs

The plugins add slash commands that wrap the three tools in good habits. Clients that read .agents/skills/ get them too.

CommandWhat it does
/checkpointSave a well-structured checkpoint with tags
/recallRestore context from recent checkpoints and the active brief
/briefCreate or update the direction for multi-session work
/brief-statusCheck progress against the active brief, with evidence
/handoffWrite a resume summary for a returning or different agent
/standupReport recent work across all your projects
/report-issueFile a bug against Goldfish, after you approve the exact text

Install

Goldfish runs on Bun 1.0 or later. Install Bun first. Claude Code, Codex, and Cursor do not install it for you.

macOS and Linux

curl -fsSL https://bun.com/install | bash

Windows (PowerShell)

powershell -c "irm bun.sh/install.ps1|iex"

Open a new terminal, then check with bun --version.

Install the plugin from inside Claude Code. You get the tools, the seven skills, and a start-of-session note that reminds the agent how to use them.

/plugin marketplace add anortham/goldfish
/plugin install goldfish@goldfish

Start a new session after the install. Run /hooks to see the Goldfish session-start entry.