Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions docs/guides/user/bring-your-own-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ Next:
✓ Post-script completed (0.3s)
```

`.env.local` needs `GITHUB_ISSUE_URL`, `ISSUE_NUMBER`, `REPO_FULL_NAME`,
`GH_TOKEN`, and whatever the agent's route needs besides those — see
`.env.local` needs `FULLSEND_WORK_ITEM_URL`, `ISSUE_NUMBER`,
Comment thread
rh-hemartin marked this conversation as resolved.
Resolved
`REPO_FULL_NAME`, `GH_TOKEN`, and whatever the agent's route needs besides
those — see
[Pick a route](#pick-a-route). `GH_TOKEN` must be a real token: a
connectivity check runs before the agent does. See
[Running agents locally](running-agents-locally.md).
Expand All @@ -82,8 +83,8 @@ Next:

The route — which model, on which credential path — decides what a local
run needs in `.env.local` beyond the GitHub variables every route uses
(`GITHUB_ISSUE_URL`, `ISSUE_NUMBER`, `REPO_FULL_NAME`, `GH_TOKEN`). Pick the
row that matches the agent you want; CI is covered below the table.
(`FULLSEND_WORK_ITEM_URL`, `ISSUE_NUMBER`, `REPO_FULL_NAME`, `GH_TOKEN`).
Pick the row that matches the agent you want; CI is covered below the table.

| Route | `agent new` flags | harness `providers:` | Env beyond the GitHub variables |
|-------|-------------------|-----------------------|----------------------------------|
Expand Down Expand Up @@ -487,13 +488,17 @@ overlays:
post_script: scripts/post-triage.sh
env:
runner:
GITHUB_ISSUE_URL: ${GITHUB_ISSUE_URL}
ISSUE_URL: ${GITHUB_ISSUE_URL}
Comment thread
rh-hemartin marked this conversation as resolved.
Resolved
GH_TOKEN: ${GH_TOKEN}
FULLSEND_FORGE: github
sandbox:
GITHUB_ISSUE_URL: "${GITHUB_ISSUE_URL}"
GH_TOKEN: "${GH_TOKEN}"
ISSUE_URL: "${GITHUB_ISSUE_URL}"
FULLSEND_FORGE: github
```

New agents should map `ISSUE_URL` from `FULLSEND_WORK_ITEM_URL`; the example
above shows the current built-in GitHub overlay before that migration.

Key patterns to note:

- **`policy: policies/triage.yaml`** is a per-agent policy that includes filesystem, landlock, process, and network rules (via inline `network_policies`). This agent predates the provider-based pattern — new agents can use `providers:` instead (see [Minimum viable agent](#minimum-viable-agent)).
Expand Down Expand Up @@ -608,7 +613,7 @@ ops:

```bash
POST_LINT_DOCS_DRY_RUN=1 \
GITHUB_ISSUE_URL="https://github.com/OWNER/REPO/pull/99" \
FULLSEND_WORK_ITEM_URL="https://github.com/OWNER/REPO/pull/99" \
ISSUE_NUMBER=99 \
REPO_FULL_NAME=OWNER/REPO \
GH_TOKEN="$(gh auth token)" \
Expand Down
6 changes: 6 additions & 0 deletions docs/guides/user/running-agents-locally.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,17 @@ custom agent definitions exist.

### Triage agent

The built-in triage and code agents still read `GITHUB_ISSUE_URL` from their
Comment thread
rh-hemartin marked this conversation as resolved.
Resolved
GitHub overlays. Set both URL variables until the agents repository migrates
to `FULLSEND_WORK_ITEM_URL`.

Add to an env file:

```bash
# fullsend-triage.env
GH_TOKEN={github-pat}
GITHUB_ISSUE_URL=https://github.com/{org}/{repo}/issues/{issue_num}
FULLSEND_WORK_ITEM_URL=https://github.com/{org}/{repo}/issues/{issue_num}
Comment thread
rh-hemartin marked this conversation as resolved.
Resolved
```

```bash
Expand Down Expand Up @@ -297,6 +302,7 @@ GH_TOKEN={github-pat}
PUSH_TOKEN={github-pat}
PUSH_TOKEN_SOURCE=pat
GITHUB_ISSUE_URL=https://github.com/{org}/{repo}/issues/{issue_num}
FULLSEND_WORK_ITEM_URL=https://github.com/{org}/{repo}/issues/{issue_num}
REPO_FULL_NAME={org}/{repo}
ISSUE_NUMBER={issue_num}
CODE_ALLOWED_TARGET_BRANCHES=main
Expand Down
Loading