Integrations
Amp
Integrate memories.sh with Amp by Sourcegraph.
Amp is Sourcegraph's coding agent. It reads rules from .amp/rules/ and supports MCP servers for extended tool access.
Quick Setup
cd your-project
memories initThis automatically:
- Sets up your local memory store
- Configures MCP for supported tools
- Generates instruction files with your existing memories
Manual Setup
Option 1: Generated File
memories generate agentsThis creates the canonical .agents/ directory that Amp reads for project context.
Option 2: MCP Server
Add memories.sh to Amp's MCP configuration. Create or edit .amp/mcp.json:
{
"mcpServers": {
"memories": {
"command": "npx",
"args": ["-y", "@memories.sh/cli", "serve"]
}
}
}Recommended: Use Both
- Generated file — Provides instructions Amp always sees
- MCP server — Gives Amp live access to search, recall, and add memories
Syncing Amp Config
To sync your Amp configuration across machines:
# On your main machine
memories files ingest
# On a new machine
memories files apply --global --force