The Mash plugin for Claude Code, Codex, Copilot, OpenCode, Antigravity and Cursor
このコンテンツはまだ日本語訳がありません。
The Mash plugin lets Claude Code, Codex, GitHub Copilot CLI, OpenCode, Antigravity, or Cursor look up previous work as you chat, save a decision when you ask, and open the Mash dashboard. It adds skills and hooks. Mash’s MCP server gives the agent the search tools those skills use. You can also use MCP on its own and ask the agent to search with Mash.
- Already using the Mash dashboard or terminal? Connect your agent without indexing again. Setup installs the plugin for agents it connects.
- Already installed the plugin from your agent’s marketplace? Finish setup in the agent.
- Starting from scratch? Follow the quick start, or install the plugin first and let your agent walk you through setup.
Install the plugin
Section titled “Install the plugin”
Installation needs internet access. The hooks need Python 3.9 or later
(python3, python, or the Windows py launcher).
Start with the plugin
Section titled “Start with the plugin”Run the two terminal commands for your agent. If you already added the Mash marketplace, use the second command.
Claude Code
Section titled “Claude Code”claude plugin marketplace add mashhq/mashclaude plugin install mash@mashcodex plugin marketplace add mashhq/mashcodex plugin add mash@mashInstall in GitHub Copilot CLI
Section titled “Install in GitHub Copilot CLI”copilot plugin marketplace add mashhq/mashcopilot plugin install mash@mashFinish setup in the agent
Section titled “Finish setup in the agent”Start a new session. In Claude Code, run /mash:setup. In Codex or Copilot,
say “Use the Mash setup skill to set up Mash on this computer.” The agent
reviews what will be installed and which chats to index with you, then shows
you how to open the dashboard. Agent connections are optional. If you choose
to connect Copilot CLI with Mash v0.1.1-alpha or earlier, complete the Copilot connection
after setup.
If you connected an agent, restart it and ask “Use Mash to find an earlier chat
about authentication. Show me the message behind the answer.” Use a topic you
have discussed before. To turn on the Codex hooks, open /hooks in Codex and review
and trust Mash’s hooks. Check a connection
if the agent cannot find Mash.
Skills and commands
Section titled “Skills and commands”| Skill | In Claude Code | In Codex | What it does |
|---|---|---|---|
setup |
/mash:setup |
pick the setup skill, or ask “Set up Mash on this machine” |
Installs Mash with your approval, connects your history, and checks that you can find an earlier conversation. |
remember |
/mash:remember what to keep |
pick the remember skill, or say “remember this” |
Saves a decision, preference or note to memory, with your words as the evidence. With nothing after it, saves the latest decision in the conversation. |
note |
/mash:note what to keep |
pick the note skill, or say “note that…” |
Saves a note to memory: something worth keeping that isn’t a decision or a preference, such as where a service runs. |
resume |
/mash:resume |
pick the resume skill, or ask “where did we leave off?” |
Reads this project’s most recent chats, from every agent and machine, and tells you what was in progress, what was left open and what was decided. |
handoff |
/mash:handoff |
pick the handoff skill, or say “hand this off” |
Writes a brief of the session into the conversation: goal, what is done, what is half done, decisions and the next step. resume finds it from any agent or machine once the chat is indexed. |
recall |
/mash:recall a topic |
pick the recall skill, or ask “what does Mash remember about…?” |
Shows the memory records for a topic or this project, with where each came from. It tells you when records need review. |
review |
/mash:review |
pick the review skill, or say “review Mash memory” |
Goes through the memory records that need a decision from you, a few at a time: ones an agent saved without your confirmation, stale ones and conflicting pairs. You keep, fix, withdraw, remove or skip each. |
forget |
/mash:forget what to remove |
pick the forget skill, or ask explicitly to forget or delete something Mash stored |
Finds one memory record or indexed chat, shows exactly what would go, and removes it only after you say yes. Offers to correct a wrong record instead of deleting it. |
standup |
/mash:standup, or /mash:standup this week |
pick the standup skill, or ask “what did I work on yesterday?” |
Summarises your work over a period, grouped by project, across agents and machines. With nothing after it, covers the previous working day. |
export |
/mash:export, or /mash:export a chat |
pick the export skill, or say “export this chat” |
Opens the dashboard on the chat, where the Export menu saves it as Markdown, HTML or PDF. Can write a Markdown file itself if you ask for that. |
status |
/mash:status |
pick the status skill, or ask “is Mash working?” |
A plain-language check of the index, search, agent connections and your other machines, with the one next step when something is off. |
dashboard |
/mash:dashboard |
pick the dashboard skill, or say “open the Mash dashboard” |
Finds the running dashboard, or starts one, and opens it in your browser. Ask for “this chat” to land on the current conversation. |
mash-history |
/mash:mash-history, or just ask |
pick the mash-history skill, or just ask |
Searches your past chats and answers with the messages behind the result. The agent also uses it unprompted when you refer to earlier work. |
GitHub Copilot CLI loads the same skills. There, name the skill or ask
in plain words. In OpenCode, Antigravity and
Cursor each skill has a mash- prefix: mash-remember,
mash-status, and so on.
You do not need the commands for everyday use. Ask in plain words:
- “What did we decide about the database migration?”
- “Find the chat where we set up deployment.”
- “Remember that we deploy from
mainonly.” - “Open the Mash dashboard.”
- “Where did we leave off on this project?”
- “What does Mash remember about deployment?”
- “That memory about the staging URL is wrong, fix it.”
After saving, the agent confirms the statement it saved. It refuses to save
credentials and tokens. Removing is permanent: forget handles one record or
chat at a time and always shows it and asks first.
What happens without asking
Section titled “What happens without asking”| When | What the plugin does | Turn it off |
|---|---|---|
| A session starts | Shows the agent this project’s saved records and recent chats, and starts a background mash index at most once every ten minutes |
MASH_AUTO_INDEX=off stops the indexing. MASH_RECORD_RECALL=off stops the saved records in session and file hints. Chat hints still appear. |
| You send a message that looks back at earlier work, or names something the conversation has not mentioned | Reminds the agent to search Mash before guessing | MASH_PROMPT_RECALL=off |
| You state a lasting decision or preference | Reminds the agent how to save it. A session that runs long without saving anything gets one reminder at most every fifteen minutes | MASH_RECORD_CAPTURE=off |
| The agent reads a file in the project | Shows records and earlier chats about that file, once per file and session | MASH_FILE_RECALL=off |
In Copilot CLI, OpenCode and Antigravity the note about a file arrives with what the agent read, just after the read, not before it. Cursor gets no reminders with your messages.
Set a switch in the environment the agent starts in. Every hook does nothing, silently, when Mash is missing, not set up, or slow to answer, so it never blocks the agent. The hooks call Mash on your machine. Excerpts they show at session start or on file reads enter the agent’s context, which it can send to its model provider. Enabled hooks can run without an MCP connection. For dashboard or terminal use only, remove any installed Mash plugin and disconnect the agent. When history can leave your machine
Update or remove the plugin
Section titled “Update or remove the plugin”The plugin and the mash program are released together. A marketplace can
offer a newer plugin before the matching binary is published. Run
mash status --installation to see which component needs an update. A
newer plugin can work with the current binary when its tool contract and
other installation checks match. Start a new session after an update.
To remove the plugin, run the command for your agent.
claude plugin uninstall mash@mashcodex plugin remove mash@mashcopilot plugin uninstall mash@mashFor OpenCode, rerun mash init to update the plugin, and
remove it with OpenCode’s own command. For Antigravity, rerun mash init to update
it, and remove it with agy plugin uninstall mash. For Cursor, rerun
mash init to update it, and remove it by deleting
its folder.
To remove the search tools too, disconnect the agent.
GitHub Copilot CLI
Section titled “GitHub Copilot CLI”Mash 0.2.0 and later connect GitHub Copilot CLI from mash init when
copilot is on your PATH. In v0.1.1-alpha and earlier, Mash can read
Copilot’s saved chats, and you can manually give Copilot access to Mash search.
After setting up Mash, register its tools from a
terminal.
copilot mcp add mash -- mash mcpIf Copilot cannot find mash, replace the executable after -- with the
quoted full path to your installation. Optionally install the Copilot plugin
for skills and hooks. Open a new Copilot session and ask it to use Mash to
find an earlier chat. copilot mcp list shows mash, and copilot plugin list
shows mash@mash if you installed the plugin.
In v0.1.1-alpha and earlier, remove the Copilot connection before uninstalling Mash. If you installed the plugin, run its removal command too.
copilot plugin uninstall mash@mashcopilot mcp remove mash- Copilot keeps these in
~/.copilot(or the directoryCOPILOT_HOMEnames): the tools inmcp-config.json, the installed plugin inconfig.jsonandinstalled-plugins. mash init --backfill-memorydoes not accept Copilot. Reviewing old chats that way would spend your premium requests, so only Claude Code and Codex are offered for it.- Saving to memory from a Copilot session needs a
mashthat can read Copilot’s running session.mash --version-infolistscopilotundersession_citationswhen it can; with an oldermashthe plugin recalls but does not ask Copilot to save. - On Windows the Copilot hooks run through PowerShell and call
python. The hooks have no recorded Windows verification yet.
OpenCode
Section titled “OpenCode”Mash 0.3.3 and later connect OpenCode 2 or later from mash init when
opencode is on your PATH. OpenCode installs plugins as packages, so the
plugin comes in two parts:
mash initwrites~/.mash/plugin/opencode, which holds the skills and the recall scripts, so they match yourmash. Rerunmash initafter upgrading Mash to refresh it;mash status --installationsays when it is out of date.- It has OpenCode install a small package that runs them, with
opencode plugin add 'github:mashhq/mash#main::path:plugins/mash/opencode'. This step needs network access and Git. OpenCode keeps that package up to date itself.mash init --marketplace OWNER/REPOinstalls it from a fork. - It registers the search tools with
opencode mcp add --global mash. Both commands edit OpenCode’s own config,~/.config/opencode/opencode.jsonoropencode.jsonc.
What to expect:
- Skills have a
mash-prefix, because OpenCode lists skills by bare name:mash-remember,mash-recall,mash-status, andmash-historyas elsewhere. Pick one or ask in plain words. - Session, prompt and file-read recall work as in the table above. Your message is saved as you wrote it; recall is given to the agent beside it. The hooks need Python 3.9 or later and are untested on Windows.
- The plugin recalls but does not ask OpenCode to save to
memory unprompted:
mashcannot yet check a quote against a running OpenCode session. You can still ask it to remember something once the chat is indexed. mash init --backfill-memorydoes not accept OpenCode.- OpenCode 1 gets the search tools only. It had another plugin API, for
which Mash has no plugin:
mash initregisters the tools and says to upgrade OpenCode.
To disconnect, run opencode plugin list and pass the source it shows for
mash to opencode plugin remove. OpenCode has no command that removes a
server: delete the "mash" entry under "mcp", "servers" in its config
file. mash uninstall removes the folder Mash wrote and
names those two steps; it never edits OpenCode’s file.
Antigravity
Section titled “Antigravity”Mash 0.3.3 and later connect Antigravity from mash init when its
command-line program, agy, is on your PATH. The Antigravity app and IDE
do not include agy: install the Antigravity CLI first, or mash init will
not offer Antigravity. The plugin comes with mash itself and needs no
network access:
mash initregisters the search tools withagy mcp add mash. It writes the plugin to~/.mash/plugin/antigravityand runsagy plugin installon that folder, which copies it to~/.gemini/config/plugins/mash. Antigravity loads the copy.- Rerun
mash initafter upgrading Mash: it hasagyinstall the newer plugin over the copy.mash status --installationsays when the copy is out of date, and when you have turned it off withagy plugin disable mash. - Skills have a
mash-prefix, because Antigravity lists a plugin’s skills by bare name:mash-remember,mash-recall,mash-status, andmash-historyas elsewhere. Pick one or ask in plain words. - Session, prompt and file-read recall work in the Antigravity CLI. They
were checked with
agy1.5.19 in sessions with Gemini. The note about a file arrives just after the read, before the agent’s next step. In the Antigravity app and IDE they are untested, and may add nothing there. The search tools and skills do not depend on them. The hooks need Python 3.9 or later. - The plugin does not ask Antigravity to save to memory
unprompted:
mashcannot yet check a quote against a running Antigravity session. You can still ask it to remember something once the chat is indexed. mash init --backfill-memorydoes not accept Antigravity.
To disconnect, run Antigravity’s own commands, as
mash uninstall does:
agy mcp remove mashagy plugin uninstall mashCursor
Section titled “Cursor”Mash 0.3.3 and later connect Cursor from mash init when Cursor is on
the machine: its CLI (cursor-agent) or the editor’s cursor command is on
your PATH, or ~/.cursor exists. No command-line program is needed.
Cursor is the one agent whose own files Mash writes. Every other agent is
connected through that agent’s own commands, but Cursor’s CLI has no command
that adds an MCP server and none that installs a plugin. So mash init
writes exactly two things in ~/.cursor, and nothing else there:
- A
mashentry undermcpServersin~/.cursor/mcp.json, which runs the search tools. Mash creates the file if there is none. Every other server and setting in it stays exactly as written. If the file is not valid JSON, Mash does not touch it and tells you; fix the file and rerunmash init. - The folder
~/.cursor/plugins/local/mash, Cursor’s place for a local plugin. It is a copy of~/.mash/plugin/cursor, which comes withmashitself and needs no network access. Mash replaces only that folder.
What to expect:
- Cursor may show the
mashserver as needing approval. Whencursor-agentis installed,mash initrunscursor-agent mcp enable mashfor you. If that fails, for example because you are signed out, or you have no CLI, run it yourself or approvemashin Cursor’s settings. Mash cannot see what you have approved, somash status --installationrepeats this advice. - Rerun
mash initafter upgrading Mash: it replaces the folder with the newer plugin.mash status --installationsays when the copy is out of date. - Skills have a
mash-prefix:mash-remember,mash-recall,mash-status, andmash-historyas elsewhere. Pick one or ask in plain words. - Session and file-read recall work in Cursor’s CLI (
cursor-agent), where they and the skills were checked in live sessions. The same folder is where the Cursor editor looks for a local plugin, but the editor itself has not been checked. The search tools do not depend on either. The hooks need Python 3.9 or later. - There are no reminders with your messages: Cursor’s hook for a submitted prompt cannot add anything to it.
- The plugin does not ask Cursor to save to memory unprompted:
mashcannot yet check a quote against a running Cursor session. You can still ask it to remember something once the chat is indexed. mash init --backfill-memorydoes not accept Cursor.
If you also use Mash’s Claude Code plugin, Cursor may show Mash’s skills and
recall twice. By default Cursor imports Claude Code’s plugins, skills and
hooks from ~/.claude. To stop that, turn off Include Third-Party Plugins,
Skills, and Other Configs under Cursor Settings → Agents → Third-Party
Imports. That switch covers everything Cursor imports from other agents, not
only Mash.
To disconnect, delete the "mash" entry under "mcpServers" in
~/.cursor/mcp.json and the folder ~/.cursor/plugins/local/mash.
mash uninstall deletes both for you. It keeps the file,
with an empty mcpServers when Mash’s was the only server.
Check that it is working
Section titled “Check that it is working”mash status --installationEach agent’s connection is full when the tools and plugin are both in
place, and mcp-only when only the tools are connected. next_action gives
the next step when an integration needs attention. For Copilot in v0.1.1-alpha and
earlier, use Copilot’s own checks.
Use Mash with your agent