long-task-callback

long-task-callback is a skill for Claude Code, Codex from lz59970062/long-task-wakeup. It costs 113 tokens per session (1,717 once invoked), scanned A, original, MIT.

A task service for running long commands outside Claude Code and waking the same session when they finish.

In plain words
What is it for?
It is for builds, test suites, training, benchmarks, deployments, data jobs, and child-agent work that may take about a minute or longer.
Why use it?
It prevents long jobs from blocking the conversation or dying with a background shell.

Skill for Claude CodeCodex

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

Good fit It is for builds, test suites, training, benchmarks, deployments, data jobs, and child-agent work that may take about a minute or longer.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lz59970062/long-task-wakeup/claude_skill
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 lz59970062/long-task-wakeup --skill claude_skill
Clone the repo
git clone --depth 1 https://github.com/lz59970062/long-task-wakeup

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 long-task-callback

README.md
[![agentmods](https://agentmods.dev/badge/skills/lz59970062/long-task-wakeup/claude_skill/github.svg)](https://agentmods.dev/skills/lz59970062/long-task-wakeup/claude_skill)
Your own site
<a href="https://agentmods.dev/skills/lz59970062/long-task-wakeup/claude_skill"><img src="https://agentmods.dev/badge/skills/lz59970062/long-task-wakeup/claude_skill/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-task-callback

Your own site · 80×15
<a href="https://agentmods.dev/skills/lz59970062/long-task-wakeup/claude_skill"><img src="https://agentmods.dev/badge/skills/lz59970062/long-task-wakeup/claude_skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,717 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.00113 $0.01717
Opus 5.5 $0.00045 $0.00687
Sonnet 5.5 $0.00023 $0.00343
Haiku 4.5 $0.00011 $0.00172

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

Security

Grade A, and why

long-task-callback 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 16d 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.

src/long_task_callback/claude_skill/SKILL.md · 125 lines

How it starts

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

Long Task Callback for Claude Code

LTC hands a long command to an independent OS task owner (launchd on macOS, systemd on Linux, Task Scheduler on Windows) and queues a callback when it exits. In Claude Code you receive that callback in this live session by running ltc wait as a background Bash command: Claude Code wakes you when a background command exits, and ltc wait exits as soon as the callback is ready.

The full reference (all flags, platforms, recovery and goals) is in REFERENCE.md. Read it only when you need details beyond this page. It is shared with other agents; where it differs from this page about callback delivery, this page applies to Claude Code.

When to use it

  • Reliably done within 60 seconds → run it in the foreground once. No LTC.
  • About a minute or longer, uncertain duration, or might need a second check → ltc run from the start.
  • Never keep a job alive by polling it with sleep/tail, and never leave a long job owned by a run_in_background Bash shell: it dies with the session and is not recovered.

The workflow

  1. Submit (foreground; returns in a second or two):

    ltc run --cwd "$PWD" --task "train model" -- python train.py --config configs/exp.yaml
    

    stderr prints the task id, backend, log path, and a ready-made line: ltc: Claude Code live callback: run in the background (run_in_background): .../ltc wait --queue-dir ... --task <id>

    If it instead says the callback arrives through the ltc channel, this session was started with ltc claude: skip step 2. The callback is pushed into this session as a <channel source="ltc"> event; handle it as in step 3.

  2. Wait — run exactly that ltc wait ... --task <id> command with the Bash tool's run_in_background: true. Do not run it in the foreground (it blocks until the job ends), and do not poll its output. Then tell the user what is running and end your turn, or carry on with other work.

  3. Wake up — when the job finishes, the background command exits and prints a callback:

Read the full file on GitHub · 125 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. 16d ago First seen · 125 lines · 113 tokens per session scan A 974c100ebc3b

Subscribe to this mod's changes

long-task-callback is a skill published in the GitHub repository lz59970062/long-task-wakeup (193 stars, last pushed 28d ago), licensed MIT. It adds 113 tokens to every session and 1,717 once invoked, about $0.0005 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-15.

Related

long-task-callback compared with skills from other repositories

long-task-callback next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
long-task-callbacklz59970062/long-task-wakeupSkill19328d agoMITA113Claude Code, Codex
gke-compute-classesgoogle/skillsSkill25ktodayApache-2.0A83Claude Code, Codex
cloud-operator-admin-setupgoogle/skillsSkill25ktodayApache-2.0A115Claude Code, Codex
gke-reliabilitygoogle/skillsSkill25ktodayApache-2.0A85Claude Code, Codex
gke-workload-securitygoogle/skillsSkill25ktodayApache-2.0A171Claude Code, Codex
nemo-automodel-launcher-configNVIDIA/skillsSkill4.3ktodayApache-2.0A30Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3ktodayMITA78Claude Code