Context Anchor
Recover from context compaction by scanning memory files and surfacing where you left off. Use when waking up fresh, after compaction, or when you feel lost about what you were doing.
Recover from context compaction by scanning memory files and surfacing where you left off. Use when waking up fresh, after compaction, or when you feel lost about what you were doing.
Real data. Real impact.
Emerging
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
Helps agents recover context after compaction by scanning memory files and generating a "here's where you are" briefing.
Context compaction loses memory. Files survive. But after waking up fresh, you need to:
This skill automates that recovery.
# Full briefing (default) ./scripts/anchor.shJust show current task
./scripts/anchor.sh --task
Just show active context files
./scripts/anchor.sh --active
Just show recent decisions
./scripts/anchor.sh --decisions
Show open loops / questions
./scripts/anchor.sh --loops
Scan specific number of days back
./scripts/anchor.sh --days 3
| Source | What It Extracts |
|---|---|
| Current task status, blockers, next steps |
| Recent daily logs (last 2 days by default) |
| In-progress task files |
| Daily logs | Decisions (lines with "Decision:", "Decided:", "✅") |
| Daily logs | Open loops (lines with "?", "TODO:", "Blocker:", "Need to") |
The script outputs a structured briefing:
═══════════════════════════════════════════════════════════ CONTEXT ANCHOR Where You Left Off ═══════════════════════════════════════════════════════════📋 CURRENT TASK ─────────────────────────────────────────────────────────── [Contents of memory/current-task.md or "No current task set"]
📂 ACTIVE CONTEXT FILES ─────────────────────────────────────────────────────────── • context/active/project-name.md (updated 2h ago) └─ First line preview...
🎯 RECENT DECISIONS (last 2 days) ─────────────────────────────────────────────────────────── [2026-01-30] Decision: Use Cloudflare Pages for hosting [2026-01-30] ✅ Completed email capture setup
❓ OPEN LOOPS ─────────────────────────────────────────────────────────── [2026-01-30] Need to enable SFTP on NAS [2026-01-30] TODO: Create Product Hunt account
═══════════════════════════════════════════════════════════
Add to your "Every Session" routine:
## Every SessionBefore doing anything else:
- Run
for orientation./skills/context-anchor/scripts/anchor.sh- Read
— this is who you areSOUL.mdRead— this is who you're helping ...USER.md
Or use it manually when you feel lost about context.
WORKSPACE=/path/to/workspace ./scripts/anchor.sh
./scripts/anchor.sh --days 5 # Scan 5 days back
Pure bash. Uses only:
find, grep, head, tail, date, statNo automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.