plugin-testsprite
an unofficial claude code and codex plugin for the testsprite cli. it doesn't wrap or replace the cli. it's the judgment layer around it: set a repo up, audit a suite, get a real verdict before claude says "done", gate ci, and say it straight when a repo just isn't a fit.
not affiliated with or endorsed by testsprite. "TestSprite" is their name.
install
Every plugin of ours is installed once, globally, and off, then turned on per project. Nothing runs and no tokens are spent in chats that don't switch it on. It works the same in Claude Code and Codex.
1. install it globally
Claude Code
claude plugin marketplace add yigitkonur/plugin-testsprite
claude plugin install testsprite@plugin-testsprite -s user # stays off: defaultEnabled is false in the manifest
Codex (0.163+)
codex plugin marketplace add yigitkonur/plugin-testsprite
codex plugin add testsprite@plugin-testsprite
codex-plugin-project.sh global-off testsprite@plugin-testsprite # Codex has no enable/disable command; this keeps it off everywhere
All our plugins, both hosts, plus the plugin command and the 6-hourly update job, in one line:
curl -fsSL https://raw.githubusercontent.com/yigitkonur/plugin-kit/main/install.sh | sh -s -- --all
2. turn it on in a project
cd your-project
plugin on testsprite # Claude Code and Codex, this folder only
plugin off testsprite # undo
plugin # or pick from a list (TUI)
By hand, without the plugin command:
claude plugin enable testsprite@plugin-testsprite --scope project # undo: claude plugin disable testsprite@plugin-testsprite --scope project
codex-plugin-project.sh on testsprite@plugin-testsprite . --trust # undo: codex-plugin-project.sh off testsprite@plugin-testsprite
Restart claude / codex in that folder afterwards.
Codex reads a folder's .codex/config.toml only when the folder is trusted; --trust adds that, and it also enables the folder's hooks and rules, so use it for your own projects only. plugin and codex-plugin-project.sh come from plugin-kit (the one-line installer above).
3. updates
A plugin updates only when its version changes, and this repo's release workflow bumps it on every shipped change. Machines pick it up with plugin update, or by themselves with the 6-hourly job (plugin autoupdate install). By hand:
claude plugin marketplace update plugin-testsprite && claude plugin update testsprite@plugin-testsprite
codex plugin marketplace upgrade plugin-testsprite # then start a new session
No GitHub SSH key on the machine? export CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1 (plugin install sets it in Claude's settings for you).
4. uninstall
claude plugin uninstall testsprite@plugin-testsprite -s user
claude plugin marketplace remove plugin-testsprite
codex plugin remove testsprite@plugin-testsprite
codex plugin marketplace remove plugin-testsprite
bring your own testsprite cli and key
the plugin never installs the cli for you:
npm install -g @testsprite/testsprite-cli
! testsprite setup --no-agent
the ! runs it in your session with a masked prompt, so the key never touches the chat. the --no-agent matters: plain testsprite setup installs the vendor's own skills, which duplicate this plugin.
what you need
- claude code (tested on 2.1.302);
- macos or linux (the hooks run under
sh and git; windows is untested);
- node 20.19+;
- the testsprite cli (checked against 0.15.x).
claude code may say three plugin settings are unset after install. that's fine, the defaults apply. /plugin configure testsprite@plugin-testsprite changes them.
use it in codex
- the first time, codex shows "Hooks need review": pick "Trust all and continue".
- the plugin adds no mcp server, so
codex mcp list stays empty. you know it's on when codex plugin list says installed, enabled and the testsprite:* skills are listed.
- codex has no subagents, no
bin/ on the path and no ask prompts for hooks. the skills tell codex to run node <plugin root>/bin/sprite-* and to read agents/*.md inline. the guard blocks instead of asking: get your yes, then the model reruns with TESTSPRITE_CONFIRMED=1 in front. settings are env vars there: TESTSPRITE_GUARD, TESTSPRITE_STOP_GATE, TESTSPRITE_CONFIRM_RUNS_OVER.
what it does
testsprite is a hosted testing service with a thin cli. you describe tests, their cloud runs them against an app it can reach, and you read structured verdicts. runs cost credits, the cli ships fast, and its agent guidance is long. this plugin keeps the stable knowledge (mental model, authoring rules, triage, fit, costs) and reads exact flags from the cli you actually have installed, so it doesn't rot when the cli changes.