Skip to content
Back to skills

Runode

ASecurity

Operate the other terminals of the runode app from inside one of them (RUNODE_SESSION is set) - open panes and tabs, type commands or keys into them, wait for them to finish and read their output. Use it whenever the task involves another terminal - tests, a build or a dev server beside yours, what a neighbouring pane printed - even if the user only says "the pane on the right", "the other terminal" or "run it on the side" and never names runode. Use it also whenever the user names agent CLIs...

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 19, 2026
ai-agentsrustgoshellnodegitsecurity

Works with

  • terminal
  • cli

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned November 15, 2026

npx -y skills add runode-dev/runode --skill runode --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Runode?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Runode
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/runode-dev-runode/badge)](https://www.skillsdirectory.com/skills/runode-dev-runode)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: runode
description: Operate the other terminals of the runode app from inside one of them (RUNODE_SESSION is set) - open panes and tabs, type commands or keys into them, wait for them to finish and read their output. Use it whenever the task involves another terminal - tests, a build or a dev server beside yours, what a neighbouring pane printed - even if the user only says "the pane on the right", "the other terminal" or "run it on the side" and never names runode. Use it also whenever the user names agent CLIs to bring in (claude, codex, pi, gemini, opencode...), in any language - "use claude and pi to review this", "let codex fix it", a cross-review, a red team / blue team review, a second opinion. Run each named agent in a pane of its own and talk to it through runode instead of imitating it with your own subagents, even if it is the same agent as you. Use it also to put work for agents on runode's task board (runode todo, runode schedule) - "split this into tasks and hand them out", "have an agent do this every morning".
---

# Driving other runode terminals

runode is a terminal app with panes, tabs, workspaces and windows. When you run
inside one of its terminals, the `runode` command can see and operate every
other terminal in the app. `RUNODE_SESSION` holds the id of your own terminal
and `RUNODE_SOCKET` tells `runode` where the app is; if `runode` is not on your
PATH, use `"$RUNODE_BIN"`. `rn` is a short name for it. In a terminal that
runode opened on an SSH host, `runode` drives the terminals on that host only;
terminals on your own computer or on other hosts are out of its reach. To give
the agents on an SSH host or another machine this skill, run
`runode skill install` there.

Run `runode help` for the commands and `runode help COMMAND` (for example
`runode help send`) for the full reference of one. The essentials follow.

## Find a terminal

```sh
runode list            # one row per terminal; * marks yours
runode list --json     # the same with every detail, for parsing
```

`REL` says where a terminal sits relative to yours (`left`, `right`, `up`,
`down`), `FG` is the program in front (`zsh`, `node`, `vim`...), `AGENT` and
`STATE` show an agent and whether it is `working`, `idle` or `blocked` (waiting
for an answer), `VIEW` is `shown`, `hidden` (another tab) or `bg` (in no
window). While the app is closed, places and `VIEW` follow the layout it left
behind, so `shown` does not mean the user sees it.

Every command takes a SESSION that must match exactly one terminal; when it
matches several, runode lists them and fails, and you pick one by id. The user
may close a terminal at any time; when an id stops working (`no session`), run
`runode list` again.

Common forms: an id or any unique prefix of it, `self`, `left` `right` `up`
`down` (the pane next to yours), `agent:codex` or `agent:claude:idle`,
`title:server`, `cwd:app`. Every form, including tabs, windows and
workspaces, is in [references/sessions.md](references/sessions.md).

If there is no terminal to use, open one; it prints the new id:

```sh
id=$(runode open)                                    # a new tab after yours
id=$(runode open --right --cwd ~/src/app)            # split your pane
id=$(runode open --down -- npm run dev)              # and run a command in it
```

The words after `--` are joined by spaces and typed into the new shell as they
are, so the quotes your shell removed are gone. For a command that needs quotes,
pass it as one argument with the quotes inside:
`runode open --right -- 'codex "what is wrong?"'`.

`--near SESSION` opens next to another terminal instead of yours; the new one
starts in that terminal's directory unless you give `--cwd`. Split a wide pane
`--right` and a narrow or tall one `--down`, and avoid splitting the same way
again and again until the panes are too thin to read.

`open` leaves the user's focus where it is unless you pass `--focus`. To show
the user a terminal later, `runode focus SESSION` brings its pane and window to
the front.

To rearrange panes the user asked about, `runode move SESSION` moves a pane
into a new tab after yours, `--right` or `--down` beside yours instead, and
`--near OTHER` beside another pane; `runode swap SESSION OTHER` exchanges two
panes, even in different tabs. Both stay within one window.

While the app is closed, `open` always makes a new tab at the end of the
workspace (no split, no `--focus`), and `focus`, `move` and `swap` fail.

A split opened from your terminal is folded down to its title bar so it takes
no room; the program keeps running and the user unfolds it by clicking the bar.
Add `--no-fold` for a split the user should see right away (a review, a result
to read), or `--fold` to force it. `--fold` only works with `--right` or
`--down` (`--no-fold` on a tab does nothing) and cannot be combined with
`--focus`.

## Run a command and wait for it

```sh
runode send right 'cargo test' --enter --wait
```

`send` types the text, `--enter` presses Enter, and `--wait` waits for the
result. It picks how to wait and says so on stderr: for a shell prompt with
shell integration it waits for the command to finish, prints `exit N` and fails
with status 4 if N is not 0; for an agent it waits until the agent has worked
and stopped, and fails if the agent shows no activity within 10 seconds (Enter
may not have submitted the prompt, or it was a command that finishes at once);
if the agent starts asking a question, even one so quick it was never seen
working, or it was asking a question and a different one is on screen by then
(say the next permission prompt), it prints `blocked` instead; otherwise until
the screen has been quiet for 2 seconds.

When a wait fails or times out, the input may still have been delivered:
`runode read` the terminal before deciding what to send, and never send the
same prompt again blindly.

`--wait` is the reliable way to wait for something you just sent. A separate
`runode wait` only sees what happens after it starts: `--for command` waits for
the *next* command to finish, and `--new` ignores lines already on the screen,
so a command that finished before you started waiting is never seen. Use them
for things that are still to come:

```sh
runode wait right --for command --timeout 600     # next command finishes: exit N
runode wait right --for text 'Listening on' --new # a new line matches the regex
runode wait right --for quiet 3                   # screen unchanged for 3s
runode wait agent:codex --for done                # the agent worked, then stopped
runode wait agent:codex                           # the agent is not working now
```

Without `--for`, `wait` waits for `stopped`: the agent is idle, asking a
question, or gone. `--for working`, `idle` or `blocked` wait for that state.
`--for text` looks at the whole screen, so without `--new` it also matches
what is already there, the command you just typed included; `--lines N` widens
it to the last N screen rows, scrollback included. `--new` compares how many times
each matching line is there, so a watcher that clears the screen and prints
the same line again (`cargo watch -c`, `jest --watch`) never shows it as new;
match something that changes every run (a line with the time) or use
`--for quiet`, and always give `--timeout`.

`--timeout SECS` gives up with status 124; on `send` it only works together
with `--wait`. Status 3 means the terminal exited.
`--for command` needs shell integration; without it use `--for quiet` or
`--for text`.

## Read the output

```sh
runode read right --command       # output of the last command (needs shell integration)
runode read right --command 2     # the one before it
runode read right --lines 200     # the last 200 screen rows, scrollback included
runode read right                 # what is on the screen now
```

A line the terminal wrapped comes back as one line.

Prefer `--command` after running something: you get exactly that command's
output. When its start has scrolled away, runode says so on stderr.

## Control keys and pasting

```sh
runode send right --key ctrl-c                 # interrupt the running program
runode send right --paste "$(cat snippet.py)"  # paste instead of typing
```

Key names, repeats, the order one `send` uses and when to paste are in
[references/keys.md](references/keys.md).

## Typical workflows

Tests in the pane next to you, a dev server you check on later and a task for
another agent, as complete commands: [references/examples.md](references/examples.md).

## Work with several agents

When the user names agents ("use claude and pi", "ask codex too"), they mean
those programs running in runode terminals the user can watch, not subagents
of yours, even if one of them is the same agent as you. Start each one, give
it its task, and coordinate them yourself. A red team / blue team review, for
example: one agent attacks the change and lists problems, the other answers
each one (fix, or explain why it is not a problem), and you go back and forth
until they agree, then fix or let one of them fix. The blue team needs the red
team's list to start, so give it its task only once the list is there; a
"read ahead and wait for me" prompt only makes it look stuck while you wait.

```sh
# --no-fold: the user asked for these agents, so they should see them work.
red=$(runode open --right --no-fold -- claude)
blue=$(runode open --near "$red" --down --no-fold -- pi)
runode wait "$red" --for idle --timeout 60
runode wait "$blue" --for idle --timeout 60

# Ask for the report in a file: the screen holds only what fits on it.
runode send "$red" --paste 'Red team: review the uncommitted diff as an attacker.
Find bugs, security holes and broken edge cases. Write them to /tmp/red.md.' \
  --enter --wait --timeout 1800

runode send "$blue" --paste "Blue team: answer each finding in /tmp/red.md: fix
it, or say why it is not a problem. Write your answers to /tmp/blue.md." \
  --enter --wait --timeout 1800
```

- Wait for an agent to be `idle` before the first prompt. If it is `blocked`
  right away (a trust or login question), `runode read` it and answer, or ask
  the user.
- When agents really work at the same time (say each reviews half the
  change), run their `send ... --wait` in the background (`&`, then `wait`)
  so neither waits for the other. A short `--timeout` is no way to avoid
  waiting: it only ends in `timed out` while the agent keeps working.
- Long or multi-line prompts go with `--paste`; give file paths rather than
  pasting large content. `send --wait` on a shell prompt refuses typed text
  with line breaks (each line would run as its own command and the wait would
  stop after the first): use `--paste` or join the commands with `&&`.
- Leave the agents' panes open when you are done: the user may want to read
  them or keep talking to them.

## Hand work out on the task board

runode has a task board: each task is a prompt for an agent that runs in a
terminal of its own, by default in a new git worktree and branch so it does
not touch the user's checkout, and the user follows the tasks on the board.
Use it when the user asks you to split work into tasks or hand it out, or to
have an agent do something later or on a schedule. For work you coordinate
yourself and need the answer back now, use panes as above.

```sh
runode todo add 'Fix the flaky login test' --prompt 'Find why ... Commit the fix.' --start
runode todo list          # #, COLUMN: todo, in_progress, needs_you, done
runode todo show 5        # everything about task #5, done ones too
runode schedule add 'Dependency report' --daily 09:00 --days mon-fri --auto-done \
  --prompt 'List outdated dependencies and write the report to reports/deps.md'
```

To start an agent only when there is work, give the schedule `--run CMD`: when
due, runode runs CMD first and starts a task only if it prints something to
stdout, which is added to the prompt (`--run 'sh scripts/ci-failures.sh'`).

How to split the work and write the prompts, follow the tasks, and set up
schedules: [references/task-board.md](references/task-board.md).

## Be careful

- The other terminals belong to the user. Do not send keys or text to a
  terminal the user is working in, and never to `self`. Prefer a terminal you
  opened yourself, or ask the user which one to use.
- Check what is in front (`FG` in `runode list`, or `runode read`) before
  sending: text meant for a shell does damage when a REPL, an editor or an
  agent is in front.
- `ctrl-c` stops whatever runs there, and `runode kill` ends the terminal and
  closes its pane (one SESSION per call). Use them only on terminals you started or were asked to
  manage.
- Do not paste secrets: everything you send is visible on the user's screen.
- The app marks a terminal you operate on as driven by yours; the user sees
  it.

Files in this skill

  • SKILL.md11.6 KB
  • references/examples.md781 B
  • references/keys.md1.5 KB
  • references/sessions.md997 B
  • references/task-board.md4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.