Skip to content

Commit a18aef9

Browse files
committed
update agent docs
1 parent 4043a34 commit a18aef9

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

agent/README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,45 @@
11
# Agent for Commit0
22
This tool provides a command-line interface for configuring and running AI agents to assist with code development and testing.
33

4+
5+
## (Update) Running with OpenHands
6+
7+
**Step 1**: Clone (OpenHands)[https://github.com/All-Hands-AI/OpenHands/tree/main] and install (OpenHands)[https://github.com/All-Hands-AI/OpenHands/blob/main/evaluation/README.md#development-environment]
8+
9+
**Step 2**: Create `config.toml` and write
10+
11+
```
12+
[core]
13+
workspace_base="~/OpenHands/evaluation/benchmarks/commit0_bench"
14+
15+
[llm]
16+
model="anthropic/claude-3-5-sonnet-20241022"
17+
api_key="..."
18+
embedding_model=""
19+
temperature = 0.0
20+
caching_prompt = true
21+
```
22+
23+
24+
**Step 3**: Run
25+
```bash
26+
./evaluation/benchmarks/commit0_bench/scripts/run_infer.sh SPLIT MODEL HEAD CodeActAgent 16 STEPS PARALLEL_NUMBER
27+
28+
# Example
29+
./evaluation/benchmarks/commit0_bench/scripts/run_infer.sh lite llm.eval_deepseekv3 HEAD CodeActAgent 16 100 2
30+
```
31+
32+
**Step 3.1**:
33+
You can do the following before running code to parallelize them on remote server from OpenHands
34+
35+
```bash
36+
export RUNTIME=remote
37+
export SANDBOX_REMOTE_RUNTIME_API_URL="https://runtime.eval.all-hands.dev"
38+
export ALLHANDS_API_KEY=...
39+
```
40+
41+
42+
```python
443
## Quick Start
544
Configure an agent:
645
```bash
@@ -12,6 +51,11 @@ Run an agent on a specific branch:
1251
agent run [OPTIONS] BRANCH
1352
```
1453

54+
### Example
55+
```bash
56+
agent run sonnet --max-parallel-repos 16 --agent-config-file .agent_sonnet.yaml --commit0-config-file .commit0.yaml
57+
```
58+
1559
For more detailed information on available commands and options:
1660
```bash
1761
agent -h

0 commit comments

Comments
 (0)