reference-loop

reference-loop is a skill for Claude Code, Codex from getlytos/lytos-cli. It costs 75 tokens per session (2,367 once invoked), scanned A, original, MIT.

A procedure for taking eligible work cards from a sprint, implementing them, running their required checks, and preparing evidence for human review. A sprint is a planned group of work items completed over a short period.

In plain words
What is it for?
Use it to work through one card or several ready cards with the Lytos command-line tool, while stopping when a card needs a person or fails its required conditions.
Why use it?
It gives an agent a fixed sequence for choosing work and stopping at review, rather than selecting arbitrary backlog items or continuing past the defined approval point.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions Claude Code.

Good fit Use it to work through one card or several ready cards with the Lytos command-line tool, while stopping when a card needs a person or fails its required conditions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/getlytos/lytos-cli/reference-loop
Install

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.

Any agent
npx skills add getlytos/lytos-cli --skill reference-loop
Clone the repo
git clone --depth 1 https://github.com/getlytos/lytos-cli

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for reference-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/getlytos/lytos-cli/reference-loop/github.svg)](https://agentmods.dev/skills/getlytos/lytos-cli/reference-loop)
Your own site
<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.

agentmods 80×15 button for reference-loop

Your own site · 80×15
<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>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,367 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 3d ago against content hash 30293290d2e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.lytos/skills/reference-loop/SKILL.md · 76 lines

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: auto item, 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:

  1. Select. Run npx lyt show first: a card of yours already in 3-in-progress (sent back from review with a fix list) is finished before a new one is taken. Then run npx lyt next --json. Take the pick; never choose another card and never pull one in from the backlog. With no pick, stop and tell the owner why, from the reason of each blocked card (deps-pending, no-dod, all-human-dod, no-machine-dod, not-ready, epic-in-discovery).
  2. 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.
  3. Take and start. Run npx lyt start ISS-XXXX: it assigns the card to the git identity, moves it to 3-in-progress and creates the branch the card names. npx lyt claim ISS-XXXX is 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.
  4. Brief. Work from the card, never from the conversation, which does not survive a session: the card itself (npx lyt show ISS-XXXX --json gives its body and its dod), including the Ready section (scope, constraints, out of scope), manifest.md, rules/default-rules.md, quality/stack.md and the task skills that apply: those the card names and those whose description matches the task (skills/session-start.md, "Task skills"). What the card puts out of scope stays out.
  5. Build and tick as you go. Build inside the Ready scope and commit with Refs: ISS-XXXX. Tick a verify: auto item only once its test or command has passed. Never tick a verify: reviewer or a verify: human item.
  6. Prove. Run npx lyt gates ISS-XXXX --json: required lists the gates the card's risk makes mandatory, each with a kind and a tool. Run every gate whose tool is a command and record its exit code; a tool that is a convention ("lockfile committed") is checked by reading, and said so. A reviewer or human line is not run by the loop: it goes to the packet. A red gate is fixed and the whole set is run again.
  7. Hand over. Run npx lyt move ISS-XXXX 4-review, then npx 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-XXXX prints 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 a verify: reviewer item. Then go back to step 1.
  8. 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.

Read the full file on GitHub · 76 lines

Changes

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.

  1. 3d ago Changed 30293290d2e7
  2. 12d ago First seen · 76 lines · 75 tokens per session scan A bded6e8076dc

Subscribe to this mod's changes

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.

Related

reference-loop compared with skills from other repositories

reference-loop next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
reference-loopgetlytos/lytos-cliSkill2todayMITA75Claude Code, Codex
project-spine-kickoffPetriLahdelma/project-spineSkill2yesterdayMITA84Claude Code, Codex
project-spinePetriLahdelma/project-spineSkill2yesterdayMITA80Claude Code, Codex
project-spine-driftPetriLahdelma/project-spineSkill2yesterdayMITA87Claude Code, Codex
project-spine-templatePetriLahdelma/project-spineSkill2yesterdayMITA66Claude Code, Codex
project-spine-rationalePetriLahdelma/project-spineSkill2yesterdayMITA57Claude Code, Codex
project-spine-workspacePetriLahdelma/project-spineSkill2yesterdayMITA55Claude Code, Codex