> ## Documentation Index
> Fetch the complete documentation index at: https://wiggum.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# sync

> Refresh your project context by re-scanning the tech stack and running AI analysis.

```bash theme={null}
wiggum sync
```

Re-scans your project's tech stack and runs the AI enhancer to update the codebase context in `.ralph/.context.json`. Use this after significant changes to your project — new dependencies, restructured directories, or updated conventions.

## What it does

1. **Scans** — Re-runs the full tech stack detection (same detectors as `wiggum init`)
2. **Analyzes** — Runs the AI enhancer to update entry points, key directories, commands, naming conventions, and implementation guidelines
3. **Persists** — Saves the updated context to `.ralph/.context.json`

The updated context feeds into all subsequent spec generation (`wiggum new`) and loop execution (`wiggum run`).

## When to use

* After adding major new dependencies or frameworks
* After restructuring your project directory layout
* After changing build/test/lint commands
* When specs or loops seem to produce code that doesn't match your current patterns
* Periodically, to keep context fresh

<Note>
  `wiggum sync` does not re-run the full init flow — it skips provider selection, API key setup, and file generation. It only updates the codebase analysis.
</Note>

## Examples

<CodeGroup>
  ```bash Headless theme={null}
  wiggum sync
  ```

  ```bash Interactive TUI theme={null}
  wiggum
  # then type /sync
  ```
</CodeGroup>
