Usage
How It Works
- Scans
knowledge/*.mdfor all active docs - Reads last N days of journal entries
- Extracts topics from both docs and journals
- Computes drift score per doc:
- Age penalty (>7 days starts drifting)
- Journal activity penalty (lots of activity + stale doc = drift)
- Stale topic penalty (topics in doc not mentioned in journals)
- Generates
knowledge/PENDING.mdwith:- TLDR of what needs attention
- Uncovered topics (journals mention, no doc covers)
- Per-doc proposed updates with evidence
- Open questions for human review
Output
The PENDING.md Workflow
PENDING.md acts as a PR for your knowledge base:Example PENDING.md
Options
| Flag | Description |
|---|---|
--fix | Generate PENDING.md (same as default) |
--apply | Apply reviewed changes, clear PENDING.md |
--archive | Move archive-candidate docs to knowledge/archive/ |
--days <N> | Journal lookback period (default: 30) |