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

Checkpoint: File edits

rUv57cfd462cc2a
diff --git a/v3/@claude-flow/guidance/agents/architect.yaml b/v3/@claude-flow/guidance/agents/architect.yaml
new file mode 100644
index 0000000000..c4dc9da768
--- /dev/null
+++ b/v3/@claude-flow/guidance/agents/architect.yaml
@@ -0,0 +1,11 @@
+# architect agent configuration
+type: architect
+version: "3.0.0"
+capabilities:
+ - system-design
+ - api-design
+ - documentation
+optimizations:
+ - context-caching
+ - memory-persistence
+createdAt: "2026-02-02T03:50:06.001Z"
diff --git a/v3/@claude-flow/guidance/agents/coder.yaml b/v3/@claude-flow/guidance/agents/coder.yaml
new file mode 100644
index 0000000000..512f7b73f8
--- /dev/null
+++ b/v3/@claude-flow/guidance/agents/coder.yaml
@@ -0,0 +1,11 @@
+# coder agent configuration
+type: coder
+version: "3.0.0"
+capabilities:
+ - code-generation
+ - refactoring
+ - debugging
+optimizations:
+ - flash-attention
+ - token-reduction
+createdAt: "2026-02-02T03:50:06.001Z"
diff --git a/v3/@claude-flow/guidance/agents/reviewer.yaml b/v3/@claude-flow/guidance/agents/reviewer.yaml
new file mode 100644
index 0000000000..7d122907c7
--- /dev/null
+++ b/v3/@claude-flow/guidance/agents/reviewer.yaml
@@ -0,0 +1,10 @@
+# reviewer agent configuration
+type: reviewer
+version: "3.0.0"
+capabilities:
+ - code-review
+ - quality-analysis
+ - best-practices
+optimizations:
+ - incremental-analysis
+createdAt: "2026-02-02T03:50:06.002Z"
diff --git a/v3/@claude-flow/guidance/agents/security-architect.yaml b/v3/@claude-flow/guidance/agents/security-architect.yaml
new file mode 100644
index 0000000000..7098e66627
--- /dev/null
+++ b/v3/@claude-flow/guidance/agents/security-architect.yaml
@@ -0,0 +1,10 @@
+# security-architect agent configuration
+type: security-architect
+version: "3.0.0"
+capabilities:
+ - threat-modeling
+ - vulnerability-analysis
+ - security-review
+optimizations:
+ - pattern-matching
+createdAt: "2026-02-02T03:50:06.001Z"
diff --git a/v3/@claude-flow/guidance/agents/tester.yaml b/v3/@claude-flow/guidance/agents/tester.yaml
new file mode 100644
index 0000000000..ea454abaaf
--- /dev/null
+++ b/v3/@claude-flow/guidance/agents/tester.yaml
@@ -0,0 +1,10 @@
+# tester agent configuration
+type: tester
+version: "3.0.0"
+capabilities:
+ - unit-testing
+ - integration-testing
+ - coverage
+optimizations:
+ - parallel-execution
+createdAt: "2026-02-02T03:50:06.001Z"
diff --git a/v3/@claude-flow/guidance/src/ledger.ts b/v3/@claude-flow/guidance/src/ledger.ts
index f6d451e7bb..924d850fbf 100644
--- a/v3/@claude-flow/guidance/src/ledger.ts
+++ b/v3/@claude-flow/guidance/src/ledger.ts
@@ -287,9 +287,21 @@ export class RunLedger {
finalizeEvent(event: RunEvent): RunEvent {
event.durationMs = Date.now() - event.timestamp;
this.events.push(event);
+ this.evictIfNeeded();
return event;
}
+ /**
+ * Evict oldest events when maxEvents is exceeded.
+ * Trims 10% in a batch to amortize the O(n) splice cost.
+ */
+ private evictIfNeeded(): void {
+ if (this.maxEvents > 0 && this.events.length > this.maxEvents) {
+ const trimCount = Math.max(1, Math.floor(this.maxEvents * 0.1));
+ this.events.splice(0, trimCount);
+ }
+ }
+
/**
* Run all evaluators against an event
*/