Skip to content

feat(agents): mint the agent GitHub token from a GitHub App - #170

Merged
furedea merged 3 commits into
mainfrom
feat/agent-github-app-token
Oct 17, 2026
Merged

furedea merged 3 commits into
mainfrom
feat/agent-github-app-token

Conversation

@furedea

@furedea furedea commented Oct 17, 2026

Copy link
Copy Markdown
Owner

Enables the agent-harness agent token with the GitHub App source, so gh runs inside the Claude sandbox and git push authenticates without the user token.

  • revert: unpin macOS host names (the uncommitted change that was in the working tree; reverts fe13ca5 at the user request).
  • chore(deps): update agent-harness to 79fd03c (agent token option and App source) and llm-agents.
  • feat(agents): programs.agent-harness.github.agentToken with source app, App ID 5354507, private key at ~/.ssh/github_app.pem.

Evaluated settings (nix eval of the composed Claude settings): GH_CONFIG_DIR is ~/.config/agent-harness/gh; excludedCommands drops gh and keeps git add, commit, push, and status; github.com and api.github.com are allowed; the key path is in sandbox denyRead and Read(//…/github_app.pem) is in permissions.deny. The launchd job agent-harness-github-app-token runs agent-harness github-app-token refresh at load and every 3000 seconds.

Verification after merge and switch

  • agent-harness github-app-token status reports a valid token.
  • gh pr view runs inside the sandbox without a prompt.
  • A chained git add, commit, and push runs outside the sandbox, signed, and pushes with the App token.
  • Reading ~/.ssh/github_app.pem is denied inside the sandbox.

🤖 Generated with Claude Code

furedea and others added 3 commits October 17, 2026 14:54
This reverts commit fe13ca5.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
agent-harness moves to 79fd03c, which adds the agent GitHub token option and its App source.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
gh now runs inside the sandbox with a one-hour installation token refreshed every 50 minutes.

The App private key stays in ~/.ssh and is denied to Claude tools and the sandbox.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 17, 2026 05:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@furedea
furedea merged commit 2c0e177 into main Oct 17, 2026
11 checks passed
@furedea
furedea deleted the feat/agent-github-app-token branch October 17, 2026 06:00
furedea added a commit that referenced this pull request Nov 12, 2026
agent-config の最新を取り込みます.#74 のモデル判定の改善がまとめて入ります.#452 の置き換えです(#452 はこの PR
の前の版の `flake.lock` でした).

| 取り込む変更(furedea/agent-config) | 中身 |
| --- | --- |
| #157 | Stop に判定の秒数を出す.`model-rules/**/fixtures/**` をモデル判定に送らない |
| #160 | `model-rules/*/fixtures/*` をテストの検証で数えない |
| #163 | Python と TypeScript の誤検知を直す(M-05 は原則の書き直しと基準値,M-21 は送る範囲を
`located` に) |
| #167 | 保存結果の数を下見から取る |
| #158 | Go と Rust の M-05,M-21,M-60 を追加.保存した基準を相対パスで取り直した |
| #170 | Stop の表示を `jev-lint: 0 findings · 74 subjects · passed ·
$0.0004 · 4.3s` の 1 行にする |

- [x] `darwin-rebuild switch` で反映済み

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: furedea <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants