sync-guides

sync-guides is a command for Gemini CLI from litestar-org/litestar-fullstack-inertia. It costs 0 tokens per session (639 once invoked), scanned A, original, MIT.

A documentation command that updates project guides to match the code that exists now.

In plain words
What is it for?
Use it to inspect public code, configuration, templates, and existing guides, then align the documentation with the current implementation.
Why use it?
It helps prevent guides from describing removed, changed, or unsupported behavior.

Command for Gemini CLI

Written for Gemini CLI: installed under .gemini/.

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/litestar-org/litestar-fullstack-inertia/sync-guides
Clone the repo
git clone --depth 1 https://github.com/litestar-org/litestar-fullstack-inertia

Made for: Gemini CLI.

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 sync-guides

README.md
[![agentmods](https://agentmods.dev/badge/commands/litestar-org/litestar-fullstack-inertia/sync-guides.svg)](https://agentmods.dev/commands/litestar-org/litestar-fullstack-inertia/sync-guides)
Your own site
<a href="https://agentmods.dev/commands/litestar-org/litestar-fullstack-inertia/sync-guides"><img src="https://agentmods.dev/badge/commands/litestar-org/litestar-fullstack-inertia/sync-guides.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 639 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.1 $0.00000 $0.00639
Opus 5 $0.00000 $0.00319
Sonnet 5 $0.00000 $0.00128
Haiku 4.5 $0.00000 $0.00064

Measured 2d ago against content hash 7feea268ad61, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

sync-guides 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 2d 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.

.gemini/commands/sync-guides.toml · 59 lines

How it starts

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

Command: /sync-guides

prompt = """ You are the Guides Agent for litestar-vite. Your mission is to ensure specs/guides/ is a perfect, 1:1 reflection of the CURRENT state of the codebase.

Prime Directive: The guides MUST only document what is in the code NOW.

  • NO HISTORY: Don't explain what code used to be.
  • NO BEFORE-AND-AFTER: No migration paths or version comparisons.
  • NO OUTDATED CONTENT: Delete anything out of date without hesitation.
  • RUTHLESS ACCURACY: If it's not in the code, it's not in the guides.

Your Core Workflow (Sequential & Uncompromising):

Phase 1: Deep Code Analysis (The Source of Truth)

  1. Map Codebase:

    • List ALL public classes in src/py/litestar_vite.
    • List ALL public functions in src/py/litestar_vite.
    • List ALL configuration options in config.py.
    • List ALL exported functions in src/js/src.
  2. Verify Templates:

    • Check src/py/litestar_vite/templates/ for current structure.
    • Note defaults: resources/ for Inertia, src/ for others.

Phase 2: Deep Guide Analysis

  1. Read All Guides: specs/guides/architecture.md, specs/guides/code-style.md, specs/guides/testing.md, etc.
  2. Extract References: List every class, function, and config option mentioned in the guides.

Phase 3: Discrepancy Detection & Correction

Pattern 1: Dead Code (Mentioned in Guide, Missing in Code)

  • Check: For every item in Guide Inventory, verify it exists in Code Inventory.
  • Action: If missing -> DELETE from guide immediately.

Pattern 2: Undocumented Features (In Code, Missing in Guide)

  • Check: For every public API in Code Inventory, check if it's in Guide Inventory.
  • Action: If missing -> CREATE documentation in relevant guide.

Pattern 3: Configuration Drift

  • Check: Compare default values in config.py vs guides.
  • Action: UPDATE guide to match code exactly.

Phase 4: Execution & Verification

  1. Apply Edits: Update markdown files.
  2. Build Docs: make docs (if available).
  3. Verify: make lint and make test to ensure docs didn't break anything (e.g. doctests).

Read the full file on GitHub · 59 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. 2d ago First seen · 59 lines · 0 tokens per session scan A 7feea268ad61

Subscribe to this mod's changes

sync-guides is a command published in the GitHub repository litestar-org/litestar-fullstack-inertia (43 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 639 tokens. 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-09-03.