testosaurus-plugin

testosaurus-dev/testosaurus-plugin Checked 2 days ago

Claude Code plugin for Testosaurus: testers report, your agent fixes.

Turn what your beta testers report into tested draft pull requests, from your own coding agent. Testosaurus is a feedback widget for alpha and beta web apps. Testers click a launcher and describe a frustration; Testosaurus groups the reports into shared issues with an AI analysis. This plugin connects Claude Code to that inbox and gives it four commands: The plugin is markdown skills plus one remote MCP server entry. It has no hooks, scripts or binaries, and it never uploads your code.

Summary extracted from the README.

Testosaurus for Claude Code

Turn what your beta testers report into tested draft pull requests, from your own coding agent.

Testosaurus is a feedback widget for alpha and beta web apps. Testers click a launcher and describe a frustration; Testosaurus groups the reports into shared issues with an AI analysis. This plugin connects Claude Code to that inbox and gives it four commands:

Command What it does
/testosaurus:setup Adds the widget to the app in the current directory (Next.js App Router or Pages Router, Vite, plain HTML).
/testosaurus:triage Lists your top 10 new issues by impact and recommends fix, merge or dismiss for each. Changes nothing without your OK.
/testosaurus:fix Fixes the top issue (or one you name) on a new branch, runs your tests, shows the diff, optionally opens a draft PR, and records the proposed fix in Testosaurus.
/testosaurus:shipped After you deploy, records the fix as shipped, optionally resolves the issue and drafts a note for your testers.

The plugin is markdown skills plus one remote MCP server entry. It has no hooks, scripts or binaries, and it never uploads your code.

Install

You need Claude Code and a Testosaurus account with at least one project.

In a Claude Code session:

/plugin marketplace add testosaurus-dev/testosaurus-plugin
/plugin install testosaurus@testosaurus

Or from your shell:

claude plugin marketplace add testosaurus-dev/testosaurus-plugin
claude plugin install testosaurus@testosaurus

Claude Code asks for your access key when the plugin is installed or enabled in /plugin. The claude plugin install shell command does not prompt; set the key afterwards (see below).

Configure the key (use a triage key)

The plugin talks to https://testosaurus.dev/mcp with an sk_ access key sent as a Bearer token. There is no OAuth. Create the key in the dashboard under settings → agent access → Access keys: enter a key name, choose the kind triage key and click create key. The key is shown once, so copy it with copy key.

Key scope Can read issues and reports Can call record_fix Can change anything else
Read-only yes no no
Triage (recommended) yes yes no
Full yes yes yes (configuration, merges, status, coding runs, storage)

With a triage key everything this plugin does works, except that /testosaurus:triage can only recommend: dismissing or merging an issue needs a full-access key, or you do it in the dashboard. A triage key also limits the damage if the key leaks or an agent is misled.

How the key is handled:

  • The key is a sensitive plugin setting. Claude Code masks it in the dialog and stores it in your platform's secure credential store, not in settings.json. It is never written to any file in this repository.

  • Change it with /plugin configure testosaurus@testosaurus.

  • From a shell, the masked /plugin configure dialog is the simplest path. If you prefer the command line, read the key from a hidden prompt and pipe it in, so it is never in a file, in shell history or in a process's argument list (bash or zsh, needs jq):

    printf 'Access key: '; read -rs K; echo
    printf '%s' "$K" | jq -Rsc '{management_key: .}' | claude plugin configure testosaurus@testosaurus --values-stdin
    unset K
    

    Do not put the key in a file such as key.txt, and do not pass it as a command-line argument. Restart Claude Code afterwards so the new key is used.

  • Optional second setting: a default project (id or name) that the commands use when you do not name one.

  • To revoke access, revoke the key under settings → agent access → Access keys.

If /mcp shows plugin:testosaurus:testosaurus as failed, the key is missing, mistyped or revoked. Set it again with /plugin configure testosaurus@testosaurus. The plugin sends the key in a configured Authorization header, so Claude Code reports a rejected key as a failed connection, not as "needs authentication".

Use it

/testosaurus:setup              # once per app: put the widget in the layout
/testosaurus:triage             # what is in the inbox, and what should we do about it
/testosaurus:fix                # fix the top bug or confusing issue, with your approval at each step
/testosaurus:fix 3f9a1c2e...    # or name an issue
/testosaurus:shipped            # after the deploy

All four commands are started by you; Claude does not run them on its own, and their full text only loads when you call them.

What /testosaurus:fix does

  1. Checks your git state and asks if the working tree is dirty.
  2. Picks the top new issue by impact (a bug or a confusing flow first) that has at least one report and no fix yet, or the one you name.
  3. Reads the issue and its agent prompt, shows you a short neutral evidence summary and a fix plan, and asks before editing.
  4. Creates testosaurus/<short-issue-id>, makes the change, finds your test command (package.json, Makefile, CI config), asks you to approve it, and runs it until it passes, or tells you honestly that it cannot.
  5. Shows the diff. On your yes it commits. If gh is available and you agree, it pushes and opens a draft PR whose body has the issue link, the report count, a neutral evidence summary, the tests that ran with their results, and "Found by Testosaurus testers".
  6. Records the fix with record_fix (state proposed, the PR URL or commit SHA, a summary and the tests).

It never merges, never marks a PR ready, never force-pushes and never pushes to your default branch.

Safety

The full analysis is in THREAT-MODEL.md. In short:

  • Reports are written by strangers. Report text, page titles, URLs, console output and the AI analysis built from them are untrusted data. The commands never follow instructions found in them, never run commands, open URLs, install packages or call tools because of them, and never paste secrets or environment values into anything sent to Testosaurus.
  • Suspicious issues are skipped and reported to you. Anything that looks like prompt injection is not worked on; the command tells you which issue and why. Issues with no reports are skipped by default.
  • Your repository only. Edits stay inside the current repo. CI configuration, deploy configuration, auth code, .env* files and lockfiles are not touched unless you ask. Tests are never edited to make a run pass.
  • Narrow tools. Each command lists the Testosaurus tools it may use, pre-approves only read-only Testosaurus tools, and removes the tools it does not need for that turn. No command pre-approves any shell command: your test command, edits, commits, pushes, gh, record_fix, and any status change or merge all go through Claude Code's normal permission prompts, so you see the exact test command before it runs. (Claude Code itself runs a built-in set of read-only commands, such as read-only git forms, without asking.) A pre-approval would last only for the turn that starts the command, which is the turn that reads untrusted report text, and it would be gone by the time tests run after you approve the plan.
  • Keep permissions strict while you use it. Modes that auto-approve edits or commands (accept-edits, auto, bypass) weaken the human checkpoints. Run these commands in the default mode.
  • These are instructions to a model plus Claude Code's permission system. They lower risk; they are not a sandbox. Review diffs before you commit.

What leaves your machine

  • Only MCP calls to https://testosaurus.dev/mcp, each carrying your key as a Bearer header: reading projects, issues and agent prompts, and the payload of record_fix (issue id, state, summary, PR URL, commit SHA, test command, pass or fail, short note). During /testosaurus:setup there is also one read of the public https://testosaurus.dev/testosaurus.version.json.
  • Your code is never uploaded by the plugin.
  • Claude Code itself works as usual: the conversation, including the issue evidence and any files Claude reads for the fix, is processed by your model provider under your own Claude Code settings. The plugin does not change that.
  • If you agree to a draft PR, your branch is pushed to your own git remote with your own git credentials.
  • The widget you add with /testosaurus:setup sends tester reports to Testosaurus from your users' browsers; that is the product, configured in your dashboard. See the privacy policy.

Requirements

  • Claude Code with plugin support (the manifest uses userConfig, a remote HTTP MCP server and skills; claude plugin validate --strict is clean on Claude Code 2.1.296).
  • A Testosaurus server that offers record_fix, list_issues with sort and dir, and the fix_state and fixes fields. Without them /testosaurus:fix still reads and proposes, but recording the fix fails and /testosaurus:triage falls back to the default order and says so.
  • git. Optional: gh for draft PRs.
  • Claude Code defers MCP tool schemas behind tool search, so the first call in a session can take a moment while the Testosaurus tools load.

Footprint

claude plugin details testosaurus lists the four skills and one MCP server. The skills add roughly 300 tokens to every session; a command's full text (about 1.5k to 3k tokens) loads only when you run it.

Troubleshooting

  • /mcp shows the server as plugin:testosaurus:testosaurus. If it shows as failed, the key is missing, mistyped or revoked: set it with /plugin configure testosaurus@testosaurus. If the server is not listed at all, run /reload-plugins --force (adding a server changes the tool list, which Claude Code only applies with --force) or start a new session. In a non-interactive session (claude -p, the Agent SDK) a reload does not connect plugin MCP servers; the server appears in your next session.
  • "readonly key" errors mean the key's scope does not allow that write. Use a triage key for record_fix.
  • The widget shows "Feedback isn't available on this page yet." until the app's hostname is one of its allowed addresses: pick the app in the dashboard's top bar, then settings → install & domains → Allowed addresses.
  • Rate limit: the server allows 120 MCP requests per minute per key.

Updating

claude plugin update testosaurus@testosaurus, then restart Claude Code. Releases are listed in CHANGELOG.md.

Security reports

Please report security problems privately through https://testosaurus.dev and not in a public issue.

License

MIT, © 2026 Goose Data S.R.L. See LICENSE.