Borrowing it
Nothing to install: this file belongs to marciopuga/cog. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/marciopuga/cog/main/.claude/commands/foresight.mdgit clone --depth 1 https://github.com/marciopuga/cogWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/marciopuga/cog/foresight)<a href="https://agentmods.dev/commands/marciopuga/cog/foresight"><img src="https://agentmods.dev/badge/commands/marciopuga/cog/foresight/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/marciopuga/cog/foresight"><img src="https://agentmods.dev/badge/commands/marciopuga/cog/foresight.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00060 | $0.01162 |
| Opus 5.5 | $0.00024 | $0.00465 |
| Sonnet 5.5 | $0.00012 | $0.00232 |
| Haiku 4.5 | $0.00006 | $0.00116 |
Grade A, and why
foresight scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cog Foresight
Strategic foresight — connecting dots across domains. Future-facing.
This is NOT reflect (past-facing). Foresight scans broadly and projects trajectories.
Run on demand, not on a schedule. A nudge nobody asked for is noise; a nudge in answer to "what should I be thinking about?" is the point. The nudge is delivered in the conversation — the file is the record, and it surfaces again through the retrieval protocol's Overview query type while it's fresh.
Memory Path
All files under the resolved memory path: $COG_HOME/memory/ if COG_HOME is set, otherwise ~/cog/memory/.
Minimum Data Check
Before scanning, verify there's enough material for meaningful foresight:
- If total observations across all domains < 10: stop. Say "Not enough history for strategic foresight. Keep capturing for a few more weeks."
- If only 1 domain has data: say "Foresight works best with 2+ active domains (it connects dots between them). Consider adding more domains or building out existing ones."
- If no action items exist: say "No active items to assess velocity on. Capture some tasks first."
Don't force a nudge from thin data. One honest "not yet" is better than a weak insight.
Files to Read
Read broadly — this is a scan:
- Read
memory/domains.ymlto discover all active domains - For each domain:
hot-memory.md+action-items.md - Also read:
memory/hot-memory.md(cross-domain context)memory/personal/entities.md(birthdays, relationships)memory/personal/calendar.md(upcoming events)memory/personal/health.md(health trajectory)- Recent observations across all domains (last 7 days)
- Thread current-state sections
Process
1. Cross-Domain Convergence
Look for topics, people, or themes appearing in 2+ domains simultaneously. These are convergence points — where effort in one area compounds into another.
2. Velocity & Stall Detection
Classify active items:
- Accelerating — multiple updates last week. Signal: ride the wave.
- Cruising — steady progress. Signal: nothing to flag.
- Stalling — no movement 2+ weeks. Signal: blocked or lost priority?
- Dormant — domain silence 4+ weeks. Signal: conscious or drift?
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago Changed · +3 lines · +21 tokens per session f7bd36d71d44
- 2mo ago First seen · 120 lines · 39 tokens per session scan A 8252cc63d3d8
foresight is a command published in the GitHub repository marciopuga/cog (377 stars, last pushed 2mo ago), licensed MIT. It adds 60 tokens to every session and 1,162 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
foresight compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| foresightmarciopuga/cog | Command | 377 | 2mo ago | MIT | A | 60 | Claude Code |
| checklistgithub/spec-kit | Command | 148k | yesterday | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 148k | yesterday | MIT | A | 27 | Claude Code |
| specifygithub/spec-kit | Command | 148k | yesterday | MIT | A | 13 | Claude Code |
| analyzegithub/spec-kit | Command | 148k | yesterday | MIT | A | 26 | Claude Code |
| convergegithub/spec-kit | Command | 148k | yesterday | MIT | A | 35 | Claude Code |
| implementgithub/spec-kit | Command | 148k | yesterday | MIT | A | 14 | Claude Code |