🌊 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 origin/main into loop/adr451-compact
ruvf32b1f6db677
diff --cc plugins/ruflo-mods/README.mdindex d14765dc6e,572b34a3ba..8022284f41--- a/plugins/ruflo-mods/README.md+++ b/plugins/ruflo-mods/README.md@@@ -84,8 -84,8 +84,9 @@@ Claude Code reads a plugin's options fr| `costBudgetUsd` | `0` (off) | Session budget for the ladder || `costHardStop` | `false` | Refuse new subagents at 100% of budget || `deliveryScreen` | `false` | In-process screen (ADR-451): drops peer or relay deliveries that carry injection phrasing, refuses outgoing messages that carry a secret shape. Never screens your own Remote Control prompts; names the rule, never the text |+| `compactCarry` | `false` | `session.compact` (ADR-451 item 7): appends one block of at most 600 characters to what the compaction summary is told to keep: the live swarm id, topology word and agent count, open claim ids with their status word, the last route agent, and the budget and policy words. Read from `.claude-flow/swarm/swarm-state.json` and `.claude-flow/claims/claims.json`, every field validated to a fixed word or plain identifier; never prompt text, tool inputs, paths or file contents. Framed as data, screened for secret shapes and injection phrases (a hit carries nothing), appended after your own `/compact` text, skipped for subagent compactions and when no swarm or claim is open. Fails open || `capabilityProbe` | `false` | Observability only (ADR-451 item 5): the `/ruflo-mods` report gains `probe: engine <version> · events fired n/m · never fired: ...`, and the heartbeat file lists the engine version and registered events. Reads no event payload; never denies, rewrites or delays; the version is shown as "not exposed" when the build does not answer `$.session.version()` |+ | `sessionRollup` | `false` | Observability only (ADR-451 item 6): at `session.end` one record of counters (tools called, routed, tightened, denied, agent spawns, cost rung, probe count) is appended to a user-global `$.store` ledger kept to the last 50 sessions, 512 bytes each and 32 KB in all, pruned on write; `/ruflo-mods` shows the last few as a `sessions:` line. Never stores prompt text, tool inputs, paths or file contents; a corrupt ledger reads as empty; never denies, rewrites or delays || `modTrust` | `observe` | `observe` / `refuse-risky` / `off`: the mod trust gate || `modTrustAllow` | `` | Comma-separated plugin ids (`name@marketplace`, e.g. `ruflo-swarm@ruflo,ruflo-console@ruflo`) the gate never refuses |diff --cc plugins/ruflo-mods/hooks/options.tsindex 772cd247fd,7d818e3fc8..f914379489--- a/plugins/ruflo-mods/hooks/options.ts+++ b/plugins/ruflo-mods/hooks/options.ts@@@ -15,8 -15,8 +15,9 @@@ export type ModOptions =readonly agentTrim: booleanreadonly agentTrimKeep: ReadonlySet<string>readonly deliveryScreen: boolean+ readonly compactCarry: booleanreadonly capabilityProbe: boolean+ readonly sessionRollup: booleanreadonly modTrust: TrustPolicyreadonly modTrustAllow: ReadonlySet<string>}@@@ -45,8 -45,8 +46,9 @@@ export function readOptions(options: PlagentTrim: bool(o.agentTrim, false),agentTrimKeep: keepNames(o.agentTrimKeep),deliveryScreen: bool(o.deliveryScreen, false),+ compactCarry: bool(o.compactCarry, false),capabilityProbe: bool(o.capabilityProbe, false),+ sessionRollup: bool(o.sessionRollup, false),modTrust: TRUST.includes(o.modTrust as TrustPolicy) ? (o.modTrust as TrustPolicy) : 'observe',modTrustAllow: names(o.modTrustAllow),}diff --cc plugins/ruflo-mods/hooks/state.tsindex acb3b6ec6f,f66edd71d0..f807530a84--- a/plugins/ruflo-mods/hooks/state.ts+++ b/plugins/ruflo-mods/hooks/state.ts@@@ -35,10 -37,10 +37,12 @@@ export type ModState =agentTrim: { enabled: boolean; hidden: Set<string>; prompt: string; ledger?: Promise<Record<string, number>> }/** `session.receive`/`session.send` screen (ADR-451): whether it is on, deliveries consumed, sends refused. */delivery: { enabled: boolean; consumed: number; blocked: number }+ /** `session.compact` carry (ADR-451 item 7): whether it is on and how many compactions carried a block. */+ compact: { enabled: boolean; carried: number }/** Capability probe (ADR-451 item 5): engine version and which registered events fired. */probe: ProbeState+ /** Session rollup (ADR-451 item 6): counters for the `$.store` ledger written at session end. */+ rollup: RollupState/** Other mods' status segments, by id (`$.ruflo.segment`). */segments: Map<string, string>/**@@@ -64,8 -66,8 +68,9 @@@ export function createState(): ModStattoolHints: { enabled: false, described: new Set() },agentTrim: { enabled: false, hidden: new Set(), prompt: '' },delivery: { enabled: false, consumed: 0, blocked: 0 },+ compact: { enabled: false, carried: 0 },probe: probeState(),+ rollup: rollupState(),segments: new Map(),draw: () => undefined,}@@@ -151,8 -153,8 +156,9 @@@ export function report(s: ModState): st` tool hints: ${s.toolHints.enabled ? `${s.toolHints.described.size} tool(s) described` : 'off (set the toolHints option)'}`,` agent trim: ${s.agentTrim.enabled ? `${s.agentTrim.hidden.size} type(s) hidden` : 'off (set the agentTrim option)'}`,` delivery: ${s.delivery.enabled ? `${s.delivery.consumed} dropped, ${s.delivery.blocked} refused` : 'off (set the deliveryScreen option)'}`,+ ` compact: ${s.compact.enabled ? `${s.compact.carried} compaction(s) carried a block` : 'off (set the compactCarry option)'}`,` probe: ${probeLine(s.probe)}`,+ ` sessions: ${s.rollup.enabled ? ledgerLines(s.rollup.recent).join('\n ') : 'off (set the sessionRollup option)'}`,` segments: ${segments.join(', ') || 'none'}`,` guidance: ${s.guidance.status}; ${s.guidance.saved} unverified observation(s), ${s.guidance.pending.length} pending, ${s.guidance.dropped} dropped`,]