long-task-callback

long-task-callback is a skill for Codex from lz59970062/long-task-wakeup. It costs 79 tokens per session (8,709 once invoked), scanned A, a copy of long-task-callback, MIT.

A task service for handing long-running commands or child AI agents to an independent process, then sending a completion callback back to the original session.

In plain words
What is it for?
It is for builds, tests, training jobs, benchmarks, data work, deployments, and delegated agent tasks that may take a while.
Why use it?
Long jobs can outlive a chat turn without blocking the agent or being lost when the session ends.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions subagents; mentions Claude Code; runs codex exec.

Good fit It is for builds, tests, training jobs, benchmarks, data work, deployments, and delegated agent tasks that may take a while.

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

Made for: 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/skill/github.svg)](https://agentmods.dev/skills/lz59970062/long-task-wakeup/skill)
Your own site
<a href="https://agentmods.dev/skills/lz59970062/long-task-wakeup/skill"><img src="https://agentmods.dev/badge/skills/lz59970062/long-task-wakeup/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/skill"><img src="https://agentmods.dev/badge/skills/lz59970062/long-task-wakeup/skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,709 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 95% copy Near-identical to another mod 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.00079 $0.08709
Opus 5.5 $0.00032 $0.03484
Sonnet 5.5 $0.00016 $0.01742
Haiku 4.5 $0.00008 $0.00871

Measured 16d ago against content hash c6cc89edea77, 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 1 finding 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

status = subprocess.call(["python", "train.py", "--config", "configs/exp.yaml"])
Origin

This is a copy

95% identical to long-task-callback — 15 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

src/long_task_callback/skill/SKILL.md · 744 lines

How it starts

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

Long Task Callback

Rule

Use an explicit callback when requested or when a command may outlive the current Codex or Claude Code turn.

There are three public workflows:

  • ltc run -- <command> submits a new long-running task. The daemon launches it through an independent task owner (systemd on Linux, launchd on macOS, Task Scheduler on Windows; screen fallback on Linux/macOS).
  • ltc agent codex|claude|pi -- <prompt> submits a fresh child agent through the same durable lifecycle. Codex/Claude are available since 0.6.5; Pi is a child worker and callback parent in the current preview.
  • ltc done ... queues a completion callback for work already owned by screen, tmux, Slurm, another scheduler, or an existing script.

Daemon handoff is unconditional and requires no opt-in flag. Never add --via-daemon to newly written commands; old scripts may still pass it as a hidden no-op compatibility flag. Do not invent another public launch flag or a direct-mode flag. Do not use a direct recursive codex exec resume or claude -p --resume call from an agent tool sandbox. Do not let callback behavior change the task's original exit code unless the user explicitly requests --strict.

Registered task templates

ltc template register NAME --file /path/to/template.yaml installs a user template, copies its system-prompt dependencies, and creates a short ltc-NAME discovery skill. The YAML's worker and description describe the capability; CLI options can supply or override them. ltc template list --json shows the registered capabilities. The generated entrypoint binds the installed template file so another workspace's LTC_TEMPLATE_DIR cannot select a different same-named template. Keep Agent profile settings and the current parent's callback binding.

Read the matching entrypoint and pass actual task scope, target paths and evidence constraints. Check readiness with ltc doctor --operation agent --agent-worker WORKER and validate submission with --dry-run when needed. Routine local edits need not be delegated. On completion, inspect the real result and edits, ACK and continue.

Read the full file on GitHub · 744 lines

Files

What ships with it

1 file 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. 16d ago First seen · 744 lines · 79 tokens per session scan A c6cc89edea77

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 79 tokens to every session and 8,709 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). It is 95% identical to long-task-callback, differing in 15 lines, and is treated as a copy.

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 agoMITA79Codex
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