Skip to content

docs(code): clarify GitHub token vs App credentials - #9

Merged
danii1 merged 3 commits into
mainfrom
docs/code-github-auth-env
Aug 17, 2026
Merged

docs(code): clarify GitHub token vs App credentials#9
danii1 merged 3 commits into
mainfrom
docs/code-github-auth-env

Conversation

@danii1

@danii1 danii1 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Summary

GITHUB_TOKEN and GitHub App credentials (GITHUB_APP_ID + private key) were documented as interchangeable "option 1 / option 2" for PR creation. They are complementary, and skipping the App (or the token) silently breaks some paths.

This updates env examples and docs so the split is explicit:

  • GITHUB_TOKEN is required for TASK_TRACKER=github (the App cannot substitute). It is enough for CLI task implementation, --create-pr, and worker review polling on the agent's own PRs.
  • GitHub App (GITHUB_APP_ID + private key) is required for @mention matching on any PR (worker mention sweep and worker --listen / webhook) and for slug[bot] commit attribution.
  • Precedence when both are set: CLI / PR creation uses the token; worker --listen / webhook server prefers the App so the bot identity resolves.
  • Setting GITHUB_APP_ID without a private key does not configure the App.

Test plan

  • bun run test init-wizard.test.ts workspace-init.test.ts in packages/code
  • lefthook pre-commit (format, lint, typecheck)
  • Skim Configuration after docs deploy and confirm the credential table reads clearly

danii1 added 3 commits August 17, 2026 15:20
GITHUB_TOKEN and GitHub App credentials are complementary, not
interchangeable. Update env examples and docs so it is obvious
which each is required for, and that precedence differs between
CLI (token-first) and worker --listen (App-first).
Lead GitHub auth docs with the product split that matches pricing:
GITHUB_TOKEN for free interactive CLI use, GitHub App for team and
unattended automation. Keep the capability table so Issues still
requires a token and LICENSE_KEY stays the automation license gate.
The capability table listed GitHub App as a personal-use option because
the CLI can fall back to App auth. That is a team-setup side effect, not
the path to recommend for interactive use.
@danii1
danii1 merged commit 519a424 into main Aug 17, 2026
1 check passed
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.

1 participant