long-running-agent-workflow

long-running-agent-workflow is a skill for Claude Code from bestdeejay-design/agent-skills. It costs 124 tokens per session (1,630 once invoked), scanned A, original, MIT.

A workflow for AI coding agents handling projects that span multiple work sessions. It tracks small features, their acceptance checks, and progress in a project folder.

In plain words
What is it for?
Use it to break a large coding project into one-feature tasks, test each feature, record checkpoints, and recover work after a broken session.
Why use it?
It prevents lost context, half-finished work, and uncertainty about what is actually complete between sessions.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter. Also seen: mentions OpenCode.

Good fit Use it to break a large coding project into one-feature tasks, test each feature, record checkpoints, and recover work after a broken session.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bestdeejay-design/agent-skills/long-running-agent-workflow
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 bestdeejay-design/agent-skills --skill long-running-agent-workflow
Clone the repo
git clone --depth 1 https://github.com/bestdeejay-design/agent-skills

Made for: Claude Code.

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 long-running-agent-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/bestdeejay-design/agent-skills/long-running-agent-workflow/github.svg)](https://agentmods.dev/skills/bestdeejay-design/agent-skills/long-running-agent-workflow)
Your own site
<a href="https://agentmods.dev/skills/bestdeejay-design/agent-skills/long-running-agent-workflow"><img src="https://agentmods.dev/badge/skills/bestdeejay-design/agent-skills/long-running-agent-workflow/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 long-running-agent-workflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/bestdeejay-design/agent-skills/long-running-agent-workflow"><img src="https://agentmods.dev/badge/skills/bestdeejay-design/agent-skills/long-running-agent-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,630 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.00124 $0.01630
Opus 5 $0.00062 $0.00815
Sonnet 5 $0.00025 $0.00326
Haiku 4.5 $0.00012 $0.00163

Measured 10d ago against content hash 4ac1d4f0380f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

long-running-agent-workflow 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 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/lra_cli.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/long-running-agent-workflow/SKILL.md · 165 lines

How it starts

The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Long-Running Agent (LRA) Workflow

Load this skill when you are about to work on a large project that will span multiple sessions / context windows and you need continuity, atomic handoffs, and recovery from broken states.

The skill gives you a tiny CLI (scripts/lra_cli.py) that maintains a .lra/ directory: a machine-readable feature-list.json (atomic features with acceptance criteria and status) and a human/agent-readable progress.txt (session log). The protocol turns "one big vague task" into a sequence of small, fully-tested, check-pointed features.


Overview — the problem

AI agents working across many context windows hit three failure modes:

  • Context amnesia — each new session has no memory of prior work.
  • One-shot tendency — trying to do too much at once, leaving half-done features.
  • Incomplete features — work spans sessions with no clear acceptance gate, so "done" is never verified.

LRA fixes this with: structured init, one atomic feature per session, an explicit test gate before done, and a checkpoint after every feature so the next session can recover.


When to use

  • Long, multi-session projects (hours/days, many context windows).
  • Any task where you might lose context between runs.
  • Triggers: lra, checkpoint, feature list, long running, продолжи работу над проектом, долгая сессия, план фич, статус проекта.

If the task is small and finishes in one session, you do not need this skill — just do the work.


Prerequisites

  • A git repository (so checkpoints can be committed and recovered).
  • Python 3 on PATH (the CLI is pure stdlib, no dependencies).
  • Run the CLI from the project root (it creates/reads .lra/ there).

Instructions

Phase 1 — Init

python3 scripts/lra_cli.py init "Short project description"

Creates .lra/feature-list.json ({"project": ..., "features": [], "created": <date>}) and .lra/progress.txt with a header. Refuses (exit 1) if .lra/ already exists, so you never clobber an in-progress project.

Read the full file on GitHub · 165 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago First seen · 165 lines · 124 tokens per session scan A 4ac1d4f0380f

Subscribe to this mod's changes

long-running-agent-workflow is a skill published in the GitHub repository bestdeejay-design/agent-skills (5 stars, last pushed 3d ago), licensed MIT. It adds 124 tokens to every session and 1,630 once invoked, about $0.0006 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-31.