| name | agentic-stack-portable-agent-memory |
| description | Portable .agent/ folder with memory, skills, and protocols that works across Claude Code, Cursor, Windsurf, and other AI coding harnesses |
| triggers | ["set up agentic stack for this project","install portable agent memory","configure agent harness with agentic stack","switch between cursor and claude code without losing memory","add agentic stack brain to my project","manage multiple AI coding agents in one project","create portable agent skills folder","set up cross-harness agent memory"] |
agentic-stack-portable-agent-memory
Skill by ara.so — AI Agent Skills collection.
What It Does
agentic-stack creates a portable .agent/ folder that maintains memory, skills, and protocols across different AI coding harnesses (Claude Code, Cursor, Windsurf, OpenCode, OpenClaw, Copilot CLI, Gemini, Hermes, Pi, Codex, Antigravity). When you switch tools, your agent keeps its knowledge, preferences, and accumulated context.
It includes:
- Memory layers: personal, semantic, episodic, working memory
- Skills system: reusable capabilities with manifest tracking
- Data layer: monitor harness activity, token/cost estimates, KPI summaries
- Data flywheel: turn approved runs into training artifacts
- Brain integration: optional git-backed long-term memory
- Harness manager: TUI for managing multiple adapters simultaneously
Installation
macOS / Linux
brew tap codejunkie99/agentic-stack https://github.com/codejunkie99/agentic-stack
brew install agentic-stack
cd your-project
agentic-stack claude-code
Windows (PowerShell)
git clone https://github.com/codejunkie99/agentic-stack.git
cd agentic-stack
.\install.ps1 claude-code C:\path\to\your-project
Clone Method
git clone https://github.com/codejunkie99/agentic-stack.git
cd agentic-stack
./install.sh claude-code
Upgrade Existing Installation
brew update && brew upgrade agentic-stack
cd your-project
agentic-stack upgrade --dry-run
agentic-stack upgrade --yes
Available Adapters
claude-code - Anthropic Claude Code
cursor - Cursor IDE
windsurf - Windsurf
opencode - OpenCode
openclaw - OpenClaw
copilot-cli - GitHub Copilot CLI
gemini - Google Gemini CLI
hermes - Hermes
pi - Pi Coding Agent
codex - Codex
standalone-python - DIY Python loop
antigravity - Antigravity
Key Commands
Project Management
agentic-stack dashboard
agentic-stack mission-control
agentic-stack status
agentic-stack doctor
agentic-stack manage
agentic-stack add cursor
agentic-stack remove cursor
Upgrade & Sync
agentic-stack upgrade --dry-run
agentic-stack upgrade --yes
agentic-stack sync-manifest
Brain Integration (Optional)
brew install codejunkie99/tap/brain
agentic-stack brain status
agentic-stack brain onboard --agents codex,cursor --yes
agentic-stack brain ask "auth decisions"
agentic-stack brain note "Use PKCE for local OAuth flows."
agentic-stack brain mcp-command
Memory Transfer
agentic-stack transfer
Project Structure
After installation, your project will have:
.agent/
├── memory/
│ ├── personal/PREFERENCES.md # User preferences (read first)
│ ├── semantic/ # Conceptual knowledge
│ ├── episodic/ # Session history
│ ├── working/ # Active context
│ └── .features.json # Feature toggles
├── skills/
│ ├── _manifest.jsonl # Skill registry
│ ├── brain/ # Brain integration skill
│ ├── data-layer/ # Harness monitoring
│ ├── data-flywheel/ # Training artifact export
│ ├── design-md/ # DESIGN.md workflows
│ └── tldraw/ # Visual canvas (opt-in)
├── tools/
│ └── brain_bridge.py # Brain API wrapper
├── harness/
│ └── adapters/ # Adapter-specific configs
└── install.json # Installed adapters manifest
Configuration
Initial Setup (Onboarding Wizard)
The wizard populates .agent/memory/personal/PREFERENCES.md:
agentic-stack claude-code --yes
agentic-stack claude-code --reconfigure
Wizard questions:
- What should I call you? (optional)
- Primary language(s)? (default: unspecified)
- Explanation style? (default: concise)
- Test strategy? (default: test-after)
- Commit message style? (default: conventional commits)
- Code review depth? (default: critical issues only)
Optional features (off by default):
- FTS memory search
[BETA]
- tldraw visual canvas
[BETA]
Manual Preference Editing
Edit .agent/memory/personal/PREFERENCES.md directly:
---
name: Alex
languages: [Python, TypeScript]
explanation_style: detailed
test_strategy: test-first
commit_style: conventional commits
review_depth: thorough
---
# Personal Preferences
I prefer async/await over callbacks. Use descriptive variable names.
Always include error handling for network requests.
Feature Toggles
Edit .agent/memory/.features.json:
{
"fts_search": false,
"tldraw": false
}
Working with Memory Layers
Personal Memory
cat .agent/memory/personal/PREFERENCES.md
echo "## Code Style\n\nPrefer functional composition over inheritance." >> .agent/memory/personal/PREFERENCES.md
Semantic Memory
"""
Document lasting project knowledge
"""
Episodic Memory
Automatically managed by harness; tracks session history and decisions.
Working Memory
Active context during current session; cleared when appropriate.
Creating Custom Skills
Skill Structure
.agent/skills/my-custom-skill/
├── SKILL.md # Main skill definition
├── README.md # Documentation
└── tools/ # Optional tool scripts
└── helper.py
SKILL.md Format
---
name: my-custom-skill
description: Does something specific for this project
version: 1.0.0
triggers:
- use my custom skill
- apply custom workflow
---
# My Custom Skill
## What It Does
Detailed explanation...
## When to Use
- Trigger condition 1
- Trigger condition 2
## Examples
\```python
# Working code example
\```
Sync Manifest After Adding Skills
agentic-stack sync-manifest
Multi-Adapter Setup
Install Multiple Harnesses
cd your-project
./install.sh
agentic-stack add claude-code
agentic-stack add cursor
agentic-stack add windsurf
Check Installed Adapters
agentic-stack status
Output:
✓ claude-code (active)
✓ cursor (active)
✗ windsurf (not installed)
Manage via TUI
agentic-stack manage
Data Layer Usage
Generate Dashboard
from pathlib import Path
import sys
sys.path.insert(0, str(Path.cwd() / ".agent" / "skills" / "data-layer"))
from dashboard import generate_dashboard
generate_dashboard()
View Dashboard
open .agent/data/dashboard.html
cat .agent/data/daily-report.md
Data Flywheel Usage
Export Approved Runs
from pathlib import Path
import sys
sys.path.insert(0, str(Path.cwd() / ".agent" / "skills" / "data-flywheel"))
from export import export_run
export_run(
run_id="2026-05-16-auth-refactor",
redact_secrets=True,
include_context=True
)
Artifacts Generated
traces/ - Execution traces
context-cards/ - Contextual summaries
eval-cases/ - Test cases for evaluation
training.jsonl - Training-ready format
metrics.json - Flywheel readiness metrics
Brain Integration
Bridge from Agent Code
from pathlib import Path
import sys
sys.path.insert(0, str(Path.cwd() / ".agent" / "tools"))
from brain_bridge import query_brain, write_brain
results = query_brain("authentication patterns")
for hit in results:
print(f"{hit['project']}: {hit['content']}")
write_brain(
content="OAuth refresh tokens expire after 30 days",
tags=["auth", "security"]
)
MCP Integration
agentic-stack brain mcp-command
Add to .claude/mcp.json or equivalent:
{
"mcpServers": {
"brain": {
"command": "brain",
"args": ["serve"]
}
}
}
Troubleshooting
Doctor Reports Issues
agentic-stack doctor
Common issues:
- Missing hooks: Re-run
agentic-stack add <adapter>
- Orphaned files: Use
agentic-stack remove <adapter> then reinstall
- Version drift: Run
agentic-stack upgrade --yes
Manifest Out of Sync
agentic-stack sync-manifest
Python 3.9 Compatibility
Ensure Python 3.9+ is available:
python3 --version
If using brew Python:
brew install python@3.11
Migration from Pre-v0.9
./install.sh doctor
Brain Not Found
brew install codejunkie99/tap/brain
brain --version
Adapter Conflicts
agentic-stack remove cursor
agentic-stack add cursor
Environment Variables
Common environment variables referenced:
export BRAIN_PATH="$HOME/.config/brain"
export AGENTIC_STACK_DIR=".agent"
Common Patterns
Single Harness Setup
cd my-project
agentic-stack claude-code
Multi-Harness Setup
cd my-project
agentic-stack add claude-code
agentic-stack add cursor
agentic-stack add windsurf
CI/Automation
agentic-stack claude-code --yes
agentic-stack doctor || exit 1
Project Migration
cd old-project
agentic-stack transfer
cd new-project
Skill Development Workflow
mkdir -p .agent/skills/my-skill
cat > .agent/skills/my-skill/SKILL.md << 'EOF'
---
name: my-skill
description: Custom skill for X
version: 1.0.0
triggers: ["use my skill"]
---
...
EOF
agentic-stack sync-manifest
grep "my-skill" .agent/skills/_manifest.jsonl
Safe Upgrades
agentic-stack upgrade --dry-run
agentic-stack upgrade --yes
agentic-stack doctor
Version History Highlights
- v0.18.0: External Brain memory integration
- v0.17.0: Adapters, Mission Control, lesson retraction
- v0.16.0: Safe project upgrades via
upgrade command
- v0.12.0: tldraw visual canvas (opt-in beta)
- v0.11.0: Data layer + data flywheel
- v0.10.0: design-md skill, Python 3.9 fix
- v0.9.0: Manifest-driven harness manager