Skip to content
Back to skills

Index Status

ASecurity

Use when the user asks how far the ai-context plugin's indexing is, wants to watch indexing progress live, or reports high RAM/CPU/fan noise while the opencode-ai-context-plugin indexes a repo. Reads .opencode/ai-context/index-status.json (works under ACP/JetBrains AI Assistant, macOS without `watch`) and explains phase, ETA, skipped files and the memory/exclude knobs in .opencode/ai-context.config.yaml.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agentsbash

Works with

  • terminal

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add accso/ai-monitoring --skill index-status --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Index Status?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Index Status
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/accso-index-status/badge)](https://www.skillsdirectory.com/skills/accso-index-status)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: index-status
description: >
  Use when the user asks how far the ai-context plugin's indexing is, wants to
  watch indexing progress live, or reports high RAM/CPU/fan noise while the
  opencode-ai-context-plugin indexes a repo. Reads
  .opencode/ai-context/index-status.json (works under ACP/JetBrains AI
  Assistant, macOS without `watch`) and explains phase, ETA, skipped files and
  the memory/exclude knobs in .opencode/ai-context.config.yaml.
---
<!-- managed-by: opencode-ai-context-plugin -->

# Index status — follow and tune plugin indexing

The plugin writes `.opencode/ai-context/index-status.json` in the project
worktree (atomically, at most every 2 s). It is the only progress channel that
works under ACP; OS popups only mark start/finish/failure.

## 1. Read it once

```bash
cat .opencode/ai-context/index-status.json
```

Fields: `phase` (`idle|scanning|loading-model|indexing|done|failed`), `done`,
`total`, `percent`, `etaSeconds`, `filesPerSec`, `currentFile`, `failed`,
`failures[]` (file, error, attempts), `lastError`.

## 2. Live view: give the user the command

When the user wants to follow progress live, do this and nothing more:

1. Read the JSON file once (step 1) and report phase, percent, ETA and
   failures in a few lines.
2. Give the user this command to run in their own terminal (replace
   `<worktree>` with the absolute project path):

```bash
<worktree>/.opencode/skills/index-status/scripts/watch-index-status.sh
```

NEVER run `watch-index-status.sh` yourself, with any tool: it loops forever,
blocks or aborts your call, and the user cannot see its output. macOS has no
`watch`; the script (uses `jq` if present, plain `cat` otherwise) is the
replacement. Do not start loops or background watchers either.

## 3. Interpret

- `loading-model`: first embedding call downloads/loads the model; normal, one time.
- `failed` + `lastError` mentioning `max_memory_mb`: the memory guard stopped
  indexing. Lower `embed_max_tokens`/`max_file_bytes` or raise `max_memory_mb`.
- `failures[]` with `skipped: file is N bytes`: file over `max_file_bytes`; it is
  skipped and retried automatically when it changes.
- Fan/CPU high: lower `embed_threads` (default 2).
- Noise from generated/legacy code: add patterns to `exclude:`.

All keys live in `.opencode/ai-context.config.yaml` (auto-created, commented).
Restart opencode after editing it.

Files in this skill

  • SKILL.md2.3 KB
  • scripts/watch-index-status.sh1.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.