downrange

Reviewed at commit 86fda59

Progress and an ETA for background shells and Monitor watches, read from their output or past run times, beside subagents, workflow runs and the pending…

Made by
dot-agi
What we checked

Shows a status band above the prompt, a pane and a /downrange table for background shells, Monitor watches, subagents, workflows and the next /loop wakeup, with progress, ETA and last output line. It reads the task output files Claude Code writes, and the file a background command redirects its output to, and keeps run durations locally. It makes no network calls; an optional setting answers a bare "status?" prompt locally.

Review details

Static review of the source at the pinned commit; not run. Full re-review of the new version (all 14 files bundled): register.tsx, redirect.ts, jobs.ts, output.ts, view.ts and the other modules were read in full for the parts that touch tools, files, processes and prompts; drawing and pure data modules were skimmed. Hooks: tool.call (Bash, Monitor, Agent, Workflow, ScheduleWakeup, TaskStop and a generic one for subagent activity; all call next(e) first and return the engine result unchanged, failures are caught and passed on), session.append, session.start/end, turn.complete, prompt.submit, classic.Stop/SubagentStop, config.set, command.run, ui.render (AbovePrompt band, Pane). Runtime calls: $.fs.stat/$.fs.read, $.process.run, $.store get/set (run-duration history keyed by project and command), $.state, $.clock, $.agent.list, $.session.cwd/id, $.ui open/close/log, $.command.register. New in this version: hooks/redirect.ts parses the text of a background Bash command with a small shell tokenizer and, only when it names exactly one literal output file (> , >>, &>, tee) in a plain command list, shows that file's last lines as the row's output; it gives up on anything it cannot read for sure, is never used on Windows, never reads paths under /dev, and for subagents follows only absolute paths. It only reads a file that Claude's own command writes to; nothing is written. The only program started is tail -c 16384 as an argument list with no shell and a 2 second timeout, used only for outputs over 4 MiB, on a path that must be the task's own output file (absolute, in a tasks folder, named after the task id) or the validated redirect file. The prompt.submit hook can drop a prompt only when the off-by-default answerStatusPrompts option is on, the prompt is an exact status question typed in the composer while background work runs; it then answers locally with the table. The /downrange table enters the conversation as command output (last lines clipped to 80 characters). No network, no settings or permission changes, no eval or dynamic code, no npm dependencies. The README privacy section matches the code.

What it uses
  • Reads your prompts: yes
  • Sees tool calls: yes
  • Blocks or changes tool calls: no
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events
Screenshot of downrange

A band, pane, and /downrange table: progress, ETA, and last output for Claude Code background shells and Monitor watches, tool activity for subagents, state for workflows, and the next /loop wakeup.

Made this mod? Add a badge to your README

modsforClaude badge for downrange

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/downrange.svg)](https://modsforclaude.com/mods/downrange/)

← All mods