auggie-index

auggie-index is a command for coding agents from vleytman/1wp-plugins. It costs 12 tokens per session (589 once invoked), scanned A, original, MIT.

A command that scans a codebase and creates or updates an Auggie search index. The index lets Auggie find relevant code and provide context-aware assistance.

In plain words
What is it for?
Use it after setup, major code changes, or when Auggie's search results are stale or missing files.
Why use it?
It keeps Auggie's code search complete and up to date, including by updating only files that changed.

Command

Part of the auggie-context plugin — 1 skill, 3 commands, 1 agent shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/vleytman/1wp-plugins/auggie-index
Clone the repo
git clone --depth 1 https://github.com/vleytman/1wp-plugins

Or install auggie-context, the plugin that ships this one along with the rest of its 1 skill, 3 commands, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for auggie-index

README.md
[![agentmods](https://agentmods.dev/badge/commands/vleytman/1wp-plugins/auggie-index.svg)](https://agentmods.dev/commands/vleytman/1wp-plugins/auggie-index)
Your own site
<a href="https://agentmods.dev/commands/vleytman/1wp-plugins/auggie-index"><img src="https://agentmods.dev/badge/commands/vleytman/1wp-plugins/auggie-index.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 589 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00012 $0.00589
Opus 5 $0.00006 $0.00295
Sonnet 5 $0.00002 $0.00118
Haiku 4.5 $0.00001 $0.00059

Measured 4d ago against content hash b4b9af395205, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

auggie-index scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/auggie-context/commands/auggie-index.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Auggie Index Command

Index the current codebase to enable context-aware search and assistance.

What This Command Does

  1. Scans the current project directory for code files
  2. Uploads file contents to the Auggie Context Engine for indexing
  3. Saves the index state to auggie-context.json for persistence between sessions
  4. On subsequent runs, performs incremental updates (only changed files)

Usage

Run this command:

  • After initial setup (/auggie-setup)
  • After making significant changes to your codebase
  • If search results seem stale or incomplete

Execution Steps

Step 1: Check authentication

First verify Auggie credentials are configured:

auggie token print

If not authenticated, direct user to run /auggie-setup first.

Step 2: Index the codebase

Explain to the user that you will use the Auggie Context Engine SDK to:

  1. Check for existing index: Look for auggie-context.json in the project root
  2. Load or create index:
    • If auggie-context.json exists: Load it with DirectContext.importFromFile()
    • If not: Create new with DirectContext.create()
  3. Gather files: Collect all code files (respecting .gitignore patterns)
  4. Index files: Call addToIndex() with file contents
  5. Save state: Call exportToFile('auggie-context.json')

Step 3: Confirm completion

Tell the user:

  • How many files were indexed
  • That the index is saved to auggie-context.json
  • They can now use /auggie for context-aware assistance

Technical Details

The index uses Auggie's DirectContext API:

  • Files are uploaded and processed by Auggie's context engine
  • Index state (file checksums, blob references) is stored in auggie-context.json
  • Incremental indexing: Only new/changed files are re-uploaded
  • The index file should be added to .gitignore (contains project-specific data)

Files Indexed

By default, indexes common code file types:

  • TypeScript/JavaScript: .ts, .tsx, .js, .jsx
  • Python: .py
  • Ruby: .rb
  • Go: .go
  • Rust: .rs
  • And more...

Read the full file on GitHub · 78 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 78 lines · 12 tokens per session scan A b4b9af395205

Subscribe to this mod's changes

auggie-index is a command published in the GitHub repository vleytman/1wp-plugins (2 stars, last pushed 8mo ago), licensed MIT. It adds 12 tokens to every session and 589 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.