github
GitHub is the world’s leading code hosting platform that enables collaboration, version control, and automation for developers and teams.
With GitHub, you can:
Host repositories — Store public or private code with Git versioning.
Manage pull requests — Review and merge contributions efficiently.
Track issues and discussions — Organize bugs, feature requests, and tasks.
Automate workflows — Use GitHub Actions for CI/CD and task automation.
Collaborate securely — Manage permissions, reviews, and API access for teams.
In Agent Forge, the GitHub integration allows your agents to interact directly with repositories — fetching commits, posting PR comments, retrieving repo metadata, and automating reviews. This bridges your AI workflows with your software projects for seamless collaboration.
How to Get a GitHub Personal Access Token (PAT Classic)
Follow these steps to generate a Personal Access Token (Classic) which grants your agent access to the GitHub API:
Go to GitHub Settings
Log in to your GitHub account.
In the top-right corner, click your profile icon → Settings.
Generate a New Token
Click Generate new token → Generate new token (classic).
Enter a token name (e.g., Agent Forge Integration).
(Optional) Set an expiration — “No expiration” is fine for local setups, but you can choose a shorter duration for security.
Select Scopes (permissions). Common scopes include:
repo— full control of private repositoriesread:user— read profile informationuser:email— access verified email addressworkflow— manage GitHub Actions workflows
Usage Instructions
The GitHub tools in Agent Forge let your agents:
Fetch pull request data (titles, diffs, and commits)
Comment on open PRs
Retrieve repository metadata and statistics
Get the latest commits across branches
Tools
github_pr
github_prFetch pull request details (including diffs and files changed).
Input
owner
string
Yes
Repository owner
repo
string
Yes
Repository name
pullNumber
number
Yes
Pull request number
apiKey
string
Yes
GitHub PAT (classic) token
Output
content
string
Response content
metadata
json
Response metadata
github_comment
github_commentPost comments on pull requests.
Input
owner
string
Yes
Repository owner
repo
string
Yes
Repository name
pullNumber
number
Yes
PR number
body
string
Yes
Comment content
apiKey
string
Yes
GitHub PAT (classic) token
Output
content
string
Response content
metadata
json
Response metadata
github_repo_info
github_repo_infoRetrieve repository metadata — stars, forks, language, and more.
Input
owner
string
Yes
Repository owner
repo
string
Yes
Repository name
apiKey
string
Yes
GitHub PAT (classic) token
Output
content
string
Repository data
metadata
json
Response metadata
github_latest_commit
github_latest_commitGet the latest commit details for a branch.
Input
owner
string
Yes
Repository owner
repo
string
Yes
Repository name
branch
string
No
Branch name (defaults to main)
apiKey
string
Yes
GitHub PAT (classic) token
Output
content
string
Commit details
metadata
json
Response metadata
Notes
Category:
toolsType:
githubWorks with Personal Access Token (Classic) or fine-grained PATs if configured properly.
Requires
reposcope for private repositories andread:userfor profile queries.You can manage and revoke tokens anytime under Settings → Developer Settings → Personal Access Tokens (classic).
Was this helpful?
