Логотип AXME Code

AXME Code

Організація
AxmeAI

Persistent memory, architectural decision enforcement, pre-execution safety hooks, and session handoff for Claude Code. MCP server plugin for AI coding agents.

ВидавецьAxmeAI
Репозиторійaxme-code
МоваTypeScript
Форки
2
Зірки
14
Доступні інструменти
0
Тип транспортуstdio
Категорії
ЛіцензіяMIT
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    AXME Code надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 0

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 14, форки: 2 — у пов’язаному репозиторії.

AXME Code

Claude Code forgets your project every session. We fixed it.

AXME Code is a Claude Code plugin that gives your AI coding agent persistent memory across sessions, pre-execution safety hooks, architectural decision enforcement, and structured session handoff — via an MCP server, automatically, across every session.

Stop re-explaining your architecture on session 47. Stop losing memory between session handoffs. Stop hoping the agent won't run git push --force to main. AXME Code remembers what happened, enforces your architectural decisions, continues where the last session stopped, and blocks dangerous commands before they execute — so you can focus on building.

You keep using Claude Code exactly as before. AXME Code works transparently in the background.

Alpha GitHub Release License: MIT Tests

⭐ Star this repo if it saves you time · 🔔 Watch releases for new features · 💬 Discussions

Quick Start · Before & After · How It Works · Architecture · Website


AXME Code demo

Before & After

Session 1: "We use FastAPI, not Flask. Deploy only via GitHub Actions. Never push to main directly."

Session 2: "Like I said yesterday, we use FastAPI..."

Session 7: "For the third time this week, we use FastAPI..."

Session 47: gives up, mass-pastes 200 lines into CLAUDE.md

Session 1: Agent learns your stack, saves decisions.

Session 2: Agent calls axme_context → already knows FastAPI, deploy rules, what happened yesterday.

Session 47: Agent has your full project history: 30 decisions, 15 memories, safety rules, and a handoff from session 46.

Agent runs git push --force to main. Your Friday is ruined.

Hook intercepts the command before execution and blocks it. Not a prompt — hard enforcement at the harness level.

Agent says "Done!" — but tests don't pass, half the code is stubbed, and the deploy is broken.

Decisions enforce verification requirements: agent must run tests and show proof before reporting completion.


Quick Start

AXME Code supports three IDE paths today, ranked by lowest install friction:

Option 0: Cursor extension (1-click install — recommended for Cursor users)

For Cursor 0.42+ users — install the AXME Code extension from the Extensions panel (Open VSX). The extension bundles the binary, registers the MCP server programmatically (no manual Enable click), installs user-level safety hooks at ~/.cursor/hooks.json (apply to every project on your machine), and offers a one-click "Run setup" notification the first time you open a project without .axme-code/.

Cursor → Extensions → search "AXME Code" → Install

Or sideload the .vsix attached to the latest release (Extensions → ... menu → "Install from VSIX...").

On first activation a modal asks for an LLM credential for the session auditor: paste an Anthropic API key, a Cursor SDK key (cursor.com → Integrations), or skip the auditor. If claude CLI is logged in (claude login), the extension auto-uses your Claude subscription — no paste needed.

Option 1: Claude Code plugin (recommended for Claude Code users)

In Claude Code, run:

/plugin marketplace add anthropics/claude-plugins-community
/plugin install axme-code@claude-community

Or from the terminal:

bash
claude plugin marketplace add anthropics/claude-plugins-community
claude plugin install axme-code@claude-community

The plugin ships with the MCP server, safety hooks, and CLI bundled together; no separate binary to install. On first use in a project, just ask the agent to call axme_context — the plugin auto-initializes the knowledge base on that session.

Option 2: Standalone binary

Install the CLI system-wide (useful if you want to run axme-code outside Claude Code, e.g. for scripting).

Linux / macOS:

bash
curl -fsSL https://raw.githubusercontent.com/AxmeAI/axme-code/main/install.sh | bash

Installs to ~/.local/bin/axme-code. Requires Node.js 20+ on PATH (the binary is a single-file Node bundle; the installer checks for it). Supports x64 and ARM64.

Windows (native):

powershell
irm https://raw.githubusercontent.com/AxmeAI/axme-code/main/install.ps1 | iex

Installs to %LOCALAPPDATA%\Programs\axme-code and adds it to your User PATH. Requires Node.js 20+ on PATH. Supports x64 and ARM64.

Windows via WSL2: if you already live in WSL2, use the Linux install one-liner inside your distro. Install Claude Code and axme-code inside the WSL distro, not on the Windows host.

Then in each project:

bash
cd your-project          # or workspace root for multi-repo
axme-code setup
claude                   # that's it — use Claude Code as usual

axme-code setup does three things:

  1. Scans your project and builds the knowledge base — oracle (stack, structure, patterns, glossary), extracts decisions, memories, and safety rules from your code, configs, CLAUDE.md, and session history
  2. Installs safety hooks that intercept dangerous commands before execution
  3. Configures the MCP server in Claude Code settings (.mcp.json)

After setup, every Claude Code session automatically loads the full knowledge base. No config, no manual steps.


What You Get

Persistent Knowledge Base

Your agent starts every session with full context: stack, decisions, patterns, glossary, and a handoff from the previous session. No more re-explaining your architecture on session 47.

CategoryWhat it storesExample
OracleProject structure, tech stack, coding patterns, glossary"TypeScript 5.9, Node 20, ESM, esbuild"
DecisionsArchitectural decisions with enforcement levels"All deploys via CI/CD only" [required]
MemoryFeedback from mistakes, validated patterns"Never use sync HTTP in async handlers"
SafetyProtected branches, denied commands, filesystem restrictionsgit push --force → BLOCKED
BacklogPersistent cross-session task tracking"B-003: migrate auth to OAuth2 [in-progress]"
HandoffWhere work stopped, blockers, next steps"PR #17 open, waiting on review. Next: fix flaky test."
WorklogSession history and eventsTimeline of all sessions and what was done

Safety Guardrails (100% Reliable)

Hooks intercept tool calls before execution — not prompts. Even if the agent hallucinates a reason to run rm -rf /, the hook blocks it. This is hard enforcement at the Claude Code harness level, not a suggestion in a system prompt.

Blocked by default:

  • git push --force, git reset --hard, direct push to main/master
  • rm -rf /, chmod 777, curl | sh
  • npm publish, git tag, gh release create
  • Writing to .env, .pem, .key files

You can add your own custom rules via axme_update_safety or by editing .axme-code/safety/rules.yaml directly.

Automatic Knowledge Extraction

The agent saves discoveries during work via MCP tools. At session close, a structured checklist ensures nothing is missed. If you just close the window — a background auditor extracts memories, decisions, and safety rules from the full session transcript.

Multi-Repo Workspaces

Each repo gets its own knowledge base (.axme-code/). Workspace-level rules apply to all repos. Repo-specific rules stay scoped. The agent sees merged context — workspace safety floor + repo-specific decisions.

Supports 14 workspace formats: VS Code multi-root, pnpm/npm/yarn workspaces, Nx, Gradle, Maven, Rush, git submodules, and more.

Why Not Just CLAUDE.md?

CLAUDE.md is great for simple projects with a few rules. But it doesn't scale:

CLAUDE.mdAXME Code
MemoryStatic, manualAutomatic, accumulates across sessions
DecisionsFlat text, no enforcementStructured, required/advisory levels
SafetyPrompt-based (~80% compliance)Hook-based (100% enforcement)
Session continuityNoneHandoff + background auditor
Scales to~50 linesHundreds of decisions, memories, rules

AXME Code complements CLAUDE.md — it reads your existing CLAUDE.md during setup and extracts decisions and rules from it.


Works With Any MCP Client

AXME Code is a stdio MCP server — every MCP-compatible AI coding assistant gets the full set of axme_* tools (knowledge base read/write, safety queries, status, worklog).

ClientMCP ToolsSafety HooksAuto Auditor
Claude Code (CLI / VS Code)✅ Full✅ Full✅ Yes
Cursor✅ Full❌❌
Windsurf✅ Full❌❌
Cline (VS Code)✅ Full❌❌
Claude Desktop✅ Full❌❌
Any other MCP client✅ Full❌❌

The MCP server entry is identical in every client:

json
{
  "mcpServers": {
    "axme": {
      "command": "axme-code",
      "args": ["serve"]
    }
  }
}

Just place it in your client's MCP config file:

  • Cursor: ~/.cursor/mcp.json or .cursor/mcp.json (per-project)
  • Windsurf: ~/.codeium/windsurf/mcp_config.json
  • Cline: VS Code Settings → Cline MCP → cline_mcp_settings.json
  • Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or equivalent

Pre-execution safety hooks, the post-tool-use file tracker, and the background session auditor are Claude Code-specific (they require Claude Code's hook system). In other clients, the agent must call AXME tools explicitly — same knowledge base, same .axme-code/ storage, just no automatic enforcement layer.

See docs/MULTI_CLIENT.md for full per-client setup, hook workarounds, and concurrent-client semantics.


Comparison

AXME CodeMemPalaceMastraZepMem0Supermemory
Capabilities
Structured decisions w/ enforce levels✅❌❌❌❌❌
Pre-execution safety hooks✅❌⚠️❌❌❌
Structured session handoff✅❌❌❌⚠️❌
Automatic knowledge extraction✅❌✅✅✅✅
Project oracle (codebase map)✅❌❌❌❌❌
Multi-repo workspace✅❌❌❌❌❌
Local-only storage✅✅✅❌❌❌
Semantic memory search✅✅✅✅✅✅
Multi-client support✅✅✅✅✅✅
Capabilities total9/93/94/93/93/93/9
Benchmarks
ToolEmu safety (accuracy)100.00%—————
ToolEmu safety (FPR)0.00%—————
LongMemEval E2E89.20%—84.23% / 94.87%71.20%49.00%85.40%
LongMemEval R@597.80%96.60%————
LongMemEval tokens/correct~10K ✓—~105K–119K~70K~31K~29K

Token efficiency

Token efficiency on LongMemEval

AXME uses ~10× fewer tokens per correct answer than Mastra at competitive accuracy. The memory system runs only 2 LLM calls per question (reader + judge) — competitors run dozens (Observer per turn, Reflector periodically, graph construction, fact extraction).

See benchmarks/README.md for full methodology, per-category breakdowns, footnotes, and reproduction instructions.


How It Works

AXME Code Architecture

Session Flow

  1. Session starts → agent calls axme_context, loads full knowledge base
  2. During work → agent saves discoveries via axme_save_memory, axme_save_decision. Hooks enforce safety on every tool call.
  3. Session close → ask your agent to close the session → agent calls axme_begin_close, gets a checklist. Reviews the session for missed memories, decisions, safety rules. Calls axme_finalize_close — MCP writes handoff, worklog, and extractions atomically.
  4. Fallback → if you just close the window, the background auditor extracts everything from the transcript.
  5. Next session → axme_context returns everything accumulated. Handoff says exactly where to continue.

Tip: You can save at any time — just tell the agent "remember this" or "save this as a decision". You don't have to wait for session close.


Storage

All data lives in .axme-code/ in your project root (gitignored automatically):

.axme-code/
  oracle/           # stack.md, structure.md, patterns.md, glossary.md
  decisions/        # D-001-slug.md ... D-NNN-slug.md (with enforce levels)
  memory/
    feedback/       # Learned mistakes and corrections
    patterns/       # Validated successful approaches
  safety/
    rules.yaml      # git + bash + filesystem guardrails
  backlog/          # B-001-slug.md ... persistent cross-session tasks
  sessions/         # Per-session meta.json (tracking, agentClosed flag)
  plans/
    handoff-<id>.md # Per-session handoff (last 5 kept)
  worklog.jsonl     # Structured event log
  worklog.md        # Narrative session summaries
  config.yaml       # Model settings, presets

Human-readable markdown and YAML. No database, no external dependencies.


AXME Platform

AXME Code is the developer tools layer of the AXME platform — durable execution infrastructure for AI agents.


AXME Code has three components:

1. MCP Server (persistent, runs while VS Code is open)

Provides tools for the agent to read and write the knowledge base. All writes go through MCP server code (atomicWrite, correct append) — the agent never writes storage files directly.

2. Hooks (fire on every tool call)

pre-tool-use: Checks every Bash command, git operation, and file access against safety rules. Blocks violations before execution. Also creates/recovers session tracking.

post-tool-use: Records which files the agent changed (for audit trail).

3. Background Auditor (runs after session close)

A detached process that reads the session transcript and catches anything the agent forgot to save. Two modes:

  • Full extraction — when the agent crashed or user closed without formal close
  • Verify-only — when the agent completed the close checklist (lighter, cheaper)
ToolDescription
axme_contextLoad full knowledge base (oracle + decisions + safety + memory + handoff)
axme_oracleShow oracle data (stack, structure, patterns, glossary)
axme_decisionsList active decisions with enforce levels
axme_memoriesShow all memories (feedback + patterns)
axme_save_decisionSave a new architectural decision
axme_save_memorySave feedback or pattern memory
axme_safetyShow current safety rules
axme_update_safetyAdd a new safety rule
axme_backlogList or read backlog items
axme_backlog_addAdd a new backlog item
axme_backlog_updateUpdate backlog item status, priority, or notes
axme_statusProject status (sessions, decisions count, last activity)
axme_worklogRecent worklog events
axme_workspaceList all repos in workspace
axme_begin_closeStart session close — returns extraction checklist
axme_finalize_closeFinalize close — writes handoff, worklog, extractions atomically
axme_ask_questionRecord a question for the user
axme_list_open_questionsList open questions from previous sessions
axme_answer_questionRecord the user's answer
bash
axme-code setup [path]       # Initialize project/workspace with LLM scan
axme-code serve              # Start MCP server (called by Claude Code automatically)
axme-code status [path]      # Show project status
axme-code stats [path]       # Worklog statistics (sessions, costs, safety blocks)
axme-code audit-kb [path]    # KB audit: dedup, conflicts, compaction
axme-code hook pre-tool-use  # PreToolUse hook handler (called by Claude Code)
axme-code hook post-tool-use # PostToolUse hook handler
axme-code hook session-end   # SessionEnd hook handler
axme-code audit-session      # Run LLM audit on a session transcript

During axme-code setup, preset bundles provide curated best-practice rules:

PresetWhat it adds
essential-safetyProtected branches, no secrets in git, no force push, fail loudly
ai-agent-guardrailsVerification requirements, no autonomous deploys, proof before done

Additional presets available: production-ready, team-collaboration.


axme-code sends anonymous usage telemetry to help us improve the product. We collect:

  • Lifecycle events: install, startup, version update
  • Product health events: setup completion, audit completion (counts of memories/decisions/safety extracted, duration, cost, error class)
  • Errors: category and bounded error class for failures in audit, setup, hooks, and auto-update

What we never send:

  • Hostnames, usernames, file paths, working directories
  • Source code, transcripts, decisions, memories, or any project content
  • IP addresses (stripped at the server)
  • Raw exception messages (we map to a small set of error classes)

Each install gets a random 64-character machine ID stored in ~/.local/share/axme-code/machine-id. The ID is not derived from hardware and cannot be linked back to you.

To disable telemetry, set either of these environment variables:

bash
export AXME_TELEMETRY_DISABLED=1
# or the industry-standard:
export DO_NOT_TRACK=1

When disabled, no network requests are made and no machine ID is generated.


Contributing

See CONTRIBUTING.md for guidelines.

License

MIT


Website · Issues · Architecture · contact@axme.ai

Використовуйте MCP AXME Code з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення AXME Code ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте AXME Code як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP AXME Code.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "axme-code": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для AXME Code, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для AXME Code.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через AXME Code?
AXME Code
Звісно. Я це прочитав.
Ось що я знайшов за допомогою AXME Code.

Поширені запитання

Для чого використовується сервер MCP AXME Code?

AXME Code — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP AXME Code з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати AXME Code з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP AXME Code із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши AXME Code, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP AXME Code до TypingMind?

AXME Code працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP AXME Code у TypingMind?

AXME Code надає можливості MCP, які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP AXME Code?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо AXME Code потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇