By eliork47
Persistent session tracking, memory management, and workflow automation for Cursor agents. Gives your AI assistant continuity across conversations.
Read on sessions start. Manages persistent memory files across conversations. Use when recording learnings, updating MEMORY.md, creating topic files, or when the session-start hook injects memory context.
Read on session start. Tracks work progress in session files during conversations. Use when recording milestones, decisions, blockers, or when the session-start hook creates a session file.
Persistent memory, session tracking, and identity for Cursor agents.
Your AI assistant forgets everything between conversations. Agent Soul fixes that.
Every time you start a new Cursor session, your agent wakes up blank. It doesn't know what you built yesterday, what decisions you made, or how you like to work. You end up re-explaining context, re-establishing preferences, and watching it make the same mistakes twice.
Agent Soul gives your agent continuity. It remembers what happened last session, maintains project-specific memory, and carries an identity that shapes how it communicates and works. Each conversation picks up where the last one left off.
Agent Soul runs through Cursor's hooks system. It activates automatically -- no commands to remember, no manual setup after install.
On session start, the agent receives injected context:
SOUL.md)USER.md)MEMORY.md)During the session, tool calls are counted. Every 50 calls, the agent is prompted to update its session file and memory -- capturing decisions, progress, and context worth keeping.
On compaction, counters reset and the event is logged to the session file, so the agent knows context was summarized.
On session end, unused template files are cleaned up and active sessions are auto-renamed based on their title.
The core of Agent Soul. These run automatically at key points in the conversation lifecycle.
| Hook | Script | What it does |
|---|---|---|
| sessionStart | session-start.ts | Bootstrap workspace, create session file, inject context |
| sessionEnd | session-end.ts | Clean up templates, auto-rename sessions from title |
| preToolUse | count-tool.ts | Count tool calls for milestone tracking |
| preToolUse | block-md-files.ts | Prevent agents from creating unsolicited documentation |
| preCompact | pre-compact.ts | Flag compaction events for the stop hook |
| stop | suggest-compact.ts | Prompt session/memory updates every 50 tool calls |
Cursor rules that shape agent behavior across all conversations.
Reusable workflows the agent can follow when triggered:
Created on first run in ~/.cursor/:
# macOS / Linux
curl -fsSL https://bun.sh/install | bash
# Windows
powershell -c "irm bun.sh/install.ps1 | iex"
In Cursor Agent chat:
/add-plugin https://github.com/EliorK47/agent-soul
Or paste the repo URL in Settings > Plugins:
https://github.com/EliorK47/agent-soul
That's it. No additional setup needed -- hooks run directly on Bun with zero npm dependencies.
git clone https://github.com/EliorK47/agent-soul.git
.cursor-plugin/ Plugin manifest
hooks/hooks.json Hook configuration
scripts/session-management/
hooks/ Hook entry points (TypeScript + Bun)
lib/ Shared code (session manager, utils, bootstrap)
package.json Dependencies and scripts
rules/ Cursor rules (.mdc)
skills/ Cursor skills
assets/ Logo
cd scripts/session-management
bun install # dev dependencies only (biome, types, tsc)
bun run check # biome lint + tsc strict typecheck
MIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub eliork47/agent-soul --plugin agent-soulPersistent memory for AI coding agents -- captures tool usage, compresses via LLM, injects context into future sessions. 12 hooks, 41 MCP tools, 4 skills, real-time viewer.
Persistent memory across context compactions via session dumps, vault search (QMD), and auto-injection
Persistent memory system for Claude Code with enforced context
Persistent memory for AI coding agents. SQLite knowledge graph with scoped entities, MCP tools, and LLM-summarized briefings.
Universal memory runtime — cross-session cognitive memory for Claude Code. Remembers decisions, patterns, and context across coding sessions.
Persistent agent memory that survives across sessions — auto-compacting 3-tier memory with hybrid search. Your agent remembers what it learned, decided, and built.