by LightHaru
🧠 Brain-inspired cognitive architecture plugin for AI agents — persistent memory, evolving personality, neurochemistry-driven mood, learning from mistakes. Fully local on OpenClaw.
# Add to your Claude Code skills
git clone https://github.com/LightHaru/agentbrainLast scanned: 8/15/2026
{
"issues": [
{
"type": "npm-audit",
"message": "@huggingface/transformers: Vulnerability found",
"severity": "high"
},
{
"type": "npm-audit",
"message": "@vitest/mocker: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "adm-zip: adm-zip: Crafted ZIP file triggers 4GB memory allocation",
"severity": "high"
},
{
"type": "npm-audit",
"message": "brace-expansion: brace-expansion: DoS via exponential-time expansion of consecutive non-expanding {} groups",
"severity": "high"
},
{
"type": "npm-audit",
"message": "esbuild: esbuild enables any website to send any requests to the development server and read the response",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "js-yaml: JS-YAML: Quadratic-complexity DoS in merge key handling via repeated aliases",
"severity": "high"
},
{
"type": "npm-audit",
"message": "nanoid: nanoid: non-secure generators can loop indefinitely with negative size",
"severity": "high"
},
{
"type": "npm-audit",
"message": "onnxruntime-node: Vulnerability found",
"severity": "high"
},
{
"type": "npm-audit",
"message": "postcss: PostCSS: incomplete fix of GHSA-6g55-p6wh-862q — attacker-controlled sourceMappingURL reads arbitrary .map files when `from` is unset",
"severity": "high"
},
{
"type": "npm-audit",
"message": "protobufjs: protobufjs : Schema-derived names can shadow runtime-significant properties",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "sharp: sharp inherited vulnerabilities in libvips: CVE-2026-33327, CVE-2026-33328, CVE-2026-35590, CVE-2026-35591",
"severity": "high"
},
{
"type": "npm-audit",
"message": "vite: Vite Vulnerable to Path Traversal in Optimized Deps `.map` Handling",
"severity": "high"
},
{
"type": "npm-audit",
"message": "vite-node: Vulnerability found",
"severity": "medium"
},
{
"type": "npm-audit",
"message": "vitest: Vulnerability found",
"severity": "critical"
}
],
"status": "FAILED",
"scannedAt": "2026-08-15T04:29:55.939Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}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 101 GitHub stars.
agentbrain failed SkillsLLM's automated security scan, which flagged one or more high-severity issues. Review the Security Report section carefully before using it.
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).
agentbrain is primarily written in TypeScript. It is open-source under LightHaru on GitHub, so you can review or fork the full source.
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.
No comments yet. Be the first to share your thoughts!
Requires a passing catalog security scan. Resolve the flagged issues and resubmit to enable featuring.
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:
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
Via OpenClaw CLI:
openclaw plugins install @lightharu/agentbrain
Via npm:
npm install @lightharu/agentbrain
Via ClawHub:
clawhub package install @lightharu/agentbrain
Add to your openclaw.json:
{
"plugins": {
"entries": {
"lightharu-agentbrain": {
"enabled": true,
"config": {
"brainDir": "~/.openclaw/data/agentbrain",
"maxRecallResults": 10,
"enableReflection": true,
"enableEmotions": true,
"enableSkillTracking": true
}
}
}
}
}
# Check plugin status
openclaw plugins list
# Inspect brain state
openclaw tools call agentbrain_status
That's it! AgentBrain will automatically:
Three types of memory:
Smart recall via 3-tier fallback:
Deduplication:
Example:
User: "Where did I put the API key?"
Agent: [recalls] "You mentioned it's in .env.local (3 days ago)"
6 core traits (0-100 scale):
warmth — how caring/supportive the agent isdirectness — brevity vs detailprotectiveness — safety warnings, risk detectionassertiveness — opinion sharing, disagreementhumor — playfulness, sarcasmcuriosity — exploration, follow-up questionsTraits evolve based on:
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)
Real-time emotion tracking:
Relationship tracking per user:
Neurochemistry system:
| Chemical | Effect | Use Case |
|---|---|---|
| Dopamine | Reward, motivation | Task success → energy boost |
| Serotonin | Mood floor, stability | Sustained praise → lasting good mood |
| Cortisol | Stress, reactivity | Threats → lingering caution |
| Oxytocin | Bonding, trust | Repeated 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
Automatic correction detection:
Reinforcement:
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
Pattern-based action proposals:
Configurable triggers:
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"
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]