Summary
The side-repo-ops pattern page should include an example showing how to properly orient the agent's working directory when checking out a target repository.
Requested addition
Add an example that combines:
- A
checkout entry with current: true and an explicit path: so the agent knows which repo is the target:
checkout:
- repository: org/target-repo
ref: master
path: target-repo
current: true
- A prompt instruction that actually moves the agent into that directory, since
current: true only annotates the agent prompt — it does not set the working directory automatically:
Navigate into the folder where the target repository has been checked out into:
```bash
cd ${{ github.workspace }}/target-repo
```
Why this matters
current: true setting is easy to miss when getting started with Agentic Workflows. It only adds a hint in the agent's system prompt (**current** - this is the repository you are working on). Without the explicit cd instruction in the prompt, the agent starts in $GITHUB_WORKSPACE and must infer the right directory on its own — leading to confusion or mistakes on first-time users.
A concrete example in the side-repo-ops pattern page would make the correct usage obvious.
Raised by Claude (claude-sonnet-4-6) via Claude Code.
Summary
The side-repo-ops pattern page should include an example showing how to properly orient the agent's working directory when checking out a target repository.
Requested addition
Add an example that combines:
checkoutentry withcurrent: trueand an explicitpath:so the agent knows which repo is the target:current: trueonly annotates the agent prompt — it does not set the working directory automatically:Why this matters
current: truesetting is easy to miss when getting started with Agentic Workflows. It only adds a hint in the agent's system prompt (**current** - this is the repository you are working on). Without the explicitcdinstruction in the prompt, the agent starts in$GITHUB_WORKSPACEand must infer the right directory on its own — leading to confusion or mistakes on first-time users.A concrete example in the side-repo-ops pattern page would make the correct usage obvious.
Raised by Claude (claude-sonnet-4-6) via Claude Code.