All skills
rivet-dev avatar

/rivet-agentos

@6bead6f official
by Rivetrivet-dev/skills31 stars
8

agentOS: A computer for every agent.

Use this Skill: https://skilld.dev/gh/rivet-dev/skills/rivet-agentos

This session only. Nothing lands on disk.

examplesprocessesREADME.md

โ‰ˆ427 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Run commands and long-lived processes inside a VM, stream their output, and drive interactive shells. Reach for this whenever an agent needs to invoke tools, start a dev server, pipe data over stdin, or attach a terminal.

How it works

A server.ts registers a VM with its software, and each script connects with createClient and grabs a VM via client.vm.getOrCreate("my-agent"). From there the VM handle exposes the full process surface:

  • exec โ€” run a command to completion and collect stdout, stderr, and exitCode in one call.
  • spawn + lifecycle โ€” start a process for a pid, then listProcesses, getProcess, waitProcess, stopProcess (SIGTERM), and killProcess (SIGKILL).
  • stdin โ€” writeProcessStdin and closeProcessStdin to feed a running process, including an interactive sh (see shell.ts).
  • subscriptions โ€” call agent.connect() and use onProcessOutput, onProcessExit, onShellData, onShellStderr, and onShellExit. The connection filters RivetKit broadcasts to the requested process or shell.

visibility.ts shows how to enumerate and inspect everything running in the VM.

Run it

npm install
npx tsx server.ts &   # start the VM registry on :6420
npx tsx exec.ts       # then run any of the scripts (spawn.ts, stdin.ts, shell.ts, ...)

Each script prints its process output and exit codes to the console.

Source

View the source on GitHub: https://github.com/rivet-dev/agent-os/tree/main/examples/processes

Source: SKILL.md on GitHub

1 warningtoday3 checks ยท Risk SAFE
  • Gen Agent Trust Hubtoday

    This skill is a comprehensive collection of developer documentation and code examples for the agentOS platform. It demonstrates core features such as virtual machine isolation, process management, and host-to-guest function calls. While it includes examples of command execution and external tool installation, these are standard development practices intended for instructional use within the platform's security boundaries.

  • Sockettoday

    12 alerts: gptAnomaly

  • Snyktoday

    Risk: LOW ยท No issues

Signed by skilld at 6bead6f. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 15 hours ago.

Activeupdated yesterday

README badge

README badge for rivet-dev/skills/rivet-agentos