Create worktree and make commit
Tests ability to create a worktree and immediately make a commit in it. Evaluates end-to-end worktree commit workflow.
Baseline Repository
These commands set up the repo before the model sees the prompt. They define the starting file structure, staged changes, and Git history.
- 01
git init - 02
git config user.email 'test@test.com' - 03
git config user.name 'Test User' - 04
echo 'Hello' > hello.txt - 05
git add hello.txt - 06
git commit -m 'Initial commit' - 07
git checkout -b feature - 08
echo 'Feature' > feature.txt - 09
git add feature.txt - 10
git commit -m 'Add feature' - 11
git checkout main
Prompt
Create a worktree for 'feature' at '../feature-wt', then create a file '../feature-wt/new.txt' with content 'new file', add it and commit with message 'Add new file' in the worktree. Output ONLY the commands to run, one per line.
Expected
git worktree add ../feature-wt feature
echo 'new file' > ../feature-wt/new.txt
git -C ../feature-wt add new.txt
git -C ../feature-wt commit -m 'Add new file'
Campaign Evidence
Loading campaign evidence…
Model Outputs (14)
git worktree add ../feature-wt feature
echo 'new file' > ../feature-wt/new.txt
git -C ../feature-wt add new.txt
git -C ../feature-wt commit -m 'Add new file'
git worktree add ../feature-wt feature
echo 'new file' > ../feature-wt/new.txt
git -C ../feature-wt add new.txt
git -C ../feature-wt commit -m 'Add new file'
JSON Schema
Structured Output
(raw) {
"commands": [
"git worktree add ../feature-wt feature",
"echo 'new file' > ../feature-wt/new.txt",
"git -C ../feature-wt add new.txt",
"git -C ../feature-wt commit -m 'Add new file'"
]
}
git worktree add ../feature-wt feature
echo 'new file' > ../feature-wt/new.txt
git -C ../feature-wt add new.txt
git -C ../feature-wt commit -m 'Add new file'
JSON Schema
Structured Output
(raw) {
"commands": [
"git worktree add ../feature-wt feature",
"echo 'new file' > ../feature-wt/new.txt",
"git -C ../feature-wt add new.txt",
"git -C ../feature-wt commit -m 'Add new file'"
]
}
git worktree add ../feature-wt feature
echo 'new file' > ../feature-wt/new.txt
git -C ../feature-wt add new.txt
git -C ../feature-wt commit -m 'Add new file'
JSON Schema
Structured Output
(raw) {"commands": ["git worktree add ../feature-wt feature", "echo 'new file' > ../feature-wt/new.txt", "git -C ../feature-wt add new.txt", "git -C ../feature-wt commit -m 'Add new file'"]}
git worktree add ../feature-wt feature
echo new file > ../feature-wt/new.txt
git add new.txt
git commit -m "Add new file"
Failure: Failed assertions: [{'type': 'git_output', 'command': 'git -C ../feature-wt log --oneline -1', 'contains': 'Add new file'}]
git worktree add ../feature-wt feature
echo 'new file' > ../feature-wt/new.txt
git add ../feature-wt/new.txt
git commit -m 'Add new file'
JSON Schema
Structured Output
(raw) {
"commands": [
"git worktree add ../feature-wt feature",
"echo 'new file' > ../feature-wt/new.txt",
"git add ../feature-wt/new.txt",
"git commit -m 'Add new file'"
]
}
Failure: Failed assertions: [{'type': 'git_output', 'command': 'git -C ../feature-wt log --oneline -1', 'contains': 'Add new file'}]
git worktree add ../feature-wt feature
echo "new file" > ../feature-wt/new.txt
cd ../feature-wt
git add new.txt
git commit -m "Add new file"
Failure: Failed assertions: [{'type': 'git_output', 'command': 'git -C ../feature-wt log --oneline -1', 'contains': 'Add new file'}]
git worktree add -b feature ../feature-wt
cd ../feature-wt
echo 'new file' > new.txt
git add new.txt
git commit -m "Add new file"
Failure: Failed assertions: [{'type': 'file_content', 'path': '../feature-wt/new.txt', 'value': 'new file'}, {'type': 'git_output', 'command': 'git -C ../feature-wt log --oneline -1', 'contains': 'Add new file'}]
Invalid JSON. Output:
JSON Schema
Structured Output
Structured Output Error
Failed to parse structured JSON response: Expecting value: line 1 column 1 (char 0)
Failure: Failed to parse structured JSON response: Expecting value: line 1 column 1 (char 0)
```bash
git worktree add ../feature-wt feature
echo "new file" > ../feature-wt/new.txt
git -C ../feature-wt add new.txt
git -C ../feature-wt commit -m "Add new file"
```
Failure: Failed assertions: [{'type': 'file_content', 'path': '../feature-wt/new.txt', 'value': 'new file'}, {'type': 'git_output', 'command': 'git -C ../feature-wt log --oneline -1', 'contains': 'Add new file'}]
git worktree add ../feature-wt <commit>
git -C ../feature-wt write-new-file64 new.txt "new file"
git -C ../feature-wt add new.txt
git -C ../feature-wt commit -m "Add new file"
Failure: Failed assertions: [{'type': 'file_content', 'path': '../feature-wt/new.txt', 'value': 'new file'}, {'type': 'git_output', 'command': 'git -C ../feature-wt log --oneline -1', 'contains': 'Add new file'}]
git worktree add '../feature-wt' HEAD^
echo 'new file' > '../feature-wt/new.txt'
git -C '../feature-wt' add 'new.txt'
git -C '../feature-wt' commit -m 'Add new file'
JSON Schema
Structured Output
(raw) {
"commands": [
"git worktree add '../feature-wt' HEAD^",
"echo 'new file' > '../feature-wt/new.txt'",
"git -C '../feature-wt' add 'new.txt'",
"git -C '../feature-wt' commit -m 'Add new file'"
]
}
Failure: Failed assertions: [{'type': 'file_content', 'path': '../feature-wt/new.txt', 'value': 'new file'}, {'type': 'git_output', 'command': 'git -C ../feature-wt log --oneline -1', 'contains': 'Add new file'}]
```
git worktree add -b feature ../feature-wt
echo 'new file' > ../feature-wt/new.txt
git -C ../feature-wt add new.txt
git -C ../feature-wt commit -m 'Add new file'
```
Failure: Failed assertions: [{'type': 'file_content', 'path': '../feature-wt/new.txt', 'value': 'new file'}, {'type': 'git_output', 'command': 'git -C ../feature-wt log --oneline -1', 'contains': 'Add new file'}]
git worktree add '../feature-wt' feature
cd '../feature-wt'
echo 'new file' > new.txt
git add new.txt
git commit -m 'Add new file'
JSON Schema
Structured Output
(raw) {"commands": ["git worktree add '../feature-wt' feature", "cd '../feature-wt'", "echo 'new file' > new.txt", "git add new.txt", "git commit -m 'Add new file'"]}
Failure: Failed assertions: [{'type': 'file_content', 'path': '../feature-wt/new.txt', 'value': 'new file'}, {'type': 'git_output', 'command': 'git -C ../feature-wt log --oneline -1', 'contains': 'Add new file'}]