retomar

retomar is a command for coding agents from 686f6c61/alfred-dev. It costs 18 tokens per session (518 once invoked), scanned A, original, MIT.

A command for continuing an unfinished development session or a handoff, which is a written record of work passed to the next session.

In plain words
What is it for?
Use it to resume active work, continue from a saved handoff, or identify what to do when no resumable session exists.
Why use it?
It shows the current workflow, stage, pending approval, and next action instead of making the developer reconstruct the previous state.

Command

Part of the alfred-dev plugin — 11 skills, 22 commands, 10 agents, 5 hooks, 1 MCP server shipped together

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.

agentmods
npx agentmods add commands/686f6c61/alfred-dev/retomar
Clone the repo
git clone --depth 1 https://github.com/686f6c61/alfred-dev

Or install alfred-dev, the plugin that ships this one along with the rest of its 11 skills, 22 commands, 10 agents, 5 hooks, 1 MCP server.

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 retomar

README.md
[![agentmods](https://agentmods.dev/badge/commands/686f6c61/alfred-dev/retomar.svg)](https://agentmods.dev/commands/686f6c61/alfred-dev/retomar)
Your own site
<a href="https://agentmods.dev/commands/686f6c61/alfred-dev/retomar"><img src="https://agentmods.dev/badge/commands/686f6c61/alfred-dev/retomar.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 518 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00018 $0.00518
Opus 5 $0.00009 $0.00259
Sonnet 5 $0.00004 $0.00104
Haiku 4.5 $0.00002 $0.00052

Measured 4d ago against content hash 60a95c8d4b8b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

retomar 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 4d 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.

commands/retomar.md · 47 lines

What it actually says

/alfred-dev:retomar

Eres Alfred. Tu misión es retomar el trabajo donde se dejó, no empezar desde cero.

Protocolo

Primero ejecuta el helper determinista del plugin:

python3 .claude/alfred-continuity.py resume "$PWD"

Si devuelve salida útil, úsala como respuesta final y termina. No la reenvuelvas con un segundo resumen: el helper ya deja flujo, fase, gate, siguiente acción y, si hay, la última decisión de memoria y los ADR aceptados. Si el trabajo de hoy contradice un ADR aceptado, dilo en la misma respuesta.

Solo si el helper falla, cae al modo manual:

  1. Lee .claude/alfred-dev-state.json.
  2. Lee .claude/alfred-handoff.json si existe.
  3. Prioridad de reanudación:
    • sesión activa en .claude/alfred-dev-state.json
    • si no existe, handoff pendiente en .claude/alfred-handoff.json
    • si no existe ninguno, redirige a /alfred-dev:alfred
  4. Al retomar, muestra de forma compacta:
    • flujo
    • descripción
    • fase actual
    • gate pendiente
    • siguiente acción concreta
  5. Si .claude/alfred-dev-state.json tiene paused_at o paused_via, elimínalos antes de continuar. Añade resumed_at para dejar constancia de la reanudación.
  6. Como .claude/* es sensible en Claude Code, NO uses Write ni Edit para ese estado. Si de verdad tienes que caer al modo manual, usa Bash.

/alfred-dev:resume NO debe abrir una nueva iteración del flujo ni avanzar la fase dentro de este mismo comando. Su trabajo es dejar el estado coherente y explicar exactamente qué toca al volver. Si la gate pendiente es de usuario, indícalo con claridad y termina. NO uses AskUserQuestion dentro de /alfred-dev:resume.

Restricciones

  • No ignores el handoff si aporta contexto que no está en el estado.
  • No abras un flujo nuevo si hay trabajo pendiente.
  • Si no hay nada que retomar, dilo y dirige al usuario a /alfred-dev:alfred.
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. 4d ago First seen · 47 lines · 18 tokens per session scan A 60a95c8d4b8b

Subscribe to this mod's changes

retomar is a command published in the GitHub repository 686f6c61/alfred-dev (119 stars, last pushed 19d ago), licensed MIT. It adds 18 tokens to every session and 518 once invoked, about $0.0001 per session on Opus 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.

Related

Other commands, from other repositories

e2e-test

Generate end-to-end tests using Playwright (web) and Detox (mobile). Covers user flows, visual regression, and cross-browser testing. Usage: /e2e-test [flow-name|--all] [--visual].

alphaaiservice/cortex · 46 tokens

gen-brand

Generate complete brand identity with SVG logos, color system, typography, and design tokens. Claude writes SVG code directly — no API key needed. Usage: /gen-brand 'ProductName — description' or /gen-brand ./PRD.md.

alphaaiservice/cortex · 47 tokens

init-project

Initialize a new or upgrade existing project with Alpha AI's standard architecture. Supports Python/FastAPI, Node.js/NestJS, Java/Spring Boot. Usage: /init-project [--lang=python|nestjs|springboot] [--with-frontend] [--with-mobile] [--with-ai] [--existing].

alphaaiservice/cortex · 71 tokens

accessibility

Audit frontend for WCAG 2.1 AA compliance: check semantic HTML, ARIA labels, color contrast, keyboard navigation, screen reader support. Usage: /accessibility [page-or-component] [--fix] [--level=AA|AAA].

alphaaiservice/cortex · 52 tokens

gen-ci

Generate CI/CD pipelines for GitHub Actions, GitLab CI, or Bitbucket Pipelines. Auto-detects stack from project. Usage: /gen-ci [github-actions|gitlab-ci|bitbucket] [--full].

alphaaiservice/cortex · 47 tokens

gen-prd

Generate a detailed PRD from a brief idea, pre-configured for Alpha AI's tech stack. Supports Python/FastAPI, Node.js/NestJS, Java/Spring Boot backends. Usage: /gen-prd 'brief product idea' [--lang=python|nestjs|springboot].

alphaaiservice/cortex · 61 tokens