
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
Setup validator, auto-fixer, and learning persistence for claude-flow + ruvector integration on Linux/Ubuntu
Setup validator, auto-fixer, and learning persistence for claude-flow + ruvector integration.
Fixes the top integration-layer bugs that prevent claude-flow and ruvector from working together on Linux/Ubuntu.
# Install globally
npm install -g cf-doctor
# Run diagnostic
cf-doctor
# Auto-fix issues
cf-doctor --fix
# JSON output (for CI)
cf-doctor --json
Add to your claude_desktop_config.json:
{
"mcpServers": {
"cf-doctor": {
"command": "node",
"args": ["node_modules/cf-doctor/dist/mcp-server.js"]
}
}
}
This exposes 5 tools to Claude:
cf_doctor_check — Run environment validationcf_doctor_fix — Auto-fix environment issuescf_recall_episodes — Search past agent episodes by similaritycf_store_episode — Store agent episode for future recallcf_q_update — Update Q-learning stateimport { runDoctor, recallRelevantEpisodes, PersistentSonaEngine } from 'cf-doctor';
// Run diagnostic programmatically
const result = runDoctor();
console.log(result.counts); // { green: 7, yellow: 1, red: 1 }
// Recall relevant past episodes
const episodes = recallRelevantEpisodes('fix authentication bug', 3);
// Persistent SONA engine
const sona = new PersistentSonaEngine();
await sona.store('auth-pattern', { type: 'jwt', refresh: true });
curl -fsSL https://raw.githubusercontent.com/foxflow/cf-doctor/main/install.sh | bash
| Bug | Impact | Fix |
|---|---|---|
@ruvector/sona static import crashes | Neural module unusable without WASM | Dynamic import + mock fallback |
@ruvector/attention static import | Performance tests crash | Dynamic import + mock |
| claude-flow v2/v3 version mismatch | ruvector hooks fail silently | Auto-detect version, adjust CLI args |
| Q-learning state lost on restart | Agents don't learn from experience | File-based persistence with atomic writes |
| SONA patterns lost on restart | Pattern recognition resets every session | JSON persistence with debounced saves |
| No episode recall | New agents start from scratch | TF-IDF similarity search over past episodes |
To fix the source imports directly in your clone:
# claude-flow patches
cd claude-flow
git apply node_modules/cf-doctor/patches/sona-integration.patch
git apply node_modules/cf-doctor/patches/neural-index.patch
git apply node_modules/cf-doctor/patches/quick-test.patch
# ruvector patch
cd ruvector
git apply node_modules/cf-doctor/patches/version-bridge.patch
Or programmatically:
import { applyPatches } from 'cf-doctor/patches';
const results = applyPatches('/path/to/claude-flow', 'claude-flow');
cf-doctor — claude-flow + ruvector installation validator
── Prerequisites ──
✅ Node.js 22.11.0
✅ pnpm 9.15.0
⚠️ Rust not installed (optional)
── Installation Validation ──
✅ @claude-flow/cli v3.1.0
✅ MCP handshake OK
── @ruvector Packages ──
⚠️ 0/8 installed (all using mock fallback)
── Environment ──
✅ Directories OK
✅ Database: sql.js (WASM)
✅ Config generated
╔═══════════════════════════════════╗
║ Result: READY (2 warnings) ║
╚═══════════════════════════════════╝
Drop the skills into your project:
cp -r node_modules/cf-doctor/skills/ .claude/skills/
Then use /cf-doctor, /cf-patch, or /cf-learn in Claude Code.
git clone https://github.com/foxflow/cf-doctor
cd cf-doctor
npm install
npm run build
npm test
MIT
FAQs
Setup validator, auto-fixer, and learning persistence for claude-flow + ruvector integration on Linux/Ubuntu
We found that cf-doctor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.