Smritea

Claude Code and Cursor plugin

Install the Smritea plugin to give Claude Code and Cursor persistent memory. It adds commands, a session hook and the MCP tools.

Ask AI about this page

The Smritea plugin gives an AI coding assistant memory that lasts across sessions. For Claude Code, it adds slash commands, a session-start hook, a skill and the MCP tools. For Cursor, it adds the MCP tools, a rule and a skill.

Claude installation

  1. Add the Smritea marketplace.

    /plugin marketplace add SmrutAI/smritea-plugin
  2. Install the plugin.

    /plugin install smritea@smritea
  3. Reload plugins.

    /reload-plugins
  4. Log in with /smritea:login. Then pick an app. You can run npx -y smritea-mcp configure in a terminal, or ask the assistant to use the list_apps and select_app tools. See MCP server.

Commands

The plugin adds four slash commands to Claude Code. The table says what each command does.

CommandWhat it does
/smritea:loginSigns you in through the browser.
/smritea:configRuns smritea-mcp configure, the setup wizard.
/smritea:add-memory <text>Stores the text as a memory, exactly as you typed it.
/smritea:recall <topic>Searches memories about the topic, up to 10 results, and summarizes them.

What the session hook does

When a Claude Code session starts, the plugin runs a hook. The hook searches your selected app for relevant memories and adds the top 10 to the session as context.

  • If you set a project name, the search keeps only memories with the same project_name metadata. The add_memory tool adds that metadata for you. A memory you added through an SDK or the API has no project_name, so the hook skips it.
  • If you have not selected an app, or you are not logged in, the hook prints a message that says what to run.
  • If the hook fails, it prints a warning. It never blocks your session.

Cursor installation

The Cursor package holds the MCP configuration, an always-on rule and a skill. The rule makes the assistant search memories at the start of each conversation.

Choose one way to install it:

  • On Teams or Enterprise, an admin imports https://github.com/SmrutAI/smritea-plugin as a team marketplace. Members then install smritea.
  • For a local copy, copy the cursor/ folder of the plugin repository to ~/.cursor/plugins/local/smritea. Then run Developer: Reload Window. On Teams or Enterprise, an admin must allow local plugin imports.

Cursor does not get the session-start hook or the slash commands. It relies on the rule to search memories. You also need to log in and pick an app. Run npx -y smritea-mcp login and npx -y smritea-mcp configure in a terminal.

Settings

The plugin reads the same files as the MCP server: ~/.smritea/settings.json and ~/.smritea/auth.json. It does not read environment variables. If your app is in India, set memory_base_url in settings.json. See Regions.

Last updated on