ai-compound-1-0-1Make your AI agent learn and improve automatically. Reviews sessions, extracts learnings, updates memory files, and compounds knowledge over time. Set up nightly review loops that make your agent smarter every day.
Install via ClawdBot CLI:
clawdbot install AmanGarg1999/ai-compound-1-0-1Make your AI agent learn automatically. Extract learnings from sessions, update memory files, and compound knowledge over time.
The idea: Your agent reviews its own work, extracts patterns and lessons, and updates its instructions. Tomorrow's agent is smarter than today's.
# Review last 24 hours and update memory
npx compound-engineering review
# Create hourly memory snapshot
npx compound-engineering snapshot
# Set up automated nightly review (cron)
npx compound-engineering setup-cron
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā DAILY WORK ā
ā Sessions, chats, tasks, decisions ā
āāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāāāāā
ā
ā¼
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā NIGHTLY REVIEW (10:30 PM) ā
ā ⢠Scan all sessions from last 24h ā
ā ⢠Extract learnings and patterns ā
ā ⢠Update MEMORY.md and AGENTS.md ā
ā ⢠Commit and push changes ā
āāāāāāāāāāāāāāāāāā¬āāāāāāāāāāāāāāāāāāāāāāāāā
ā
ā¼
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā NEXT DAY ā
ā Agent reads updated instructions ā
ā Benefits from yesterday's learnings ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Add to your HEARTBEAT.md:
# Hourly Memory Snapshot
Every hour, append a brief summary to memory/YYYY-MM-DD.md:
- What was accomplished
- Key decisions made
- Anything to remember
Or use cron:
# Add to clawdbot config or crontab
0 * * * * clawdbot cron run compound-hourly
Add this cron job to Clawdbot:
{
"id": "compound-nightly",
"schedule": "30 22 * * *",
"text": "Review all sessions from the last 24 hours. For each session, extract: 1) Key learnings and patterns, 2) Mistakes or gotchas to avoid, 3) User preferences discovered, 4) Unfinished items. Update MEMORY.md with a summary. Update memory/YYYY-MM-DD.md with details. Commit changes to git."
}
When you want to trigger a review manually:
Review the last 24 hours of work. Extract:
1. **Patterns that worked** - approaches to repeat
2. **Gotchas encountered** - things to avoid
3. **Preferences learned** - user likes/dislikes
4. **Key decisions** - and their reasoning
5. **Open items** - unfinished work
Update:
- MEMORY.md with significant long-term learnings
- memory/YYYY-MM-DD.md with today's details
- AGENTS.md if workflow changes needed
Commit changes with message "compound: daily review YYYY-MM-DD"
# Long-Term Memory
## Patterns That Work
- When doing X, always Y first
- User prefers Z approach for...
## Gotchas to Avoid
- Don't do X without checking Y
- API Z has rate limit of...
## User Preferences
- Prefers concise responses
- Timezone: PST
- ...
## Project Context
- Main repo at /path/to/project
- Deploy process is...
# 2026-01-28 (Tuesday)
## Sessions
- 09:00 - Built security audit tool
- 14:00 - Published 40 skills to MoltHub
## Decisions
- Chose to batch publish in parallel (5 sub-agents)
- Security tool covers 6 check categories
## Learnings
- ClawdHub publish can timeout, retry with new version
- npm publish hangs sometimes, may need to retry
## Open Items
- [ ] Finish remaining MoltHub uploads
- [ ] Set up analytics tracker
For more granular memory, create hourly snapshots:
# Creates memory/YYYY-MM-DD-HH.md every hour
*/60 * * * * echo "## $(date +%H):00 Snapshot" >> ~/clawd/memory/$(date +%Y-%m-%d).md
Or have the agent do it via heartbeat by checking time and appending to daily file.
Week 1: Agent knows basics
Week 2: Agent remembers your preferences
Week 4: Agent anticipates your needs
Month 2: Agent is an expert in your workflow
Knowledge compounds. Every session makes future sessions better.
<!-- ~/Library/LaunchAgents/com.clawdbot.compound-review.plist -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "...">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.clawdbot.compound-review</string>
<key>ProgramArguments</key>
<array>
<string>/opt/homebrew/bin/clawdbot</string>
<string>cron</string>
<string>run</string>
<string>compound-nightly</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>22</integer>
<key>Minute</key>
<integer>30</integer>
</dict>
</dict>
</plist>
# Add with: crontab -e
0 * * * * /opt/homebrew/bin/clawdbot cron run compound-hourly 2>&1 >> ~/clawd/logs/compound.log
Built by LXGIC Studios - @lxgicstudios
Built by LXGIC Studios
Generated Mar 1, 2026
A customer support AI agent uses this skill to review daily interactions, extracting common issues and effective resolutions. It updates its memory with user preferences and troubleshooting patterns, improving response accuracy and reducing escalations over time.
A content creation AI agent analyzes writing sessions to identify successful topics and audience engagement patterns. It compounds knowledge on style preferences and scheduling insights, enabling more targeted and efficient content production.
A coding assistant AI reviews development sessions to learn from code reviews and bug fixes. It updates memory with project-specific patterns and tool preferences, enhancing its ability to suggest relevant code snippets and best practices.
A personal assistant AI reviews daily task sessions to extract productivity patterns and user habits. It compounds knowledge on effective time management strategies and personal preferences, offering more tailored scheduling and reminder suggestions.
A medical research AI agent reviews data analysis sessions to identify recurring insights and error patterns. It updates memory with validated methodologies and user-defined protocols, improving accuracy in generating reports and recommendations.
Offer this skill as a premium add-on for AI agent platforms, charging a monthly fee for automated learning and memory updates. Revenue comes from tiered subscriptions based on usage levels and advanced features like custom extraction rules.
Provide consulting services to help businesses integrate this skill into their existing AI workflows, with packages for setup, customization, and ongoing support. Revenue is generated through one-time project fees and retainer agreements.
Release a free version with basic review capabilities and monetize through premium features like advanced analytics dashboards, team collaboration tools, and priority support. Revenue streams include upgrades and enterprise licenses.
š¬ Integration Tip
Start by setting up the nightly review cron job to automate learning; ensure memory files are version-controlled in git for tracking changes and easy rollbacks.
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