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 getlytos/lytos-cli --skill reference-loopgit clone --depth 1 https://github.com/getlytos/lytos-cliWrote 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/getlytos/lytos-cli/reference-loop)<a href="https://agentmods.dev/skills/getlytos/lytos-cli/reference-loop"><img src="https://agentmods.dev/badge/skills/getlytos/lytos-cli/reference-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/getlytos/lytos-cli/reference-loop"><img src="https://agentmods.dev/badge/skills/getlytos/lytos-cli/reference-loop.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.00075 | $0.02367 |
| Opus 5.5 | $0.00030 | $0.00947 |
| Sonnet 5.5 | $0.00015 | $0.00473 |
| Haiku 4.5 | $0.00007 | $0.00237 |
Grade A, and why
reference-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 3d 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 — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill — Reference loop
The reference wrapper of the Lytos loop. The CLI provides the primitives; it never calls an AI and never runs the loop. This skill is the text an agent follows to chain them. Part 1 is the contract any wrapper must honor, whatever the agent. Part 2 applies it in Claude Code.
When to invoke this skill
- The owner asks the agent to work through the sprint, or to take the next card, with no human turn between cards
- A scheduled or scripted session runs the loop on its own
- Never for a card the CLI refuses (a Definition of done with no
verify: autoitem, a card that is not ready): that card is for a person
Part 1 — The wrapper contract (any agent)
The owner frames at the entrance (the sprint) and accepts at the exit (npx lyt close, on a packet of evidence). The loop runs between those two gates and never past the second one.
For each card, in this order:
- Select. Run
npx lyt showfirst: a card of yours already in3-in-progress(sent back from review with a fix list) is finished before a new one is taken. Then runnpx lyt next --json. Take thepick; never choose another card and never pull one in from the backlog. With nopick, stop and tell the owner why, from thereasonof eachblockedcard (deps-pending,no-dod,all-human-dod,no-machine-dod,not-ready,epic-in-discovery). - Check the budget. Run
npx lyt budget. A non-zero exit means a ceiling is breached: stop (case 4). With no ceiling set, say in the first message of the run that it is uncapped; that is the owner's choice, not the wrapper's. - Take and start. Run
npx lyt start ISS-XXXX: it assigns the card to the git identity, moves it to3-in-progressand creates the branch the card names.npx lyt claim ISS-XXXXis the same gesture for a card taken by hand; use one of the two, never both. When the CLI refuses (an origin that is ahead, a card claimed by someone else), do not pass--force: the card is not yours, so skip it for the rest of the run and list it in the final report. - Brief. Work from the card, never from the conversation, which does not survive a session: the card itself (
npx lyt show ISS-XXXX --jsongives itsbodyand itsdod), including the Ready section (scope, constraints, out of scope),manifest.md,rules/default-rules.md,quality/stack.mdand the task skills that apply: those the card names and those whosedescriptionmatches the task (skills/session-start.md, "Task skills"). What the card puts out of scope stays out. - Build and tick as you go. Build inside the Ready scope and commit with
Refs: ISS-XXXX. Tick averify: autoitem only once its test or command has passed. Never tick averify: revieweror averify: humanitem. - Prove. Run
npx lyt gates ISS-XXXX --json:requiredlists the gates the card'sriskmakes mandatory, each with akindand atool. Run everygatewhosetoolis a command and record its exit code; atoolthat is a convention ("lockfile committed") is checked by reading, and said so. Areviewerorhumanline is not run by the loop: it goes to the packet. A red gate is fixed and the whole set is run again. - Hand over. Run
npx lyt move ISS-XXXX 4-review, thennpx lyt report ISS-XXXX: the review packet, doubt first, is what the loop delivers. The review is not the loop's:npx lyt review ISS-XXXXprints the audit prompt for a fresh session, ideally of another model or vendor. The wrapper never writes a verdict on its own work (npx lyt review --verdict,npx lyt review --accept) and never rules on averify: revieweritem. Then go back to step 1. - Park, never guess. When the card cannot go on, run
npx lyt park ISS-XXXX --reason <reason>with one reason of the closed taxonomy below, then go back to step 1. Parking is a first-class exit, not a failure. Returning a card to the sprint (npx lyt unpark) is the owner's call.
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.
- 3d ago Changed 30293290d2e7
- 12d ago First seen · 76 lines · 75 tokens per session scan A bded6e8076dc
reference-loop is a skill published in the GitHub repository getlytos/lytos-cli (2 stars, last pushed today), licensed MIT. It adds 75 tokens to every session and 2,367 once invoked, about $0.0003 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-11-21.
reference-loop compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| reference-loopgetlytos/lytos-cli | Skill | 2 | today | MIT | A | 75 | Claude Code, Codex |
| project-spine-kickoffPetriLahdelma/project-spine | Skill | 2 | yesterday | MIT | A | 84 | Claude Code, Codex |
| project-spinePetriLahdelma/project-spine | Skill | 2 | yesterday | MIT | A | 80 | Claude Code, Codex |
| project-spine-driftPetriLahdelma/project-spine | Skill | 2 | yesterday | MIT | A | 87 | Claude Code, Codex |
| project-spine-templatePetriLahdelma/project-spine | Skill | 2 | yesterday | MIT | A | 66 | Claude Code, Codex |
| project-spine-rationalePetriLahdelma/project-spine | Skill | 2 | yesterday | MIT | A | 57 | Claude Code, Codex |
| project-spine-workspacePetriLahdelma/project-spine | Skill | 2 | yesterday | MIT | A | 55 | Claude Code, Codex |