long-task-callback

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

A task service for running long commands outside Pi and steering the finished result back into the same Pi session.

In plain words
What is it for?
It is for long builds, tests, training, benchmarks, deployments, data jobs, and child-agent tasks.
Why use it?
It avoids blocking the agent and removes the need to keep checking logs while a job runs.

Skill for Claude CodeCodex

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

Good fit It is for long builds, tests, training, benchmarks, deployments, data jobs, and child-agent tasks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lz59970062/long-task-wakeup/pi_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 pi_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/pi_skill/github.svg)](https://agentmods.dev/skills/lz59970062/long-task-wakeup/pi_skill)
Your own site
<a href="https://agentmods.dev/skills/lz59970062/long-task-wakeup/pi_skill"><img src="https://agentmods.dev/badge/skills/lz59970062/long-task-wakeup/pi_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/pi_skill"><img src="https://agentmods.dev/badge/skills/lz59970062/long-task-wakeup/pi_skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,063 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.00104 $0.01063
Opus 5.5 $0.00042 $0.00425
Sonnet 5.5 $0.00021 $0.00213
Haiku 4.5 $0.00010 $0.00106

Measured 16d ago against content hash c278df74e9f7, 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/pi_skill/SKILL.md · 81 lines

How it starts

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

Long Task Callback for Pi

LTC hands a long command to an independent OS task owner (systemd on Linux, launchd on macOS, Task Scheduler on Windows; screen as fallback) and queues a callback when it exits. LTC's Pi extension delivers that callback into this live Pi process through Pi's native steering: while you are busy it arrives after the current tool batch, before your next model call; while idle it starts a normal turn. You do not need to wait, poll, or end your run to receive it.

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

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 with sleep/tail polling or a blocking tool call. Steering cannot interrupt a running tool, so a long foreground command also delays your callbacks.

The workflow

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

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

    Inside Pi's shell, LTC binds the callback to this session's absolute $PI_SESSION_FILE automatically. stderr prints the task id, backend and log path.

  2. Keep working on independent work, or tell the user what is running and stop. There is nothing to wait on: the callback is pushed to you.

  3. Handle the callback — it arrives as a user message:

    [long-task-callback] <callback-id>
    Task: train model
    Result: finished; exit=0
    Files: <task dir>/ (attempt-1.log)
    Details: <path> (as needed | read before acting)
    Session: <this session file> (only)
    

    Inspect the log and artifacts (read Details first when it says "read before acting"), decide continue | stop_success | stop_blocked | ask_user, then run the ltc ack ... command from the callback. ACK means "received and inspected", not "goal done". An exit code is process status, not proof that tests passed. Delivery is at-least-once: check existing processes and outputs before relaunching anything.

Read the full file on GitHub · 81 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 · 81 lines · 104 tokens per session scan A c278df74e9f7

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 104 tokens to every session and 1,063 once invoked, about $0.0004 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 agoMITA104Claude 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