What is counterparts?
counterparts is a Claude Code mod by mlapeter that memory that turns Claude into a counterpart: a local-first memory layer modeled on human memory. Wakes each session with what matters, remembers by meaning, forgets on purpose. Everything. It is listed under Context & memory and has 16 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | mlapeter |
| Repository | mlapeter/counterparts |
| Popularity | 16 GitHub stars |
| Category | Context & memory |
| Security | Review before installing (64/100) |
| Rank | #596 of 9,397 Claude Code mods; #61 in Context & memory |
| Last commit | 2026-11-30 |
| Hooks | 12 events |
| Sees | every prompt, every tool call |
| Draws on | PromptHint, AbovePrompt, Pane |
Is counterparts safe to install?
counterparts scores 64/100 on the MCPMods security check: Review before installing. Things to review: reads environment variables; watches every prompt or event. It passed 3 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.clock.every | |
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.fs.exists | reads files |
$.fs.read | reads files |
$.fs.stat | reads files |
$.prompt.fill | writes the prompt box |
$.prompt.read | |
$.prompt.submit | drives Claude |
$.session.id | |
$.session.turns | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.blit | draws interface |
$.ui.close | draws interface |
$.ui.invalidate | draws interface |
$.ui.open | draws interface |
$.ui.panes | draws interface |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
How do I install counterparts?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/mlapeter/counterparts claude plugin validate ./counterparts/.
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/mlapeter/counterparts && claude --plugin-dir ./counterparts/.
Or ask Claude to set it up
Paste this into Claude Code and it installs counterparts for you:
Install the "counterparts" Claude Code mod from https://github.com/mlapeter/counterparts. Run claude plugin validate on it first and show me what it can access before you enable it.