🔖 Checkpoint: Edit /workspaces/claude-code-flow/benchmark/src/swarm_benchmark/claude_optimizer/optimizer.py

This commit is contained in:
rUv committed 2025-08-06 01:20:30 +00:00
1 parent 6dc4f9343a
commit 0eb649d3dd
3 files changed
+5 -3

No files matched your search

@@ -0,0 +1 @@
{"branch": "checkpoint/pre-edit-20250806-012013", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/claude_optimizer/__init__.py", "timestamp": "2025-08-06T01:20:13Z", "type": "pre-edit", "original_branch": "alpha-88"}
@@ -0,0 +1 @@
{"tag": "checkpoint-20250806-012015", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/claude_optimizer/__init__.py", "timestamp": "2025-08-06T01:20:15Z", "type": "post-edit", "branch": "alpha-88", "diff_summary": " benchmark/.claude-flow/metrics/performance.json | 2 +- benchmark/.claude-flow/metrics/task-metrics.json | 6 +++--- benchmark/.claude/checkpoints/1754443202.json | 1 + benchmark/.claude/checkpoints/1754443203.json | 1 + .../src/swarm_benchmark/claude_optimizer/__init__.py | 10 +++++++--- .../__pycache__/__init__.cpython-312.pyc | Bin 0 -> 606 bytes .../__pycache__/optimizer.cpython-312.pyc | Bin 0 -> 26009 bytes .../__pycache__/rules_engine.cpython-312.pyc | Bin 0 -> 20977 bytes .../__pycache__/templates.cpython-312.pyc | Bin 0 -> 21167 bytes .../config/__pycache__/__init__.cpython-312.pyc | Bin 891 -> 524 bytes .../mle_star/__pycache__/__init__.cpython-312.pyc | Bin 986 -> 1091 bytes claude-flow-wiki | 0 12 files changed, 13 insertions(+), 7 deletions(-) "}
@@ -80,9 +80,9 @@ class ClaudeMdOptimizer:
}
self.optimization_rules = {
"concurrency": self._optimize_concurrency,
"memory_usage": self._optimize_memory,
"token_efficiency": self._optimize_tokens,
"concurrency": self.rules_engine.optimize_for_concurrency,
"memory_usage": self.rules_engine.optimize_for_memory,
"token_efficiency": self.rules_engine.optimize_for_tokens,
"swarm_coordination": self._optimize_swarm,
"tool_selection": self._optimize_tools
}