コンテンツにスキップ
mashドキュメント
Download for Mac

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.

Installation needs internet access. The hooks need Python 3.9 or later (python3, python, or the Windows py launcher).

Run the two terminal commands for your agent. If you already added the Mash marketplace, use the second command.

Terminal window
claude plugin marketplace add mashhq/mash
claude plugin install mash@mash
Terminal window
codex plugin marketplace add mashhq/mash
codex plugin add mash@mash
Terminal window
copilot plugin marketplace add mashhq/mash
copilot plugin install mash@mash

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.

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 main only.”
  • “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.

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

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.

Terminal window
claude plugin uninstall mash@mash
codex plugin remove mash@mash
copilot plugin uninstall mash@mash

For 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.

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.

Terminal window
copilot mcp add mash -- mash mcp

If 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.

Terminal window
copilot plugin uninstall mash@mash
copilot mcp remove mash
  • Copilot keeps these in ~/.copilot (or the directory COPILOT_HOME names): the tools in mcp-config.json, the installed plugin in config.json and installed-plugins.
  • mash init --backfill-memory does 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 mash that can read Copilot’s running session. mash --version-info lists copilot under session_citations when it can; with an older mash the 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.

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 init writes ~/.mash/plugin/opencode, which holds the skills and the recall scripts, so they match your mash. Rerun mash init after upgrading Mash to refresh it; mash status --installation says 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/REPO installs 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.json or opencode.jsonc.

What to expect:

  • Skills have a mash- prefix, because OpenCode lists skills by bare name: mash-remember, mash-recall, mash-status, and mash-history as 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: mash cannot 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-memory does not accept OpenCode.
  • OpenCode 1 gets the search tools only. It had another plugin API, for which Mash has no plugin: mash init registers 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.

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 init registers the search tools with agy mcp add mash. It writes the plugin to ~/.mash/plugin/antigravity and runs agy plugin install on that folder, which copies it to ~/.gemini/config/plugins/mash. Antigravity loads the copy.
  • Rerun mash init after upgrading Mash: it has agy install the newer plugin over the copy. mash status --installation says when the copy is out of date, and when you have turned it off with agy plugin disable mash.
  • Skills have a mash- prefix, because Antigravity lists a plugin’s skills by bare name: mash-remember, mash-recall, mash-status, and mash-history as elsewhere. Pick one or ask in plain words.
  • Session, prompt and file-read recall work in the Antigravity CLI. They were checked with agy 1.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: mash cannot 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-memory does not accept Antigravity.

To disconnect, run Antigravity’s own commands, as mash uninstall does:

Terminal window
agy mcp remove mash
agy plugin uninstall mash

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 mash entry under mcpServers in ~/.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 rerun mash init.
  • The folder ~/.cursor/plugins/local/mash, Cursor’s place for a local plugin. It is a copy of ~/.mash/plugin/cursor, which comes with mash itself and needs no network access. Mash replaces only that folder.

What to expect:

  • Cursor may show the mash server as needing approval. When cursor-agent is installed, mash init runs cursor-agent mcp enable mash for you. If that fails, for example because you are signed out, or you have no CLI, run it yourself or approve mash in Cursor’s settings. Mash cannot see what you have approved, so mash status --installation repeats this advice.
  • Rerun mash init after upgrading Mash: it replaces the folder with the newer plugin. mash status --installation says when the copy is out of date.
  • Skills have a mash- prefix: mash-remember, mash-recall, mash-status, and mash-history as 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: mash cannot 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-memory does 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.

Terminal window
mash status --installation

Each 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