feat(identity): Agent GitHub Identity via GitHub Apps#1
Closed
Conversation
This was referenced Apr 10, 2026
b4768f7 to
4f61876
Compare
a7f2273 to
841e415
Compare
Squashed 67 commits from squad/agent-github-identity onto upstream/dev.
841e415 to
1df2494
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent GitHub Identity via GitHub Apps
Summary
Gives each Squad agent a distinct GitHub App identity so commits, PRs, and comments are attributed to the correct role (e.g.,
sabbour-squad-lead[bot]). Uses GitHub Apps for per-agent authentication rather than shared tokens.Role Avatars
Each role gets a unique avatar for visual identification in GitHub activity:
Token Resolution — Standalone Script
Token resolution uses
.squad/scripts/resolve-token.mjs, a self-contained script shipped bysquad init/squad upgrade. It requires no npm dependency — only Node.js built-in modules (node:fs,node:path,node:crypto). Spawned agents call:TOKEN=$(node .squad/scripts/resolve-token.mjs 'lead')Key Files Changed
templates/scripts/resolve-token.mjs— standalone token resolution script (new)packages/squad-cli/src/cli/core/templates.ts— manifest entry to ship the scriptpackages/squad-sdk/src/config/init.ts— createsscripts/dir during inittemplates/squad.agent.md.template— agent prompt with identity blockpackages/squad-cli/src/cli/commands/identity.ts— identity create/import/status CLIpackages/squad-cli/src/cli/shell/spawn.ts— token injection during agent spawndocs/proposals/agent-github-identity.md— full design proposal.changeset/team-aware-identity-create.md— changeset for this featureBranch Cleanup
This commit reverts unrelated
.squad/state changes (agent history files, decisions, decision inbox), avatar image additions, and package.json version bumps that had accumulated across prior commits. The PR diff now shows only identity feature changes.