Skip to content

feat(agents c0mpute): every c0mpute chat command, out of the box (v0.126.0) - #612

Merged
ralyodio merged 2 commits into
mainfrom
feat/c0agent-chat-commands
Nov 14, 2026
Merged

ralyodio merged 2 commits into
mainfrom
feat/c0agent-chat-commands

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

moshcode agents c0mpute (and /agents c0mpute in the pit) now takes the same commands as c0mpute.com/chat, with no setup:

command what it does
/image (/img, /draw) a picture from a CPU diffusion worker
/video (/clip, /vid) [--model wan2.2-ti2v-5b] a short clip
/music (/song) <style> [lyrics: …] a song with an optional vocal line
/album (/lp) band, 8 songs, lyrics, cover, zip
/promo <url> [style] [vertical] a promo video; plain "make a promo video for x.com" works too, as in the chat
/push hosting <name> · ls · rm publish the session's media and transcript as a c0mpute site
/connect hosting [node] list or pick the hosting node
/plugin add|ls|on|off|rm|connect chat plugins on the c0mpute.com account
/login c0mpute.com device sign-in

How it works

  • Parsers are ports of c0mpute apps/web/src/lib/chat/*.ts with the same regexes (src/c0chat-commands.mjs).
  • Media jobs run as background tasks on the existing task board: the prompt stays free, /tasks shows progress, and finished files are announced and saved to ./c0mpute-media/.
  • Backend: with no sign-in, jobs go to Infernet /api/chat/* with the ik_live_ key moshcode already has (or the free tier). With a c0mpute.com c0k_ key they go to /api/v1/* on that account; /push only accepts results made that way. The key comes from /login, c0mpute chat login's ~/.c0mpute/chat.json, or C0MPUTE_CHAT_KEY. It is deliberately not read from C0MPUTE_API_KEY, which already holds moshcode's Infernet key.
  • Print mode: moshcode agents c0mpute -p "/image a red bicycle" waits for the result and prints the saved paths on stdout.

Tested

  • 13 new tests in test/c0chat-commands.test.mjs: parsers, backend choice, key precedence, every media kind against a fake fetch (including deploy 503s and the one-shot image body), push files, device login. With the help and c0agent suites, 91/91 pass.
  • Live against c0mpute.com: /image saved a 1.1 MB PNG in 9:50, and /plugin ls, /push hosting ls and /connect hosting returned real data.
  • Live against Infernet with no login: /music was accepted and polled, but no music worker became free within 25 min, so it never rendered (network capacity, not this change).
  • Interactive REPL driven in a pty against a fake server: background task, [1 working] prompt, completion announcement, /tasks.

🤖 Generated with Claude Code

ralyodio and others added 2 commits November 14, 2026 21:41
…126.0)

`moshcode agents c0mpute` now takes the same lines as c0mpute.com/chat:
/image, /video, /music, /album, /promo (and their aliases), /push hosting,
/connect hosting, /plugin, plus /login. Parsers are ports of c0mpute's
apps/web/src/lib/chat/*.ts with the same regexes; plain text asking for a
promo video of a link becomes /promo, as in the chat.

Media jobs run as background tasks on the task board and save to
./c0mpute-media/. With no sign-in they go to Infernet /api/chat/* with the
ik_live_ key moshcode already has (or the free tier); with a c0mpute.com
key (/login device flow, `c0mpute chat login`, or C0MPUTE_CHAT_KEY) they run
on the account via /api/v1/*, which /push, /connect and /plugin need.
Print mode runs a media line in the foreground and prints the saved paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…every timer tick

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 6092bb5 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