Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@aragon-agent/cli

Latest version: v0.6.77

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
npm package Publisher: xdrshjr
3 Stars
0 Forks
59 Versions
5.1K Downloads
TypeScript Repo language

Scan summary

@aragon-agent/cli was last scanned on 26 Nov 2026 at version 0.6.77. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 59 versions; the latest 4 were published within 5 days (22–26 Nov 2026).
  • Findings: No rules fired in version 0.6.77.
  • Downloads: 5,054 downloads.

Versions

59 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.6.77 LATEST 26 Nov 2026 No rules fired
0.6.76 25 Nov 2026 No rules fired
0.6.75 23 Nov 2026 No rules fired
0.6.73 22 Nov 2026 Not shown
0.6.71 19 Nov 2026 Not shown

No rules fired in 0.6.77

Findings

Findings for v0.6.77. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.6.77; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@aragon-agent/cli

A Claude-Code / Codex-style interactive terminal UI for the @aragon-agent/core engine. Type a task, watch the agent think and stream its answer, see each tool call render as a live card, and interrupt / steer / configure the session — all without leaving the terminal.

⚠️ Full permission, no sandbox. This first version runs at maximum permission: bash executes directly, file writes hit the real filesystem, and there is no per-action approval gate by default. Only run it in workspaces you trust. An opt-in confirmation mode is available via --confirm.

Requirements

Node ≥ 18, any platform.

The default scrolling mode (native, see Scrolling) needs no mouse support at all: the conversation is printed into your terminal's own scrollback, so the wheel, scrollbar, selection and search are the terminal's. The Windows Node-version notes below therefore only matter for Shift+Tab and for the optional full-screen mode (--scroll-mode app), where the application owns the mouse.

On Windows with Node < 22.17.0 (or 24.0/24.1), aragon turns the missing console flag on itself at startup, which restores Shift+Tab on most machines. Where that is blocked — a locked-down PowerShell, an old console host — Ctrl+N toggles the mode instead; it is bound on every platform and does not depend on the console mode, the Node version, or anything else. Everything else — the agent loop, every tool, skills, teams, aragon -p — works exactly the same on Node 18 and 20, which is why engines stays at >=18 rather than locking those users out.

The reason is not the terminal emulator and not a setting: on Windows both Shift+Tab (CSI Z) and mouse reporting exist only while the console input handle has ENABLE_VIRTUAL_TERMINAL_INPUT set, and Node only sets it from v22.17.0 / v24.2.0 onward. On older versions libuv translates console input itself, and that translation has no entry for Shift+Tab (it arrives as a plain Tab) and discards mouse records outright. Node 20 is the current Windows default LTS, so this is a common configuration rather than an exotic one — it is why the same build behaves differently on two machines. Below that version aragon sets ENABLE_VIRTUAL_TERMINAL_INPUT itself, from a short PowerShell helper, right after it puts the console into raw mode — the flag is a property of the console, not of Node, so any process attached to it can turn it on. When that works, Shift+Tab arrives as CSI Z again and mouse reporting goes back on with it — the wheel should follow by the same route, though only the key has been measured. When it does not work, aragon says so at startup and turns mouse reporting off rather than asking for reports that can never arrive; Ctrl+N and /plan switch mode, and Shift+↑ / Shift+↓ scroll.

Install

# Global
npm i -g @aragon-agent/cli
aragon

# Zero-install
npx @aragon-agent/cli

Release note (R3): npx @aragon-agent/cli resolves @aragon-agent/core and @aragon-agent/tui from the npm registry, so both must be published first (the release script publishes core, then tui, then cli). During local development inside this monorepo, npm workspaces link the local packages/core and packages/tui automatically.

The terminal interface itself lives in its own package, @aragon-agent/tui, which this package depends on at an exact version; you never install it by hand. Installing @aragon-agent/cli installs all three.

Quick start

# Set a key (any one of these)
export ANTHROPIC_API_KEY=sk-ant-...
# ...or paste it live in the TUI via /settings, or pass --api-key

aragon                       # interactive TUI
aragon "summarize README.md" # interactive, auto-submitting the prompt
echo "list files" | aragon -p   # one-shot, prints to stdout then exits

Use it from another project

aragon exec is the machine-facing face of the same binary: a versioned JSON event stream on stdout, sessions that survive across process boundaries, tool permissions enforced at the tool boundary, and budgets with their own exit code. Install the package, spawn it, read the JSON — that is the whole integration story. Nothing about the interactive TUI changes, and aragon -p keeps working exactly as it always has.

npm i -g @aragon-agent/cli    # or add it as a devDependency and use npx

aragon exec --output-format json "summarize src/index.ts" | jq -r .result
Discover what you installed
aragon info --json     # version, schema version, tools, formats, features
aragon doctor          # "is this machine configured to run me?" — exit 0 = yes

info.features is a flat list of strings, on purpose: a wrapper that tests features.includes('sessions') keeps working across versions that add capabilities.

Output formats
Format Stdout carries Use it when
text (default) Exactly what aragon -p prints A human reads the output, or you already parse -p
json One result object, pretty-printed You want the answer and the totals, nothing else
stream-json One JSON object per line (NDJSON) You want tool calls, todos and progress as they happen
# text — byte-identical to `aragon -p "hi"`
aragon exec "hi"

# json — one object, ideal for `jq`
aragon exec --output-format json "hi"

# stream-json — NDJSON, one object per line
aragon exec --output-format stream-json "read package.json and name the deps"

A stream-json run looks like this (elided for width):

{"type":"system","subtype":"init","schemaVersion":1,"sessionId":"6f2…","cli":"0.6.0","cwd":"/w","model":{"provider":"anthropic","id":"claude-…","baseUrl":null},"permissionMode":"auto","tools":["read_file","write_file",…],"resumed":false}
{"type":"user","sessionId":"6f2…","turn":1,"text":"read package.json…","source":"caller"}
{"type":"tool_call","sessionId":"6f2…","turn":1,"id":"t1","name":"read_file","input":{"path":"package.json"}}
{"type":"tool_result","sessionId":"6f2…","turn":1,"id":"t1","name":"read_file","isError":false,"durationMs":4,"output":"{\n  \"name\": …"}
{"type":"assistant","sessionId":"6f2…","turn":1,"text":"The dependencies are …"}
{"type":"result","schemaVersion":1,"sessionId":"6f2…","isError":false,"stopReason":"end_turn","exitCode":0,"result":"The dependencies are …","turns":1,"durationMs":4120,"usage":{"inputTokens":1204,"outputTokens":88,"totalTokens":1292},"cost":{"amount":0.0049,"currency":"USD","known":true},"model":{"provider":"anthropic","id":"claude-…"},"todos":null,"error":null}

Event types: system · user · text_delta · thinking · assistant · tool_call · tool_result · todo · team · fast_review · retry · error · result. text_delta and thinking are opt-in (--partial-messages, --include-thinking) — a per-token line is thousands of lines per turn and is only wanted by a caller rendering a live UI.

Forward compatibility, stated as a contract. schemaVersion appears on system and on result. Ignore event types you do not know, and ignore fields you do not know: adding either never bumps the version, and renaming or removing one does. A consumer that holds up its end of that keeps working across upgrades; one that does not will break on a release that adds an event.

One practical note: a tool_result.output line can approach 100 KB, so read stdout with a line reader that has no small buffer cap.

Tool permissions

--confirm needs a human. For a program embedding an agent there are two orthogonal controls instead, and both are enforced by the wiring — a denied tool is not registered at all, so the model never sees it and never plans around it.

Flag Meaning
--permission-mode auto Every tool (the default)
--permission-mode plan Every tool registered; the five that write refuse at call time. Exactly aragon -p --plan
--permission-mode strict Nothing, until --allow-tool says otherwise
--allow-tool <names> Adds to the baseline. Repeatable; comma lists accepted
--deny-tool <names> Removes. Wins over --allow-tool

Each of these reads as one sentence:

# a research agent that cannot touch anything
aragon exec --permission-mode strict --allow-tool read_file,grep,glob,list_dir \
  --output-format json "which files define the retry policy?"

# do anything except shell out
aragon exec --deny-tool bash --output-format json "fix the failing test"

# read-only research and a written plan, no edits
aragon exec --permission-mode plan --output-format json "how would you add OAuth?"

The policy reaches subagents: a task dispatch cannot hand a child a tool the parent was denied. An unknown tool name is a usage error (exit 2) rather than a silent no-op.

Sessions across invocations

A wrapper that respawns per turn — a CI step, an HTTP handler, a queue worker — needs the conversation to outlive the process.

aragon exec --session-id ci-42 --output-format json "start the migration plan"
aragon exec --session-id ci-42 --output-format json "now do step 1"
Flag If the session exists If it does not
--session-id <id> Resume it Create it (the wrapper-friendly upsert)
--resume <id\|path> Resume it Exit 2, session_not_found
-c, --continue Resume the newest session for this directory Exit 2, no_session_for_cwd
--no-save-session — Run statelessly; write nothing

Sessions live in ~/.aragon-agent/sessions/. An id must match [A-Za-z0-9][A-Za-z0-9._-]{0,63} — it becomes a filename, and the caller supplying it is frequently the least trusted input in the pipeline.

aragon sessions list [--json] [-n 20] [--all]
aragon sessions show <id> [--json]
aragon sessions rm <id> --yes
aragon sessions prune [--older-than 7] [--dry-run] [--all] [--origin exec|tui|all] --yes
aragon sessions path

Two same-id runs cannot interleave: the second exits 2 with session_busy rather than blocking, because a wrapper that wants a queue can build one and a CLI that blocks on a lock it cannot show you is a hang.

Budgets
aragon exec --max-turns 20 --max-duration 600000 --output-format json "…"

--max-turns <n> bounds assistant turns; --max-duration <ms> bounds the whole run's wall clock. Both abort through the same path Esc uses, so subagents are torn down and the engine settles normally. Neither is an error — isError stays false — but both exit 3, so a shell script can tell "ran out of budget" from "finished" and from "broke" without parsing JSON.

Two neighbours they do not replace: --idle-timeout bounds a silent stretch inside the run and still applies (a --max-duration longer than the idle watchdog will usually be pre-empted by it, which surfaces as stopReason: "error"); --tool-timeout bounds a single tool call.

A run that finishes on its own in exactly --max-turns turns exits 0 with stopReason: "end_turn". The budget fires only when a further turn would start.

Exit codes
Code Meaning
0 Success
1 Agent / runtime error (the run started and failed)
2 Configuration or usage error (the run never started; stdout is empty)
3 Stopped by a caller-set budget (--max-turns, --max-duration)
130 / 143 / 129 Interrupted by SIGINT / SIGTERM / SIGHUP (128 + signo)
Spawning it from Node
import { spawn } from 'node:child_process';
import readline from 'node:readline';

function runAragon(prompt, args = []) {
  return new Promise((resolve, reject) => {
    const child = spawn(
      'aragon',
      ['exec', '--output-format', 'stream-json', ...args, prompt],
      { stdio: ['ignore', 'pipe', 'inherit'] },
    );

    let result = null;
    const lines = readline.createInterface({ input: child.stdout });
    lines.on('line', (line) => {
      let event;
      try {
        event = JSON.parse(line);
      } catch {
        return; // Never fatal: forward compatibility runs both ways.
      }
      if (event.type === 'result') result = event;
      // Ignore every type you do not know. That is the contract.
    });

    // RESOLVE ON EXIT AS WELL AS ON `result`. Process exit is terminal whether
    // or not a `result` arrived — see Limits below — and a consumer that waits
    // only for `result` hangs when the run is killed.
    child.on('error', reject);
    child.on('close', (code) => resolve({ code, result }));
  });
}
In CI
aragon exec \
  --permission-mode plan \
  --max-turns 20 \
  --max-duration 900000 \
  --output-format json \
  --session-id "ci-${GITHUB_RUN_ID}" \
  "Review the diff on this branch and list the risks." \
  | jq -r .result

aragon doctor --json exits 1 with a named failing check when the machine is not configured, which makes a good first step in the job.

Feeding several turns to one process:

printf '%s\n' \
  '{"type":"user","text":"list the files you would change"}' \
  '{"type":"user","text":"now change the first one"}' \
  '{"type":"end"}' \
| aragon exec --input-format stream-json --output-format stream-json
Limits

Six things this does not do, stated plainly because the audience for this section is the one that would be misled by their omission.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @aragon-agent/cli

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229