🌊 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(cli): declare @claude-flow/aidefence as an optional dependency (#4445)
Mario Jauvinf5602c009192
diff --git a/.github/workflows/no-cli-optdep-bloat-2561.yml b/.github/workflows/no-cli-optdep-bloat-2561.ymlindex 9c52d3d670..0f80851a33 100644--- a/.github/workflows/no-cli-optdep-bloat-2561.yml+++ b/.github/workflows/no-cli-optdep-bloat-2561.yml@@ -76,8 +76,17 @@ jobs:// scripts/metaharness-clean-install-test.mjs, which CI runs on// every PR touching these pins). Removed per the guard escape// clause documented above; the rest of the list stands.+ // NOTE: "@claude-flow/aidefence" was on this list as a precaution; the+ // published package has ZERO dependencies (agentdb is an optional+ // peer, which npm does not install), no lifecycle scripts, and+ // is ~150 KB installed. Measured 2026-10-27: cold npm install into+ // an empty dir with an empty cache took 2.3-3.1 s (all registry+ // round-trip) and added one package, versus 139 s / 377 packages for+ // a cold install of @claude-flow/cli itself. It is declared so+ // the aidefence_* tools resolve under the pnpm isolated layout (#4445).+ // Removed per the guard escape clause documented above; the rest+ // of the list stands.const FORBIDDEN = [- "@claude-flow/aidefence","@claude-flow/codex","@claude-flow/embeddings","@claude-flow/guidance",diff --git a/v3/@claude-flow/cli/package.json b/v3/@claude-flow/cli/package.jsonindex a25a194a3e..8cc381dd71 100644--- a/v3/@claude-flow/cli/package.json+++ b/v3/@claude-flow/cli/package.json@@ -131,6 +131,7 @@},"optionalDependencies": {"@agntcy/slim-bindings": "2.1.1",+ "@claude-flow/aidefence": "3.0.2","@claude-flow/memory": "3.0.9","@metaharness/darwin": "~0.12.0","@metaharness/flywheel": "~0.1.10",diff --git a/v3/pnpm-lock.yaml b/v3/pnpm-lock.yamlindex ba2225eddf..d1e81dce54 100644--- a/v3/pnpm-lock.yaml+++ b/v3/pnpm-lock.yaml@@ -214,6 +214,9 @@ importers:'@agntcy/slim-bindings':specifier: 2.1.1version: 2.1.1+ '@claude-flow/aidefence':+ specifier: 3.0.2+ version: link:../aidefence'@claude-flow/memory':specifier: 3.0.9version: link:../memory