π 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
feat(init): #2089 ADR-127 Phase 4 β attribution opt-in across 19 github command files + last-updated stamps
ruv1eece3afc07c
diff --git a/.claude/agents/github/issue-tracker.md b/.claude/agents/github/issue-tracker.mdindex 7d66288b66..9285402aa5 100644--- a/.claude/agents/github/issue-tracker.md+++ b/.claude/agents/github/issue-tracker.md@@ -95,7 +95,7 @@ mcp__github__add_issue_comment {- Final validation and merge preparation---- π€ Generated with Claude Code using ruv-swarm coordination`+ `}// Store progress in swarm memory@@ -213,9 +213,10 @@ mcp__github__update_issue {Updates will be posted automatically by swarm agents during implementation.----π€ Generated with Claude Code```+<!-- last-updated: 2026-05-21 β ADR-127 -->+### Bug Report Template:```markdown## π Bug Report@@ -251,7 +252,6 @@ Updates will be posted automatically by swarm agents during implementation.- **Tester**: Validation and testing----π€ Generated with Claude Code```## Best Practicesdiff --git a/.claude/agents/github/release-manager.md b/.claude/agents/github/release-manager.mdindex b4c2a143c0..7a591b6174 100644--- a/.claude/agents/github/release-manager.md+++ b/.claude/agents/github/release-manager.md@@ -165,10 +165,12 @@ This release was coordinated using ruv-swarm agents:This release is production-ready with comprehensive validation and testing.----π€ Generated with Claude Code using ruv-swarm coordination`+`}```+<!-- last-updated: 2026-05-21 β ADR-127 -->+## Batch Release Workflow### Complete Release Pipeline:diff --git a/.claude/agents/github/sync-coordinator.md b/.claude/agents/github/sync-coordinator.mdindex 4586ebbbd7..48d5e71ccf 100644--- a/.claude/agents/github/sync-coordinator.md+++ b/.claude/agents/github/sync-coordinator.md@@ -144,10 +144,12 @@ This integration uses ruv-swarm agents for:- Memory-based state management----π€ Generated with Claude Code using ruv-swarm coordination`+`}```+<!-- last-updated: 2026-05-21 β ADR-127 -->+## Batch Synchronization Example### Complete Package Sync Workflow:diff --git a/.claude/skills/github-project-management/SKILL.md b/.claude/skills/github-project-management/SKILL.mdindex 95ec2f1093..b39374ade9 100644--- a/.claude/skills/github-project-management/SKILL.md+++ b/.claude/skills/github-project-management/SKILL.md@@ -839,9 +839,10 @@ npx ruv-swarm github review-coordinate \Updates will be posted automatically by swarm agents during implementation.----π€ Generated with Claude Code```+<!-- last-updated: 2026-05-21 β ADR-127 -->+### Bug Report Template```markdown@@ -878,7 +879,6 @@ Updates will be posted automatically by swarm agents during implementation.- **Tester**: Validation and testing----π€ Generated with Claude Code```### Feature Request Template@@ -922,7 +922,6 @@ Updates will be posted automatically by swarm agents during implementation.- **Documenter**: Documentation----π€ Generated with Claude Code```### Swarm Task Templatediff --git a/.github/workflows/v3-ci.yml b/.github/workflows/v3-ci.ymlindex 16178e2a97..8f79e0573a 100644--- a/.github/workflows/v3-ci.yml+++ b/.github/workflows/v3-ci.yml@@ -90,6 +90,7 @@ on:- 'scripts/smoke-github-safe-injection.mjs'- 'scripts/smoke-github-actions-pins.mjs'- 'scripts/smoke-deprecated-actions.mjs'+ - 'scripts/smoke-attribution-opt-in.mjs'- '.github/supply-chain/allowed-deps.json'pull_request:branches: [main, develop]@@ -157,6 +158,7 @@ on:- 'scripts/smoke-github-safe-injection.mjs'- 'scripts/smoke-github-actions-pins.mjs'- 'scripts/smoke-deprecated-actions.mjs'+ - 'scripts/smoke-attribution-opt-in.mjs'- '.github/supply-chain/allowed-deps.json'# witness manifests / fix list β so witness-verify runs on PRs that# touch them (otherwise a stale per-OS manifest only fails post-merge).@@ -1082,6 +1084,34 @@ jobs:- name: Run deprecated-actions smokerun: node scripts/smoke-deprecated-actions.mjs+ github-attribution-opt-in-smoke:+ # Regression guard for ruvnet/ruflo#2089 β ADR-127 Phase 4.+ #+ # Phase 4 removes hardcoded "Generated with Claude Code" attribution+ # strings from the static github command templates. Attribution is now+ # opt-in via --attribution / options.attribution=true (#1670 / #2089).+ # Hard-wired footers silently added a third-party Co-Authored-By line+ # to every user's commits and were impossible to undo without rewriting+ # git history.+ #+ # This smoke scans the same three trees as the pins smoke and fails if+ # the "Generated with" emoji pattern reappears β preventing copy-paste+ # regression from blog posts or AI-generated snippets.+ name: github attribution opt-in smoke (#2089, ADR-127 Phase 4)+ runs-on: ubuntu-latest++ steps:+ - name: Checkout code+ uses: actions/checkout@v4++ - name: Setup Node.js+ uses: actions/setup-node@v4+ with:+ node-version: '22'++ - name: Run attribution opt-in smoke+ run: node scripts/smoke-attribution-opt-in.mjs+pre-bash-hook-smoke:# Regression guard for ruvnet/ruflo#2017 β the `pre-bash` PreToolUse hook# in `.claude/helpers/hook-handler.cjs` is a security gate that refuses todiff --git a/scripts/smoke-attribution-opt-in.mjs b/scripts/smoke-attribution-opt-in.mjsnew file mode 100644index 0000000000..76714f4d5c--- /dev/null+++ b/scripts/smoke-attribution-opt-in.mjs@@ -0,0 +1,84 @@+/**+ * Smoke test: no hardcoded attribution footers in github command files.+ *+ * ADR-127 Phase 4 moves "Generated with Claude Code" strings out of the+ * static markdown templates and into the opt-in attribution path in+ * helpers-generator.ts (gated on options.attribution). Hardcoded footers+ * silently added a third-party Co-Authored-By line to every user's commits+ * (#1670) and were removed unconditionally.+ *+ * This smoke prevents the pattern from drifting back via copy-paste or+ * AI-generated snippet insertion.+ *+ * Scope (same three trees as the pins smoke):+ * .claude/agents/github/*.md+ * .claude/skills/github-[name]/SKILL.md+ * v3/@claude-flow/cli/.claude/commands/github/[name].md+ *+ * Exit 0 when clean, exit 1 with offending lines printed.+ */++import { readFileSync, readdirSync, statSync, existsSync } from 'fs';+import { join, resolve } from 'path';++const ROOT = resolve(new URL('.', import.meta.url).pathname, '..');++/** Collect markdown files from a directory (non-recursive or one level deep) */+function collectMarkdown(dir, recursive) {+ const files = [];+ if (!existsSync(dir)) return files;+ for (const entry of readdirSync(dir)) {+ const full = join(dir, entry);+ const st = statSync(full);+ if (st.isFile() && entry.endsWith('.md')) {+ files.push(full);+ } else if (st.isDirectory() && recursive) {+ // One extra level only (github-[name]/SKILL.md pattern)+ for (const sub of readdirSync(full)) {+ const subFull = join(full, sub);+ if (statSync(subFull).isFile() && sub.endsWith('.md')) {+ files.push(subFull);+ }+ }+ }+ }+ return files;+}++const SCAN_TARGETS = [+ collectMarkdown(join(ROOT, '.claude/agents/github'), false),+ collectMarkdown(join(ROOT, '.claude/skills'), true).filter(f => f.includes('/github-')),+ collectMarkdown(join(ROOT, 'v3/@claude-flow/cli/.claude/commands/github'), false),+];++const allFiles = SCAN_TARGETS.flat();++// Pattern to detect: the emoji + "Generated with" prefix+// Matches both "Generated with Claude Code" and "Generated with [RuFlo](β¦)"+const HARDCODED_PATTERN = /π€\s+Generated with/;++const violations = [];++for (const file of allFiles) {+ const content = readFileSync(file, 'utf8');+ const lines = content.split('\n');+ for (let i = 0; i < lines.length; i++) {+ if (HARDCODED_PATTERN.test(lines[i])) {+ violations.push(`${file.replace(ROOT + '/', '')}:${i + 1}: ${lines[i].trim()}`);+ }+ }+}++if (violations.length > 0) {+ console.error('FAIL: hardcoded attribution footers found in github command scope:');+ for (const v of violations) {+ console.error(` ${v}`);+ }+ console.error('');+ console.error('These must be removed from the static templates (ADR-127 Phase 4).');+ console.error('Attribution is opt-in via --attribution / options.attribution=true');+ console.error('and injected programmatically by helpers-generator.ts, not hard-wired.');+ process.exit(1);+}++console.log('ok: no hardcoded attribution footers found in github command scope');diff --git a/v3/@claude-flow/cli/.claude/commands/github/issue-tracker.md b/v3/@claude-flow/cli/.claude/commands/github/issue-tracker.mdindex cfb537baad..566d3aff4d 100644--- a/v3/@claude-flow/cli/.claude/commands/github/issue-tracker.md+++ b/v3/@claude-flow/cli/.claude/commands/github/issue-tracker.md@@ -88,7 +88,7 @@ mcp__github__add_issue_comment {- Final validation and merge preparation---- π€ Generated with Claude Code using ruv-swarm coordination`+ `}// Store progress in swarm memory@@ -206,9 +206,10 @@ mcp__github__update_issue {Updates will be posted automatically by swarm agents during implementation.----π€ Generated with Claude Code```+<!-- last-updated: 2026-05-21 β ADR-127 -->+### Bug Report Template:```markdown## π Bug Report@@ -244,7 +245,6 @@ Updates will be posted automatically by swarm agents during implementation.- **Tester**: Validation and testing----π€ Generated with Claude Code```## Best Practicesdiff --git a/v3/@claude-flow/cli/.claude/commands/github/release-manager.md b/v3/@claude-flow/cli/.claude/commands/github/release-manager.mdindex 65acb0fbeb..8038920b26 100644--- a/v3/@claude-flow/cli/.claude/commands/github/release-manager.md+++ b/v3/@claude-flow/cli/.claude/commands/github/release-manager.md@@ -167,10 +167,12 @@ This release was coordinated using ruv-swarm agents:This release is production-ready with comprehensive validation and testing.----π€ Generated with Claude Code using ruv-swarm coordination`+`}```+<!-- last-updated: 2026-05-21 β ADR-127 -->+## Batch Release Workflow### Complete Release Pipeline:diff --git a/v3/@claude-flow/cli/.claude/commands/github/sync-coordinator.md b/v3/@claude-flow/cli/.claude/commands/github/sync-coordinator.mdindex 794cf5f96f..412235decb 100644--- a/v3/@claude-flow/cli/.claude/commands/github/sync-coordinator.md+++ b/v3/@claude-flow/cli/.claude/commands/github/sync-coordinator.md@@ -137,10 +137,12 @@ This integration uses ruv-swarm agents for:- Memory-based state management----π€ Generated with Claude Code using ruv-swarm coordination`+`}```+<!-- last-updated: 2026-05-21 β ADR-127 -->+## Batch Synchronization Example### Complete Package Sync Workflow:diff --git a/v3/@claude-flow/cli/src/init/helpers-generator.ts b/v3/@claude-flow/cli/src/init/helpers-generator.tsindex 6cdd84949b..4f3c843284 100644--- a/v3/@claude-flow/cli/src/init/helpers-generator.ts+++ b/v3/@claude-flow/cli/src/init/helpers-generator.ts@@ -6,6 +6,14 @@import type { InitOptions } from './types.js';import { generateStatuslineScript, generateStatuslineHook } from './statusline-generator.js';+// ADR-127 Phase 4 β attribution is opt-in (#1670 / #2089).+// When the user passes --attribution (options.attribution === true),+// this footer is available for injection into generated content such as+// PR body templates and release notes. It is NEVER hard-wired into the+// static command-file templates β those are user-owned content.+export const ATTRIBUTION_FOOTER =+ 'π€ Generated with [RuFlo](https://github.com/ruvnet/ruflo)';+/*** Generate pre-commit hook script*/@@ -1192,6 +1200,14 @@ export function generateHelpers(options: InitOptions): Record<string, string> {// Windows-specific scriptshelpers['daemon-manager.ps1'] = generateWindowsDaemonManager();helpers['daemon-manager.cmd'] = generateWindowsBatchWrapper();++ // ADR-127 Phase 4 β expose the attribution footer as a helper file only+ // when the user explicitly opts in. The file content is the single-line+ // string so init-generated PR templates can `cat .claude/helpers/attribution`+ // and append it conditionally without hard-wiring the string everywhere.+ if (options.attribution === true) {+ helpers['attribution'] = ATTRIBUTION_FOOTER + '\n';+ }}if (options.components.statusline) {