# AINL-Cortex

> For Claude Code users: AINL Cortex adds graph-native memory and self-learning to your AI coding assistant for smarter interactions.

Source: https://tools.launchllama.co/products/ainl-cortex
Markdown: https://tools.launchllama.co/products/ainl-cortex.md
Generated: 2026-11-19T18:29:06.770Z

## Facts

- **Name:** AINL-Cortex
- **Short description:** For Claude Code users: AINL Cortex adds graph-native memory and self-learning to your AI coding assistant for smarter interactions.
- **Website:** https://ainativelang.com/ainl-cortex
- **Categories:** Artificial Intelligence, Developer Tools, Open Source
- **Listing type:** community
- **Upvotes on Launch Llama:** 34
- **Listed since:** 2026-05-19
- **Featured (paid) listing:** no

## Full description

🌟 What is This?
AINL Cortex is a Claude Code plugin that transforms your AI coding assistant into a self-learning system that gets smarter with every interaction. It combines:

Graph-Native Memory - Persistent, queryable knowledge graph where execution history becomes searchable knowledge
Zero-LLM Learning - Learns your preferences and patterns without expensive LLM introspection
First-Class AINL Integration - Full support for AI Native Lang workflows with automatic optimization
Self-Improving System - Captures trajectories, learns from failures, and evolves with your coding style
Powered by: AI Native Lang (AINL) - The graph-canonical programming language designed for AI agents.

🎯 Key Innovation
Graph-as-Memory Paradigm: Every coding turn, tool invocation, and decision becomes a typed node in a persistent graph. The execution graph IS the memory—no separate retrieval layer needed. The system learns from patterns, evolves understanding, and prevents repeated mistakes, all without constant LLM overhead.

✨ Features at a Glance
Core Memory System
✅ Typed Graph Memory - Episode, Semantic, Procedural, Persona, and Failure nodes
✅ Per-Repo Project Isolation - Each git repo has its own memory bucket (toplevel-anchored), opt-out via memory.project_isolation_mode = "global" for back-compat
✅ Recall budget + hook metrics - Injected graph memory is char-capped (memory.recall_*); per-turn timings land in logs/hook_metrics.jsonl; repartition + integrity: scripts/repartition_by_repo.py, scripts/verify_repartition_integrity.py (see scripts/MIGRATION.md)
✅ Context-Aware Retrieval - Inject only relevant memories (ranked by confidence, recency, fitness)
✅ Graceful Degradation - Hooks never break Claude Code, even on errors
✅ Inspectable - CLI tools for debugging and exploration
Self-Learning Capabilities (New!)
🧠 Zero-LLM Persona Evolution - Learn preferences from metadata signals without asking
📊 Trajectory Capture - Complete execution traces for pattern analysis
🎯 Pattern Promotion - Successful workflows automatically become reusable patterns
⚠️ Failure Learning - Remember and prevent repeated errors
💡 Smart Suggestions - Context-aware recommendations based on history
🔄 Closed-Loop Validation - Proposals validated before adoption
🎨 Adaptive Compression - Learn optimal token savings per project
AINL Integration
🚀 AINL Language Support - Full integration with AINL workflows
💰 Cost Optimization - Auto-detects when to use .ainl for 90-95% token savings
🔍 Pattern Memory - Stores and recalls successful AINL workflows
⚡ Eco Mode - 40-70% token savings on memory context
🎯 Smart Detection - Automatically suggests AINL for recurring tasks
🔒 Security Analysis - Pre-run risk assessment for every workflow
📐 IR Diff - Compare two AINL workflow versions at the graph IR level
📚 Template Library - 6 ready-to-use workflows (API, monitor, pipeline, blockchain, LLM, multi-step)
A2A Multi-Agent Coordination
🤝 Agent Messaging - Send messages and tasks to any registered A2A agent (requires ArmaraOS daemon)
📝 Note to Self - Write a note that auto-surfaces in the next session's context (works without daemon)
👁️ Condition Monitors - Register file/URL watchers that push A2A notifications on trigger (requires ArmaraOS daemon)
⏳ Async Task Delegation - Delegate work with a2a_task_send; poll status with a2a_task_status (requires ArmaraOS daemon)
🔍 Agent Discovery - List and register agents in the ArmaraOS daemon network (requires ArmaraOS daemon)
💾 Graph-Backed History - Every message and task is stored as a typed node for replay and audit
Goal Tracking
🎯 Multi-Session Goals - Persistent objectives that survive session restarts and compaction
🔮 Auto-Inference - Goals auto-derived from episode clusters without manual setup
🔗 Episode Linking - New episodes automatically scored and linked to active goals
✅ Completion Tracking - Clear done states with achievement summaries
📋 Status Lifecycle - active → blocked → completed / abandoned with timestamped progress notes
Zero-Loss Context Compaction
🔐 PreCompact Flush - All buffered captures written to the graph DB before Claude compacts
📸 Anchored Summary - In-progress session state snapshotted so post-compaction context is accurate
🔄 PostCompact Sync - Anchored summary updated after compaction; next session sees correct state
🚫 No Silent Data Loss - Compaction can no longer silently discard unwritten memory
Notification Feed
🔔 Session-Start Polling - Fetches ainativelang.com/notifications once per session; zero latency on cache hit
👁️ Seen-ID Persistence - Already-shown notices are never repeated across sessions
🎯 Smart Filtering - Only surfaces notices targeting claude-code-plugin, ainativelang, ainl, or *; ignores expired entries
📢 Priority Ordering - High-priority notices appear first in the SessionStart banner
🔄 Optional Auto-Update - Can git pull --ff-only automatically when the server marks a release safe (opt-in)

## Notes for agents

- Generated on request from live Launch Llama data, so it is always current.
- Human page: https://tools.launchllama.co/products/ainl-cortex
- Site overview: https://tools.launchllama.co/llms.txt (long form: https://tools.launchllama.co/llms-full.txt)
- Every listing as markdown: https://tools.launchllama.co/catalog.md
- Search the catalog over MCP (https://tools.launchllama.co/mcp) or REST: https://tools.launchllama.co/developers
