ワンクリックで
persistia-memory-for-claude-code
Install and configure Persistia to give Claude Code self-updating persistent memory across sessions
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Install and configure Persistia to give Claude Code self-updating persistent memory across sessions
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Create AI marketing videos and images using Arcads API — Seedance, Sora, Veo, Kling, Nano Banana, ChatGPT Image, and multi-step ad pipelines
Generate AI marketing videos and static image ads using the Arcads API with skills for Seedance 2.0, Sora 2, Veo 3.1, Kling 3.0, Nano Banana, and 37 Meta ad templates
Create AI marketing videos and images using Arcads API with Seedance 2.0, Sora 2, Veo 3.1, Kling 3.0, Nano Banana, and 37 static Meta ad templates
Generate AI marketing videos and images using Arcads creative stack (Seedance 2.0, Sora 2, Veo 3.1, Kling, Nano Banana, ChatGPT Image) from Claude Code or Cursor
Generate AI marketing videos and static image ads using Arcads external API with Seedance 2.0, Sora 2, Veo 3.1, Kling, Nano Banana, and 37-template Meta image library
Create AI marketing videos and static Meta image ads using the Arcads API with Seedance 2.0, Sora 2, Veo 3.1, Kling, Nano Banana, ChatGPT Image, and 37 static ad templates
| name | persistia-memory-for-claude-code |
| description | Install and configure Persistia to give Claude Code self-updating persistent memory across sessions |
| triggers | ["set up persistent memory for this project","install persistia brain system","give claude persistent memory","configure self-updating project memory","set up autonomous task scheduling","create persistent brain repository","install persistia for claude code","enable automatic context updates"] |
Skill by ara.so — Claude Code Skills collection.
Persistia gives Claude Code self-updating persistent memory by creating a _brain/ directory that tracks your project context, skills, tasks, and operations. It uses git diffs to update only what changed, making it token-efficient and always current.
git diff daily, only reads changed files_brain/skills/ and loaded every sessionbatch_size and timeout_minutes controlsRun from project root:
curl -fsSL https://raw.githubusercontent.com/bernardohcrocha/persistia-for-claude-code/main/setup.sh | bash
Requirements:
gh) for automatic private repo creation and cloud backupThe setup script:
_brain/ directory structure_brain/
├── .git/ # Isolated brain repository
├── index.md # Agent reads this first every session
├── dashboard.html # Live command center (auto-refreshes every 5 min)
├── core/ # Product, brand, ICP definitions
│ ├── product.md
│ ├── brand.md
│ └── icp.md
├── operations/ # Auto-updated metrics and customer data
│ ├── metrics.json
│ └── customers/
├── skills/ # Permanent rules and behaviors
│ ├── code-style.md
│ ├── deployment.md
│ └── ...
└── tasks/ # Scheduled task queue
├── queue.json
└── completed/
Skills are persistent rules that apply to all future sessions. Create them conversationally:
Example interaction:
You: "Always use TypeScript strict mode and include JSDoc for public APIs"
Claude: [creates _brain/skills/typescript-conventions.md]
Skills are automatically loaded at session start via index.md.
Schedule tasks in _brain/tasks/queue.json:
{
"tasks": [
{
"id": "weekly-metrics",
"description": "Pull last week's numbers from Stripe, flag anomalies, queue follow-ups for accounts below quota",
"schedule": "weekly",
"day": "monday",
"time": "09:00",
"batch_size": 50,
"timeout_minutes": 10,
"enabled": true
},
{
"id": "inactive-signups",
"description": "Find signups from last 30 days with no activity. Visit company websites and draft personalized re-engagement emails",
"schedule": "daily",
"time": "14:00",
"batch_size": 20,
"timeout_minutes": 5,
"enabled": true
}
]
}
Task properties:
batch_size — cap items processed per run (prevents timeouts)timeout_minutes — default 5, increase for complex operationsschedule — daily, weekly, monthlyenabled — toggle without deleting_brain/operations/ contains auto-updated data from your tools:
metrics.json example:
{
"updated_at": "2026-06-04T10:00:00Z",
"revenue": {
"mrr": 45000,
"change_30d": 12.5
},
"customers": {
"total": 234,
"active": 198,
"at_risk": 12
},
"support": {
"open_tickets": 8,
"avg_response_hours": 2.3
}
}
Persistia reads credentials from .env to update this automatically.
You: "Install persistia"
Claude: [runs setup.sh]
Claude: "I need a few details. What's your product positioning in one sentence?"
You: "Developer platform for real-time data sync"
Claude: "What integrations should I track?"
You: "Stripe for revenue, Intercom for support, PostgreSQL for usage"
Claude: [creates _brain/core/product.md, configures integrations]
You: "When deploying, always run tests, build, then push to staging before production"
Claude: [creates _brain/skills/deployment-process.md]
# Next session
You: "Deploy the latest changes"
Claude: [automatically follows deployment-process.md]
You: "Every Monday at 9am, check which customers had usage drops >30% and draft personalized check-in emails"
Claude: [adds task to _brain/tasks/queue.json with batch_size and timeout]
You: "Which customers churned this month and what were their last support interactions?"
Claude: [queries _brain/operations/metrics.json and customer records, cross-references support history]
Open _brain/dashboard.html in browser — auto-refreshes every 5 minutes showing:
Persistia reads existing .env files for integrations. Common variables:
# Stripe
STRIPE_API_KEY=sk_live_xxxxx
# Database
DATABASE_URL=postgresql://user:pass@host:5432/db
# Support
INTERCOM_ACCESS_TOKEN=xxxxx
# GitHub (optional, for brain repo backup)
GITHUB_TOKEN=ghp_xxxxx
Edit scheduler configuration:
macOS (launchd):
nano ~/Library/LaunchAgents/com.persistia.brain-update.plist
Linux (systemd):
nano ~/.config/systemd/user/persistia-brain-update.timer
Default: daily at 3am. Change <integer> values for Hour and Minute.
For large datasets, adjust task settings:
{
"id": "large-customer-outreach",
"batch_size": 100, // Process 100 at a time
"timeout_minutes": 15, // Allow 15 min per batch
"enabled": true
}
Check scheduler status:
macOS:
launchctl list | grep persistia
launchctl start com.persistia.brain-update
Linux:
systemctl --user status persistia-brain-update.timer
systemctl --user start persistia-brain-update.service
View logs:
# macOS
tail -f ~/Library/Logs/persistia-brain-update.log
# Linux
journalctl --user -u persistia-brain-update.service -f
Verify _brain/index.md exists and contains navigation to all sections:
cat _brain/index.md
Should reference core/, skills/, operations/, and tasks/.
Re-authenticate GitHub CLI:
gh auth login
gh auth refresh -s repo
Manually push brain repo:
cd _brain
git push origin main
Persistia uses git diff to minimize token consumption. If still high:
Check git diff output size:
git diff --stat
Add large generated files to .gitignore:
echo "dist/" >> .gitignore
echo "build/" >> .gitignore
Reduce task batch_size in _brain/tasks/queue.json
Increase timeout_minutes for complex tasks:
{
"id": "complex-analysis",
"timeout_minutes": 20,
"batch_size": 10
}
Or split into smaller subtasks with dependencies.
Force brain update:
cd _brain && git diff HEAD~1 && npm run update
View brain commit history:
cd _brain && git log --oneline
Export brain to share with team:
cd _brain && git bundle create ../project-brain.bundle --all
Import shared brain:
git clone project-brain.bundle _brain
Disable proactive scanning:
echo '{"proactive_scan": false}' > _brain/config.json
_brain/ like documentationgh for automatic cloud sync.git from main projectFor detailed architecture: ARCHITECTURE.md