---
name: refresh
description: "Rebuild the codebase index — full or incremental re-indexing"
category: context
tags: [rebuild, update, incremental]
depends-on: [init]
input: "optional: --incremental flag"
output: "updated .ccs/index.json"
token-estimate: 500
parallel-safe: false
argument-hint: "[--incremental]"
user-invocable: true
allowed-tools: Read, Bash
model: claude-sonnet-4-6
context: inline
agent: general-purpose
---

# Refresh — Engine-Powered Re-indexing

Rebuild the codebase index. The engine handles everything programmatically.

## Re-index (auto-generated by engine)

!`ccs index --incremental 2>&1 || node "$HOME/.claude/skills/_ccs/engine/cli.js" index --incremental 2>&1 || echo "CCS engine not found. Run: npm install -g codebase-context-skill"`

## Updated Summary

!`ccs summary 2>/dev/null || node "$HOME/.claude/skills/_ccs/engine/cli.js" summary 2>/dev/null`

## Report to User

Present the results. The index is now fresh. Note:
- The PostToolUse hook auto-updates the index on every file change
- Manual refresh is only needed after large external changes (git pull, branch switch)
- Use `ccs watch` in a separate terminal for continuous auto-updates

---
*codebase-context-skill v2.0.0*
