Helix
Global convention memory for AI coding agents — persist your coding preferences once, surface them in every Claude Code, Cursor, Codex, Opencode, or other MCP-compatible session.
Install
# With uv (recommended)
uv tool install helix-memory
# Or with pip
pip install helix-memory
Later, run helix update to upgrade to the latest version — it re-runs
whichever of the two put it there.
Quick start
# 1. Hook Helix into your agent (Claude Code, Cursor, …).
helix install
# 2. Save your first convention. The name is derived from the body.
helix remember "Prefer Pydantic v2 for any external-boundary validation." -t python
From there, your next agent session will see the conventions automatically.
CLI
helix remember "<body>" [--name <name>] [--tags <comma,separated>]
helix list [--tags <tag>]
helix recall "<query>" [--tags <tag>]
helix edit <name> # open the convention in $EDITOR
helix forget <name>
helix install [--client <key>] [--scope global|project] [--yes]
helix uninstall [--yes]
helix serve # start the MCP server
helix version # print the installed version
helix update # upgrade the installed helix-memory package
helix sync init <remote-url> # configure a git remote for backup
helix sync push [--message <msg>] # commit and push local conventions
helix sync pull [--strategy keep-local|overwrite|rename-conflict] # merge in remote changes
helix sync clone <remote-url> [--strategy ...] # restore/merge conventions on a new host
remember takes the body three ways — as an argument, from stdin, or from $EDITOR:
helix remember "Always use async I/O." -t python
git log --format=%s -1 | helix remember -
helix remember # opens $EDITOR
The convention name is slugified from the body (always-use-async-i-o), with a
numeric suffix on collision. Pass --name to choose it yourself; an explicit
name overwrites any existing convention with that name.
install is scriptable, so it can live in a dotfiles bootstrap:
helix install --client claude --scope global --yes
Storage
Conventions live in ~/.dev_brain/ as plain markdown, one file per convention,
plus an INDEX.md. Point HELIX_BRAIN_DIR at a directory you already sync to
carry them between machines:
export HELIX_BRAIN_DIR=~/dotfiles/brain
Sync
For a first-class backup instead, point Helix at a dedicated git repository
(GitHub, GitLab, a private host — anything git push/git fetch can reach)
and it will manage the brain directory as a git repo for you:
# On your first machine
helix sync init git@github.com:you/helix-brain.git
helix sync push
# On any other machine
helix sync clone git@github.com:you/helix-brain.git
# Later, on either machine
helix sync push # back up local changes
helix sync pull # bring in changes made elsewhere
push commits and pushes anything new; pull/clone fetch the remote and
merge it into whatever conventions already exist locally, then regenerate
INDEX.md from the merged result. Conventions that only exist on one side are
kept automatically. When the same convention name has diverged on both sides,
--strategy controls what happens:
keep-local(default) — leave the local file untouched.overwrite— replace the local file with the remote version.rename-conflict— keep the local file and save the remote version alongside it as<name>-remote.md, so nothing is lost.
Sync uses your existing git/SSH credentials (or gh's), so it works with
whatever authentication you already have configured for the remote.
MCP server
helix serve starts a stdio MCP server that exposes four tools: remember, recall, list_conventions, forget.
helix install wires this up automatically for a supported client: it writes an
instructions snippet to the client's rules file (CLAUDE.md, AGENTS.md, or
.cursor/rules/helix.mdc), registers the MCP server, and — for Claude Code —
adds a SessionStart hook. Supported clients: Claude Code, Cursor,
Codex CLI, and Opencode. The sections below show the config helix install writes, for setting it up by hand.
Claude Code
helix install also writes a SessionStart hook, so the convention index is
injected into every session without the agent having to ask for it:
// ~/.claude/settings.json (global) or .claude/settings.json (project)
{
"hooks": {
"SessionStart": [
{
"matcher": "startup|resume|clear",
"hooks": [{ "type": "command", "command": "helix list" }]
}
]
}
}
Restart Claude Code after installing for the hook to take effect.
Project-scoped (recommended — one .mcp.json per repo):
// .mcp.json at the project root
{
"mcpServers": {
"helix": {
"command": "helix",
"args": ["serve"]
}
}
}
User-scoped (available in every project):
claude mcp add helix -- helix serve
Or edit ~/.claude.json manually:
{
"mcpServers": {
"helix": {
"command": "helix",
"args": ["serve"]
}
}
}
Cursor
Global (all projects):
// ~/.cursor/mcp.json
{
"mcpServers": {
"helix": {
"command": "helix",
"args": ["serve"]
}
}
}
Project-scoped:
// .cursor/mcp.json at the project root
{
"mcpServers": {
"helix": {
"command": "helix",
"args": ["serve"]
}
}
}
Codex CLI
Codex only supports a global MCP config, in TOML:
# ~/.codex/config.toml
[mcp_servers.helix]
command = "helix"
args = ["serve"]
Opencode
Global:
// ~/.config/opencode/opencode.json
{
"mcp": {
"helix": {
"type": "local",
"command": ["helix", "serve"],
"enabled": true
}
}
}
Project-scoped:
// opencode.json at the project root
{
"mcp": {
"helix": {
"type": "local",
"command": ["helix", "serve"],
"enabled": true
}
}
}
After adding the config, restart your client. Verify the server is visible: in Claude Code run /mcp, in Cursor open the MCP panel.
License
MIT
Metadata
Release files for helix-memory 10.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| helix_memory-10.0.1.tar.gz | 110.6 kB | With provenance | Details for helix_memory-10.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| helix_memory-10.0.1-py3-none-any.whl | Python 3 | none | any | Details for helix_memory-10.0.1-py3-none-any.whl |
Total release size: 142.7 kB
Release files / helix_memory-10.0.1.tar.gz
| Download URL | helix_memory-10.0.1.tar.gz |
|---|---|
| Size | 110.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4b20a8502de9f5db4410d13557f6d5dbd3798dd52518e2775fb01e64363ee3f
|
|
BLAKE2b-256 checksum How to use checksums |
4d157df96e3166bf3457fbed70c5a43712e2e7abbcea65384cb315c6d7036f55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency logRelease files / helix_memory-10.0.1-py3-none-any.whl
| Download URL | helix_memory-10.0.1-py3-none-any.whl |
|---|---|
| Size | 32.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c1ba123a8df36c7ceb5fb60d1dde51a5078483831f23271cdcc9840533cc06d2
|
|
BLAKE2b-256 checksum How to use checksums |
67b505a4e8315c5dd679f5f01ed04ce35f259a2b0ac18f4c5d77dc594f629536
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency logSecurity for helix-memory 10.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for helix_memory-10.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 6, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.