Skip to main content

Claude Code + Novyx

Two tools for Claude Code: novyx-mcp gives your agents persistent memory, and novyx-hygiene keeps your sessions alive across /compact, /clear, and restarts.

Novyx MCP Server — Persistent Memory

Add persistent memory to Claude Code via the MCP protocol. One command to install, 107 tools available immediately.

Install

claude mcp add novyx-memory -- uvx novyx-mcp

Or add to ~/.claude/mcp.json manually:

{
"mcpServers": {
"novyx-memory": {
"command": "uvx",
"args": ["novyx-mcp"]
}
}
}

Local-First Mode (No API Key)

By default, novyx-mcp uses a local SQLite database at ~/.novyx/local.db. No signup, no API key, no network calls. Memory works instantly.

Cloud Mode (API Key)

Set NOVYX_API_KEY to enable cloud sync, audit trails, rollback, and sharing across machines:

{
"mcpServers": {
"novyx-memory": {
"command": "uvx",
"args": ["novyx-mcp"],
"env": {
"NOVYX_API_KEY": "nram_your_key_here"
}
}
}
}

Get a free API key at novyxlabs.com (5,000 memories, no credit card).

Available Tools (64)

ToolWhat It Does
rememberStore a memory with optional tags, importance, source
recallSemantic search across all memories
forgetDelete a memory by ID
list_memoriesList memories with filtering
rollbackUndo a memory operation with cryptographic proof
auditView the audit trail for any memory
add_tripleAdd a knowledge graph triple (subject-predicate-object)
query_triplesQuery the knowledge graph
link_memoriesCreate semantic links between memories
create_spaceCreate a context space for organizing memories
share_spaceShare a context space with another user
cortex_runRun autonomous memory maintenance
cortex_insightsGet AI-generated insights from memory patterns
replay_timelineView memory timeline for time-travel debugging
replay_snapshotPoint-in-time snapshot of memory state
replay_diffCompare memory state between two points
replay_lifecycleTrack a single memory's full history
memory_statsUsage statistics
And more...107 tools total

Shared Memory Across Agents

When multiple Claude Code agents share the same API key, they share memory. Agent 1 stores context, Agent 2 can recall it — even in different sessions. This is how Blake Heron (Novyx founder) runs 6+ parallel Claude Code agents as a coordinated team.


Novyx Hygiene — Automatic Context Persistence

The problem: Context fills up. You /compact or /clear. Now Claude has amnesia. The manual workaround is export → clear → paste → re-establish. Every time.

Novyx Hygiene makes this automatic.

Install

pip install novyx-hygiene
hygiene install

That's it. From now on:

  1. Before /compact: Hygiene auto-saves your session (task, decisions, files, git state)
  2. After compact/clear/resume: Hygiene injects your context back into Claude automatically
  3. On disk: A .claude/hygiene.md file keeps Claude oriented between sessions

No commands to remember. No context to paste. Claude just knows where you left off.

Commands

hygiene install              # Wire up Claude Code hooks (run once)
hygiene install --user # Install for all projects
hygiene save <task> # Manually save session state
hygiene resume # Print most recent session context
hygiene score # Check context health (A-F grade)
hygiene list # List all saved sessions
hygiene config set api_key X # Enable cloud sync (optional)
hygiene uninstall # Remove hooks

What Gets Saved

Every session snapshot captures:

  • Task description — what you're working on
  • Key decisions — architectural choices, tradeoffs
  • Status — where you left off
  • Git state — branch, modified/staged/untracked files, recent commits
  • Working directory — so you resume in the right place
  • Timestamp — for freshness scoring

Context Health Scoring

$ hygiene score
Context Health: B (80/100)
========================================

Issues:
- 12 files in flight
- Changes span 5 top-level directories — possible mixed concerns

Tips:
- Consider committing completed work before continuing
- Consider splitting into focused sessions

How Hooks Work

After hygiene install, your .claude/settings.local.json gets:

{
"hooks": {
"PreCompact": [
{ "hooks": [{ "type": "command", "command": "hygiene save --auto --quiet", "timeout": 10 }] }
],
"SessionStart": [
{ "matcher": "compact", "hooks": [{ "type": "command", "command": "hygiene inject", "timeout": 5 }] },
{ "matcher": "clear", "hooks": [{ "type": "command", "command": "hygiene inject", "timeout": 5 }] },
{ "matcher": "resume", "hooks": [{ "type": "command", "command": "hygiene inject", "timeout": 5 }] }
]
}
}
  • PreCompact runs before compaction, capturing your current state
  • SessionStart runs after compact/clear/resume, injecting your last session context
  • Hooks are additive — they won't overwrite your existing hooks

Cloud Sync (Optional)

By default, sessions are saved locally to ~/.novyx_hygiene/sessions/. Add a Novyx API key for cloud persistence and cross-machine sync:

pip install novyx-hygiene[novyx]
hygiene config set api_key nram_your_key_here

Using Both Together

The best setup uses both:

  • novyx-mcp for persistent memory (what your agents know)
  • novyx-hygiene for session persistence (where you left off)
# Install MCP server for persistent memory
claude mcp add novyx-memory -- uvx novyx-mcp

# Install Hygiene for session persistence
pip install novyx-hygiene
hygiene install

Memory persists across agents. Sessions persist across compactions. Nothing gets lost.