🌊 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
fix(scripts): unbiased canary id generation in the compact live driver (CodeQL)
r9ff0ae3d69cf
diff --git a/scripts/live-ruflo-mods-compact.mjs b/scripts/live-ruflo-mods-compact.mjsindex 28272b1a44..d962b70c0c 100644--- a/scripts/live-ruflo-mods-compact.mjs+++ b/scripts/live-ruflo-mods-compact.mjs@@ -9,7 +9,7 @@ import { spawn, execFileSync } from 'node:child_process'import { mkdtempSync, mkdirSync, writeFileSync, readFileSync, readdirSync, existsSync, rmSync, chmodSync } from 'node:fs'import { join, resolve } from 'node:path'import { tmpdir, homedir } from 'node:os'-import { randomBytes } from 'node:crypto'+import { randomInt } from 'node:crypto'const arg = (k, d) => { const i = process.argv.indexOf(`--${k}`); return i > 0 ? process.argv[i + 1] : d }const REPO = resolve(new URL('..', import.meta.url).pathname)@@ -17,7 +17,7 @@ const PLUG = `${REPO}/plugins/ruflo-mods`const SNOOP = arg('snoop') ? resolve(arg('snoop')) : undefinedconst N = Number(arg('n', '3')), MODEL = arg('model', 'haiku'), BUDGET = arg('budget', '0.25')const MODES = arg('modes', 'on,off,malformed').split(',')-const rand = len => { const a = 'abcdefghjkmnpqrstuvwxyz'; const b = randomBytes(len); return [...b].map(x => a[x % a.length]).join('') }+const rand = len => { const a = 'abcdefghjkmnpqrstuvwxyz'; return Array.from({ length: len }, () => a[randomInt(a.length)]).join('') }const HOME = mkdtempSync(join(tmpdir(), 'compact-live-home.'))const CFG = join(HOME, '.claude')