explaingit

sbhooley/ainl-cortex

Analysis updated 2026-05-18

2PythonAudience · developerComplexity · 3/5Setup · easy

TLDR

A Claude Code plugin that adds persistent memory across sessions by storing coding interactions in a knowledge graph and injecting relevant memories automatically.

Mindmap

mindmap
  root((AINL Cortex))
    What it does
      Persistent memory
      Self-learning patterns
      Multi-agent coordination
    Tech stack
      Python
      Claude Code plugin
      Knowledge graph
    Use cases
      Remember past sessions
      Track goals over time
      Cross-session notes
    Audience
      Claude Code users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Give Claude Code memory of past sessions, decisions, and mistakes to avoid repeating

USE CASE 2

Automatically promote recurring successful workflows into reusable knowledge

USE CASE 3

Persist goals across restarts so new sessions pick up where you left off

USE CASE 4

Coordinate tasks between Claude Code and other registered AI agents

What is it built with?

PythonClaude Code

How does it compare?

sbhooley/ainl-cortex0-bingwu-0/live-interpreter0xkaz/llm-governance-dashboard
Stars222
LanguagePythonPythonPython
Setup difficultyeasymoderatehard
Complexity3/52/54/5
Audiencedevelopergeneralops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Two-step install, degrades gracefully on errors without breaking base Claude Code.

In plain English

AINL Cortex is a Claude Code plugin that adds persistent memory and self-learning capabilities to the AI coding assistant. By default, Claude Code starts each session fresh with no memory of previous work. AINL Cortex solves this by storing every coding interaction, tool calls, decisions, errors, and outcomes, as typed nodes in a persistent knowledge graph. When a new session begins, the plugin retrieves the most relevant memories and injects them into context automatically, giving the assistant awareness of past work, your coding preferences, and previous mistakes to avoid repeating. The self-learning side works without making additional calls to a language model. Instead, it monitors patterns in your usage, successful workflows, recurring tasks, and failure modes, and promotes them into reusable knowledge over time. Goals set in one session persist across restarts and are automatically linked to new work as it progresses. The plugin also includes multi-agent coordination, allowing Claude Code to pass messages and tasks to other registered AI agents, and a mechanism for leaving yourself notes that surface at the start of the next session. A compaction safety feature ensures that when Claude Code summarizes a long session to free up context space, no buffered memory is silently lost before that summary is written. Installation is a two-step process, and the plugin is designed to degrade gracefully on errors, it never breaks the base Claude Code tool. It is built in Python and integrates with the AI Native Lang workflow system for additional token-saving optimizations. The full README is longer than what was provided.

Copy-paste prompts

Prompt 1
Help me install AINL Cortex to add persistent memory to my Claude Code sessions
Prompt 2
Explain how AINL Cortex's knowledge graph stores past coding interactions
Prompt 3
Show me how AINL Cortex's self-learning promotes recurring patterns without extra model calls
Prompt 4
How does AINL Cortex protect memory from being lost during context compaction?

Frequently asked questions

What is ainl-cortex?

A Claude Code plugin that adds persistent memory across sessions by storing coding interactions in a knowledge graph and injecting relevant memories automatically.

What language is ainl-cortex written in?

Mainly Python. The stack also includes Python, Claude Code.

How hard is ainl-cortex to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is ainl-cortex for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.