Add Claude Code and Codex as the solution generator - #24
Conversation
Adds a `claude_code` search type that runs the Claude Code CLI inside a Docker container, letting it autonomously iterate on the solution using the evaluator directly. The framework evaluates the final result. - New `skydiscover/search/claude_code/` package (controller, database, Dockerfile, entrypoint) - Registers `claude_code` in CLI choices, config, and route - Usage: `skydiscover-run initial.py evaluator.py --search claude_code -m claude-sonnet-4-6 -i 20` Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request integrates the Claude Code CLI as a new, autonomous single-agent baseline within the SkyDiscover framework. The primary goal is to enable the system to leverage Claude Code's iterative problem-solving capabilities directly, with the framework scoring the final output. This enhancement broadens the range of AI-driven search strategies available, offering a self-contained solution that manages its own iteration loop and supports different evaluator types through containerization. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a new search type, claude_code, which integrates the Claude Code CLI as a single-agent baseline. The implementation is well-structured, featuring a new controller, a minimal database, and a dedicated Docker image to run the agent in an isolated environment. The handling of Docker-in-Docker for containerized evaluators and privilege management is thoughtful. I have a few suggestions to enhance robustness and align with best practices, including making the turn-counting logic more resilient, optimizing the Dockerfile, and adding an explicit check for the required API key.
- Fix ANTHROPIC_API_KEY not reaching claude user (su drops env vars): use two-script approach with --preserve-environment - Replace DinD mode with host Docker socket mount for containerized evaluators (DinD fails in many environments due to overlay-on-overlay) - chmod docker socket in run script so non-root claude user can access it - Override __init__ to skip LLMPool creation (not needed for this baseline) - Add early_stopping_triggered attr required by runner - Move log file to output_dir so it survives workspace cleanup - Fix log message formatting - Remove --break-system-packages (not supported on Ubuntu 22.04 pip) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Issues found from testingRan this against a real benchmark. Analyzed the stream-json log (~2000 lines, 48 result events, single session). Here are the concrete issues: 1.
|
|
All review feedback has been addressed in commit 1fb93af on this branch. Summary of each fix:
Additional fixes not in the original review
|
|
Thank you for the comprehensive update, @shubham3-ucb! It's great to see that the issues identified during testing, as well as the points I raised, have been thoroughly addressed in commit I particularly appreciate the detailed explanations for each fix:
Beyond my specific feedback, the fixes for the critical issues you found during testing, such as the Overall, these changes significantly enhance the robustness, correctness, and maintainability of the new Claude Code baseline. Well done! |
|
Additional fix pushed in commit 2b85c9c: Docker evaluator arg order bug — Verified: all 23 |
|
Hi @shubham3-ucb I looked at branches |
|
@akrentsel Two things before this can land:
Also needs black and a rebase onto main's existing claude_code impl. |
Summary
claude_codeas a new search type that runs Claude Code CLI inside a Docker container as a single-agent baselineUsage
-i/--iterationsmaps to--max-turnsfor the Claude Code CLI.Test plan
circle_packingbenchmark with Docker + real API key completed successfully🤖 Generated with Claude Code