Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 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

feat(init): #2095 ADR-128 Phase 3 — opt-in domain-specific agent categories (98 → ~17 by default)

ruv34e7b1e9f69d
diff --git a/v3/@claude-flow/cli/src/commands/init.ts b/v3/@claude-flow/cli/src/commands/init.ts
index a1828e60b2..d576d99f1e 100644
--- a/v3/@claude-flow/cli/src/commands/init.ts
+++ b/v3/@claude-flow/cli/src/commands/init.ts
@@ -188,6 +188,7 @@ const initAction = async (ctx: CommandContext): Promise<CommandResult> => {
const skipClaude = ctx.flags['skip-claude'] as boolean;
const onlyClaude = ctx.flags['only-claude'] as boolean;
const noGlobal = ctx.flags['no-global'] as boolean;
+ const allAgents = ctx.flags['all-agents'] as boolean;
const codexMode = ctx.flags.codex as boolean;
const dualMode = ctx.flags.dual as boolean;
const cwd = ctx.cwd;
@@ -252,6 +253,13 @@ const initAction = async (ctx: CommandContext): Promise<CommandResult> => {
options.components.runtime = false;
}
+ // ADR-128 Phase 3 — restore full agent set (98 agents) when user explicitly
+ // requests it. Default is the ~24-agent substrate (core, consensus, swarm,
+ // sparc, testing). Pass --all-agents to get the old behavior.
+ if (allAgents) {
+ options.agents.all = true;
+ }
+
// #1744 — opt-out of the user-global ~/.claude/CLAUDE.md "Ruflo Integration"
// pointer block. Default behavior (off) preserves current install for users
// who rely on it; opting in via --no-global keeps the global file pristine.
@@ -1114,6 +1122,12 @@ export const initCommand: Command = {
type: 'boolean',
default: false,
},
+ {
+ name: 'all-agents',
+ description: 'Install all agent categories (ADR-128: default is ~24 substrate agents; this restores the full set of ~89)',
+ type: 'boolean',
+ default: false,
+ },
],
examples: [
{ command: 'claude-flow init', description: 'Initialize with default configuration' },
@@ -1135,6 +1149,7 @@ export const initCommand: Command = {
{ command: 'claude-flow init --codex', description: 'Initialize for OpenAI Codex (AGENTS.md)' },
{ command: 'claude-flow init --codex --full', description: 'Codex init with all 137+ skills' },
{ command: 'claude-flow init --dual', description: 'Initialize for both Claude Code and Codex' },
+ { command: 'claude-flow init --all-agents', description: 'Install all agent categories (~89 agents; ADR-128 opt-in)' },
],
action: initAction,
};
diff --git a/v3/@claude-flow/cli/src/init/types.ts b/v3/@claude-flow/cli/src/init/types.ts
index 8da2a0c35f..b2a981e734 100644
--- a/v3/@claude-flow/cli/src/init/types.ts
+++ b/v3/@claude-flow/cli/src/init/types.ts
@@ -380,16 +380,16 @@ export const DEFAULT_INIT_OPTIONS: InitOptions = {
agents: {
core: true,
consensus: true,
- github: true,
- hiveMind: true,
+ github: false, // ADR-128 Phase 3: opt-in via --agents=github or --all-agents
+ hiveMind: false, // ADR-128 Phase 3: opt-in via --all-agents
sparc: true,
swarm: true,
browser: true,
- v3: true,
- optimization: true,
+ v3: false, // ADR-128 Phase 3: opt-in via --agents=v3 or --all-agents
+ optimization: false, // ADR-128 Phase 3: opt-in via --all-agents
testing: true,
dualMode: false, // Optional: enable with --dual flag
- all: true,
+ all: false, // ADR-128 Phase 3: was true; use --all-agents to restore
},
statusline: {
enabled: true,