Focus Tree
by @noquant
Maintain persistent focus on active work with hierarchical task tracking. Prevents the agent from forgetting mid-project context, drifting between topics, or...
Focus Tree operates on FOCUS.md and FOCUS-LOG.md directly.
Option 1: CLI Script (recommended)
node scripts/focus.mjs init "Project Name" # Initialize
node scripts/focus.mjs add-todo "Task" # Add task
node scripts/focus.mjs done 1 # Mark done
node scripts/focus.mjs status active # Update status
node scripts/focus.mjs archive "Outcome" # Archive
Option 2: Direct File Operations
read /path/to/workspace/FOCUS.md
edit /path/to/workspace/FOCUS.md
old: "β Incomplete task"
new: "β
Completed task"
1. One focus at a time. If the user pivots, archive the old focus first.
2. Keep it short. FOCUS.md should be <50 lines. It's a resume point, not a journal.
3. π Context is sacred. Always update it before stopping work. Future-you reads this first.
4. Don't duplicate memory files. FOCUS.md tracks *what we're doing now*. Daily memory files track *what happened*. Different jobs.
5. Archive when done. Append completed focuses to FOCUS-LOG.md with completion date and outcome, then clear FOCUS.md.
6. Read it, don't ask. If FOCUS.md exists, read it and resume. Don't ask "what were we working on?" when the answer is in the file.
clawhub install focus-tree