Skip to main content

GitHub

Connect SVAHNAR to your GitHub account to give agents the ability to read and write files, manage issues, and create pull requests in your repositories.


What Agents Can Do

OperationDescription
read_fileRead the contents of a file in a repository
write_fileCreate a new file in a repository
update_fileModify an existing file
delete_fileRemove a file from a repository
list_filesList all files in the active branch
create_issueOpen a new issue
list_issuesList open issues
create_prOpen a new pull request

Connecting GitHub

Open Connections

Go to the Connections page in the SVAHNAR Platform.

Connect GitHub

Click Connect on the GitHub provider card.

A GitHub OAuth popup opens.

Authorize

Review the requested permissions and click Authorize SVAHNAR.

Organization Repositories

To access repositories in a GitHub organization, you may need an organization admin to approve the OAuth app in the organization's settings under Third-party access.

Confirm Connection

The popup closes. The GitHub card updates to Connected.


Using GitHub in an Agent

agent.yaml
create_agent_network:
agent-1:
agent_name: "Code_Manager"
LLM_config:
params:
model: "gpt-5"
tools:
tool_assigned:
- name: GitHub
config:
repo: "your-org/your-repo"
Branch: "main"
agent_function:
- "Help the user read files and create issues in the repository."
incoming_edge:
- Start
outgoing_edge: []

For detailed tool configuration, see the GitHub Tool reference.


Permissions Requested

ScopePurpose
repoFull access to public and private repositories
read:userRead your GitHub profile information
user:emailAccess your verified email addresses

Disconnect

Click Disconnect on the GitHub card. SVAHNAR removes the stored token.

note

GitHub does not support the standard RFC 7009 revocation protocol. You can also manually revoke SVAHNAR's access from GitHub → Settings → Applications → Authorized OAuth Apps.