Download benchmarks/evals/redundant_cd_with_cwd/task.yml from SaylorTwift/forgecode: direct link, hf CLI and curl.
- Browser
- Download file 1.61 kB
-
https://huggingface.co/SaylorTwift/forgecode/resolve/main/benchmarks/evals/redundant_cd_with_cwd/task.yml
- Command line
-
hf download hf://SaylorTwift/forgecode/benchmarks/evals/redundant_cd_with_cwd/task.yml
-
curl -L -o task.yml https://huggingface.co/SaylorTwift/forgecode/resolve/main/benchmarks/evals/redundant_cd_with_cwd/task.yml
1.61 kB
| run: | |
| - git clone --depth=1 --branch main https://github.com/tailcallhq/forgecode . | |
| - mkdir ../test-dir && cd ../test-dir | |
| - FORGE_DEBUG_REQUESTS='{{dir}}/context.json' forgee --provider open_router --model {{model}} -p '{{task}}' | |
| parallelism: 5 | |
| timeout: 120 | |
| early_exit: false # We want to see all cases, not just the first success | |
| validations: | |
| # Check if any shell tool call contains "cd" command when cwd is also provided | |
| - name: "No redundant cd with cwd" | |
| type: shell | |
| command: | | |
| jq -e ' | |
| [.messages[]?.tool_calls[]? | | |
| select(.function.name == "shell") | | |
| .function.arguments | fromjson | | |
| select((.command | contains("cd "))) | | |
| {command: .command, cwd: .cwd} | |
| ] | length == 0 | |
| ' {{dir}}/context.json | |
| # Detect specific pattern: "cd <path> && <command>" with cwd set | |
| - name: "No cd && pattern with cwd" | |
| type: shell | |
| command: | | |
| jq -e ' | |
| [.messages[]?.tool_calls[]? | | |
| select(.function.name == "shell") | | |
| .function.arguments | fromjson | | |
| select((.command | test("cd\\s+[^;]+\\s*&&"))) | | |
| {command: .command, cwd: .cwd, issue: "redundant_cd_with_cwd"} | |
| ] | length == 0 | |
| ' {{dir}}/context.json | |
| sources: | |
| - value: | |
| - model: "anthropic/claude-sonnet-4.5" | |
| - model: "z-ai/glm-4.6:exacto" | |
| - value: | |
| - task: "clean ~/tailcall" | |
| - task: "format code in ~/task/crates/forge_domain" | |
| - task: "install dependencies in ~/task/benchmarks" | |
| - task: "cd to ~/task/crates and run cargo test" | |
| - task: "go to ~/task/docs and list files" | |