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.
npx skills add lz59970062/long-task-wakeup --skill pi_skillgit clone --depth 1 https://github.com/lz59970062/long-task-wakeupWrote 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.
[](https://agentmods.dev/skills/lz59970062/long-task-wakeup/pi_skill)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 runfrom the start. - Never keep a job alive with
sleep/tailpolling or a blocking tool call. Steering cannot interrupt a running tool, so a long foreground command also delays your callbacks.
The workflow
-
Submit (returns in a second or two):
ltc run --cwd "$PWD" --task "train model" -- python train.py --config configs/exp.yamlInside Pi's shell, LTC binds the callback to this session's absolute
$PI_SESSION_FILEautomatically. stderr prints the task id, backend and log path. -
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.
-
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 theltc 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.
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.
- 16d ago First seen · 81 lines · 104 tokens per session scan A c278df74e9f7
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.
long-task-callback compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| long-task-callbacklz59970062/long-task-wakeup | Skill | 193 | 28d ago | MIT | A | 104 | Claude Code, Codex |
| gke-compute-classesgoogle/skills | Skill | 25k | today | Apache-2.0 | A | 83 | Claude Code, Codex |
| cloud-operator-admin-setupgoogle/skills | Skill | 25k | today | Apache-2.0 | A | 115 | Claude Code, Codex |
| gke-reliabilitygoogle/skills | Skill | 25k | today | Apache-2.0 | A | 85 | Claude Code, Codex |
| gke-workload-securitygoogle/skills | Skill | 25k | today | Apache-2.0 | A | 171 | Claude Code, Codex |
| nemo-automodel-launcher-configNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 30 | Claude Code |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | today | MIT | A | 78 | Claude Code |