mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
🔖 Checkpoint: Edit /workspaces/claude-code-flow/benchmark/src/swarm_benchmark/swe_bench/multi_mode_engine.py
This commit is contained in:
1 parent
bf8b9c1f61
commit
308c31aed3
3 files changed
+11
-8
No files matched your search
@@ -0,0 +1 @@
|
||||
{"branch": "checkpoint/pre-edit-20250807-145906", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/swe_bench/multi_mode_engine.py", "timestamp": "2025-08-07T14:59:06Z", "type": "pre-edit", "original_branch": "swe-bench"}
|
||||
@@ -0,0 +1 @@
|
||||
{"tag": "checkpoint-20250807-145907", "file": "/workspaces/claude-code-flow/benchmark/src/swarm_benchmark/swe_bench/multi_mode_engine.py", "timestamp": "2025-08-07T14:59:08Z", "type": "post-edit", "branch": "swe-bench", "diff_summary": " .claude-flow/metrics/system-metrics.json | 24 ++++++++++++++++++++++ astropy_fix | 0 benchmark/.claude-flow/metrics/performance.json | 2 +- benchmark/.claude-flow/metrics/task-metrics.json | 6 +++--- benchmark/.claude/checkpoints/1754578735.json | 1 + benchmark/.claude/checkpoints/1754578737.json | 1 + .../swarm_benchmark/swe_bench/multi_mode_engine.py | 1 + 7 files changed, 31 insertions(+), 4 deletions(-) "}
|
||||
@@ -151,16 +151,17 @@ class MultiModeSWEBenchEngine(OfficialSWEBenchEngine):
|
||||
start_time = time.time()
|
||||
|
||||
try:
|
||||
# Create simplified prompt (full version, not truncated)
|
||||
simple_prompt = (
|
||||
f"Fix GitHub issue {instance_id} in {repo}. "
|
||||
f"Problem: {problem} "
|
||||
f"Generate a git diff patch that resolves this issue."
|
||||
# Build prompt using the prompt builder
|
||||
prompt_config = SWEBenchPromptConfig(
|
||||
mode=mode.command_type,
|
||||
subcommand=mode.subcommand,
|
||||
max_agents=mode.agents or 4,
|
||||
include_validation=False,
|
||||
output_format="patch"
|
||||
)
|
||||
|
||||
# Clean the prompt
|
||||
simple_prompt = simple_prompt.replace('"', "'").replace('\n', ' ').replace('\r', ' ')
|
||||
simple_prompt = ' '.join(simple_prompt.split())
|
||||
prompt_builder = SWEBenchPromptBuilder(prompt_config)
|
||||
simple_prompt = prompt_builder.build_prompt(instance)
|
||||
|
||||
# Get claude-flow path
|
||||
claude_flow_path = './claude-flow'
|
||||
|
||||
Reference in new issue
Block a user