Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add winstonkoh87/Athena-Public --skill daemon-loopgit clone --depth 1 https://github.com/winstonkoh87/Athena-PublicWrote 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/skills/winstonkoh87/athena-public/daemon-loop)<a href="https://agentmods.dev/skills/winstonkoh87/athena-public/daemon-loop"><img src="https://agentmods.dev/badge/skills/winstonkoh87/athena-public/daemon-loop/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/skills/winstonkoh87/athena-public/daemon-loop"><img src="https://agentmods.dev/badge/skills/winstonkoh87/athena-public/daemon-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00042 | $0.01070 |
| Opus 5.5 | $0.00017 | $0.00428 |
| Sonnet 5.5 | $0.00008 | $0.00214 |
| Haiku 4.5 | $0.00004 | $0.00107 |
Grade A, and why
daemon-loop 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 1mo 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 — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Daemon Loop — Autonomous Agent Infrastructure
Source: Boris Cherny (Claude Code creator), X thread 2026-03-30 (CS-560) Pattern: "Turn workflows into skills, then loop them."
Core Concept
Traditional Athena workflows are pull-based — user triggers /start, /audit, /reindex manually.
Daemon loops are push-based — they run autonomously at set intervals without user invocation.
This is the difference between a tool and infrastructure.
When to Use
| Use Case | Interval | Workflow |
|---|---|---|
| Memory consolidation (dream pass) | 24h (3-gate) | /dream |
| Memory sync to Supabase | 60m | /reindex |
| Workspace hygiene + dead file pruning | 24h | /needful |
| PR/commit review (if git-active) | 5m | /check |
Stale context detection (.context/ drift) |
12h | /audit (lightweight) |
| Client delivery queue check | 30m | Custom scan |
Architecture
Option A: Cron + Headless Agent (Current-Compatible)
For environments where the agent platform supports CLI invocation:
# Example: reindex every hour
0 * * * * cd ./project && claude --bare -p "/reindex" 2>&1 >> .agent/temp/daemon.log
# Example: workspace hygiene daily at 4am
0 4 * * * cd ./project && claude --bare -p "/needful" 2>&1 >> .agent/temp/daemon.log
Key: --bare flag skips full context loading for speed. Only load what the specific daemon needs.
Option B: In-Session Loop (Manual Trigger)
When cron is unavailable, run a daemon within an active session:
User: "Loop /reindex every 60 minutes for the next 8 hours"
Agent: [Executes /reindex, sleeps 60m, repeats 8x]
Constraint: Requires an active session. Prefer Option A for true autonomy.
Option C: Async-Dev Integration
Combine with /async-dev (Sleeper Agent Protocol):
- User sets up daemon tasks before sleeping
- Agent executes loop overnight
- Morning: user reads
STATUS.mdfor results
Daemon Registration
Track active daemons in .agent/temp/daemons.json:
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.
- 1mo ago First seen · 117 lines · 42 tokens per session scan A ccef21737a2e
daemon-loop is a skill published in the GitHub repository winstonkoh87/Athena-Public (619 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 1,070 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.
Other skills, from other repositories
temp-file-python-analysis
Inline Python in shell scripts has quoting issues.
Context Hygiene & Session Management
Monitors conversation complexity and manages session boundaries. Proactively secures state and memory before advising the user to split work across separate chat sessions, preventing context bloat.
slacrawl
Archive and search Slack workspace messages, threads, and channels via the slacrawl CLI. Supports API sync, Slack export ZIP import, local desktop cache import, and full-text search.
material-organizer
Organize only the materials the user has already provided or explicitly pointed to. The job is to make messy inputs easier to scan, reuse, archive, or continue from later while preserving source traceability.
obsidian
Read, search, and create notes in the Obsidian vault.
gmail-trigger
Beta. Act on new Gmail as it arrives: get pinged only for urgent mail, digest newsletters, forward invoices — any standing instruction, across one or several accounts.