feat: replace logging with custom log_all function and truncate benchmark log on start

This commit is contained in:
2026-01-29 06:42:06 +00:00
parent 608b69e547
commit d0a17cd3c9
52 changed files with 11512 additions and 5041 deletions
+12 -32
View File
@@ -2,35 +2,15 @@ TASK: Get the last 5 git commit messages and summarize the changes in 'git_summa
----------------------------------------
Loading...
[Agent] Iteration 1/300
[Agent] has_tool_calls=true
[Agent] Executing 1 tool(s)
[Agent] Spawning developer agent for: Retrieve the last 5 git commit messages and generate a summary of the changes, saving it to 'git_summary.md'.
[parallel] launching spawn_agent
[Tool Error] Error: Spawning limit reached. You are not allowed to spawn more sub-agents. Perform the task yourself using existing tools.
[Agent] Iteration 2/300
The task to retrieve the last 5 git commit messages and summarize the changes cannot be delegated further due to the spawning limit. I will now perform these steps directly using available tools.
[Agent] has_tool_calls=false
[Agent] Response indicates incomplete work, auto-continuing
[Agent] Iteration 3/300
[Agent] has_tool_calls=true
[Agent] Executing 1 tool(s)
-> Executing Python code
[parallel] launching python_execute
 File "/tmp/r_python_tool_GZjld6.py", line 16
f.write(""""\n""" + summary_text + """"\n")
^
SyntaxError: unterminated triple-quoted string literal (detected at line 16)
[Agent] Iteration 4/300
It appears there was a syntax error in the code I provided. I will correct it and re-execute the script to generate the summary in git_summary.md.
[Agent] has_tool_calls=false
[Agent] Response indicates incomplete work, auto-continuing
[Agent] Iteration 5/300
[Agent] has_tool_calls=true
[Agent] Executing 1 tool(s)
-> Executing Python code
[parallel] launching python_execute
[Agent] Iteration 6/300
The script has been corrected and executed successfully. The last 5 git commit messages have been summarized and saved in git_summary.md. If you want to review the file or need further assistance, please let me know!
[Agent] has_tool_calls=false
[Agent] Completed in 6 iteration(s)
┌─── Python Source Code ─────────────────────────────────────
│  1 | import subprocess
│  2 | # Get last 5 git commit messages
  3 | result = subprocess.run(['git', 'log', '-n', '5', '--pretty=format:%s'], capture_output=True, text=True)
│  4 | commit_messages = result.stdout.strip().split('\n')
│  5 | # Summarize changes
│  6 | summary = "Last 5 commits:\n" + "\n".join(commit_messages)
│  7 | # Write to file
│  8 | with open('git_summary.md', 'w') as f:
│  9 | f.write(summary)
└────────────────────────────────────────────────────────────
The last five git commit messages have been retrieved and summarized in the file 'git_summary.md'.