1 Install the CLI
Install the MindMeld CLI globally. This gives you the mindmeld command across all your projects.
2 Log in
Authenticate with your MindMeld account. This opens your browser for secure Cognito authentication and stores a session token locally.
Opening browser for authentication...
Authenticated as you@company.com
3 Initialize your project
Run mindmeld init in your project root. This analyzes your repository structure, detects your tech stack, and registers Claude Code hooks automatically.
mindmeld init
Analyzing repository structure...
Detected: TypeScript, React, AWS SAM, PostgreSQL
Registered hooks:
session-start → injects relevant standards into CLAUDE.md
pre-compact → captures patterns before context compaction
Ready. Start a Claude Code session to see it in action.
4 Start coding
That's it. Every time you start a Claude Code session, MindMeld automatically injects the 8-10 most relevant standards based on what you're working on. When context is compacted, it captures any new patterns your team discovers.
claude
MindMeld: Injected 9 standards (serverless-saas, security, database-patterns)
Session ready.
Switching Accounts
To switch between MindMeld accounts (e.g. personal vs work), log out and log back in:
Logged out successfully.
mindmeld login
Opening browser for authentication...
Authenticated as other@company.com
Use mindmeld status to check which account is currently active.
1 Create an API token
Go to your MindMeld dashboard and generate an API token. This token authenticates MCP requests from Claude Code to the MindMeld API.
open https://app.mindmeld.dev/api-tokens
Click Create Token, give it a name (e.g., "Claude Code - laptop"), and copy the token value.
2 Configure MCP server
Add the MindMeld MCP server to your Claude Code settings. Open or create .claude/settings.json in your project root and add the following:
Replace YOUR_TOKEN_HERE with the token you copied in Step 1.
3 Use MCP tools
With the MCP server configured, Claude Code gains two new tools you can invoke during your sessions:
mindmeld_init_session
Loaded 8 standards for: serverless-saas, database-patterns, security
# Record a correction or pattern discovered during coding
mindmeld_record_correction
Pattern recorded: "Always use executeQuery wrapper for DB calls"
Call mindmeld_init_session at the start of each session to pull in your team's standards. Use mindmeld_record_correction whenever you discover a pattern worth preserving for the team.
What happens in each session
Whether you use CLI hooks or MCP, here is what MindMeld does behind the scenes:
MindMeld analyzes your project context — tech stack, recent files,
current branch — and scores each standard for relevance.
# 2. Compact injection (~400 tokens)
Only the top 8-10 standards are injected, compressed to ~400 tokens.
Small enough to leave your context window free for actual work.
# 3. Standards maturity lifecycle
New patterns start as "emerging" and graduate to "established" as
your team validates them. Stale standards decay automatically.
Your knowledge base stays current without manual curation.
Setup guides for other tools
MindMeld works with all major AI coding assistants.