agentbrain

๐Ÿง  Brain-inspired cognitive architecture plugin for AI agents โ€” persistent memory, evolving personality, neurochemistry-driven mood, learning from mistakes. Fully local on OpenClaw.

106
Stars
98
Forks
TypeScript
Language
8/24/2026
Added
View on GitHubDownload ZIP

โš ๏ธ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/LightHaru/agentbrain

Getting Started

Guides for using skills like agentbrain.

Security Report

Verified

Last scanned: โ€”

{
  "status": "PASSED",
  "issues": []
}

README.md

AgentBrain โ€” Brain-Inspired Cognitive Architecture for AI Agents

๐Ÿง  AgentBrain

Give your AI agent a brain.
Memory that persists. Personality that evolves. Emotions that feel real.
All running locally, with zero extra token cost.

npm version Build ClawHub GitHub stars License

Why? โ€ข Quick Start โ€ข Features โ€ข Architecture โ€ข Docs โ€ข ๐Ÿ‡ป๐Ÿ‡ณ Tiแบฟng Viแป‡t


๐ŸŽฏ Why AgentBrain?

Most AI agents are amnesiacs. They forget who you are between conversations, repeat mistakes you already corrected, and respond with the same flat tone whether you just shipped a release or lost a week of work.

AgentBrain fixes that. It gives your agent:

  • ๐Ÿง  Persistent memory โ€” remembers conversations, facts, and corrections permanently
  • ๐ŸŽญ Evolving personality โ€” traits like warmth and directness adapt based on interactions
  • ๐Ÿ’ญ Emotional awareness โ€” tracks mood, builds trust, reads the room
  • ๐Ÿงช Neurochemistry โ€” dopamine/serotonin/cortisol give emotions real momentum
  • ๐Ÿ“š Learning from mistakes โ€” "don't do X" is remembered forever, not repeated next turn
  • ๐Ÿ”ฎ Proactive suggestions โ€” surfaces helpful actions based on observed patterns

Before vs After

Without AgentBrain                    With AgentBrain
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€                 โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
"Who are you again?"              โ†’   "Welcome back! Last time we were
                                      debugging the deploy script."

Repeats corrected mistake         โ†’   "Skipping that approach โ€” you told
                                      me it breaks the build."

Flat, stateless tone              โ†’   Mood + trust adapt to how the
                                      relationship has actually gone

Forgets context after 10 turns    โ†’   Recalls relevant details from weeks ago
                                      via semantic memory search

โšก Quick Start

Installation

Via OpenClaw CLI:

openclaw plugins install @lightharu/agentbrain

Via npm:

npm install @lightharu/agentbrain

Via ClawHub:

clawhub package install @lightharu/agentbrain

Configuration

Add to your openclaw.json:

{
  "plugins": {
    "entries": {
      "lightharu-agentbrain": {
        "enabled": true,
        "config": {
          "brainDir": "~/.openclaw/data/agentbrain",
          "maxRecallResults": 10,
          "enableReflection": true,
          "enableEmotions": true,
          "enableSkillTracking": true
        }
      }
    }
  }
}

Verify Installation

# Check plugin status
openclaw plugins list

# Inspect brain state
openclaw tools call agentbrain_status

That's it! AgentBrain will automatically:

  • Inject ~200 tokens of cognitive context into every prompt
  • Remember conversations permanently
  • Learn from corrections
  • Evolve personality traits based on interactions

โœจ Features

๐Ÿง  Memory System

Three types of memory:

  • Episodic โ€” conversations, events ("You asked about deploy scripts yesterday")
  • Semantic โ€” facts, knowledge ("The API key is in .env.local")
  • Procedural โ€” skills, habits ("User prefers Markdown code blocks")

Smart recall via 3-tier fallback:

  1. Local embedding model (all-MiniLM-L6-v2, 384D)
  2. OpenClaw embedding cache (if available)
  3. TF-IDF keyword search (always works)

Deduplication:

  • Content-hash based UNIQUE constraint in SQLite
  • No repeated memories, ever

Example:

User: "Where did I put the API key?"
Agent: [recalls] "You mentioned it's in .env.local (3 days ago)"

๐ŸŽญ Personality Evolution

6 core traits (0-100 scale):

  • warmth โ€” how caring/supportive the agent is
  • directness โ€” brevity vs detail
  • protectiveness โ€” safety warnings, risk detection
  • assertiveness โ€” opinion sharing, disagreement
  • humor โ€” playfulness, sarcasm
  • curiosity โ€” exploration, follow-up questions

Traits evolve based on:

  • Task outcomes (success โ†’ confidence boost)
  • User feedback (praise โ†’ warmth increase)
  • Corrections (repeated mistakes โ†’ assertiveness increase)
  • Relationship depth (trust โ†’ more honesty)

Example:

After 10 successful debugging sessions:
  directness: 70 โ†’ 75 (more concise)
  assertiveness: 65 โ†’ 70 (stronger opinions)
  
After user says "too verbose":
  directness: 75 โ†’ 80 (even more brief)

๐Ÿ’ญ Emotional Intelligence

Real-time emotion tracking:

  • Mood (happy, neutral, concerned, alarmed, etc.)
  • Valence (-1 to +1, negative to positive)
  • Arousal (0 to 1, calm to excited)

Relationship tracking per user:

  • Trust level (0-100)
  • Interaction depth (0-100)
  • Sentiment history
  • Topic preferences

Neurochemistry system:

ChemicalEffectUse Case
DopamineReward, motivationTask success โ†’ energy boost
SerotoninMood floor, stabilitySustained praise โ†’ lasting good mood
CortisolStress, reactivityThreats โ†’ lingering caution
OxytocinBonding, trustRepeated positive interactions

Example:

User praises agent repeatedly
โ†’ Serotonin rises
โ†’ Mood floor lifts
โ†’ Agent stays positive even during boring tasks

Critical bug detected
โ†’ Cortisol spike
โ†’ Agent stays alert for 30 minutes even after fix

๐Ÿ“š Lesson Learning

Automatic correction detection:

  • "Don't do X" / "ฤแปซng lร m X"
  • "Not X, but Y" / "Khรดng phแบฃi X mร  lร  Y"
  • "Next time, do Y" / "Lแบงn sau phแบฃi Y"
  • Frustration signals ("I told you already")

Reinforcement:

  • Lessons gain confidence on repetition
  • High-confidence lessons inject into prompt automatically
  • Superseded lessons are marked obsolete

Example:

User: "Don't use git push --force on main"
โ†’ Stored as lesson (confidence: 0.7)

[Next time agent tries to push]
Agent: [recalls lesson] "Skipping --force on main (you warned me about this)"

[User confirms]
โ†’ Lesson confidence: 0.7 โ†’ 0.85

๐Ÿ”ฎ Proactive Suggestions

Pattern-based action proposals:

  • "You usually run tests after code changes โ€” want me to run them now?"
  • "It's 2 AM and you're still coding โ€” should I remind you to commit before sleep?"
  • "Last 3 times you deployed, you forgot to update the changelog โ€” should I check it?"

Configurable triggers:

  • Frequency threshold (pattern must repeat N times)
  • Confidence threshold (only suggest if confident)
  • Time-based (e.g., only suggest backups after 8 PM)

๐Ÿ› ๏ธ Agent Tools

Runtime inspection:

# Full brain status
agentbrain_status

# Personality traits
agentbrain_personality

# Emotional state + relationships
agentbrain_emotions

# Query memories
agentbrain_memories query="deploy script" topic="coding"

# Tracked skills
agentbrain_skills

# Manual reflection (after big tasks)
agentbrain_reflect taskDescription="Deployed v2.0" outcome="success"

# Snapshots (backup/restore)
agentbrain_snapshot action="save" label="before-refactor"
agentbrain_snapshot action="list"

๐Ÿ—๏ธ Architecture

AgentBrain is organized into brain-inspired modules, each handling a specific cognitive function:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                      AgentBrain                          โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  Sensory Input                                           โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                                         โ”‚
โ”‚  โ”‚  Thalamus   โ”‚  Message classification                โ”‚
โ”‚  โ”‚  (gateway)  โ”‚  (intent, urgency, topic, tone)        โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                                         โ”‚
โ”‚         โ”‚                                                โ”‚
โ”‚         โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”              โ”‚
โ”‚         โ–ผ          โ–ผ          โ–ผ          โ–ผ              โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚Hippocampusโ”‚ โ”‚ Amygdala โ”‚ โ”‚Prefrontalโ”‚ โ”‚Cerebellumโ”‚  โ”‚
โ”‚  โ”‚  Memory   โ”‚ โ”‚ Emotions โ”‚ โ”‚ Planning โ”‚ โ”‚  Skills  โ”‚  โ”‚
โ”‚  โ”‚  Recall   โ”‚ โ”‚   Trust  โ”‚ โ”‚  Goals   โ”‚ โ”‚  Habits  โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ”‚         โ”‚          โ”‚          โ”‚          โ”‚              โ”‚
โ”‚         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜              โ”‚
โ”‚                     โ”‚                                    โ”‚
โ”‚                     โ–ผ                                    โ”‚
โ”‚         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                         โ”‚
โ”‚         โ”‚ Context Injector    โ”‚                         โ”‚
โ”‚         โ”‚ (~200 tokens)       โ”‚                         โ”‚
โ”‚         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                         โ”‚
โ”‚                     โ”‚                                    โ”‚
โ”‚                     โ–ผ                                    โ”‚
โ”‚              [Agent Prompt]                              โ”‚
โ”‚                     โ”‚                                    โ”‚
โ”‚                     โ–ผ                                    โ”‚
โ”‚              [Agent Response]                            โ”‚
โ”‚                     โ”‚                                    โ”‚
โ”‚         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                       โ”‚
โ”‚         โ–ผ           โ–ผ           โ–ผ                       โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”               โ”‚
โ”‚  โ”‚  Memory  โ”‚ โ”‚ Knowledgeโ”‚ โ”‚  Lesson  โ”‚               โ”‚
โ”‚  โ”‚Consolidateโ”‚ โ”‚Extractor โ”‚ โ”‚ Learner  โ”‚               โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜               โ”‚
โ”‚         โ”‚           โ”‚           โ”‚                       โ”‚
โ”‚         โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                       โ”‚
โ”‚                     โ”‚                                    โ”‚
โ”‚                     โ–ผ                                    โ”‚
โ”‚             โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”                            โ”‚
โ”‚             โ”‚ SQLite DB    โ”‚                            โ”‚
โ”‚             โ”‚  brain.db    โ”‚                            โ”‚
โ”‚             โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜                            โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Core Modules

ModuleFunctionKey Features
ThalamusSensory gatingClassifies intent, urgency, topic, tone
HippocampusMemoryFormation, deduplication, vector recall
AmygdalaEmotionSentiment, threat detection, relationships
Prefrontal CortexPlanningWorking memory, goal management
CerebellumMotor learningSkill proficiency, habit detection
Basal GangliaRewardsMotivation ranking, reinforcement
Anterior CingulateReflectionSelf-assessment, personality evolution
Temporal LobeLanguageSemantic extraction, concept mapping
Parietal LobeIntegrationAttention, sensory fusion
InsulaInteroceptionUser state modeling (frustration, satisfaction)

Smart Modules (v0.3+)

ModulePurpose
VectorMemoryEmbedding-based semantic recall (3-tier fallback)
EmbeddingEngineLocal Transformers.js model (all-MiniLM-L6-v2)
KnowledgeExtractorStructured fact/entity extraction
LessonLearnerCorrection detection, lesson storage
PersonalityInfluenceTrait-to-directive translation
ProactiveEnginePattern-based action suggestions
NeurochemistryDopamine/serotonin/cortisol/oxytocin modeling

๐Ÿ’พ Storage

All brain state lives in a single SQLite file (brain.db):

TableContents
memoriesEpisodic, semantic, procedural memories (UNIQUE on content hash)
factsStructured knowledge (subject โ†’ relation โ†’ object)
entitiesExtracted entities (people, tools, addresses)
lessonsLearned corrections with confidence scores
patternsBehavioral patterns for proactive suggestions
relationshipsPer-user trust, depth, interaction history
personalityEvolving trait values
reflectionsTask outcomes and self-assessments
skillsProficiency tracking per skill category
neurochemistryChemical levels (dopamine, serotonin, etc.)

Why SQLite?

โœ… No duplicates โ€” UNIQUE constraints at DB level
โœ… Fast queries โ€” indexed columns, no regex parsing
โœ… Atomic writes โ€” no corrupted half-written files
โœ… Single file โ€” easy backup (cp brain.db brain-backup.db)
โœ… Zero config โ€” no external database server
โœ… Portable โ€” move the file, move the brain


๐Ÿ“– Documentation

User Guides

Developer Guides

Vietnamese Documentation


๐Ÿš€ Getting Started Tutorial

1. Install & Configure

# Install AgentBrain
openclaw plugins install @lightharu/agentbrain

# Verify installation
openclaw plugins list | grep agentbrain

Add to openclaw.json:

{
  "plugins": {
    "entries": {
      "lightharu-agentbrain": {
        "enabled": true,
        "config": {
          "brainDir": "~/.openclaw/data/agentbrain",
          "maxRecallResults": 10,
          "enableReflection": true,
          "enableEmotions": true
        }
      }
    }
  }
}

Restart OpenClaw:

openclaw gateway restart

2. First Conversation

You: "I'm working on a deploy script for my Node.js app"
Agent: [stores memory] "Got it! What deployment platform are you targeting?"

[10 turns later...]

You: "Remind me what I was working on?"
Agent: [recalls memory] "You're building a deploy script for your Node.js app.
       We discussed targeting Vercel and using environment variables."

3. Teach a Lesson

You: "Don't use 'rm -rf' in production scripts"
Agent: [stores lesson] "Understood. I'll avoid 'rm -rf' in production contexts."

[Next time agent suggests a script with 'rm -rf']
Agent: [recalls lesson] "Skipping 'rm -rf' โ€” you warned me this is dangerous in production."

4. Inspect Brain State

# Check current mood & personality
openclaw tools call agentbrain_status

# Query memories about "deploy"
openclaw tools call agentbrain_memories query="deploy script"

# View learned lessons
openclaw tools call agentbrain_memories topic="lessons"

5. Backup Your Brain

# Create snapshot
openclaw tools call agentbrain_snapshot action="save" label="before-refactor"

# Or copy the DB file directly
cp ~/.openclaw/data/agentbrain/brain.db ~/backups/brain-$(date +%Y%m%d).db

๐Ÿ”ฌ Advanced Usage

Custom Personality Template

Create a personality template for specific use cases:

{
  "name": "Debugging Assistant",
  "personality": {
    "warmth": 50,
    "directness": 90,
    "assertiveness": 85,
    "protectiveness": 95,
    "humor": 30,
    "curiosity": 80
  },
  "description": "Highly direct, protective, focused debugging partner"
}

Apply it:

openclaw tools call agentbrain_template_apply templateId="debugging-assistant"

Memory Pruning

Control memory growth:

{
  "config": {
    "memoryDecayRate": 0.05,
    "minMemoryConfidence": 0.3,
    "maxMemories": 1000
  }
}
  • memoryDecayRate: confidence decay per day (0.05 = 5% per day)
  • minMemoryConfidence: prune memories below this threshold
  • maxMemories: hard limit (oldest pruned first)

Neurochemistry Tuning

Adjust emotional responsiveness:

{
  "config": {
    "neurochemistry": {
      "dopamineDecayRate": 0.1,
      "serotoninDecayRate": 0.02,
      "cortisolDecayRate": 0.03,
      "oxytocinDecayRate": 0.04
    }
  }
}

๐Ÿ“Š Example: Brain State Injection

When you send a message, AgentBrain injects ~200 tokens of context into the agent's prompt:

## Brain State (AgentBrain โ€” auto-injected)

**Mood:** positive | Valence: +0.65 | Arousal: 0.45
**Relationship:** depth 85/100, trust 92/100
**Personality:** warmthโ†‘70, assertivenessโ†‘75, directnessโ†‘80, protectivenessโ†‘85

**Working Memory:**
- User: "Where's the API key?"
- User: "How do I deploy to Vercel?"

**Relevant Memories:**
- [episodic] User mentioned API key is in .env.local (2 days ago, conf: 0.85)
- [semantic] Deployment target is Vercel (4 days ago, conf: 0.90)
- [lesson] Don't use 'rm -rf' in production scripts (user warning, conf: 0.95)

**Neurochemistry:** dopamine: 0.62, serotonin: 0.75, cortisol: 0.15, oxytocin: 0.80
**Recent Feedback:** positive trend (+0.35 over last 10 turns)

This context shapes how the agent responds:

  • Memory recall prevents "who are you?" moments
  • Mood & trust influence tone warmth
  • Lessons prevent repeating past mistakes
  • Personality traits adjust directness/verbosity

๐Ÿค Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

Ways to contribute:

  • ๐Ÿ› Report bugs via GitHub Issues
  • ๐Ÿ’ก Suggest features via Discussions
  • ๐Ÿ“ Improve documentation
  • ๐Ÿงช Add tests
  • ๐Ÿ”ง Submit PRs for bug fixes or features

๐Ÿ“‹ Requirements

  • OpenClaw: 2026.3.24 or later
  • Node.js: 22+ (for plugin runtime)
  • Disk: ~50MB (SQLite DB + embedding model)
  • Memory: ~100MB RAM (embedding model loaded on demand)
  • GPU: Not required (CPU embeddings via Transformers.js)

๐Ÿ—บ๏ธ Roadmap

v1.0 (Next Major Release)

  • Multi-agent memory sharing
  • Graph-based knowledge representation
  • Fine-tuned embedding model for agent contexts
  • Visual brain state dashboard (web UI)
  • Memory compression (long-term storage)

v0.10.0 (Released)

  • Phase 5: Learning Loop (personality adapts from feedback)
  • Phase 4: Context Reasoning (status-check short-circuit)
  • Phase 3: Personalized Recall (task-type filter)
  • Memory review & auto-learning system
  • Cross-language memory (English โ†” Vietnamese)
  • Memory migration tools

Completed

  • v0.9.0: Intelligence Upgrade (5 phases)
  • v0.8.0: Generative affect via cognitive appraisal
  • v0.7.0: Agent-neutral SDK engine
  • v0.6.0: Brain completeness audit + Phase 2 emotional engine
  • v0.4.0: Foundation modules + SQL storage

๐Ÿ“„ License

MIT License โ€” see LICENSE for details.


๐Ÿ”— Links


๐Ÿ’ฌ Community


๐Ÿ™ Acknowledgments

AgentBrain is inspired by:

  • Neuroscience: Brain architecture (Hippocampus, Amygdala, etc.)
  • Cognitive Science: Appraisal theory, memory consolidation
  • AI Research: Transformer embeddings, vector databases

Special thanks to the OpenClaw team and community for feedback and support.


Built with โค๏ธ by LightHaru

Frequently Asked Questions

What is agentbrain?โŒ„

agentbrain is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by LightHaru. ๐Ÿง  Brain-inspired cognitive architecture plugin for AI agents โ€” persistent memory, evolving personality, neurochemistry-driven mood, learning from mistakes. Fully local on OpenClaw. It has 106 GitHub stars.

Is agentbrain safe to use?โŒ„

agentbrain failed SkillsLLM's automated security scan, which flagged one or more high-severity issues. Review the Security Report section carefully before using it.

How do I install agentbrain?โŒ„

Clone the repository with "git clone https://github.com/LightHaru/agentbrain" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is agentbrain written in?โŒ„

agentbrain is primarily written in TypeScript. It is open-source under LightHaru on GitHub, so you can review or fork the full source.

Are there alternatives to agentbrain?โŒ„

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh agentbrain against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

โญ 242,219โ‘‚ 36,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details โ†’
15

An agentic skills framework & software development methodology that works.

โญ 234,966โ‘‚ 20,863Shell
AI Agentsai-agentsbrainstorming
View details โ†’

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

โญ 185,940โ‘‚ 28,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details โ†’

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

โญ 128,868โ‘‚ 8,826Rust
AI Agentsclaude-codeai-tools
View details โ†’

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

โญ 120,031โ‘‚ 19,897Shell
AI Agents
View details โ†’

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

โญ 242,219โ‘‚ 36,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details โ†’
15

An agentic skills framework & software development methodology that works.

โญ 234,966โ‘‚ 20,863Shell
AI Agentsai-agentsbrainstorming
View details โ†’

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

โญ 201,881โ‘‚ 60,308TypeScript
MCP Serversapisai-tools
View details โ†’

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

โญ 185,940โ‘‚ 28,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details โ†’

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

โญ 128,868โ‘‚ 8,826Rust
AI Agentsclaude-codeai-tools
View details โ†’