Skip to main content
Experimental API - Context Connectors is experimental and subject to breaking changes.

Prerequisites

  • A GitHub repository
  • Augment API credentials

Steps

1. Create the workflow file

Create .github/workflows/augment-index.yml in your repository:

2. Set up GitHub repository secrets

Go to your repository Settings → Secrets and variables → Actions and add: How to get your credentials:
Copy the full session JSON output and use it as the value for AUGMENT_SESSION_AUTH.

3. Commit and push

4. Verify it’s working

Go to your repository’s Actions tab. You should see the “Index Repository” workflow running. Once complete, you can search your index:

Done!

Your repository will now automatically re-index on every push to the main branch. The workflow uses GitHub Actions cache to store index state for efficient incremental updates.

Also Works With

How It Works

The workflow:
  1. Triggers on every push to your main branch
  2. Restores the previous index state from GitHub Actions cache
  3. Indexes the repository using the GitHub API (no checkout needed for indexing)
  4. Caches the new index state for the next run
This approach is much faster than full re-indexing on every push.

Advanced: Using S3 Storage

For production use or team sharing, you can store indexes in S3 instead of GitHub cache:
  1. Edit .github/workflows/augment-index.yml
  2. Add S3 configuration to the command:
  1. Add AWS credentials to repository secrets
This allows multiple repositories or team members to share the same index.