by pcx-wave
Claude Code skill — delegate coding tasks to Mistral Vibe, supervise via git diff & save 50-90% Claude token usage
# Add to your Claude Code skills
git clone https://github.com/pcx-wave/vibe-skillvibe-skill is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by pcx-wave. Claude Code skill — delegate coding tasks to Mistral Vibe, supervise via git diff & save 50-90% Claude token usage. It has 125 GitHub stars.
vibe-skill's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/pcx-wave/vibe-skill" and add it to your Claude Code skills directory (see the Installation section above). vibe-skill ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
vibe-skill is primarily written in Shell. It is open-source under pcx-wave on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh vibe-skill against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
name: vibe description: > Delegate a coding task to Mistral Vibe and supervise the result via git diff. Trigger: /vibe . Claude orchestrates, Vibe codes. license: MIT user-invocable: true allowed-tools:
/vibe <instruction>: Claude writes a prompt, ~/tools/vibe-delegate runs Mistral
Vibe on it, Claude checks the result and reports. Details, edge cases and the
--with-review procedure are in SKILL-reference.md (same directory): read only
the section you need. Toggles, model choice and reports are separate skills
(/vibeon, /vibeoff, /vibestatus, /vibe-model-pick, /vibe-model-clear,
/vibe-report).
Delegation has a fixed cost in Claude's own context (this skill plus the run report). It pays only when Vibe does the reading and the thinking.
| Task | Action |
|---|---|
| 1 file, ≤10 lines, location known | Edit directly |
| You could do it in 1-2 turns yourself | Edit directly: a delegation costs a prompt, a run and a review, and a failed one costs double |
| You could paste the final code into the prompt | Edit directly (you already did the work) |
| Location unknown, logic to write, several files, much code to read | Delegate |
git rev-parse --show-toplevel; ask if ambiguous.git diff between them. Never more than 12 turns. A turn costs ~60–90 s wall
clock under a thinking model: at 300–480 s only ~4–6 turns run, so keep one
run to ONE new file at that budget.Stack: <languages, frameworks> # optional
TASK: <one imperative>
MODIFY: a.py, b.py # files to change; read-only agents omit this line
CONSTRAINTS: <what must not break; exact signatures; data field paths> # optional
Write your acceptance check before launching, and keep it out of the
prompt. One shell command, a few seconds, exit 0 = the TASK is done; test
behaviour, not text (python3 -c "import calc; assert calc.neg(3) == -3"
beats grep -q 'def neg'). Run it yourself after RESULT: OK. Vibe never
sees it, so it cannot code toward it. Cannot write one command? The TASK is
too vague or too big: split it.
Never write the code or the final text for Vibe: not in the prompt, and
not in a spec/staging file you ask it to apply "exactly". That pays for the
work twice (21 % of past delegations did it). Describe the goal, the files,
the constraints; Vibe writes the code. An exact signature or a
one-line anchor is fine. If you already have the code, apply it yourself.
The script refuses prompts with 10+ lines of code (--allow-code overrides).
Keep the prompt short (≈1,500 characters at most): you pay it at output price. Goal, files, constraints. Do not explain what Vibe can read in the files itself. (Past prompts: 3,000 characters median.)
Cap the reading: ≤ 4 reference files in total (inline mentions in
TASK count). Say: "grep -n for the anchors, read only those regions,
never re-read". Never write "read X first" in the prompt; cap file:line
comments to "the 3–5 main formulas". Reading burns the budget (one 2026-11-10
run: 485 s, 128k tokens, 0 files, all reads).
Name the exact files to modify. Say "the edit tool", not "search_replace".
Give the regions, don't make Vibe grep them: when you already know the
lines, sed -n 'A,Bp' file yourself and pass --include file:A-B (repeatable)
— the harness injects the verbatim region as a REFERENCE block and Vibe uses
it directly. The launch preflight refuses (exit 2, nothing launched) a prompt
that misses a TASK:/MODIFY: header (MODIFY optional for
read-only agents), names > 4 files, or says "read … first".
Files Vibe must read have to be inside the workdir (outside paths are denied silently).
Never ask for one single write of a big new file: let it write in parts.
Accented characters or emoji in the text to replace: tell Vibe to use
python3 with pathlib read/write (utf-8) for that change.
Input data Vibe must use (HTML, a sample, a reference file you did not write): put it in a file inside the workdir and point to it.
Before an edit prompt, grep -n the anchor yourself and pass it as --require.
~/tools/vibe-delegate "<workdir>" "<prompt>" [max-turns=10] [agent] [timeout-secs=300] [--require "<anchor>"]
agent: none for edits; plan for read-only review/analysis (writes disabled).PARTIAL → --resume-last; unrelated
task → --no-resume. By default the harness auto-resumes the last
same-workdir session when the previous run was limit-stopped (last run < 24 h,
resume chain < 3) — printed as [auto-resume] … and logged. Resuming is cheap
(measured 77–88 % of re-sent input is cache hits, median 87 %, n=3 runs with
cache data); a fresh session re-reads all. On a limit stop, orphaned writes are
saved to .vibe-recovery/ (not applied).timeout-secs is the total budget — count max-turns × 80 s (a turn is
~60–90 s with a thinking model): 12 turns ≈ 600–960 s. The script clamps
max-turns to timeout/80 itself (warning printed), so the budget told to
Vibe is always spendable. Out of turns → same session resumed up to 2 rounds.--resume <id> continues a partial run (the id is printed on failure).(timeout-secs + 120) × 1000 ms (max 600000). In the background,
do not poll its output: wait for the completion notification. Each poll
is a full turn of your context (16 % of past background runs polled).The last line is the verdict; trust it over anything Vibe narrated.
| Last line | Do |
|---|---|
RESULT: OK — N file(s) changed |
Writes landed. Run your acceptance check, and review the DIFF block printed just above, in this same turn: the harness checks writes, not correctness. Check fails → step 5 (a wrong check: fix it, do not relaunch). Run an extra git diff, grep or Read only for what that block truncated or what looks wrong |
RESULT: READ-ONLY run |
Use the VIBE FINAL ANSWER block |
RESULT: PARTIAL [reason] |
Files landed despite the limit: review the DIFF, finish with the printed --resume — never a fresh run for the rest of this task |
FAILED [turn_cap] / [timeout] / [budget_limit] |
Maybe partial: FIRST git status --short + read the diff (a write in flight at the limit can land late), then the printed --resume <id> — never a fresh session for the remainder. Or split |
FAILED [usage_error] |
Bad agent, flag or model setting: fix it, never retry verbatim |
FAILED [infra_error] |
Model API down: retry later or resume |
FAILED [wrote_nothing], [write_mismatch], [syntax_error], others |
Read the WRITE AUDIT block, then step 5 |
Just above the verdict, === DELEGATION REPORT === is built from disk, not narration:
STATUS, FILES (vs MODIFY:: declared, not written / written, not declared),
RUN, VIBE (its DONE / NOT DONE / ASSUMED / BLOCKED / CHECK lines), RECOVER, NEXT.
A CONTRADICTION: line (Vibe says DONE on a file it did not write) overrides
RESULT: OK: resume the session asking for that file.
VIBE FINAL ANSWER is Vibe's own summary; quote it, not the cut [vibe] lines.
Vibe must not commit; if a COMMITS CREATED block appears, review those commits.
--resume <id> with one sentence
naming the wrong behaviour (not your command). Counts as an attempt.--no-ghostwrite, stop and ask instead.[DENIED], [ERROR], garbled tool names): see
"Step 5" in SKILL-reference.md.✓ Vibe finished — <one line>
Files modified:
- <path> (+X / -Y)
[Files ghostwritten: ...]
[⚠ problem — what you did about it]
Ready to commit?
With --verbose, quote the script's token/cost block verbatim. With
--with-review N, follow "Step 8" in SKILL-reference.md.
Claude orchestrates. Vibe does the heavy lifting. You review the diff, save tokens, costs and avoid hitting limits!
Claude only reads the script's summary (≈700–1,100 tokens per run), however many files Vibe reads internally (a median Vibe 3 run processes ≈215k tokens). Delegation still has a fixed cost on Claude's side, so it pays on tasks that would make Claude read or iterate a lot, not on small targeted edits: see the measurements below.
Note that Vibe works natively with Mistral models which are capable and significantly cheaper than Claude, but Vibe can also be configured to use any other provider/model instead. Eg you can use a deepseek model with vibe tooling.
Summary:
/vibe <instruction> in Claude Codevibe-delegate runs Mistral Vibe in a pseudo-TTY, within a turn and time budgetRESULT: OK or RESULT: FAILED [reason]Cost savings — Vibe's file reads and edits consume delegate tokens (or whatever model you configure), not Claude tokens. Most of a run's input is the conversation re-sent on every model call, and about 92 % of it is served from the provider's cache. Measured on 4 benchmark tasks with glm-5-3 (2026-11-09; cost as billed by Vibe's own run export):
| Per run | Range over 4 tasks |
|---|---|
| Tokens processed by Vibe | 59k – 108k (90 – 94 % of input cached) |
| Delegate cost (cache-aware) | $0.028 – $0.041 |
| Same tokens and cache share at Claude Sonnet 4.6 rates ($3 in, $0.30 cached, $15 out per M) | $0.055 – $0.072 (≈1.9× more) |
| Wall time | 52 – 60 s |
Production runs are larger: the median Vibe 3 run (28 runs, 2026-10-29 → 2026-11-09) processed 215k tokens. Their cost was logged before the harness read the cache split, at list price with no cache discount ($0.35 median; Claude equivalent $0.88). On the benchmark runs that method overstated the delegate cost 3.1 – 3.8× and the Claude equivalent 3.5 – 4.8×. Since 2026-11-09 each run logs
cost_usdfrom Vibe's export (cost_source: vibe_export) and a cache-awarecost_claude_eq. The "same tokens" comparison is only indicative: Claude doing the task itself would make a different number of calls. On a Mistral Pro subscription, usage inside the plan's limits costs no API fee. List prices checked on 2026-11-09: Mistral Medium 3.5 $1.50/$7.50, DeepSeek V4 Flash $0.14/$0.28 per M tokens.
Delegation does cost Claude tokens, and on small tasks it costs more than doing the work. Measured on 2026-11-10 with headless
claude -p(Sonnet 5.5, same tool set in both arms, delegation forced in the Vibe arm, hidden acceptance tests passed in every run):
Session Claude does it Claude delegates to Vibe 1 task, same change in 10 modules $0.20 $0.24–0.32 (4–8 delegations) 3 tasks in a row, 10 modules each $0.19 $0.25–0.26 (3 delegations) About $0.14 of every session is Claude Code's fixed context (system prompt, tools, skill list), paid either way. On top of it, a delegation costs Claude ≈$0.03 (writing the prompt, extra turns, reading the report) plus ≈5,300 tokens once per session to load this skill (it was ≈12,900 before SKILL.md was cut on 2026-11-10). These grep-able edits cost Claude only ≈$0.02 each when done directly: it finds the lines and edits them without reading whole files, whatever the file size (2.9 to 26 KB per module made no difference). Delegating pays when doing it yourself would cost Claude more than ≈$0.03 per task: roughly when it would have to read more than ≈7k tokens (≈25 KB) of code in full, or iterate (debugging, exploration, several failed attempts). Small samples (2 runs per cell): treat the figures as orders of magnitude. The earlier modelled claim (savings from ≈4 files touched, see handoff-probe/ECONOMICS.md) is not supported for targeted edits.
Pro plan users: Mistral Vibe (CLI included) is part of Mistral's Pro plan, $14.99/mo excluding tax as of 2026-11-09. The pricing page shows only a small API-credit figure and "fair usage" wording for Vibe; the Vibe Code allowance actually included is much larger than that figure but is not published, so check your own account. Beyond it, usage stops or continues pay-as-you-go at API rates (off by default). Inside it, delegations cost no API fee: in practice the Vibe side is free, and the real cost of a delegation is on Claude's side (above). The free plan also includes limited Vibe CLI use.
These numbers predate Vibe 3 (released 2026-10-29), which changed the CLI's exit codes, agents and session format. Right after the upgrade, 12 of 31 delegations failed (39 %) and the harness misread most of them. The 2026-11-09 audit (
docs/harness-audit-2026-11-09.md) has the causes, the fixes and a 24-run benchmark with hidden acceptance tests: the verdict was correct on 23 of 24 runs. Fresh Vibe 3 production numbers will replace this section once enough runs exist.
Snapshot over 2,450 vibe delegations, 2026-05-12 → 2026-06-08 (28 days). Pulled from the shared run log via delegate-report (vibe scope).
Performance & savings
| Metric | Value |
|---|---|
| Delegations | 2,450 |
| Tokens delegated | 155.2M |
| Exit-success rate | 79% |
| Avg run duration | 32s |
| Real cost (with sub) | $0 Mistral (inside the Pro subscription) + $0.67 DeepSeek |
| Mistral at API rate (no sub) | ~$37 cache-aware estimate ($151 at list price without cache, as logged) |
| Same workload on Claude Sonnet 4.6 | ~$139 (cache-aware, 90.5% hit rate) |
By model
| Model | Runs | Exit-ok | Tokens | With sub | API ref (no sub) | vs Claude |
|---|---|---|---|---|---|---|
| mistral (Le Chat Pro) | 1,911 | 78% | 111.9M | $0 | ~$37 | ~$101 |
| deepseek-flash | 369 | 88% | 35.5M | $0.67 | $0.67 | ~$32 |
Real cost methodology: All Mistral runs (mistral-medium-3.5 + Le Chat interface) covered by Le Chat Pro subscription — $0 marginal cost. DeepSeek $0.67 is actual spend (from logs). Hit rate of 90.5% back-calculated from that spend. Claude equivalent applies the same hit rate with Claude's cache pricing ($0.30/M hits, $3/M misses, $15/M output), assuming 97.6% input / 2.4% output split.
deepseek-flash was the value pick (88% exit-ok at ≈$0.002/run: $0.67 over 369 runs).
Error rate (earlier snapshot of 2026-05-30: real projects, 1,964 runs, synthetic test scaffolds excluded)
| Class | Rate | What it is |
|---|---|---|
| clean ok | 67.1% | completed and wrote files |
exit_error |
18.7% | engaged (≈7 tool calls) then exited non-zero, 95% wrote nothing |
wrote_nothing |
7.1% | tool calls but 0 files, exit 0 |
warn_only |
2.5% | non-fatal warnings, usually fine |
sr_fail |
2.4% | search_replace byte-match miss (accents, backticks) |
near_empty |
1.6% | <50 tokens out, nothing written |
syntax_error |
0.4% | wrote invalid code (caught by post-run gate) |
timeout |
0.3% | task too large / context saturated |
At the time, the ≈26 % exit_error + wrote_nothing was attributed to Vibe engaging but landing no edit: multi-edit context drift, or a first search_replace anchor not found byte-for-byte. That diagnosis was not re-verified per run. The --require gate added then aborts the anchor-not-found case before launch.
Versus the other delegate (opencode)
| vibe | opencode | |
|---|---|---|
| Runs | 2,450 | 254 |
| Tokens | 155.2M | 8.5M |
| Exit-ok | 79% | 81% |
| Real cost | $0.67 + Pro subscription | $0 (free tiers) |
| Models | mistral-medium, deepseek-flash (paid, capable) | free deepseek / mimo / nemotron tiers |
Same headline exit-rate, very different profile: opencode runs free tiers at zero cost, but 25 % of its runs produced nothing and 19 % timed out over the same period (vibe: 5 % and 0.2 %). Use it for cheap exploration; vibe's paid models are the choice when the edit has to land. Both write to the same log — /vibe-report --all compares them.
vibe --version; tested with 3.0.3). Vibe 2.x is no longer supported: the harness reads Vibe 3's run export and session journal.python3 (pseudo-TTY via pty.spawn, stream parsing, audits) and optionally node for JS syntax checkstimeout on your PATH (GNU coreutils; on macOS, brew install coreutils installs it as gtimeout, so add coreutils' gnubin directory to PATH). It is only a backstop: Vibe's own --time-limit stops the run firstgit clone https://github.com/pcx-wave/vibe-skill.git && cd vibe-skill && mkdir -p ~/tools ~/.claude/skills/vibe ~/.claude/skills/vibeon ~/.claude/skills/vibeoff ~/.claude/skills/vibestatus ~/.claude/skills/vibe-model-pick ~/.claude/skills/vibe-model-clear ~/.claude/skills/vibe-report && ln -sf "$(pwd)/tools/vibe-delegate" ~/tools/vibe-delegate && ln -sf "$(pwd)/tools/delegate-report" ~/tools/delegate-report && chmod +x ~/tools/vibe-delegate ~/tools/delegate-report && ln -sf "