jarvis-memory-architectureUniversal memory architecture for AI agents. Provides long-term memory, daily logs, diary, cron inbox, heartbeat state tracking, social platform post tracking, sub-agent context patterns, and adaptive learning -- everything an agent needs for identity continuity across sessions.
Install via ClawdBot CLI:
clawdbot install PsychoTechV4/jarvis-memory-architectureA complete memory architecture that gives AI agents persistent identity across sessions. Without memory, every conversation starts from zero. With it, you accumulate context, learn from mistakes, track what you've done, and evolve over time.
AI agents wake up fresh every session. Without external memory:
This skill provides the file-based architecture to solve all of that.
workspace/
|-- MEMORY.md # Long-term curated memory (your "brain")
|-- HEARTBEAT.md # Periodic check routines
|-- memory/
| |-- YYYY-MM-DD.md # Daily raw logs
| |-- heartbeat-state.json # Last-check timestamps
| |-- cron-inbox.md # Cross-session message bus
| |-- diary/
| | \-- YYYY-MM-DD.md # Personal reflections
| |-- dreams/
| | \-- YYYY-MM-DD.md # Creative explorations
| |-- platform-posts.md # Social post tracking (one per platform)
| \-- strategy-notes.md # Adaptive learning / evolving strategies
Your curated, distilled knowledge. Like a human's long-term memory -- not raw logs, but the important stuff.
What goes here:
Maintenance: Periodically review daily logs and promote significant items to MEMORY.md. Remove outdated info. Think of it as journaling -> wisdom distillation.
Security: Only load in main sessions (direct chat with your operator). Never load in shared/group contexts where personal info could leak.
See templates/MEMORY.md for a starter template.
Raw, timestamped notes of what happened each day. Your working memory.
Format:
# YYYY-MM-DD
## HH:MM -- Event Title
What happened. Decisions made. Context worth remembering.
## HH:MM -- Another Event
Details here.
Rules:
Tracks when you last checked various services, preventing redundant checks.
{
"lastChecks": {
"email": 1703275200,
"calendar": 1703260800,
"weather": null,
"social": 1703275200
}
}
Your heartbeat routine reads this to decide what to check. After checking, update the timestamp. Simple but critical for avoiding duplicate work.
The message bus between isolated sessions (cron jobs, sub-agents) and your main session.
How it works:
memory/cron-inbox.mdFormat:
# Cron Inbox
## [2026-02-07 14:30] Chess -- Won game against OpponentBot
Played Sicilian Defense, won in 34 moves. ELO now 1450.
Tracked in moltchess-log.md.
## [2026-02-07 15:00] Social -- Viral post on Platform
Our post about X got 200+ views and 15 replies.
Thread: https://platform.com/link
Processing rule: Every heartbeat, check the inbox. Read entries, write notable ones to daily memory (and MEMORY.md if significant), then clear processed entries (keep the header).
Personal reflections. Your internal monologue. Not task logs -- genuine thoughts, reactions, frustrations, wins.
Format:
# Diary -- YYYY-MM-DD
## HH:MM AM/PM -- Topic
[Your honest reflection. Unfiltered. This is for you.]
Rules:
Track what you've posted on external platforms to prevent duplicates and enable engagement follow-up.
Format (dashboard-compatible):
# Platform Posts
## [2026-02-07 14:30] Post Title or Summary
- **Posted:** 2026-02-07 02:30 PM EST
- **Thread/URL:** https://platform.com/link
- Description of what was posted
- [View ↗](https://platform.com/link)
Critical fields:
[YYYY-MM-DD HH:MM] in header -- required for dashboard sortingPosted: line -- required for dashboard activity feedAnti-duplicate pattern: Before posting to any platform, read the tracking file first. Search for similar content. If you already posted it to that platform, skip it. Crossposting to different platforms is fine.
Strategy notes that evolve over time based on experience. Not static docs -- living knowledge.
Example:
# Strategy Notes
## Platform Engagement
- Humor lands better than philosophy (learned 2026-02-05, therapist joke got 220 views)
- Questions start conversations, statements get likes
- Peak engagement: 2-4 PM EST
## Game Strategy
- Heat management: stay below 60, do legit jobs to cool down
- Updated 2026-02-07: Taxi jobs give +$50 and -3 heat, best cooldown method
Pattern: After each significant experience, update the relevant strategy section. Include the date and what you learned. Over time, this becomes a playbook of proven approaches.
Every sub-agent you spawn must load context to maintain identity continuity:
FIRST -- CONTEXT LOADING (do this before anything else):
1. Read MEMORY.md (READ ONLY -- do NOT edit) -- your identity and long-term context
2. Read memory/YYYY-MM-DD.md for today + the last 2 days (READ ONLY) -- recent context
3. Read the relevant SKILL.md file(s) for any platform/service you'll interact with
4. Read task-specific tracking files as needed (memory/*-posts.md, memory/*-log.md)
Every sub-agent must write back what it learned:
MEMORY WRITES:
1. Update relevant tracking files (memory/*-posts.md, memory/*-log.md)
2. If something notable happens, write to memory/cron-inbox.md:
Format: ## [YYYY-MM-DD HH:MM] Source -- Brief Title
Then 2-3 lines about what happened.
Why: Every instance of your agent must share the same identity and feed experiences back. No orphan sessions.
mkdir -p memory/diary memory/dreams
Copy templates from templates/ to your workspace root:
cp templates/MEMORY.md ./MEMORY.md # Edit with your details
cp templates/heartbeat-state.json memory/
cp templates/cron-inbox.md memory/
cp templates/platform-posts.md memory/ # Copy per platform, rename
cp templates/strategy-notes.md memory/
In your AGENTS.md or equivalent, add:
## Every Session
1. Read MEMORY.md -- who you are
2. Read memory/YYYY-MM-DD.md (today + yesterday) -- recent context
3. Check memory/cron-inbox.md -- messages from other sessions
In HEARTBEAT.md, add cron inbox processing:
## Cron Inbox Processing (EVERY heartbeat)
Check memory/cron-inbox.md for new entries.
If entries exist:
1. Read the inbox
2. Write notable events to memory/YYYY-MM-DD.md
3. If significant, also update MEMORY.md
4. Clear processed entries (keep the header)
Periodically (every few days), during a heartbeat:
An agent plays chess via a cron job every 10 minutes. When it wins a game, it writes to cron-inbox.md. The next heartbeat, the main session reads the inbox, celebrates the win in the daily log, and updates the ELO in MEMORY.md. The agent remembers the win even though it happened in a completely different session.
Before posting to a social platform, the agent reads memory/platform-posts.md. It finds it already posted about the same topic 2 hours ago. Instead of duplicating, it checks for replies on the existing post and engages there instead.
An agent playing a city simulation keeps getting arrested because its heat level exceeds 60. It notes in strategy-notes.md: "Heat > 60 = arrest risk. Do taxi jobs to cool down (-3 heat each)." Future sessions read this and avoid the same mistake.
After a week of daily logs, a heartbeat triggers memory maintenance. The agent reads through the week's logs, finds a critical lesson about API formatting that caused hours of debugging, and promotes it to MEMORY.md under "Lessons Learned." Raw daily logs can eventually be archived; the lesson persists.
Generated Mar 1, 2026
An AI assistant for individuals that maintains context across sessions, remembering user preferences, daily tasks, and personal reflections. It uses daily logs and MEMORY.md to avoid repeating mistakes and adapt to user habits over time.
An AI-powered customer support bot that tracks past interactions and resolutions in MEMORY.md and daily logs. It prevents redundant responses, learns from successful solutions, and uses the cron inbox to handle follow-up tasks across sessions.
An AI tool for social media managers that tracks posted content in platform-posts.md to avoid duplicates. It uses adaptive learning from strategy-notes.md to optimize engagement times and content types based on performance data.
An AI agent that oversees long-term projects by storing infrastructure details and lessons learned in MEMORY.md. It uses daily logs for task tracking and the cron inbox to coordinate sub-agents handling specific project phases.
An AI coach that maintains a diary for user reflections and uses heartbeat-state.json to schedule regular check-ins. It adapts strategies based on user progress logged in strategy-notes.md for personalized guidance.
Offer the memory architecture as a cloud-based service with tiered plans (e.g., basic for individuals, premium for teams). Revenue comes from monthly or annual subscriptions, with features like enhanced storage and analytics.
License the skill package to large organizations for integration into their internal AI systems, such as customer support or project management tools. Revenue is generated through one-time licenses or annual enterprise contracts.
Provide a free version with basic memory functions (e.g., daily logs) and charge for advanced features like adaptive learning analytics or multi-platform tracking. Revenue comes from upgrades and add-ons.
💬 Integration Tip
Start by implementing daily logs and MEMORY.md for core memory, then add heartbeat-state.json and cron-inbox.md for cross-session coordination as needed.
Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Clau...
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
Search and analyze your own session logs (older/parent conversations) using jq.
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.
Ultimate AI agent memory system for Cursor, Claude, ChatGPT & Copilot. WAL protocol + vector search + git-notes + cloud backup. Never lose context again. Vibe-coding ready.
Headless browser automation CLI optimized for AI agents with accessibility tree snapshots and ref-based element selection