analyze
Analyze recent runs - per-model latency, tokens, and verdict agreement - and suggest model/reasoning/fanout tuning. Advisory, read-only.
List, prune, or gc Grok (xAI) uploaded files. Cleanup for bridge-owned uploads only.
> /plugin marketplace add antonbabenko/deliberation > /plugin install deliberation@antonbabenko-deliberation
How it fires
How this command gets triggered: by you, by Claude, or both.
/grok-filesContext preview
What this command does when you run it.
List, prune, or gc Grok (xAI) uploaded files. Cleanup for bridge-owned uploads only.
name: grok-files description: List, prune, or gc Grok (xAI) uploaded files. Cleanup for bridge-owned uploads only. allowed-tools: Bash, Read timeout: 120000
List, prune, or gc the xAI files uploaded by the Grok bridge. Uploads are tagged with the filename prefix `deliberation-`, so the remote-side cleanup ONLY ever targets those - your own xAI files are never touched. Uploads also carry `expires_after` (default 7 days) so they self-delete; this command is for pruning orphans early, auditing what exists, or syncing the local SHA-256 cache with remote state.
Sub-command + flags: $ARGUMENTS (e.g. `list`, `prune --older-than 24h`, `prune --older-than 7d --yes`, `gc`, `gc --all-keys --force-local-prune`)
1. **Resolve the admin script** via this sequence: 1. Glob `~/.claude/plugins/cache/*/deliberation/*/server/grok/files-admin.js`; pick the highest-semver match. 2. Fall back to `${CLAUDE_PLUGIN_ROOT}/server/grok/files-admin.js`. 3. If none exists, abort: `Error: deliberation plugin cache missing. Run /plugin install deliberation.`
2. **Check auth**: the script needs `XAI_API_KEY` in the environment. If it is unset, tell the user to `export XAI_API_KEY=xai-...` and stop (the script will error otherwise).
3. **Run the script** with the user's sub-command (default `list` when `$ARGUMENTS` is empty):
node "<resolved files-admin.js>" $ARGUMENTS
with remote state via one paginated `GET /v1/files`. Prunes local rows whose `fileId` is no longer on xAI. Default scope: current `XAI_API_KEY` + `XAI_API_BASE` rows only.
ambiguous (the current key can't always see foreign files).
files on xAI under foreign accounts.
4. **Report** the script's output to the user. For `prune` without `--yes`, remind them to re-run with `--yes` to actually delete. For `gc`, the printed `pruned N local cache row(s)` message is the receipt.
`deliberation-` prefix is the safety boundary for `prune`.
Grok bridge is running.
`prune` is the **remote** cleaner: deletes bridge-owned files on xAI by filename prefix + age. Works even when the local cache file is missing or lost. Use after a long absence to drain orphaned uploads.
`gc` is the **local-side reconciliation**: it does NOT delete anything on xAI - it discovers what xAI already considers gone (TTL elapsed, deleted out-of-band, etc.) and prunes the matching rows from the local cache so future calls cache-miss and re-upload. Use after a TTL window has passed, or after running `prune --yes`, to keep the cache file lean.
Get a second opinion in Claude Code from GPT, Gemini, and Grok - plus 400+ more models through OpenRouter, including Qwen, Kimi, and DeepSeek.
Repo: antonbabenko/deliberation
Analyze recent runs - per-model latency, tokens, and verdict agreement - and suggest model/reasoning/fanout tuning. Advisory, read-only.
Ask GPT, Gemini, Grok, and any configured OpenRouter models in parallel for independent second opinions, then synthesize and compare. Zero cross-contamination.
Get Gemini second opinion on a question or current work. Single-shot, advisory, no contamination. Model pinned per call.
Get GPT (Codex) second opinion on a question or current work. Single-shot, advisory, no contamination.
Get Grok (xAI) second opinion on a question or current work. Single-shot, advisory, no contamination.
Ask a single configured OpenRouter model for a second opinion. Advisory only. Single-shot or multi-turn.