🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
Merge branch 'feat/console-integrate' into feat/console-starts
ruveebd30db3b7a
diff --cc plugins/ruflo-console/hooks/bindings.tsindex c1a039847c,de2842bb6a..925c259aa6--- a/plugins/ruflo-console/hooks/bindings.ts+++ b/plugins/ruflo-console/hooks/bindings.ts@@@ -4,12 -4,10 +4,13 @@@*/import { claimTask, handoffClaim, releaseClaim, stealClaim, whyNot } from './actions'import { EVENT_KINDS } from './data/events'+import { evolveActions } from './evolve'+ import { devtoolsActions } from './devtools'import { HARNESSES, harnessSpec, isLive, newSession, send, whyNotRun } from './harness'+import { startSpec } from './starts'import { plain } from './data/parse'import type { Host } from './host'+import { memoryActions } from './memory-lab'import { filterPalette, paletteEntries } from './palette'import type { Runner } from './runner'import { skillActions } from './skills'@@@ -260,11 -250,8 +261,12 @@@ export function actionsOf(state: State},},// ▸ edit hands the skill to the AI terminal, as x.ruv.io's ▸ open does: typed, not run.- skills: skillActions(state, host, runner, text => actions.term.load('claude', text)),+ skills: { ...skillActions(state, host, runner, text => actions.term.load('claude', text)), ...moreSkillActions(state, host, runner, text => actions.term.load('claude', text)) },+ memory: memoryActions(state, runner, host.invalidate),+ // An rvlite query is MCP-only: it goes to the AI terminal typed, as ▸ edit does, and runs only when sent.+ vector: vectorActions(state, runner, text => actions.term.load('claude', text)),+ evolve: evolveActions(state, host, text => actions.term.load('claude', text)),+ devtools: devtoolsActions(state, host, runner.runById, why => runner.ask(null, why)),}return actionsdiff --cc plugins/ruflo-console/hooks/palette.tsindex fefdfe43fa,93cb817a14..8999834709--- a/plugins/ruflo-console/hooks/palette.ts+++ b/plugins/ruflo-console/hooks/palette.ts@@@ -4,22 -4,12 +4,23 @@@* argument from the query after their keyword: `route fix the login bug`.*/import { HIVE_ROLES, pickedProposal } from './data/hive'+import { START_IDS, START_LABEL, startSpec } from './starts'+import { BUDGET_PRESETS, budgetWhy, inspectModels, setBudget } from './cost'import { hiveBroadcast, hivePropose, hiveSpawn, hiveVote } from './hive'import { claimTask, handoffClaim, releaseClaim, stealClaim, type ActionSpec } from './actions'+import { MEM_KEYWORDS, MEM_LAB, memSpecOf, memWhy } from './memory-lab'+import { EVOLVE, evolveSpec, evolveWhy } from './evolve'+ import { devPalette } from './devtools'import { LAB, labSpec, labWhy } from './mh-lab'+import { PERF } from './perf'+import { SECURE, SECURE_KEYWORDS, SECURE_TEXT, secSpec, secTextSpec } from './secure'+import { skillPaletteEntries } from './skills-lab'+import { automateEntries } from './automate'+import { neuralEntries } from './neural'import { AGENT_TYPES, agentLogs, dispatchWorker, memorySearch, memoryStore, reroute, setClaimStatus, spawnAgent, stopAgent, swarmInit, swarmStop, vote, WORKERS } from './ops'import { VIEWS, type State, type ViewId } from './state'+import { XRUV } from './xruv'+import { VEC, vecSpec, vecWhy } from './vector'import { selection } from './views/select'export type PaletteRun =@@@ -135,39 -116,10 +136,42 @@@ export function paletteEntries(state: S// The MetaHarness lab: reads run at once, the rest ask first; promotion is never an entry (see mh-lab.ts).for (const entry of LAB) add(entry.id, 'metaharness', entry.label, { kind: 'spec', spec: labSpec(entry, state), why: labWhy(entry) })+ // The Self-Evolution checks: reads at once, the gate check asks; promotion is never an entry (see evolve.ts).+ for (const entry of EVOLVE) add(entry.id, 'evolve', entry.label, { kind: 'spec', spec: evolveSpec(entry, state), why: evolveWhy(entry) })++ // The x.ruv.io board: reads run at once (the ask is the consent), writes ask first, admin rows need the token.+ for (const entry of XRUV) {+ // An admin row without the token is a spec with its reason, so `/ruflo run x-admit …` says why instead of "type …".+ if (entry.takes !== undefined && (entry.kind !== 'admin' || state.xruv.hasAdminToken === true)) add(entry.id, 'x.ruv.io', `${entry.id.slice(2)} <${entry.takes}>: ${entry.label}`, { kind: 'text', keyword: entry.id, make: text => entry.spec(state, text) })+ else add(entry.id, 'x.ruv.io', entry.label, { kind: 'spec', spec: entry.spec(state, ''), why: entry.why(state, '') })+ }++ // The Memory Lab: an entry that takes text reads it after its id (`mem-search jwt refresh`), the rest run as they are.+ for (const entry of MEM_LAB) {+ add(entry.id, 'memory', entry.label, entry.takes === undefined ? { kind: 'spec', spec: memSpecOf(entry, '', state), why: memWhy(entry) } : { kind: 'text', keyword: entry.id, make: text => memSpecOf(entry, text, state) })+ }++ // Security & Doctor and Performance: reads run at once, the rest ask with their cost on the confirm row (secure.ts, perf.ts).+ for (const entry of [...SECURE, ...PERF]) add(entry.id, entry.id.startsWith('perf') ? 'performance' : 'security', entry.label, { kind: 'spec', spec: secSpec(entry, entry.args, state), why: '' })+ for (const entry of SECURE_TEXT) add(entry.id, 'security', entry.label, { kind: 'text', keyword: entry.id, make: text => secTextSpec(entry, text, state) })+ // The skills view's search, update-all, restore and sync, so /ruflo run skills-update works headless.+ out.push(...skillPaletteEntries(state))+++ // Automation and the Learning Lab: reads run at once, the rest ask first; per-row verbs come from the lists last read.+ for (const entry of [...automateEntries(state), ...neuralEntries(state)]) {+ add(entry.id, entry.group, entry.label, entry.make !== undefined ? { kind: 'text', keyword: entry.id, make: entry.make } : { kind: 'spec', spec: entry.spec ?? null, why: entry.why ?? '' })+ }++ // The Vector Lab: a typed entry's id is its keyword (`/ruflo run vec-brain-search hnsw`); n/a ones say why.+ for (const entry of VEC) {+ if (entry.field !== undefined && entry.na === undefined) add(entry.id, 'vector', `${entry.label} <${entry.rule ?? 'text'}>`, { kind: 'text', keyword: entry.id, make: text => vecSpec(entry, state, text) })+ else add(entry.id, 'vector', entry.label, { kind: 'spec', spec: vecSpec(entry, state), why: vecWhy(entry, state) })+ }+ // Dev Tools: local reads run at once, the rest ask first; an entry with a field takes its text (see devtools.ts).+ out.push(...devPalette(state))+for (const worker of WORKERS) add(`worker-${worker}`, 'workers', `dispatch the ${worker} background worker`, { kind: 'spec', spec: dispatchWorker(worker), why: 'unknown worker' })add('route', 'learning', 'route <task words>: ask the router for a pick', { kind: 'text', keyword: 'route', make: reroute })diff --cc plugins/ruflo-console/hooks/runner.tsindex da19353373,900556b267..64f3018475--- a/plugins/ruflo-console/hooks/runner.ts+++ b/plugins/ruflo-console/hooks/runner.ts@@@ -59,10 -53,11 +59,11 @@@ export function createRunner(state: Stahost.invalidate()try {- const result = await host.run([...CLI_PREFIXES[state.options.cli], ...spec.args], spec.timeoutMs ?? 90_000)+ const result = await host.run(spec.argv ?? [...CLI_PREFIXES[state.options.cli], ...spec.args], spec.timeoutMs ?? 90_000, spec.stdin)const answer = /"success"\s*:\s*(true|false)/.exec(result.stdout)?.[1]const error = /"error"\s*:\s*"([^"]{0,160})"/.exec(result.stdout)?.[1] ?? /\[ERROR\]\s*(.{0,160})/.exec(result.stdout)?.[1]- const ok = result.exitCode === 0 && answer !== 'false' && error === undefined+ // `mcp exec` wraps a tool's failure as `"isError": true` with its message escaped inside: that is a failure too.+ const ok = result.exitCode === 0 && answer !== 'false' && error === undefined && !/"isError"\s*:\s*true/.test(result.stdout)// A lab run's output goes to the lab's result panel, scrolled from its top; the footer keeps the one-line outcome.if (spec.lab !== undefined) {diff --cc plugins/ruflo-console/hooks/state.tsindex eee6e1372c,21a1e5d54f..d840865c44--- a/plugins/ruflo-console/hooks/state.ts+++ b/plugins/ruflo-console/hooks/state.ts@@@ -1,20 -1,17 +1,21 @@@import type { PluginOptions, Timer } from 'claude-code'+import { emptyAuto, type AutoState } from './data/automate'import type { ProbeResult } from './data/cli'+ import { emptyFields, type DevFields } from './data/devtools'import type { ConsoleEvent } from './data/events'import type { ReadCache } from './data/files'+import { emptyEvolve, type EvolveState } from './data/evolve'import { emptySkills, type SkillsState } from './data/skills'+import { emptyMemoryLab, type MemoryLabState } from './memory-lab'+import { emptyVector, type VectorState } from './data/vector'import type { Snapshot } from './data/snapshot'import type { RufloRoute, RufloSnapshot } from '../types'export const PLUGIN_NAME = 'ruflo-console'export const PANE_ID = 'ruflo-console'- export type ViewId = 'menu' | 'overview' | 'swarm' | 'hive' | 'claims' | 'federation' | 'plugins' | 'learning' | 'metaharness' | 'memory' | 'cost' | 'timeline' | 'approvals' | 'events' | 'missions' | 'xruv' | 'terminal' | 'skills' | 'agent' | 'secure' | 'perf' | 'automate' | 'neural' | 'vector' | 'evolve'-export type ViewId = 'menu' | 'overview' | 'swarm' | 'hive' | 'claims' | 'federation' | 'plugins' | 'learning' | 'metaharness' | 'memory' | 'cost' | 'timeline' | 'approvals' | 'events' | 'missions' | 'xruv' | 'terminal' | 'skills' | 'devtools' | 'agent'++export type ViewId = 'menu' | 'overview' | 'swarm' | 'hive' | 'claims' | 'federation' | 'plugins' | 'learning' | 'metaharness' | 'memory' | 'cost' | 'timeline' | 'approvals' | 'events' | 'missions' | 'xruv' | 'terminal' | 'skills' | 'agent' | 'secure' | 'perf' | 'automate' | 'neural' | 'vector' | 'evolve' | 'devtools'/*** The views in tab order, each with its hotkey and the inline height it asks for. Digits are the first nine; the three@@@ -42,19 -39,12 +43,21 @@@ export const VIEWS: readonly { id: View{ id: 'approvals', key: 'q', label: 'Approvals', short: 'Apv', icon: '✅', blurb: 'decisions waiting for a person: votes, stealable claims, refused mods, budget', rows: 24 },{ id: 'events', key: 'e', label: 'Events', short: 'Evt', icon: '📡', blurb: 'every swarm, claim, memory and mod event as it happens (f filters them)', rows: 26 },{ id: 'missions', key: 'm', label: 'Missions', short: 'Msn', icon: '🎯', blurb: 'ADR-406 missions: the plan, task dependencies, acceptance and budget (observe only)', rows: 26 },- { id: 'xruv', key: 'w', label: 'x.ruv.io', short: 'XRV', icon: '🛸', blurb: 'the open agent federation: what it offers, how to join, its channels and who is on', rows: 34 },+ { id: 'xruv', key: 'w', label: 'x.ruv.io', short: 'XRV', icon: '🛸', blurb: 'the open agent federation: what it offers, how to join, its channels and who is on', rows: 50 },{ id: 'terminal', key: 'i', label: 'Terminal', short: 'Trm', icon: '💻', blurb: 'an AI terminal: codex, claude or both, each a session that remembers the conversation, streamed live', rows: 32 },// No hotkey: every digit and letter is taken. The tab, the menu prompt and /ruflo skills reach it by name.- { id: 'skills', key: '', label: 'Skills', short: 'Skl', icon: '🧰', blurb: 'agent skills (npx skills, skills.sh): what is installed here and globally, search, add, update, remove, create', rows: 34 },+{ id: 'skills', key: '', label: 'Skills', short: 'Skl', icon: '🧰', blurb: 'agent skills (npx skills, skills.sh): installed, search, use without installing, preview, add to chosen agents, update, create', rows: 60 },+ // No hotkeys either: reached by the tab, the menu prompt (secure, perf) or /ruflo secure.+ { id: 'secure', key: '', label: 'Security & Doctor', short: 'Sec', icon: '🔒',blurb: 'security scans, a paste field that checks text for injection and PII, policy, and every doctor check', rows: 40 },+ { id: 'perf', key: '', label: 'Performance', short: 'Prf', icon: '📈', blurb: 'metrics, profile, benchmarks, bottlenecks and a latency sparkline from each run', rows: 30 },+ { id: 'automate', key: '', label: 'Automation', short: 'Aut', icon: '🤖', blurb: 'workflows, the twelve background workers and their daemon, autopilot, sessions, config and a task kanban', rows: 44 },+ { id: 'neural', key: '', label: 'Learning Lab', short: 'Lab', icon: '🧪', blurb: 'train neural patterns and watch the loss, ask the router which agent fits a task, and why', rows: 36 },+ // No hotkey either: reached from the tab, the menu prompt (vector) or /ruflo vector.+ { id: 'vector', key: '', label: 'Vector Lab', short: 'Vec', icon: '🧲', blurb: 'ruvector: the shared brain, RVF stores, rvlite queries, decompile, workers, edge, hooks intel and your pi identity', rows: 44 },+ // No hotkey either: the tab, the menu prompt, the palette and /ruflo evolve reach it by name.+ { id: 'evolve', key: '', label: 'Self-Evolution', short: 'Evo', icon: '🧬', blurb: 'the governed loop: flywheel receipts, ledger, lineage, the policy gate, the witness; Autogenous and rGi', rows: 44 },+ // Keyless too. The menu prompt, the tab and /ruflo devtools reach it by name.+ { id: 'devtools', key: '', label: 'Dev Tools', short: 'Dev', icon: '🔧', blurb: 'the integration surface: GitHub, diff analysis, agenticow, WASM, browser, terminal, providers, maintenance', rows: 40 },]export const AGENT_VIEW = { id: 'agent' as const, rows: 28 }@@@ -239,14 -220,8 +242,16 @@@ export type State =}/** The skills view: installed skills, the last search, and the change running now. */skills: SkillsState+ /** The Memory Lab's fields and picks (its last run is `lab.result`, under a mem- id). */+ memoryLab: MemoryLabState+ /** The Automation and Learning Lab views: the lists a click asked for, and this session's training runs. */+ auto: AutoState+ /** The Vector Lab's fields; its runs land in `lab` under vec- ids. */+ vector: VectorState+ /** The Self-Evolution view: the flywheel files as last read, and what its checks answered. */+ evolve: EvolveState+ /** The Dev Tools view: what is typed in its fields (its runs share the lab result panel, ids dt-*). */+ devtools: { fields: DevFields }timers: Map<string, Timer>stats: { renders: number[]; refreshes: number[]; frames: number[] }}@@@ -288,15 -262,11 +293,16 @@@ export function newState(raw: PluginOptoutcome: null,isActing: false,lab: { result: null, running: null },+ xruv: { result: null, running: null, pubkey: null, hasAdminToken: null },isRefreshing: false,barDrawnAtMs: 0,- terminal: { harness: 'codex', draft: '', lines: [], runs: new Map(), sessions: {}, isLive: { codex: false, claude: false }, turns: { codex: 0, claude: 0 }, costUsd: 0, scroll: 0, unseen: 0, asked: null },+ terminal: { harness: 'codex', draft: '', lines: [], runs: new Map(), sessions: {}, isLive: { codex: false, claude: false }, turns: { codex: 0, claude: 0 }, costUsd: 0, costReports: 0, scroll: 0, unseen: 0, asked: null },skills: emptySkills(),+ memoryLab: emptyMemoryLab(),+ auto: emptyAuto(),+ vector: emptyVector(),+ evolve: emptyEvolve(),+ devtools: { fields: emptyFields() },timers: new Map(),stats: { renders: [], refreshes: [], frames: [] },}diff --cc plugins/ruflo-console/hooks/views/common.tsindex 3a3b09d8b3,622f7e9dcb..4bde269473--- a/plugins/ruflo-console/hooks/views/common.ts+++ b/plugins/ruflo-console/hooks/views/common.ts@@@ -6,14 -6,10 +6,15 @@@import type { Elements, RenderChildren, RenderElement } from 'claude-code'import type { ProbeResult } from '../data/cli'+import type { EvolveActions } from '../evolve'+ import type { DevtoolsActions } from '../devtools'import type { Grid } from '../gfx/raster'+import type { MemoryActions } from '../memory-lab'import type { SkillActions } from '../skills'+import { START_LABEL, type StartId } from '../starts'+import type { MoreSkillActions } from '../skills-lab'import type { HarnessId, State, ViewId } from '../state'+import type { VectorActions } from '../vector'export type Kit = Pick<Elements['terminal'], 'Box' | 'Text' | 'Button'> & { Raster?: Elements['terminal']['Raster']; Input?: Elements['terminal']['Input'] }@@@ -53,13 -44,9 +54,15 @@@ export type Actions =menu: (text: string) => voidterm: { harness: (id: HarnessId) => void; draft: (text: string) => void; submit: (text: string) => void; stop: () => void; fresh: () => void; clear: () => void; load: (id: HarnessId, text: string) => void; /** Moves the window up (positive) or down by screen rows. */ scroll: (by: number) => void; /** Puts an earlier question back in the field. */ reuse: (text: string) => void }/** The skills view: list, search, and the confirm-gated add, remove, update and create; edit loads the terminal. */- skills: SkillActions+ skills: SkillActions & MoreSkillActions+ /** The Memory Lab: its fields, search, browse filter, and an entry's open or delete (each through the runner). */+ memory: MemoryActions+ /** The Vector Lab: its fields, its entries (asked or run through the runner), and rvlite queries handed to the terminal. */+ vector: VectorActions+ /** The Self-Evolution view: read its files again; ▸ ask types a repo prompt into the AI terminal. */+ evolve: EvolveActions+ /** The Dev Tools view: keep a field's text, and Enter in a field runs its entry. */+ devtools: DevtoolsActions}export type Ctx = {diff --cc plugins/ruflo-console/hooks/views/menu.tsindex 6943623a56,dd90881539..f041c7397b--- a/plugins/ruflo-console/hooks/views/menu.ts+++ b/plugins/ruflo-console/hooks/views/menu.ts@@@ -23,16 -23,9 +23,16 @@@ const GROUPS: readonly { title: string{title: 'INTELLIGENCE',sections: [- { name: 'learn', items: [{ key: '6', label: 'Learning', go: 'learning' }, { key: '·', label: 'Neural', go: 'neural' }, { key: '7', label: 'MetaHarness', go: 'metaharness' }, { key: '·', label: 'Self-Evolution', go: 'evolve' }] },- { name: 'learn', items: [{ key: '6', label: 'Learning', go: 'learning' }, { key: '7', label: 'MetaHarness', go: 'metaharness' }] },- { name: 'remember', items: [{ key: '8', label: 'Memory Base', go: 'memory' }] },- { name: 'spend', items: [{ key: '9', label: 'Cost & Budget', go: 'cost' }] },++ { name: 'learn', items: [{ key: '6', label: 'Learning', go: 'learning' }, { key: '·', label: 'Neural', go: 'neural' }, { key: '·', label: 'Self-Evolution', go: 'evolve' }, { key: '7', label: 'MetaHarness', go: 'metaharness' }, { key: '·', label: 'Self-Evolution', go: 'evolve' }] },+ { name: 'remember', items: [{ key: '8', label: 'Memory Lab', go: 'memory' }, { key: '·', label: 'Vector Lab', go: 'vector' }] },+ { name: 'spend', items: [{ key: '9', label: 'Cost & Budget', go: 'cost' }, { key: '·', label: 'Performance', go: 'perf' }] },+ ],+ },+ {+ title: 'SAFETY & OPS',+ sections: [+ { name: 'protect', items: [{ key: '·', label: 'Security & Doctor', go: 'secure' }] },- { name: 'build', items: [{ key: '·', label: 'Dev Tools', go: 'devtools' }] },++ { name: 'build', items: [{ key: '·', label: 'Automation', go: 'automate' }, { key: '·', label: 'Dev Tools', go: 'devtools' }] },],},{diff --cc plugins/ruflo-console/hooks/views/pane.tsindex a2dd7b84c7,6aba8d2945..0ec67d0fe2--- a/plugins/ruflo-console/hooks/views/pane.ts+++ b/plugins/ruflo-console/hooks/views/pane.ts@@@ -12,7 -11,7 +12,8 @@@ import { automateView } from './automatimport { claimsView } from './claims'import { ago, button, clip, col, isBbs, row, setLook, text, THEME, type Ctx } from './common'import { costView } from './cost'+import { evolveView } from './evolve'+ import { devtoolsView } from './devtools'import { federationView } from './federation'import { hiveView } from './hive'import { learningView } from './learning'@@@ -62,12 -54,7 +63,13 @@@ const BODIES: Record<ViewId, (ctx: Ctxxruv: xruvView,terminal: terminalView,skills: skillsView,+ secure: secureView,+ perf: perfView,+ automate: automateView,+ neural: neuralView,+ vector: vectorView,+ evolve: evolveView,+ devtools: devtoolsView,agent: agentView,}diff --cc plugins/ruflo-console/tests/devtools.test.tsindex 0000000000,0000000000..d97c4f1ae2new file mode 100644--- /dev/null+++ b/plugins/ruflo-console/tests/devtools.test.ts@@@ -1,0 -1,0 +1,91 @@@++import type { TestBody } from 'claude-code/testing'++import { describe, expect, mock, test } from 'claude-code/testing'++++import { autoAnswer, FAKE_SECRET, WF_ID } from './fixtures/automate'++import { EVOLVE_FILES, EVOLVE_OUT, R4 } from './fixtures/evolve'++import { HIVE_FILES, RAFT_ID, WORKERS } from './fixtures/hive'++import { MEM_OUT } from './fixtures/memory'++import { MISSION_OBSERVATION } from './fixtures/missions'++import { HIVE_TOKEN, RUFLO_FILES } from './fixtures/ruflo-run'++import { FIND_OUT, LIST_OUT, LS_GLOBAL, USE_OUT } from './fixtures/skills'++import { VEC_OUT } from './fixtures/vector'++import { cliAnswer, command, elementsOf, fakeRuflo, keyOf, paneAt, PLUGIN, SESSION, textOf, worldOf } from './fixtures/world'++++const HOME_FILES = {++ '.claude/plugins/installed_plugins.json': JSON.stringify({++ version: 2,++ plugins: {++ 'ruflo-core@ruflo': [{ scope: 'user', version: '0.2.6', lastUpdated: '2026-07-30T12:06:11.791Z' }],++ 'ruflo-swarm@ruflo': [{ scope: 'user', version: '0.2.1' }],++ },++ }),++ '.claude/plugins/known_marketplaces.json': JSON.stringify({ ruflo: { installLocation: '/home/dev/.claude/plugins/marketplaces/ruflo', lastUpdated: '2026-09-03T18:45:31.282Z', autoUpdate: true } }),++ '.claude/plugins/marketplaces/ruflo/.claude-plugin/marketplace.json': JSON.stringify({ name: 'ruflo', plugins: [{ name: 'ruflo-core' }, { name: 'ruflo-swarm' }] }),++}++++import { drawn } from './fixtures/views'++++describe('dev tools', () => {++ test('devtools: every section with its fields and rows; drawing it runs nothing', { options: { boot: false } }, async ($, on) => {++ const world = worldOf(on, RUFLO_FILES)++ mock.clock(on)++ await $.session.start(SESSION)++++ const { text, tree } = await drawn($, 'devtools')++++ for (const title of ['CAPABILITY BRAIN', 'ANALYZE · GIT DIFF', 'GITHUB & DELIVERY', 'AGENTICOW', 'WASM AGENTS', 'BROWSER', 'TERMINAL SESSIONS', 'PROVIDERS', 'PLUGIN REGISTRY', 'RUVLLM', 'DAA', 'MANAGED AGENTS', 'MAINTENANCE']) expect(text.toUpperCase()).toContain(title)++ expect(text).toMatch(/ net \n PULL REQUESTS \.+/)++ expect(text).toContain(' n/a ')++ expect(text).toContain('nothing run yet')++ expect(elementsOf(tree, 'Input').map(keyOf)).toEqual(expect.arrayContaining(['dt-field-brain-task', 'dt-field-analyze-ref', 'dt-field-browser-url', 'dt-field-terminal-cmd']))++ expect(elementsOf(tree, 'Button').map(keyOf)).toEqual(expect.arrayContaining(['dt-diff-stats', 'dt-gh-prs', 'dt-term-exec', 'dt-cleanup-force']))++ expect(world.runs.some(argv => /analyze_|github_|browser_|terminal_|guidance_|agenticow_|wasm_|managed_|daa_|ruvllm_|transfer_|providers|cleanup|update|migrate|appliance/.test(argv.join(' ')))).toBe(false)++ })++++ test('devtools: a diff read runs at once with one fixed argv; a GitHub read asks first, runs nothing on no and one argv on yes', { options: { boot: false } }, async ($, on) => {++ const world = worldOf(on, RUFLO_FILES)++ const STATS = 'Result:\n{\n "ref": "HEAD",\n "totalFiles": 3,\n "totalAdditions": 12\n}\n'++ world.respond = argv => (argv.includes('analyze_diff-stats') ? { exitCode: 0, stdout: STATS, stderr: '' } : cliAnswer(argv))++ mock.clock(on)++ await $.session.start(SESSION)++ await $.command.run(command('devtools'))++++ const pane = await $.ui.mount({ ...paneAt(110), plugin: PLUGIN })++ const runsOf = (word: string) => world.runs.filter(argv => argv.join(' ').includes(word)).map(argv => argv.slice(4))++++ await pane.press({ key: 'dt-diff-stats' })++ let text = textOf(await pane.drawn())++ expect(text).not.toContain('Confirm:')++ expect(text).toContain('totalFiles: 3')++ expect(runsOf('analyze_diff-stats')).toEqual([['mcp', 'exec', '-t', 'analyze_diff-stats', '-p', '{"ref":"HEAD"}']])++++ await pane.press({ key: 'dt-gh-prs' })++ text = textOf(await pane.drawn())++ expect(text).toContain('Confirm: list pull requests?')++ expect(text).toContain('runs: ruflo mcp exec -t github_pr_manage -p {"action":"list"}')++ expect(text).toContain('gh CLI in this repo: it reads GitHub over the network')++ await pane.press({ key: 'cancel' })++ expect(runsOf('github_')).toHaveLength(0)++++ await pane.press({ key: 'dt-gh-prs' })++ await pane.press({ key: 'confirm' })++ expect(runsOf('github_')).toEqual([['mcp', 'exec', '-t', 'github_pr_manage', '-p', '{"action":"list"}']])++ await pane.unmount()++ })++++ test('devtools headless: a terminal command asks with the command shown, runs once on yes; a wrapped tool error reads ✗', { options: { boot: false } }, async ($, on) => {++ const world = worldOf(on, RUFLO_FILES)++ const FAILED = 'Result:\n' + JSON.stringify({ content: [{ type: 'text', text: JSON.stringify({ error: 'Error: Failed to initialize @ruvector/rvagent-wasm' }) }], isError: true })++ world.respond = argv => (argv.includes('wasm_gallery_list') ? { exitCode: 0, stdout: FAILED, stderr: '' } : cliAnswer(argv))++ mock.clock(on)++ await $.session.start({ ...SESSION, isInteractive: false })++++ expect((await $.command.run(command('run dt-term-exec git status'))).text).toBe('Asked: run the command in a ruflo terminal. Confirm with /ruflo yes (or y in the pane), cancel with /ruflo no.')++ expect(world.runs.some(argv => argv.includes('terminal_execute'))).toBe(false)++ await $.command.run(command('yes'))++ expect(world.runs.filter(argv => argv.includes('terminal_execute')).map(argv => argv.slice(4))).toEqual([['mcp', 'exec', '-t', 'terminal_execute', '-p', '{"command":"git status"}']])++++ expect((await $.command.run(command('run dt-wasm-gallery'))).text).toBe('✗ WASM gallery: the templates · exit 0\n ✗ Error: Failed to initialize @ruvector/rvagent-wasm')++ expect((await $.command.run(command('run dt-br-open javascript:alert(1)'))).text).toMatch(/^nothing to do: type "dt-br-open <text>"/)++ })++})diff --cc scripts/ci-test-baseline.txtindex 19f0e3e013,e3fe62415a..e648960fd1--- a/scripts/ci-test-baseline.txt+++ b/scripts/ci-test-baseline.txt@@@ -163,8 -163,3 +163,9 @@@ plugins/ruflo-console/tests/actions.tesplugins/ruflo-console/tests/behaviour.test.tsplugins/ruflo-console/tests/palette.test.tsplugins/ruflo-console/tests/views.test.ts+plugins/ruflo-console/tests/labs.test.ts++plugins/ruflo-console/tests/devtools.test.ts+plugins/ruflo-console/tests/evolve.test.ts+plugins/ruflo-console/tests/vector.test.ts+plugins/ruflo-console/tests/skills-secure.test.ts+plugins/ruflo-console/tests/xruv.test.ts