Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By mlapeterv0.3.21MIT
Gives Claude a memory it writes itself, recalled by meaning and fading unless revisited. Needs bun 1.3+ or Node 22.15+ on macOS or Linux, with hooks running on every prompt; it claims data stays local and no API keys are needed.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; runs programs; makes network requests; reads files; reads environment variables (CLAUDE_CODE_FORCE_TERMINAL_IMAGES, CLAUDE_CONFIG_DIR, COUNTERPARTS_CONFIG, COUNTERPARTS_DASHBOARD_PORT, COUNTERPARTS_SIDEBAR_SEARCH, COUNTERPARTS_SIDEBAR_SESSION, HOME, KITTY_WINDOW_ID, STY, TERM, TERM_PROGRAM, TMUX, USERPROFILE, WEZTERM_EXECUTABLE); runs commands; reads or rewrites your prompts; sends prompts on its own; calls MCP servers.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
ai-memory, local-first, semantic-memory, session-briefing, sqlite-memory, private-memory, mcp, hooks
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Agents are great. What you're missing is a counterpart.
Counterparts gives your AI assistant its own memory, modeled on human memory. It writes its memories itself, and they fade and grow the way yours do. It runs today with Claude Code.
You need bun 1.3 or newer, or Node 22.15 or newer. macOS and Linux; Windows not yet supported.
curl -fsSL https://bun.sh/install | bash # if you don't have bun
bun add -g counterparts
counterparts
With Node instead: npm install -g counterparts, then counterparts. Whichever runtime
runs the setup is the one Claude Code's hooks and memory tools are wired to.
counterparts walks you through setup: your name and connecting Claude Code. No API
keys. Then restart Claude Code and check it:
counterparts doctor
To remove it, run counterparts uninstall. Your memory is kept unless you ask for it
to be deleted. The full walkthrough is in docs/QUICKSTART.md.

counterparts delete).People interested in giving an AI its own sense of self and building a relationship with it over time. Tinkerers, researchers, writers, and anyone who talks to an assistant every day and wishes it remembered.
It's not a work memory. It doesn't track your tasks, code conventions or project docs. Plenty of tools do that, including the memory built into ChatGPT and Claude.
Today's models are frozen, so memory is the only learning they do. Once a real memory works on top of a frozen model, the plan is to pair it with an open-weight model whose weights can change, so the AI can learn and grow, not just remember.
Once installed it runs on its own. A few commands are worth knowing:
counterparts dashboard # look at the memory in your browser
counterparts ask "..." # ask the memory a question
counterparts scope . --off # don't remember this directory
counterparts export # a copy of everything, encrypted by default
counterparts --help # the rest
Memory is on for every directory by default. The first session in a new directory asks whether you want it there.
Two pieces connect it to Claude Code. Hooks load a briefing at the start of each session and bring up related memories as you talk. A small MCP server gives the AI tools to save what it learned, write a journal entry, and look things up.
The core doesn't depend on Claude Code. Each part is its own module, with a
CONTRACT.md describing what it does:
| module | what it does |
|---|---|
| store | One SQLite database, plus a rebuildable search cache and daily snapshots |
| encode | Filters what comes in: strips credentials, drops junk, scores what's new |
| remember | Takes what the AI writes during and at the end of a session |
| recall | Finds related memories as you talk |
| associate | Links memories that come up together |
| schemas | Beliefs about people and things, revised slowly |
| self | Identity, the journal, and the start-of-session briefing |
| prospective | Reminders for later, triggered by a date or a topic |
| sleep | Nightly housekeeping: fading, pruning, merging, promoting |
| physics | The math for strength and decay |
More: docs/ELI5.md (the whole system in plain words) and
docs/module-map.md.
7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (mlapeter/counterparts) — no native marketplace selected
npx claudepluginhub p/mlapeter-counterpartsIndexed from v0.3.21Marketplace JSON
Plugins from other owners that cover similar ground