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

Update README.md

rUv7d47261859b1
diff --git a/README.md b/README.md
index 0e582a67bb..4639a0af5b 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,129 @@
-# claude-code-flow
-This mode serves as a code-first orchestration layer, enabling Claude to write, edit, test, and optimize code autonomously across recursive agent cycles.
+# Claude Code MCP – `code-flow` Mode
+
+This MCP mode defines a **code execution and refinement flow** using **Claude Code** as the reasoning engine. It’s designed for RooCode-style agentic environments where agents operate recursively, orchestrating the build process through contextual task flows.
+
+This mode serves as a **code-first orchestration layer**, enabling Claude to write, edit, test, and optimize code autonomously across recursive agent cycles.
+
+---
+
+## πŸ”§ Mode Overview
+
+**Slug**: `code-flow`
+**Agent**: Claude Code (Opus or Sonnet)
+**Stack**: RooCode + MCP JSON + Modular CLI
+**Primary Role**: Autonomous code execution loop with reflection, patching, and structural analysis
+
+---
+
+## 🧠 Role Definition
+
+```json
+{
+ "slug": "code-flow",
+ "name": "πŸ’» Claude Code Flow",
+ "roleDefinition": "Use Claude Code to execute recursive code generation, test validation, and optimization tasks as part of a RooCode development pipeline. Accepts MCP context and returns structured diffs, summaries, and follow-up task suggestions. Coordinates with modes such as prompt-generator, tdd-runner, and memory-manager.",
+ "customInstructions": "Perform context-aware code editing using patch logic. Return complete file paths, line references, and explicit changes. Trigger sub-agents for testing or doc generation when structural shifts are detected.",
+ "groups": ["read", "edit", "reflect"],
+ "source": "roocode"
+}
+```
+
+---
+
+## πŸ“Œ Features
+
+* **Delta-Aware Editing**: Uses diff-style editing to minimize token overhead and reduce hallucination.
+* **Test-Aware Refactoring**: Integrates with `tdd-runner` mode to validate changes in real-time.
+* **Feedback-Driven Loops**: Submits diffs and receives critical feedback from `reflection` and `critic` agents.
+* **Multi-File Capability**: Can handle multiple source files, updating imports and dependencies contextually.
+
+---
+
+## πŸ”„ Flow Summary
+
+```mermaid
+graph TD
+ A[Input MCP Task] --> B[Claude Code - Code Flow]
+ B --> C[Generate or Edit Code]
+ C --> D{Test Coverage Exists?}
+ D -- Yes --> E[Trigger tdd-runner]
+ D -- No --> F[Send to doc-writer]
+ E --> G{Tests Pass?}
+ G -- Yes --> H[Send to finalizer]
+ G -- No --> I[Loop Back with Critique]
+ I --> B
+```
+
+---
+
+## πŸš€ Usage
+
+### Sample Invocation (in RooCode)
+
+```json
+{
+ "mode": "code-flow",
+ "input": {
+ "task_id": "generate-auth-service",
+ "files": ["./services/auth.ts"],
+ "description": "Implement OAuth2 token handler and refresh logic",
+ "requirements": ["Use JWT", "Support Google login", "Add tests"]
+ }
+}
+```
+
+---
+
+## πŸ§ͺ Integration
+
+This mode expects the following modes to be available in `.roomodes`:
+
+* `prompt-generator`
+* `tdd-runner`
+* `memory-manager`
+* `reflection`
+* `critic`
+* `doc-writer` *(optional)*
+
+---
+
+## 🧩 Outputs
+
+Each cycle returns:
+
+* `patch`: Minimal structured diff of file edits
+* `summary`: Plaintext reasoning summary
+* `next_tasks`: Optional follow-ups for orchestration agents
+* `confidence_score`: Heuristic between 0–1 based on test performance or internal logic certainty
+
+---
+
+## πŸ—‚ Directory Structure
+
+```
+/modes
+ β”œβ”€β”€ code-flow/
+ β”‚ β”œβ”€β”€ handler.ts
+ β”‚ β”œβ”€β”€ config.json
+ β”‚ └── prompts/
+ β”‚ └── base_prompt.txt
+/src
+ └── ...
+.mcp.json
+.roomodes
+```
+
+---
+
+## πŸ“£ Coming Soon
+
+I'll be sharing a full walkthrough on how this integrates with my broader agentic stack using RooCode and SPARC workflows. It includes how to auto-assemble and deploy this MCP using Claude in a recursive build loop.
+
+---
+
+## 🧭 Final Note
+
+This isn’t just about making Claude write code. It’s about making it think through code recursivelyβ€”**like an engineer**, not just a scribe.
+
+If you're building agentic systems and want to see how deep you can go with autonomous orchestration, `code-flow` is where the real work starts.
+