Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Auggie Agent GitHub Action

AI-powered code assistance for GitHub pull requests using Auggie.

Quick Start

1. Get Your Augment API Credentials

First, you'll need to obtain your Augment Authentication information from your local Auggie session:

Example session JSON:

{
"accessToken": "your-api-token-here",
"tenantURL": "https://your-tenant.api.augmentcode.com"
}

There are 2 ways to get the credentials:

  • Run auggie tokens print
    • Copy the JSON after TOKEN=
  • Copy the credentials stored in your Augment cache directory, defaulting to ~/.augment/session.json

⚠️ Security Warning: These tokens are OAuth tokens tied to your personal Augment account and provide access to your Augment services. They are not tied to a team or enterprise. Treat them as sensitive credentials:

  • Never commit them to version control
  • Only store them in secure locations (like GitHub secrets)
  • Don't share them in plain text or expose them in logs
  • If a token is compromised, immediately revoke it using auggie tokens revoke

2. Set Up the GitHub Repository Secret

You need to add your Augment credentials to your GitHub repository:

Adding Secret

  1. Navigate to your repository on GitHub
  2. Go to SettingsSecrets and variablesActions
  3. Add the following:
    • Secret: Click "New repository secret"
      • Name: AUGMENT_SESSION_AUTH
      • Value: The json value from step 1

Need more help? For detailed instructions on managing GitHub secrets, see GitHub's official documentation:

3. Create Your Workflow File

Add a new workflow file to your repository's .github/workflows/ directory and merge it.

Example Workflows

For complete workflow examples, see the example-workflows/ directory which contains:

  • PR Description Generation - Automatically generate comprehensive PR descriptions
  • Code Review - Perform automated code quality and security reviews
  • Issue Triage - Automatically analyze and triage GitHub issues with priority and categorization recommendations
  • Template-Based Review - Demonstrates the template system for dynamic, context-aware instructions

Each example includes a complete workflow file that you can copy to your .github/workflows/ directory and customize for your needs.

Advanced

Inputs

InputDescriptionRequiredExample
augment_session_authAugment session authentication JSON (store as secret)No**${{ secrets.AUGMENT_SESSION_AUTH }}
augment_api_tokenAPI token for Augment services (store as secret)No**${{ secrets.AUGMENT_API_TOKEN }}
augment_api_urlAugment API endpoint URL (store as variable)No**${{ vars.AUGMENT_API_URL }}
github_tokenGitHub token with repo and user:email scopes.No${{ secrets.GITHUB_TOKEN }}
instructionDirect instruction text for simple commandsNo*"Generate PR description"
instruction_filePath to file with detailed instructionsNo*/tmp/instruction.txt
template_directoryPath to template directory for dynamic instructionsNo*.github/templates
template_nameTemplate file name (default: prompt.njk)Nopr-review.njk
pull_numberPR number for template context extractionNo${{ github.event.pull_request.number }}
repo_nameRepository name for template contextNo${{ github.repository }}
custom_contextAdditional JSON context for templatesNo'{"priority": "high"}'
modelModel to use; passed through to auggie as --modelNoe.g. sonnet4, from auggie --list-models
rulesJSON array of rules file paths (each forwarded as individual --rules flags)No'[".github/augment/rules.md"]'
mcp_configsJSON array of MCP config file paths (each forwarded as individual --mcp-config flags)No'[".augment/mcp/config.json"]'

*Either instruction, instruction_file, or template_directory must be provided.

**Either augment_session_auth OR both augment_api_token and augment_api_url must be provided for authentication.

Template System

For advanced use cases, the Auggie Agent supports a template system that automatically extracts context from GitHub pull requests and allows you to create dynamic, reusable instruction templates. Templates are ideal when you need instructions that adapt based on PR content, file changes, or custom data.

See TEMPLATE.md for complete documentation on creating and using templates.

About

A simple wrapper to bring Auggie in to your development lifecycle.

Resources

Stars

35 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages