@tbrandenburg/node-red-agents
v0.4.2
Published
Node-RED nodes for running coding agents (opencode, pi) and GitHub CLI operations from flows.
Maintainers
Readme
node-red-agents
Node-RED nodes for running coding agents and GitHub CLI operations from a flow.
Nodes
- agent — runs a coding-agent CLI (OpenCode first,
pialso supported) either directly or sandboxed via SRT (Anthropic's sandbox-runtime), one execution per input message. Also supports session resume,$INPUTS.<name>templating, retry with session reuse, a FIFO concurrency scheduler, on-demand termination, tool allow/deny lists, MCP server configuration, structured (JSON-Schema) output validation, and cost/token usage reporting where supported. - agent-server — manages a long-lived
opencode servedaemon (session-based), for flows that need repeated low-latency calls instead ofagent's one-shot execution model. Supportsmessage/status/abort/history/terminateoperations, an instance cap (maxInstances), and optional basic auth. SRT sandboxing is not functional for this node (see its built-in help) since it only sandboxes outbound egress, not the inbound calls this node needs. - gh — runs GitHub CLI (
gh) commands and returns parsed output, with structured error classification and per-message overrides.
See each node's built-in help (Node-RED editor info panel) for
configuration details, or nodes/gh/README.md for gh-specific usage
and example flows (nodes/gh/examples/).
Requirements
- Node-RED >= 4.0.0, Node.js >= 20
(Node.js 20 compatibility is verified for these nodes; the monorepo's own
dev/CI tooling still targets Node.js 22, see the repo root
.nvmrc) - The
opencodeCLI onPATH(foragent/agent-server) srtonPATH, only if using the SRT runtime option- The
ghCLI onPATH, authenticated (forgh)
Install
npm install @tbrandenburg/node-red-agentsThen restart Node-RED, or install via the editor: Menu -> Manage palette -> Install tab -> search "node-red-agents".
