Skip to content

avansaber/tailtest-cursor

tailtest-cursor -- AI software testing for Cursor IDE

License: MIT Tests Version Platform

tailtest-cursor is the open-source AI software testing layer for Cursor IDE. It hooks into Cursor's afterFileEdit event: every time Cursor's AI agent edits a file, tailtest queues the file, generates production-shaped scenarios via the R1-R15 rule layer, runs them with your project's existing test runner, and surfaces failures back to Cursor. Hook-based. Deterministic. No prompting required.

Open source (MIT), no telemetry, no SaaS account. Same R1-R15 rule layer + adversarial mode (R15) as the Claude Code, Codex CLI, and Cline variants -- 1,234 plugin tests total across the four hosts.

Read more on tailtest.com · Platform overview · Agent-edit testing deep dive · Cursor docs


Install

From the Cursor Marketplace (recommended):

Search for Tailtest in the Cursor plugin marketplace and click Install. Restart Cursor.

Manual:

git clone https://github.com/avansaber/tailtest-cursor \
  ~/.cursor/plugins/local/tailtest-cursor

Restart Cursor after cloning.


How it works

  1. afterFileEdit hook fires as the agent writes files, recording each path
  2. stop hook fires at turn end and sends tailtest: run tests for: ...
  3. Cursor re-enters the agent -- scenarios are generated, tests are written, run, and reported

Pass = silent. Fail = one line surfaced before the agent moves on.


Quick config

Create .tailtest/config.json in your project root:

{ "depth": "standard" }

Options: simple (2-3 scenarios), standard (5-8, default), thorough (10-15).

See tailtest.com/docs/config for all options.


Other tailtest variants

Same R1-R15 rule layer, same adversarial test mode, different host integration. This repo is the Cursor variant.

See tailtest.com/demo/cursor for a live walkthrough of this variant, tailtest.com/comparison for a feature matrix across all four, or tailtest.com for the project home.


License

MIT

About

tailtest for Cursor: auto-generates and runs tests every time the agent edits a file. Same R1-R15 rule layer as Claude Code variant + adversarial test mode.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages