Agent skill · operations · sundial-org
compound-engineering-2
Make 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.
Why this skill is useful
Adds executable scripts for automated learning and memory management that enhance the AI's capabilities significantly.
What it needs
Requires npx installed locally. About 3k tokens when loaded. Last updated 2026-03-07. 639 stars on the source repository.
What this skill does
Compound Engineering Make 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. --- Quick Start --- How It Works The Compound Loop What Gets Extracted Patterns: Recurring approaches that worked Gotchas: Things that failed or caused issues Preferences: User preferences discovered Decisions: Key decisions and their reasoning TODOs: Unfinished items to remember --- Clawdbot Integration Automatic Hourly Memory Add to your HEARTBEAT.md: Or use cron: Nightly Review Job Add this cron job to Clawdbot: --- Manual Review Command When you want to trigger a review manually: --- Memory File Structure MEMORY.md (Long-term) memory/YYYY-MM-DD.md (Daily) --- Hourly Snapshots For more granular memory, create hourly snapshots: Or have the agent do it via heartbeat by checking time and appending to daily file. --- The Compound Effect 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. --- Setup Scripts Nightly Review (launchd - macOS) Hourly Memory (crontab) --- Best Practices 1. Review before sleep - Let the nightly job run when you're done for the day 2. Don't over-extract - Focus on significant learnings, not noise 3. Prune regularly - Remove outdated info from MEMORY.md monthly 4. Git everything - Memory files should be version controlled 5. Trust the compound - Effects are subtle at first, dramatic over time --- Built by LXGIC Studios - @lxgicstudios
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills sundial-org/compound-engineering-2