Back to Browse

Tewip MCP Server

Developer ToolsModerate5.3MCP RegistryLocal
Free

Server data from the Official MCP Registry

Proves software work: triages failing tests, checks whether a test can fail, and reads migrations.

About

Proves software work: triages failing tests, checks whether a test can fail, and reads migrations.

Security Report

5.3
Moderate5.3Moderate Risk

Tewip is a developer test-triage CLI, VS Code extension and MCP server whose code shown here does what its README describes, with no malicious patterns, hardcoded credentials or unsanitized shell execution in the excerpts provided. The main items for users to know are an opt-in npm registry version check, optional transmission of source code to hosted AI providers, and the spawning of a configurable tewip executable from the editor. The MCP server implementation and several referenced modules were truncated or not provided, so those were not reviewed. Supply chain analysis found 8 known vulnerabilities in dependencies (1 critical, 4 high severity). Package verification found 1 issue.

10 files analyzed · 16 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

File System Write

Writes or modifies files on your machine. Check that this is expected for the tool.

process_spawn

Check that this permission is expected for this type of plugin.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Optional. Turns on the AI layer for failures the deterministic rules cannot decide. Without it only the rules run, and Tewip says which layer decided each answer.Required

Environment variable: OPENAI_API_KEY

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "tewip-ai": {
      "command": "npx",
      "args": [
        "-y",
        "tewip-ai@0.92.0"
      ],
      "env": {
        "OPENAI_API_KEY": "your-openai-api-key-here"
      }
    }
  }
}

Some servers take additional arguments. See the repository for details.

Documentation

View on GitHub

From the project's GitHub README.

Tewip

Tewip (Uyghur téwip, تېۋىپ: healer, doctor) is the layer that proves software work - written by a person or by an agent.

Created and maintained by Mamuti Aishan (Hasan) (@hmamut39).

It finds why each failing test failed (a real bug, a flaky test, the environment, test data, or a changed selector), says whether a test could ever fail at all, breaks your code to find out whether the tests would notice, reads what a migration will do to a live database, and gives one verdict on whether a change is done. Every answer carries its evidence and names what decided it: a deterministic rule, the AI model, or a person's correction.

What makes it worth installing is what it refuses to say. It answers "cannot say" rather than guessing, it will not narrow a test run it cannot prove safe to narrow, and every report ends with what it did not check. Every number below says where it came from, and the two columns come from different places. Precision is measured on strangers' real code — the projects pinned in corpus/expected.json, with every accusation checked by hand — except for eight rows that count planted decoys instead. The table's wording does not reliably tell you which is which, so engine/evidence/confidence.ts names the pinned repositories for every row that has them, and a row with none is a row counting decoys. Recall is measured on planted controls: each one twice, in the shape a published standard warns against and in the shape it recommends. It has to be, because recall needs the complete list of what is actually in the file, and nobody can know that for a stranger's repository — a check that found nothing there would be indistinguishable from a file with nothing in it. vouch is the exception: its recall comes from mutating real source and watching which real tests stop catching the mutation.

It works for every stack: Node.js (node:test, Jest, Vitest, Mocha), Python (pytest, including unittest-style tests), Java (Maven Surefire, JUnit 5), Go (gotestsum), .NET (dotnet test, TRX and JUnit), Ruby (RSpec), PHP (PHPUnit) and Rust (cargo nextest) — each of those runners is run for real in CI by .github/workflows/polyglot-fixtures.yml and Tewip is pointed at the report it actually produced (the full list), plus Playwright in depth with traces, selector drift and verified fixes. Two things that list does not claim: a native TestNG testng-results.xml is not a format Tewip reads — it says so and tells you to point it at the Surefire report instead — and Kotlin is not among the runners CI exercises, though Kotlin under Maven or Gradle writes the same JUnit XML that Java does. It also reads the failure wording of the browser and component-test tools on top of those runners (Selenium, WebdriverIO, Cypress, Testing Library for React, Vue and Angular, Vue Test Utils, jest-dom and Jasmine), each read from the wording that tool really prints — the messages are in engine/test/driver-errors.test.ts, including variants taken from public issue threads, and every one of them runs on every commit. What this does not claim: the wordings of these seven tools appear nowhere in the labelled failure data Tewip's triage accuracy is measured on — checked, and it is zero across the 8,041 records collected there, because those are all Playwright projects (node eval/driver-wordings.ts). The rules for these tools are checked against the wordings they print, not against a labelled corpus of their own.

WhereHow
Terminalnpm install -g tewip-ai, then tewip explain report.xml, tewip ci owner/repo --pr 12, tewip mcp
VS Code, Cursor, Windsurf, VSCodiumthe Tewip extension (download): registers Tewip with the editor's AI assistant and adds 23 commands - explain a report, why CI failed on this branch, the risk review of your change, which flaky tests to quarantine, the security check, what a migration will do to a live database, whether everybody can use the interface, and the rest
JetBrains, Claude, other AI assistantsadd the MCP server tewip mcp: 25 tools, including has this happened here before?, is this requirement covered and passing? and what should be done next about this goal? (see editor setup)
Any model, including noneOpenAI, Claude, Gemini, Azure, or a model on your own machine with Ollama - no account, no key, and no source code leaving the building: TEWIP_PROVIDER=ollama. Three quarters of what Tewip answers calls no model at all. How
GitHub CIthe Tewip Action: a comment on every pull request, an optional merge gate, verified fix PRs (QUICKSTART)

Formerly triage-agent: the repository moved to hmamut39/tewip, and GitHub redirects the old address. See ROADMAP.md for the plan.

Status: built, and measured on other people's code. Tewip collects failures from any framework, diagnoses them with rules first and a model only for what rules cannot settle, and turns that into work for each role: a CI comment and merge gate, test plans and verified tests, a flake dossier, a PR-risk review, security scanning, tickets in Jira, Rally, GitHub Issues, Azure Boards or Linear, checks generated from a Figma design, specifications written for people, and - opt in, and only when proved - fixes to test or application code. The fix loops are built and measured, not planned: on real labelled CI failures every one of 17 locator suggestions was the locator the developers themselves wrote, a wait fix is kept only after three passes in a row, and a change to application code is kept only when the failing test passes and the whole suite still does. It runs live in GitHub CI and answers questions from AI assistants through MCP. Accuracy, measured rules-only on 15 November 2026 across eight labelled datasets of real CI failures, ranges from 72.9% (Gutenberg held-out) to 100% (Penpot, on only 5 cases); the fresh Gutenberg set, frozen before labelling, is 83.1%. The per-dataset table is in engine/measured.ts and re-derives with node eval/dataset-accuracy.ts. Three things that figure is not. It is not the 86.1%–99.7% this file used to claim: those were measured with the model layer on, and not one of them reproduces today. The rules layer was unchanged wherever this project recorded it until Phase 179, which added one rule and is described below. What the model layer does is narrower than this file claimed for a day, in both directions. It is asked only what the rules refuse, and it mostly declines: across 1,961 labelled failures from seven projects it was asked 148 cases, answered 31 and refused 117, and of the 31 it answered 23 were right (74%). The sentence here once read "right on 7 of the 39 cases it decides" — 39 was what it was asked. Being asked is not deciding, and refusing is not failing. What it is not is a way to raise the headline: it declines so often that the rules-only figure above is the one worth quoting, and the 93.4% this file once claimed still does not reproduce. Per cause it is uneven — REAL_BUG 5 of 5, ENV 17 of 23, TIMING 1 of 3 — and it named LOCATOR_DRIFT and TEST_DATA thirteen times between them while being right none of those times, so since 15 November 2026 it is not allowed to claim either. That change left accuracy identical and cut the wrong causes people are shown from 21 to 8. The table is in engine/measured.ts and re-derives with node eval/model-layer.ts. It is not re-derivable from a clean checkout, because the labelled failures are gitignored and are not in this repository. And it is not what the engine does per category — it finds 44 of 119 real bugs — better than one in three, up from one in seven on 15 November 2026 — and refuses most of the rest, which is the number actually worth reading, and it is in eval/README.md. That rise came from a single rule: where no other rule applies and a failure is an assertion about a value that names no element, on a test whose history is a clean failing streak, it is a real bug. Measured across every labelled corpus it fires 27 times and is right 27, including on a corpus it was not chosen from, and the number of failures put in the wrong category did not move. Its first draft had no history guard, scored 100% on the four harvests it was chosen from, and was right 4 times out of 19 on the one it was not; that is what the guard is for.

If your CI already writes a coverage report, point Tewip at it

Tewip decides what a test reaches by following imports, which is a fact rather than a name match - and which cannot see a test that posts a GraphQL query, hits an HTTP route or renders a controller. On a Django, Rails or Spring codebase that is most of the suite, so tewip done used to answer "cannot say" to the question that matters most.

It is narrower than that, and the report now says so. Following an import means finding from x, import x or require(x) in a test. C# writes using Bit.Core;, Go imports a package and never a file, in Java an import is never a path, and Ruby's require_relative is not require(. Sampling 25 source files evenly through each corpus repository, not one import resolved in keycloak (1,958 test files), bitwarden-server (1,173), gin (38) or discourse (765), against 26 of 25 in immich and 10 of 25 in dispatch. So in those languages a zero means not read, and done reports it as "not checked" with that reason rather than as "nothing tests this".

A coverage report settles it, and CI almost certainly produces one already. Nothing to configure:

formatwritten byfound at
lcov.infoJavaScript, TypeScript, Rust, Go, C++coverage/lcov.info, lcov.info
Cobertura coverage.xmlpytest-cov, coverlet (.NET), simplecovcoverage.xml, coverage/coverage.xml
JaCoCoJava, Kotlintarget/site/jacoco/jacoco.xml, build/reports/...
CloverPHPUnitclover.xml, build/logs/clover.xml

With one present, done stops guessing:

### Is the changed code tested?

Yes: the suite executes saleor/graphql/utils/sorting.py.

_Decided by coverage.xml, which records what ran rather than what imports what._

and it will say the opposite just as plainly - "is in coverage.xml with no line executed, so the suite runs none of this" is a not ready, not a shrug.

What a coverage report cannot do. It records which lines ran during the whole suite, not which test ran them, so it answers "is this code tested" and not "which tests would notice a change here". tewip pick still narrows from imports and still refuses to narrow when it cannot show the rest are unaffected. A report from a different checkout is ignored rather than believed: if the files it names are not on disk, Tewip says nothing instead of reporting the whole change as untested.

Running with no data leaving the building

A hospital, a bank or a government department usually cannot send source code to a hosted API, and that is most of who this is built for. Tewip runs against a model on the same machine:

# once
curl -fsSL https://ollama.com/install.sh | sh     # or ollama.com for Windows and macOS
ollama pull qwen3:8b

# then
export TEWIP_PROVIDER=ollama
tewip done --diff main...HEAD

No key, no account, no network call off the machine. TEWIP_BASE_URL points the same path at LM Studio, vLLM, llama.cpp's server, or anything else that speaks the OpenAI shape.

What changes and what does not. The deterministic layers - vouch, schema, access, perf, standards - call no model at any time, with any provider, and are unaffected. Only the parts that need judgement use one: explaining a failure, writing a test, drafting a plan. A smaller local model is less accurate at those than a frontier one, and Tewip says which layer decided every answer, so the difference is visible rather than hidden.

A local model is also less likely to be constrained to the schema it was asked for: some backends accept the request and quietly do not enforce it. Tewip reads a reply that arrives inside a markdown fence or after a sentence of preamble, and still refuses one with no JSON in it at all.

What it costs

Most failures never reach a model. On 3,556 real CI failures from six public projects, the deterministic rules answered 75.1% on their own - and on the labelled ones they answered correctly 1,979 times out of 2,012 (98.4%). A rule-answered failure costs nothing, explains itself, and gives the same answer every time.

Only the remaining quarter is sent to a model, so triaging 1,000 real failures costs about $1.12 at gpt-5.4-mini's published price. That is measured, not estimated: three real uncached calls on held-out failures billed 3,624 prompt and 499 completion tokens each. A real week costs less, because a failure that repeats is answered from cache, and a failure someone has corrected never goes to the model again.

Tewip prints what every command costs, caps its own spend, and works with no key at all - the rules run on their own and everything they cannot settle is left as UNKNOWN rather than guessed.

Start here

npm i -g tewip-ai
cd your-project
tewip

tewip on its own looks at your project and names the two or three commands that will tell you something, with your own paths in them — and says plainly what it cannot answer here. It reads the directory and stops: nothing is run, nothing is written, about a second.

Here is what Tewip can tell you about **this** project, in the order worth doing.

**1. `tewip vouch`**
282 test files here (282 JavaScript or TypeScript). This reads them and names the ones
that cannot fail - no model, a second or two.

**2. `tewip schema --diff main...HEAD`**
165 migrations here (165 SQL). This says what a change would do to a live database
before it runs.

## What it will not do here
- No k6, JMeter or Lighthouse report was found. Tewip judges one you produce; it does
  not run load tests itself.

Everything below is the full list, for when you want it.

Use it in your project

Giving it to your team (or another company): TEAM-GUIDE.md — what to install, what each role uses it for, and what it never does.

Putting it on a real repository: QUICKSTART.md — ten minutes, copy-paste, and what to check on the first failing run.

1. In GitHub CI (developers, SDETs, DevOps)

Tell Playwright to write a blob report in CI. It's a built-in reporter, so there's no triage-agent code in your config:

// playwright.config.ts
reporter: process.env.CI ? [['list'], ['blob']] : 'list',
use: { trace: 'retain-on-failure' },

Then add one step after your tests:

permissions:
  contents: write        # only needed for autofix
  pull-requests: write
  issues: write
  actions: read          # lets it read the failed job's log when no test report was written

steps:
  # ... checkout, install, npx playwright test ...
  - name: triage-agent
    if: always()
    uses: hmamut39/tewip@main
    with:
      openai-api-key: ${{ secrets.OPENAI_API_KEY }}   # optional: without it only the rules run
      autofix: 'true'                                  # optional: verified locator-fix PRs

Run the verdict verbs in CI (Phase 38, new) — one step, as many checks as you want:

- uses: hmamut39/tewip@main
  with:
    mode: check
    checks: schema, access, vouch     # or: done, standards, perf, or `all`
    gate: blocking                    # optional: fail the job on what a verb calls blocking

Every check runs even when an earlier one found something, so a pull request gets the whole picture in one push. The gate is deliberately narrower than the report: it fails only on what the verb itself calls blocking, because a gate that fires on advice teaches a team to pass continue-on-error. A check with nothing to look at says so and never fails the job — no migrations in the diff is not a pass.

Use @main or v0.46.0 or later. Every tag before that shipped an action.yml whose description contained an unquoted colon, which YAML reads as a nested mapping — the runner answered "Failed to load action.yml" and the action never ran. It is fixed, and there is now a test over the manifest so it cannot come back.

On every run, the action:

  • Developers: posts one diagnosis comment on the pull request and keeps it updated. For each failure it says whether the change likely caused it, why, and what to do next.
  • SDETs: writes the triage board into the job summary.
  • DevOps: collects environment failures (server errors, connection resets, outages) in one GitHub issue, and each new run adds a single grouped comment to it.
  • The tests in the pull request: on a PR it reads the test files the change touched and says which of them could never fail - an unfinished expectation, a value compared with itself, a test that discards its own failure, one that never runs. It says nothing when they are all sound, and it says it even on a green run, because "all tests passed" is the exact sentence that needs qualifying when one of them cannot fail. Needs fetch-depth: 0 on actions/checkout so the diff can be read; without it the section is skipped rather than guessed at. Any such test also enters the attestation as a refusal, so a release decision taken from the bundle cannot rest on a test that proves nothing.
  • What the change would slip past (prove: true): breaks the source files the pull request touched in small deliberate ways, runs the tests that cover them, and reports every change none of them noticed - "these 2 changes to your code would have slipped past your tests", with the lines. Off by default because each change costs a real test run; prove-budget (default 300s) caps the whole thing, and it says which files it did not reach rather than implying they were clean. Every file is put back exactly as it was. Each unnoticed change also enters the attestation as a refusal: a line nothing checks is not a line this bundle can claim was verified.
  • Evidence, every run: the Action writes an attestation into its artifact - the claims with their evidence and which layer decided each, what Tewip refused to decide, and what it did not check at all. Nothing enters it that Tewip did not verify itself, so a release decision can be taken from it without opening CI.
  • Fixes (autofix: true): for drifted locators that the deterministic rule matched to a renamed element, it rewrites the locator, re-runs that test, and opens a separate pull request with the changes that passed. It never merges and never edits application code.
  • Every role: uploads all role views as the tewip-report artifact.
  • When the job dies before any test runs (an image that would not pull, a runner out of disk, a service container that never came up): it reads the failed job's log and names the cause, instead of leaving a red X with no explanation.
  • History: keeps the run history in the Actions cache, never in git.
  • Corrections: reply to the agent's comment with /triage CATEGORY #n reason (e.g. /triage TIMING #2 flaky on CI). It stores that with the history and, next time that test fails the same way, gives the person's answer instead of its own, naming them and their reason. A corrected failure also costs nothing: it never goes to the model again.

For senior engineers, architects and leads, add a scheduled workflow with mode: report, for example weekly. It builds the engineering-quality, architecture and risk-digest views from the stored CI history, reusing earlier diagnoses so it makes no repeat AI calls. The views are kept in one GitHub issue that each report updates:

on:
  schedule: [{ cron: '0 6 * * 1' }]
  workflow_dispatch:
permissions: { contents: read, issues: write }
jobs:
  report:
    runs-on: ubuntu-latest
    steps:
      - uses: hmamut39/tewip@main
        with: { mode: report }

The report reads the history cache of the branch it runs on, usually the default branch.

The repository needs "Allow GitHub Actions to create and approve pull requests" enabled for fix PRs. Pull requests opened by the workflow token don't trigger CI themselves; the agent verified each change by re-running the test before opening the PR. It was first proved end to end on a private practice repository, which is why there is no link to click here. If this repository is private, other repositories can only use the action when Settings → Actions → Access allows it.

As a Claude Code plugin (no account, no marketplace approval)

claude plugin marketplace add hmamut39/tewip-plugin
claude plugin install tewip@tewip

That is the whole publication process. A marketplace is a .claude-plugin/marketplace.json file in a git repository, so Tewip publishes one at hmamut39/tewip-plugin - nobody has to approve it, and there is nothing to pay for. That repository holds the plugin only: a manifest, five skills and a pointer to the npm package, so it stays small. The plugin brings Tewip's MCP server and five skills that tell Claude Code when to use it: before claiming a change is done, when a test fails, when a change touches a migration, when something may have got slower, and when a change touches an interface somebody has to be able to use. It costs about 410 tokens per session until a skill is actually needed.

The MCP server runs from the published package, pinned to the plugin's own version (npx -y tewip-ai@<the plugin's version> mcp), so the plugin stays small and a plugin you pinned runs the Tewip you pinned. scripts/sync-version.ts moves that pin on every release, because a pin maintained by remembering goes stale and a stale pin reads as deliberate. It used to say @latest, and Tewip's own ASI04 check is what found it.

The editor extension (VS Code, Cursor, Windsurf, VSCodium)

Open the Extensions pane and search for "Tewip". It is in both registries, so that works in VS Code, Cursor, Windsurf, VSCodium, Gitpod and Eclipse Theia:

Or install the .vsix attached to any release with Extensions: Install from VSIX…. Either way it needs the command line: npm install -g tewip-ai.

Press Ctrl+Shift+P and type "Tewip" for: Is this work done?, Can everybody use this?, Could these tests ever fail?, Would the tests catch a bug in this file?, Which tests could notice this change?, What will this migration do to a live database?, Why did CI fail on this branch?, and more. The editor's AI assistant also picks Tewip up as an MCP server with nothing to configure.

2. From any AI assistant, through MCP (the whole IT team)

mcp/server.ts is a read-only Model Context Protocol server. Anyone on the team can ask their own assistant about test failures, in the editor or chat they already use:

Ask your assistantTool it uses
"Why did CI fail on PR 12 in our-org/web?"github_ci_report: the latest CI report for that PR, plus any verified fix PR
"Explain the failing checkout test"explain_failure: root cause, confidence, evidence, history on this commit vs others, next action
"What should I fix first from the last run?"triage_board (SDET) · pr_impact (developer)
"Is the test environment broken?"environment_report (DevOps / SRE)
"Can we release?"release_readiness (business / UAT)
"Where is our test suite fragile?"quality_report (senior / principal) · architecture_report (architect) · risk_digest (lead)
"Write a test plan for the checkout feature in C:\work\shop"test_plan: risks and scenarios grounded in that project's tests, code and pages; saved in its .tewip folder

Setup, after npm install:

  • Claude Code in this repo: .mcp.json is already here, so approve tewip when asked. From anywhere else, run claude mcp add tewip -- tewip mcp (installed), or claude mcp add tewip -- node /path/to/tewip/mcp/server.ts (from a checkout).
  • Claude Desktop, Cursor, VS Code, and other MCP clients: add a stdio server with command tewip and args ["mcp"], or command node with args ["/path/to/tewip/mcp/server.ts"] from a checkout.

github_ci_report uses the gh CLI login on your machine. The other tools read the datasets under data/, and the AI layer uses OPENAI_API_KEY from .env.

Use it from your editor (any IDE that speaks MCP)

VS Code, Cursor, Windsurf and VSCodium: install the Tewip extension (extensions/vscode, packaged as tewip-<version>.vsix: Extensions → … → Install from VSIX). It registers Tewip as an MCP server by itself, so the assistant can use it with no configuration, and adds 23 commands to the palette — Explain a test report…, Why did CI fail on this branch?, Is this work done?, Could these tests ever fail?, What will this migration do to a live database? and the rest; type "Tewip" to see them all.

Every other MCP client (JetBrains IDEs 2025.2+, Claude Code, Claude Desktop, or an editor without the extension) takes one entry. With Tewip installed from its release file (npm install -g tewip-<version>.tgz), the command is simply tewip mcp; from a checkout, point at cli/tewip.ts:

Point the entry at this checkout with an absolute path (the server resolves its own data, so the editor's working directory does not matter). VS Code uses its own shape, with a servers key and a type; put it in the workspace's .vscode/mcp.json, or in your user-level configuration (command MCP: Open User Configuration) to have it in every window:

{
  "servers": {
    "tewip": { "type": "stdio", "command": "tewip", "args": ["mcp"] }
  }
}

Cursor, Claude Desktop, Windsurf and most other clients use the mcpServers shape (Cursor: Settings → MCP):

{
  "mcpServers": {
    "tewip": { "command": "tewip", "args": ["mcp"] }
  }
}
  • JetBrains (IntelliJ, WebStorm, PyCharm 2025.2+): Settings → Tools → MCP Server.
  • Inside this repository nothing is needed for Claude Code: .mcp.json is already set up.

Then ask, in plain language: "why did CI fail on my PR?", "which tests are flaky in checkout?", "is the main branch safe to release?". You can also ask it to "write a test plan for the checkout feature in C:\work\shop": the test_plan tool plans from that project's real tests, code and pages, and saves the plan in its .tewip folder. Every other tool is read-only, and github_ci_report reads the report the Action uploaded, so you can ask about a repository's CI without cloning it or opening the Actions page (it uses your gh login).

Plan and write tests (Phases 6 and 7, new)

Run these inside your project. Both need OPENAI_API_KEY, and both print what they cost.

tewip plan "Checkout: a signed-in shopper pays by card and gets a receipt" --url http://localhost:3000/checkout
tewip write                        # tests for the plan's "to automate next" scenarios
tewip write --only CO-002,CO-004 --framework pytest
  • tewip plan reads what is really there: the tests you already have (in any language), the change (--diff main...HEAD), the live pages (what a user sees on each page, via Playwright), and the failures Tewip has diagnosed in this project before. The plan lists risks and scenarios by priority. A claim that a scenario is "already covered" is checked against your real test names, and dropped if no such test exists. Saved to .tewip/plans/ as Markdown to review and JSON for write.
  • Does a plan catch real bugs? Measured on 18 real pull requests that were later found to have broken something: the repository is fetched at the pull request's own head, the plan written from the diff a reviewer saw, and nothing about the bug is known to it. In 8 of the 9 pairs that could be judged, a scenario named the bug - in matrix-org/complement, NLnetLabs/domain, Bioconductor/rhdf5, Try/OpenGothic and others. One pull request was titled "Resolve nightly warnings" and the plan still found the behaviour change hidden inside it. The caveats are real and written out in ROADMAP.md: nine judged pairs is a small sample, Claude did the judging rather than each project's engineers, and the one miss is the interesting case - when a pull request's intention is wrong, a plan grounded in that intention agrees with it.
  • tewip write writes each scenario as a test in your framework and style: Playwright, Cypress, WebdriverIO, Angular, Jest, Vitest, pytest (with Selenium or Playwright), JUnit on Maven or Gradle (Selenium, Spring Boot), .NET or Go. It copies the style of an existing test and uses only elements seen on the real page. Front-end apps get component tests the way their own tests are written: React, Vue or Svelte with Testing Library under Jest or Vitest, and Angular through ng test (Karma and Jasmine, or Vitest). A project with both e2e and unit tests gets browser tests when the plan read pages, and unit or component tests when it did not. Then it runs the test. A draft is kept only if it passes every run (3 by default) and fails once its main check is broken on purpose, because a test that cannot fail is worse than no test. A failing draft is repaired from the real error, twice at most. If the test looks right and the app does something else, Tewip reports a possible bug instead of weakening the test until it passes. Kept tests are new files beside yours, for you to review and commit; nothing is committed, and no application code is touched.

Check the page against the design (Phase 11, new)

tewip design "https://www.figma.com/design/KEY/Checkout?node-id=12-34" --url http://localhost:3000/checkout
tewip design frame.json --frame "Sign in"     # a saved frame, no Figma token needed

Tewip reads the frame (Figma's REST API, read only, TEWIP_FIGMA_TOKEN) and the running page (its accessibility snapshot, which is what a screen reader and a test both see), and says where they disagree: the design says button "Sign in", the page says button "Log in". It checks the words the design specifies, the controls its layer names imply, and the regions its sections imply - never pixels, colours or spacing, because a design tool and a browser do not measure those the same way. No model is called, so it costs nothing and answers the same way every time.

Measured on four real design/page pairs (a public repository's Figma exports and the pages built from them): 38 checks, 0 differences reported on pages that match their design, 11 of 11 real drifts caught (a renamed control, a dropped sentence, a word swapped inside a sentence, a region that lost its markup) and 5 of 5 harmless changes ignored (capitals, extra spaces, a button implemented as a link, reordered sections). No designer has judged the output yet, so the roadmap's own metric is still open.

More runners: Robot Framework, JMeter, k6 (new)

Tewip now reads Robot Framework's output.xml, JMeter's .jtl and a k6 summary as well as JUnit XML, TRX, NUnit and Playwright's own reports. A load test does not fail test by test, so a JMeter report becomes one line per request ("4 of 5 requests failed, an assertion failed") and a k6 run becomes one record per crossed threshold, with the number that crossed it.

Appium and Selenium need no importer: those suites report through Mocha, pytest or JUnit, which Tewip already reads, and their own error messages ("Could not find a connected device", "stale element reference") are already understood.

Each reader was checked against real reports published in public repositories, which is how three defects were found before release - a Robot timestamp that is not a date, k6's numbers living under values, and a JMeter line that read "mostly 200" when an assertion had failed.

Tell it when it is wrong (new)

tewip correct diagnosis "checkout charges twice" TEST_DATA "the fixture has stale prices"
tewip correct flaky "adds an item" fix-now "it is a real race, not flakiness"
tewip correct security "src/config.ts:12" noise "that is a sample key in a fixture"
tewip correct --list

Tewip answers with your decision from then on, and says it was yours: "TEST_DATA, confidence 1.00, source: corrected by a person". Corrections live in your project, so they belong to the team; the newest one wins, so changing your mind is just saying so again.

A correction changes what Tewip says, never what it does on its own — it will not change code, quarantine a test or file a ticket because you corrected it.

What your corrections add up to (new)

tewip learn                      # where Tewip is systematically wrong, from what you corrected
tewip learn --labels labels.jsonl  # your corrections as labelled examples, to measure a change against

One correction fixes one failure. Twenty of them say which rule to change. tewip learn groups them - "45x said REAL_BUG, you said TIMING; rule locator-drift decided 27 of them; from 11 different tests" - and points at the rule to read, with three of the real failures underneath.

It will not pretend. Fewer than three corrections of the same shape is "not yet a pattern", not a finding; when no single rule is behind a group it says a rule is missing rather than blaming one; and it tells you how many different tests a pattern came from, because one flaky test corrected six times is one piece of evidence, not six.

Build a feature, test first (new)

tewip build "naturalsize should take a sep argument that goes between the number and the unit"
tewip build --issue PROJ-123    # build from the ticket's own description and acceptance criteria
tewip build "..." --pr          # commit the proved work on its own branch, open a draft PR
tewip build "..." --dry-run     # prove it, show the patch, leave nothing on disk

Tewip writes the test first and runs it. If that test passes, it stops and keeps nothing — a test that passes before the feature exists is testing nothing. Then it writes the smallest code that makes the test pass, and keeps the work only if the new test passes and nothing that was passing has started to fail. Otherwise every file goes back byte for byte, including the test it wrote. Nothing is ever committed.

Tried on two real public projects: it added a trailing-slash rule to unjs/ufo (4 lines, TypeScript, $0.18) and a sep argument to python-humanize (2 lines, Python, $0.10), each with its own failing-then-passing test and the project's whole suite still green. Asked for something that already worked, it stopped after one model call and kept nothing.

It also refuses a feature that does not belong here at all. Handed a real Apache ticket about a Flink HTTP sink, a URL library got an "HTTP sink" built into it - test passing, suite green, every proof rule held, because when Tewip writes both the test and the code it can always make a self-consistent pair pass. So before writing anything it now asks whether the words of the feature mean anything in this repository, and refuses for free when they do not.

The old promise was "it can't touch your code". The new one is "it can't change your code without showing you it works".

Before anyone reads the diff (new)

tewip review --diff main...HEAD

Which tests cover this change and how (they import the file, they import the package that exports it, or their words merely match); which of them have flaked before, so a red run is not blamed on your change; what has gone wrong in these areas before; what nothing tests at all; and the command to run the telling tests first. From your project's own history, so it costs nothing.

Measured on 16 real commits from two public projects, where the developers changed source and its test: given only the source files, Tewip named the right test in 16 of 16, ranked it first in 12.

It also shows the checks a change renegotiates — every test assertion the diff rewrites, withdraws or renames, with the old text beside the new one. A test written earlier is behaviour someone agreed on, and this is the one thing in a review that the change's own description cannot account for: everything else reads the change's account of itself. It never passes judgement — tests change for good reasons — it asks which of them the author intended.

Alongside it, the decisions a change alters outside its tests: a guard that refused something, a value other code falls back on, a limit that decides behaviour under load, a version or runner pinned on purpose. Same rule - only things that already existed, never additions - and the same question rather than a verdict.

Both came out of a measurement rather than an idea. Of 18 real pull requests later found to have broken something, the one Tewip's test plan missed was one whose intention was wrong: it changed a freshness rule, changed the tests to match, and was reverted the next day.

What these checks are not is a predictor, and the measurement says so plainly. On 14 pull requests known to have caused a regression they speak up on 4; on 30 ordinary merged pull requests from the same repositories, on 9 - 29% against 30%. A change that alters an agreement is not more likely to be broken. What they do is put those alterations in front of a person: on the ordinary set they surfaced 23 of them, among which a raise SystemExit guard that was deleted, a semaphore dropped from 4 to 1, and a CI runner image moved. No model is called, so this costs nothing.

Which flaky tests to quarantine, and what they cost (new)

tewip flaky --days 30        # the dossier: quarantine, fix, or watch - with the evidence
tewip flaky --apply          # writes the quarantine line into the test file

Other tools count retries. Tewip already decided why each failure happened, so it can say: this test failed in 161 of 647 runs across 109 different branches - that is the test, not your change - and quarantining it gives the team back 148 CI minutes a week. It refuses to hide a test that mostly fails (that one is broken, not flaky) and never quarantines a test whose failures looked like a real bug.

Measured on three real projects' CI history (Gutenberg twice, Supabase): 76 tests proposed for quarantine, zero of them containing a single real-bug failure, giving back roughly 34, 148 and 1,178 CI minutes a week. It also tells you when a quarantined test has stopped failing and should come back - the half nobody ever does.

Bugs filed back, and test cases where your team keeps them (Phase 10, completed)

tewip bugs report.xml --project SHOP             # shows what it would file; nothing is created
tewip bugs report.xml --project SHOP --create    # files them
tewip jira plan.json --export xray --out cases.csv    # or --export zephyr

Documentation truncated — see the full README on GitHub.

Reviews

No reviews yet

Be the first to review this server!