Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .claude-flow/CAPABILITIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,11 +350,11 @@ npx @claude-flow/cli@latest hive-mind consensus --propose "task"
### MCP Server Setup
```bash
# Add Claude Flow MCP
claude mcp add claude-flow -- npx -y @claude-flow/cli@latest
claude mcp add claude-flow - npx -y @claude-flow/cli@latest

# Optional servers
claude mcp add ruv-swarm -- npx -y ruv-swarm mcp start
claude mcp add flow-nexus -- npx -y flow-nexus@latest mcp start
claude mcp add ruv-swarm - npx -y ruv-swarm mcp start
claude mcp add flow-nexus - npx -y flow-nexus@latest mcp start
```

---
Expand Down
4 changes: 2 additions & 2 deletions .claude/agents/core/tester.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ hooks:

post: |
echo "📋 Test results summary:"
TEST_OUTPUT=$(npm test -- --reporter=json 2>/dev/null | jq '.numPassedTests, .numFailedTests' 2>/dev/null || echo "Tests completed")
TEST_OUTPUT=$(npm test - --reporter=json 2>/dev/null | jq '.numPassedTests, .numFailedTests' 2>/dev/null || echo "Tests completed")
echo "$TEST_OUTPUT"

# 1. Calculate test quality metrics
Expand Down Expand Up @@ -509,4 +509,4 @@ console.log(`Common missed scenarios: ${stats.commonCritiques}`);
9. **Use GNN Search**: Find similar test scenarios (+12.4% coverage)
10. **Flash Attention**: Generate tests faster (2.49x-7.47x speedup)

Remember: Tests are a safety net that enables confident refactoring and prevents regressions. Invest in good teststhey pay dividends in maintainability. **Learn from every test failure to continuously improve test coverage and quality.**
Remember: Tests are a safety net that enables confident refactoring and prevents regressions. Invest in good tests - they pay dividends in maintainability. **Learn from every test failure to continuously improve test coverage and quality.**
4 changes: 2 additions & 2 deletions .claude/agents/github/multi-repo-swarm.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ MATCHING_REPOS=$(gh repo list org --limit 100 --json name \
# Execute task and create PRs
echo "$MATCHING_REPOS" | while read -r repo; do
# Clone repo
gh repo clone org/$repo /tmp/$repo -- --depth=1
gh repo clone org/$repo /tmp/$repo - --depth=1

# Execute task
cd /tmp/$repo
Expand Down Expand Up @@ -206,7 +206,7 @@ TS_REPOS=$(gh repo list org --limit 100 --json name | jq -r '.[].name' | \
# Update each repository
echo "$TS_REPOS" | while read -r repo; do
# Clone and update
gh repo clone org/$repo /tmp/$repo -- --depth=1
gh repo clone org/$repo /tmp/$repo - --depth=1
cd /tmp/$repo

# Update dependency
Expand Down
2 changes: 1 addition & 1 deletion .claude/agents/github/release-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ This release is production-ready with comprehensive validation and testing.
Bash("gh api repos/:owner/:repo/git/refs --method POST -f ref='refs/heads/release/v1.0.72' -f sha=$(gh api repos/:owner/:repo/git/refs/heads/main --jq '.object.sha')")

// Clone and update release files
Bash("gh repo clone :owner/:repo /tmp/release-v1.0.72 -- --branch release/v1.0.72 --depth=1")
Bash("gh repo clone :owner/:repo /tmp/release-v1.0.72 - --branch release/v1.0.72 --depth=1")

// Update all release-related files
Write("/tmp/release-v1.0.72/claude-code-flow/claude-code-flow/package.json", "[updated package.json]")
Expand Down
4 changes: 2 additions & 2 deletions .claude/commands/github/multi-repo-swarm.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ MATCHING_REPOS=$(gh repo list org --limit 100 --json name \
# Execute task and create PRs
echo "$MATCHING_REPOS" | while read -r repo; do
# Clone repo
gh repo clone org/$repo /tmp/$repo -- --depth=1
gh repo clone org/$repo /tmp/$repo - --depth=1

# Execute task
cd /tmp/$repo
Expand Down Expand Up @@ -172,7 +172,7 @@ TS_REPOS=$(gh repo list org --limit 100 --json name | jq -r '.[].name' | \
# Update each repository
echo "$TS_REPOS" | while read -r repo; do
# Clone and update
gh repo clone org/$repo /tmp/$repo -- --depth=1
gh repo clone org/$repo /tmp/$repo - --depth=1
cd /tmp/$repo

# Update dependency
Expand Down
2 changes: 1 addition & 1 deletion .claude/commands/github/release-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ This release is production-ready with comprehensive validation and testing.
Bash("gh api repos/:owner/:repo/git/refs --method POST -f ref='refs/heads/release/v1.0.72' -f sha=$(gh api repos/:owner/:repo/git/refs/heads/main --jq '.object.sha')")

// Clone and update release files
Bash("gh repo clone :owner/:repo /tmp/release-v1.0.72 -- --branch release/v1.0.72 --depth=1")
Bash("gh repo clone :owner/:repo /tmp/release-v1.0.72 - --branch release/v1.0.72 --depth=1")

// Update all release-related files
Write("/tmp/release-v1.0.72/claude-code-flow/claude-code-flow/package.json", "[updated package.json]")
Expand Down
4 changes: 2 additions & 2 deletions .claude/commands/sparc/spec-pseudocode.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
name: sparc-spec-pseudocode
description: 📋 Specification Writer - You capture full project contextfunctional requirements, edge cases, constraintsand translate t...
description: 📋 Specification Writer - You capture full project context - functional requirements, edge cases, constraints - and translate t...
---

# 📋 Specification Writer

## Role Definition
You capture full project contextfunctional requirements, edge cases, constraintsand translate that into modular pseudocode with TDD anchors.
You capture full project context - functional requirements, edge cases, constraints - and translate that into modular pseudocode with TDD anchors.

## Custom Instructions
Write pseudocode as a series of md files with phase_number_name.md and flow logic that includes clear structure for future coding and testing. Split complex logic across modules. Never include hard-coded secrets or config values. Ensure each spec module remains < 500 lines.
Expand Down
4 changes: 1 addition & 3 deletions .claude/helpers/auto-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ Automatic checkpoint created by Claude Code
- Timestamp: $timestamp
- Changes: $change_count file(s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>" --quiet 2>/dev/null; then
🤖 Generated with [Claude Code](https://claude.com/claude-code)" --quiet 2>/dev/null; then
log "Created commit: $message"

# Push if enabled
Expand Down
4 changes: 2 additions & 2 deletions .claude/helpers/auto-memory-hook.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ async function doImport() {

const memPkg = await loadMemoryPackage();
if (!memPkg || !memPkg.AutoMemoryBridge) {
dim('Memory package not available skipping auto memory import');
dim('Memory package not available - skipping auto memory import');
return;
}

Expand Down Expand Up @@ -254,7 +254,7 @@ async function doSync() {

const memPkg = await loadMemoryPackage();
if (!memPkg || !memPkg.AutoMemoryBridge) {
dim('Memory package not available skipping sync');
dim('Memory package not available - skipping sync');
return;
}

Expand Down
28 changes: 14 additions & 14 deletions .claude/helpers/intelligence.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
* Intelligence Layer (ADR-050)
*
* Closes the intelligence loop by wiring PageRank-ranked memory into
* the hook system. Pure CJS no ESM imports of @claude-flow/memory.
* the hook system. Pure CJS - no ESM imports of @claude-flow/memory.
*
* Data files (all under .claude-flow/data/):
* auto-memory-store.json written by auto-memory-hook.mjs
* graph-state.json serialized graph (nodes + edges + pageRanks)
* ranked-context.json pre-computed ranked entries for fast lookup
* pending-insights.jsonl append-only edit/task log
* auto-memory-store.json - written by auto-memory-hook.mjs
* graph-state.json - serialized graph (nodes + edges + pageRanks)
* ranked-context.json - pre-computed ranked entries for fast lookup
* pending-insights.jsonl - append-only edit/task log
*/

'use strict';
Expand Down Expand Up @@ -48,7 +48,7 @@ function ensureDataDir() {
function readJSON(filePath) {
try {
if (fs.existsSync(filePath)) return JSON.parse(fs.readFileSync(filePath, 'utf-8'));
} catch { /* corrupt file start fresh */ }
} catch { /* corrupt file - start fresh */ }
return null;
}

Expand Down Expand Up @@ -302,7 +302,7 @@ function parseMemoryDir(dir, entries) {
// ── Exported functions ───────────────────────────────────────────────────────

/**
* init() Called from session-restore. Budget: <200ms.
* init() - Called from session-restore. Budget: <200ms.
* Reads auto-memory-store.json, builds graph, computes PageRank, writes caches.
* If store is empty, bootstraps from MEMORY.md files directly.
*/
Expand Down Expand Up @@ -405,7 +405,7 @@ function init() {
}

/**
* getContext(prompt) Called from route. Budget: <15ms.
* getContext(prompt) - Called from route. Budget: <15ms.
* Matches prompt to ranked entries, returns top-5 formatted context.
*/
function getContext(prompt) {
Expand Down Expand Up @@ -466,7 +466,7 @@ function getContext(prompt) {
}

/**
* recordEdit(file) Called from post-edit. Budget: <2ms.
* recordEdit(file) - Called from post-edit. Budget: <2ms.
* Appends to pending-insights.jsonl.
*/
function recordEdit(file) {
Expand All @@ -481,7 +481,7 @@ function recordEdit(file) {
}

/**
* feedback(success) Called from post-task. Budget: <10ms.
* feedback(success) - Called from post-task. Budget: <10ms.
* Boosts or decays confidence for last-matched patterns.
*/
function feedback(success) {
Expand Down Expand Up @@ -521,7 +521,7 @@ function boostConfidence(ids, amount) {
}

/**
* consolidate() Called from session-end. Budget: <500ms.
* consolidate() - Called from session-end. Budget: <500ms.
* Processes pending insights, rebuilds edges, recomputes PageRank.
*/
function consolidate() {
Expand Down Expand Up @@ -556,7 +556,7 @@ function consolidate() {
store.push({
id: `insight-${Date.now()}-${Math.random().toString(36).slice(2, 6)}`,
key: `frequent-edit-${path.basename(file)}`,
content: `File ${file} was edited ${count} times this session likely a hot path worth monitoring.`,
content: `File ${file} was edited ${count} times this session - likely a hot path worth monitoring.`,
summary: `Frequently edited: ${path.basename(file)} (${count}x)`,
namespace: 'insights',
type: 'procedural',
Expand Down Expand Up @@ -707,7 +707,7 @@ function saveSnapshot(graph, ranked) {
}

/**
* stats() Diagnostic report showing intelligence health and improvement.
* stats() - Diagnostic report showing intelligence health and improvement.
* Can be called as: node intelligence.cjs stats [--json]
*/
function stats(outputJson) {
Expand Down Expand Up @@ -894,7 +894,7 @@ function stats(outputJson) {
}

if (!delta && !trend) {
console.log(' No history yet run more sessions to see deltas and trends.');
console.log(' No history yet - run more sessions to see deltas and trends.');
console.log('');
}

Expand Down
16 changes: 8 additions & 8 deletions .claude/helpers/learning-service.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const CONFIG = {

function initializeDatabase(db) {
db.exec(`
-- Short-term patterns (session-level)
- Short-term patterns (session-level)
CREATE TABLE IF NOT EXISTS short_term_patterns (
id TEXT PRIMARY KEY,
strategy TEXT NOT NULL,
Expand All @@ -96,7 +96,7 @@ function initializeDatabase(db) {
metadata TEXT
);

-- Long-term patterns (promoted from short-term)
- Long-term patterns (promoted from short-term)
CREATE TABLE IF NOT EXISTS long_term_patterns (
id TEXT PRIMARY KEY,
strategy TEXT NOT NULL,
Expand All @@ -113,17 +113,17 @@ function initializeDatabase(db) {
metadata TEXT
);

-- HNSW index metadata
- HNSW index metadata
CREATE TABLE IF NOT EXISTS hnsw_index (
id INTEGER PRIMARY KEY,
pattern_type TEXT NOT NULL, -- 'short_term' or 'long_term'
pattern_type TEXT NOT NULL, - 'short_term' or 'long_term'
pattern_id TEXT NOT NULL,
vector_id INTEGER NOT NULL,
created_at INTEGER NOT NULL,
UNIQUE(pattern_type, pattern_id)
);

-- Learning trajectories
- Learning trajectories
CREATE TABLE IF NOT EXISTS trajectories (
id TEXT PRIMARY KEY,
session_id TEXT NOT NULL,
Expand All @@ -136,7 +136,7 @@ function initializeDatabase(db) {
distilled_pattern_id TEXT
);

-- Learning metrics
- Learning metrics
CREATE TABLE IF NOT EXISTS learning_metrics (
id INTEGER PRIMARY KEY AUTOINCREMENT,
timestamp INTEGER NOT NULL,
Expand All @@ -146,14 +146,14 @@ function initializeDatabase(db) {
metadata TEXT
);

-- Session state
- Session state
CREATE TABLE IF NOT EXISTS session_state (
key TEXT PRIMARY KEY,
value TEXT NOT NULL,
updated_at INTEGER NOT NULL
);

-- Create indexes
- Create indexes
CREATE INDEX IF NOT EXISTS idx_short_term_domain ON short_term_patterns(domain);
CREATE INDEX IF NOT EXISTS idx_short_term_quality ON short_term_patterns(quality DESC);
CREATE INDEX IF NOT EXISTS idx_short_term_usage ON short_term_patterns(usage_count DESC);
Expand Down
10 changes: 5 additions & 5 deletions .claude/helpers/statusline.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function safeStat(filePath) {
return null;
}

// Shared settings cache read once, used by multiple functions
// Shared settings cache - read once, used by multiple functions
let _settingsCache = undefined;
function getSettings() {
if (_settingsCache !== undefined) return _settingsCache;
Expand Down Expand Up @@ -303,7 +303,7 @@ function getSwarmStatus() {
return { activeAgents: 0, maxAgents: CONFIG.maxAgents, coordinationActive: false };
}

// System metrics (uses process.memoryUsage() no shell spawn)
// System metrics (uses process.memoryUsage() - no shell spawn)
function getSystemMetrics() {
const memoryMB = Math.floor(process.memoryUsage().heapUsed / 1024 / 1024);
const learning = getLearningStats();
Expand Down Expand Up @@ -351,7 +351,7 @@ function getSystemMetrics() {
return { memoryMB, contextPct, intelligencePct, subAgents };
}

// ADR status (count files only don't read contents)
// ADR status (count files only - don't read contents)
function getADRStatus() {
const complianceData = readJSON(path.join(CWD, '.claude-flow', 'metrics', 'adr-compliance.json'));
if (complianceData) {
Expand Down Expand Up @@ -470,7 +470,7 @@ function getAgentDBStats() {
return { vectorCount, dbSizeKB: Math.floor(dbSizeKB), namespaces, hasHnsw };
}

// Test stats (count files only NO reading file contents)
// Test stats (count files only - NO reading file contents)
function getTestStats() {
let testFiles = 0;

Expand Down Expand Up @@ -708,7 +708,7 @@ let _stdinData = null;
function getStdinData() {
if (_stdinData !== undefined && _stdinData !== null) return _stdinData;
try {
// Check if stdin is a TTY (manual run) skip reading
// Check if stdin is a TTY (manual run) - skip reading
if (process.stdin.isTTY) { _stdinData = null; return null; }
// Read stdin synchronously via fd 0
const chunks = [];
Expand Down
2 changes: 1 addition & 1 deletion .claude/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
]
},
"attribution": {
"commit": "Co-Authored-By: claude-flow <ruv@ruv.net>",
"commit": "",
"pr": "🤖 Generated with [claude-flow](https://github.com/ruvnet/claude-flow)"
},
"env": {
Expand Down
6 changes: 3 additions & 3 deletions .claude/skills/github-multi-repo/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ mcp__claude-flow__swarm_init({

// Execute task across repositories
Bash(`cat /tmp/repos.txt | while read -r repo; do
gh repo clone org/$repo /tmp/$repo -- --depth=1
gh repo clone org/$repo /tmp/$repo - --depth=1
cd /tmp/$repo

# Apply changes
Expand Down Expand Up @@ -377,7 +377,7 @@ jobs:

// Update each repository
Bash(`echo "$TS_REPOS" | while read -r repo; do
gh repo clone org/$repo /tmp/$repo -- --depth=1
gh repo clone org/$repo /tmp/$repo - --depth=1
cd /tmp/$repo

npm install --save-dev typescript@5.0.0
Expand Down Expand Up @@ -430,7 +430,7 @@ Part of #$TRACKING_ISSUE"
// Scan all repositories
Bash(`gh repo list org --limit 100 --json name | jq -r '.[].name' | \
while read -r repo; do
gh repo clone org/$repo /tmp/$repo -- --depth=1
gh repo clone org/$repo /tmp/$repo - --depth=1
cd /tmp/$repo
npm audit --json > /tmp/audit-$repo.json
done`)
Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/github-release-management/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ docker run --rm -v $(pwd):/app node:20 \
### Issue: Test Failures in CI
```bash
# Run tests with detailed output
npm run test -- --verbose --coverage
npm run test - --verbose --coverage

# Check for environment-specific issues
npm run test:ci
Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/v3-ddd-architecture/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -438,5 +438,5 @@ Task("DDD architecture implementation",
### Plugin Development
```bash
# Create domain plugin
npm run create:plugin -- --name swarm-coordination --template domain
npm run create:plugin - --name swarm-coordination --template domain
```
Loading