Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Run Tend workflows on Claude (#4677)

Maximilian Roos0e06328968b4
diff --git a/.config/tend.yaml b/.config/tend.yaml
index 10e1849d8..9a82f48ad 100644
--- a/.config/tend.yaml
+++ b/.config/tend.yaml
@@ -1,8 +1,4 @@
bot_name: worktrunk-bot
-harness: codex
-model: gpt-6-sol
-codex:
- auth_refresh: false
setup:
- uses: ./.github/actions/tend-setup
# Verify the toolchain installed above before the agent starts. Four tools
diff --git a/.github/AGENTS.md b/.github/AGENTS.md
index e3b5f046d..f2a6865aa 100644
--- a/.github/AGENTS.md
+++ b/.github/AGENTS.md
@@ -8,7 +8,7 @@ worktrunk-bot is a PAT-backed GitHub user with write access. Only the repo owner
## Tokens and environments
-- tend admits main and holds CODEX_AUTH_JSON and TEND_BOT_TOKEN for concurrent agent jobs.
+- tend admits main and holds CLAUDE_CODE_OAUTH_TOKEN and TEND_BOT_TOKEN for concurrent agent jobs.
- release admits tags and holds AUR_SSH_PRIVATE_KEY, TEND_BOT_TOKEN, and SIGNPATH_API_TOKEN; it also gates packslip signing and crates.io Trusted Publishing through OIDC.
- github-pages admits main and uses OIDC without a stored secret.
- CODECOV_TOKEN is a repo secret allowlisted for coverage upload.
@@ -17,8 +17,6 @@ A job naming an environment can reference all its secrets through the secrets co
Generated tend agent workflows use environment {name: tend, deployment: false}. The deployment flag prevents pull_request_target runs from creating misleading deployment records on PRs. Edit the generator or its config, not generated tend-*.yaml files.
-Codex subscription refresh is external (`codex.auth_refresh: false`). Mackup's account rotator owns the refreshable logins and publishes access-only CODEX_AUTH_JSON with the CODEX_ACCOUNT environment variable. Refresh tokens stay on the rotator's host.
-
## Sandbox toolchain
Tend agents run in a copy-on-write view of the runner checkout and home. The `tend-setup` action installs the gate's tools; the following `setup` step checks their presence. Keep the probe when changing setup. A binary on PATH does not guarantee its service is reachable: Nix currently cannot connect to its daemon from the sandbox, so a flake.lock refresh needs a different execution path.
diff --git a/.github/workflows/tend-mention.yaml b/.github/workflows/tend-mention.yaml
index 4e425f9d2..6c6dec62a 100644
--- a/.github/workflows/tend-mention.yaml
+++ b/.github/workflows/tend-mention.yaml
@@ -131,17 +131,17 @@ jobs:
- uses: ./.github/actions/tend-setup
- run: for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend setup is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
- - uses: max-sixty/tend/[email protected]
+ - uses: max-sixty/tend/[email protected]
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
merge: restricted
- openai_api_key: ${{ secrets.OPENAI_API_KEY }}
- codex_auth_json: ${{ secrets.CODEX_AUTH_JSON }}
- model: gpt-6-sol
+ claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
+ anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
+ model: opus
checkout_mode: mention
base_branch: ${{ github.event.repository.default_branch }}
prompt: >-
- $mention
+ /tend-ci-runner:mention
${{ steps.delay.outputs.seconds
&& format('This job started {0}s after the triggering event (over ~40s means it was queued). ',
diff --git a/.github/workflows/tend-nightly.yaml b/.github/workflows/tend-nightly.yaml
index b1d65d276..619f1c2da 100644
--- a/.github/workflows/tend-nightly.yaml
+++ b/.github/workflows/tend-nightly.yaml
@@ -36,14 +36,14 @@ jobs:
- uses: ./.github/actions/tend-setup
- run: for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend setup is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
- - uses: max-sixty/tend/[email protected]
+ - uses: max-sixty/tend/[email protected]
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
merge: restricted
- openai_api_key: ${{ secrets.OPENAI_API_KEY }}
- codex_auth_json: ${{ secrets.CODEX_AUTH_JSON }}
- model: gpt-6-sol
+ claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
+ anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
+ model: opus
checkout_mode: base
base_branch: ${{ github.event.repository.default_branch }}
prompt: |2
- $nightly
+ /tend-ci-runner:nightly
diff --git a/.github/workflows/tend-notifications.yaml b/.github/workflows/tend-notifications.yaml
index 1eff519c7..ce792dfe5 100644
--- a/.github/workflows/tend-notifications.yaml
+++ b/.github/workflows/tend-notifications.yaml
@@ -48,18 +48,18 @@ jobs:
if: steps.check.outputs.count != '0' || steps.check.outputs.conflict_count != '0' || github.event_name == 'workflow_dispatch'
- run: for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend setup is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
if: steps.check.outputs.count != '0' || steps.check.outputs.conflict_count != '0' || github.event_name == 'workflow_dispatch'
- - uses: max-sixty/tend/[email protected]
+ - uses: max-sixty/tend/[email protected]
if: steps.check.outputs.count != '0' || steps.check.outputs.conflict_count != '0' || github.event_name == 'workflow_dispatch'
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
merge: restricted
- openai_api_key: ${{ secrets.OPENAI_API_KEY }}
- codex_auth_json: ${{ secrets.CODEX_AUTH_JSON }}
- model: gpt-6-sol
+ claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
+ anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
+ model: opus
checkout_mode: base
base_branch: ${{ github.event.repository.default_branch }}
prompt: |2
- $notifications
+ /tend-ci-runner:notifications
Notification snapshot cutoff: ${{ steps.check.outputs.cutoff }}
Possible conflicted bot PR count: ${{ steps.check.outputs.conflict_count }}
diff --git a/.github/workflows/tend-review-runs.yaml b/.github/workflows/tend-review-runs.yaml
index ce9d453eb..dafc34855 100644
--- a/.github/workflows/tend-review-runs.yaml
+++ b/.github/workflows/tend-review-runs.yaml
@@ -36,14 +36,14 @@ jobs:
- uses: ./.github/actions/tend-setup
- run: for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend setup is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
- - uses: max-sixty/tend/[email protected]
+ - uses: max-sixty/tend/[email protected]
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
merge: restricted
- openai_api_key: ${{ secrets.OPENAI_API_KEY }}
- codex_auth_json: ${{ secrets.CODEX_AUTH_JSON }}
- model: gpt-6-sol
+ claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
+ anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
+ model: opus
checkout_mode: base
base_branch: ${{ github.event.repository.default_branch }}
prompt: |2
- $review-runs
+ /tend-ci-runner:review-runs
diff --git a/.github/workflows/tend-review.yaml b/.github/workflows/tend-review.yaml
index 5fd6f7e5f..6a67f3a97 100644
--- a/.github/workflows/tend-review.yaml
+++ b/.github/workflows/tend-review.yaml
@@ -53,17 +53,17 @@ jobs:
- uses: ./.github/actions/tend-setup
- run: for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend setup is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
- - uses: max-sixty/tend/[email protected]
+ - uses: max-sixty/tend/[email protected]
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
merge: restricted
- openai_api_key: ${{ secrets.OPENAI_API_KEY }}
- codex_auth_json: ${{ secrets.CODEX_AUTH_JSON }}
- model: gpt-6-sol
+ claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
+ anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
+ model: opus
checkout_mode: review
base_branch: ${{ github.event.pull_request.base.ref }}
prompt: |2
- $review ${{ github.event.pull_request.number }}
+ /tend-ci-runner:review ${{ github.event.pull_request.number }}
- name: Remove the eyes reaction
if: always()
diff --git a/.github/workflows/tend-triage.yaml b/.github/workflows/tend-triage.yaml
index 12ecff1b0..c00bf04df 100644
--- a/.github/workflows/tend-triage.yaml
+++ b/.github/workflows/tend-triage.yaml
@@ -87,17 +87,17 @@ jobs:
- uses: ./.github/actions/tend-setup
- run: for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend setup is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
- - uses: max-sixty/tend/[email protected]
+ - uses: max-sixty/tend/[email protected]
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
merge: restricted
- openai_api_key: ${{ secrets.OPENAI_API_KEY }}
- codex_auth_json: ${{ secrets.CODEX_AUTH_JSON }}
- model: gpt-6-sol
+ claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
+ anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
+ model: opus
checkout_mode: base
base_branch: ${{ github.event.repository.default_branch }}
prompt: |2
- $triage ${{ matrix.issue }}
+ /tend-ci-runner:triage ${{ matrix.issue }}
- name: Remove the eyes reaction
if: always()
diff --git a/.github/workflows/tend-weekly.yaml b/.github/workflows/tend-weekly.yaml
index 7638dff3b..e678ec546 100644
--- a/.github/workflows/tend-weekly.yaml
+++ b/.github/workflows/tend-weekly.yaml
@@ -36,14 +36,14 @@ jobs:
- uses: ./.github/actions/tend-setup
- run: for t in cargo-insta cargo-nextest pre-commit nu nix; do command -v "$t" >/dev/null || { echo "::error::tend setup is missing $t; see Sandbox toolchain in .github/AGENTS.md"; exit 1; }; done
- - uses: max-sixty/tend/[email protected]
+ - uses: max-sixty/tend/[email protected]
with:
github_token: ${{ secrets.TEND_BOT_TOKEN }}
merge: restricted
- openai_api_key: ${{ secrets.OPENAI_API_KEY }}
- codex_auth_json: ${{ secrets.CODEX_AUTH_JSON }}
- model: gpt-6-sol
+ claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
+ anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
+ model: opus
checkout_mode: base
base_branch: ${{ github.event.repository.default_branch }}
prompt: |2
- $weekly
+ /tend-ci-runner:weekly