Skip to content

feat(agents c0mpute): arrow-key /tasks and /agents, live task view with full context (v0.127.0) - #613

Merged
ralyodio merged 1 commit into
mainfrom
feat/c0agent-task-browser
Nov 14, 2026
Merged

ralyodio merged 1 commit into
mainfrom
feat/c0agent-task-browser

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

Anthony: "how do i drill down. the lists should be arrow-key-navigable … so i can read the context", and "can we get realtime feedback with c0mpute like we can with claude code tasks?"

What changes

  • Navigable lists: /tasks and /agents are lists you move through with ↑/↓ (also j/k, PgUp/PgDn, Home/End). Enter opens the selected item, Esc goes back. Both draw on the terminal's alternate screen, so scrollback is untouched.
  • Full context: opening a task shows the whole prompt, the conversation (replies and tool results), the progress log and the result. Opening an agent shows its definition, and e edits it.
  • Live view: a running task streams statuses, tool calls and partially arrived replies. The view follows the end until you scroll up; G resumes following.
  • Task actions: Enter on a Needs input task answers its permission prompt, and x stops a running task.
  • Second terminal: moshcode agents c0mpute tasks follows a session's tasks live from another terminal. Each task's context is saved under ~/.moshcode/c0mpute-tasks/ at most every 1.5 s while it changes, and pruned along with the board.
  • Unchanged: /tasks <id> opens that task directly. Output that isn't a terminal still gets the plain text listing.

Limit: on the c0mpute network a model reply arrives in one piece, because CPU nodes answer through Infernet's relay. The view shows tokens as fast as the provider emits them; everything around the reply is already real-time.

Tested

  • 5 new tests in test/c0agent-picker.test.mjs: colour-aware wrapping, picker keys and handing the keyboard back to readline, follow mode, board context persistence and pruning, live reply rendering. 96/96 pass with the help and c0agent suites.
  • In a real pty against a fake c0mpute server: the task list updates in place, an opened running task streams its reply word by word, a finished task shows its prompt, conversation and result, /agents works, and a second terminal follows the task live. A Needs input task is answered with Enter then y; the command ran and the task completed.

🤖 Generated with Claude Code

…th full context (v0.127.0)

/tasks and /agents are lists you move through with the arrow keys. Enter
opens a task full screen: the whole prompt, the conversation (replies and
tool results), progress and result. A running task is live: statuses, tool
calls and a reply still arriving stream in, and the view follows the end
until you scroll up. Enter on a Needs input task answers it; x stops one.

Each task now keeps its full prompt and a reference to its conversation;
the context is saved per task under ~/.moshcode/c0mpute-tasks/ (every
~1.5 s while it moves, pruned with the board), so `moshcode agents c0mpute
tasks` in another terminal can follow a session's task live.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

ThreatCrush Security Scan

0 finding(s) in the 6 file(s) this pull request changes.

Nothing in the files this pull request changes.

125 pre-existing finding(s) elsewhere in the repository — **HIGH/CRITICAL**: 8 | **MEDIUM**: 87 | **LOW**: 30

Not introduced by this pull request. The full set is in the Security tab.

Severity Rule Location
HIGH js-ssrf-outbound-request apps/pwa/public/sw.js:76
HIGH tls-verification-disabled apps/pwa/src/lib/moshpit-gateway.mjs:299
HIGH sh-remote-script-execution install.sh:87
HIGH sh-remote-script-execution install.sh:91
HIGH sh-remote-script-execution install.sh:259
HIGH sh-remote-script-execution install.sh:270
HIGH sh-remote-script-execution install.sh:276
HIGH tls-verification-disabled src/dns.mjs:823
MEDIUM js-unescaped-html-sink apps/pwa/public/herd/herd.js:117
MEDIUM sql-template-interpolation apps/pwa/src/lib/moshpit-certs.mjs:56
MEDIUM sql-template-interpolation apps/pwa/src/lib/moshpit-certs.mjs:117
MEDIUM sql-template-interpolation apps/pwa/src/moshpit.mjs:140
MEDIUM sql-template-interpolation apps/pwa/src/moshpit.mjs:154
MEDIUM sql-template-interpolation apps/pwa/src/moshpit.mjs:180
MEDIUM sql-template-interpolation apps/pwa/src/moshpit.mjs:374
MEDIUM sql-template-interpolation apps/pwa/src/moshpit.mjs:378
MEDIUM sql-template-interpolation apps/pwa/src/moshpit.mjs:423
MEDIUM sql-template-interpolation apps/pwa/src/moshpit.mjs:707
MEDIUM sql-template-interpolation apps/pwa/src/moshpit.mjs:909
MEDIUM sql-template-interpolation apps/pwa/src/moshpit.mjs:911

…and 105 more. Full results in the Security tab.

Snippets are redacted; ThreatCrush never prints matched credential material.

@ralyodio
ralyodio merged commit 9d58fa1 into main Nov 14, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant