# RedMachine: full text of redmachine.dev Every page, blog post and answer of the site as plain text, one after another. RedMachine is made and sold by XETENET LLC, Oregon, USA. Support: support@redmachine.dev. --- Page: RedMachine: do your tests check anything? URL: https://redmachine.dev/ Updated: 2026-11-27 # Your tests pass. Do they check anything? RedMachine breaks each line you changed, one at a time, and runs your tests. If no test fails, no test was checking that line. Buy RedMachine, $79 (https://buy.polar.sh/polar_cl_9PeGRWGzDBp8oIPeg8fO4kZCpICg7VV9W3H8a0oXIdw) ## Why An AI assistant can write code, write the tests, run them and report that everything passes. A test can run your code and still pass when the code is wrong. A test that never fails proves nothing. RedMachine finds the changed lines that no test would catch if they were wrong, and gives a plain PASS or FAIL. Why can't my existing agent just do this for me? (https://redmachine.dev/faq/) ## What a run looks like ``` KILLED cart/pricing.py:4 [+ to -] KILLED cart/pricing.py:5 [> to <] SURVIVED cart/pricing.py:6 [+ to -] every test passed with this line broken line: cost = cost + 15 broken as: cost = cost - 15 counted 8: killed 6, survived 2, unviable 0, not tried 0 RESULT: FAIL. 2 changed lines are not proven by any test. ``` KILLED means a test failed when the line was broken, so a test checks it. SURVIVED means every test still passed. Hand the list to your assistant, have it write the missing tests, and run it again until the result is PASS. ## Checking it does what you asked 1. Tell your agent what you want. 2. Your agent writes the code and a test named for each thing you asked for. 3. RedMachine breaks the code and proves each of those tests can fail. 4. The receipt lists the tests by name. Anything you asked for that is not on the list was not checked. Hand the receipt to a second agent, or read it yourself. How this works (https://redmachine.dev/faq/). ## What you get - One program file for macOS (Apple silicon and Intel), Linux (x86_64 and arm64), and Windows through WSL 2. Nothing else to install. - Thorough by design: every changed line gets its own run of your tests. - Rust, Python, JavaScript and TypeScript, and Go built in. Swift and Xcode projects in preview: iPhone, iPad, Apple TV and Mac apps, with Apple Watch and Vision Pro coming soon. Other languages with your own commands. - No AI inside and no randomness: the same commit, commands and test results give the same proof id on the same kind of machine. - A receipt of every run that names the tests that ran and the tests that caught each broken line, when your test runner prints names. - An instruction to paste into your assistant so it does the work. ## What it is not - It does not write tests and it does not find bugs by itself. It shows which changed lines your tests do not check. - It is mutation testing, narrowed to the lines of one change. The idea is not new. - It runs your tests against code it has broken on purpose. If your code deletes files or sends anything, run it in CI or a container. ## Price $79 while Swift and Xcode support is in preview. $99 when it leaves preview. One payment, no subscription. Two keys per purchase, one machine at a time per key. Buy RedMachine (https://buy.polar.sh/polar_cl_9PeGRWGzDBp8oIPeg8fO4kZCpICg7VV9W3H8a0oXIdw) More to read: the blog (https://redmachine.dev/blog/) and answers (https://redmachine.dev/answers/) to common questions. --- Page: Buy RedMachine: a licence with two keys URL: https://redmachine.dev/buy/ Updated: 2026-11-27 # Buy RedMachine $79 while Swift and Xcode support is in preview. $99 when it leaves preview. One payment, no subscription. **Polar** is our seller of record. It takes the payment, handles sales tax and sends your licence key. Buy RedMachine, $79 (https://buy.polar.sh/polar_cl_9PeGRWGzDBp8oIPeg8fO4kZCpICg7VV9W3H8a0oXIdw) ## After you buy 1. Download the program for your machine from the releases page (https://github.com/xetenet/redmachine/releases/latest). 2. Run `redmachine activate YOUR-KEY` on the machine, one key per machine. This is the only time RedMachine uses the network. Each purchase comes with two keys. Each key works on one machine at a time. Use both yourself, or give one to someone. To move a key to another machine, free the old one on your Polar order page. You do this yourself; we don't do it for you. All sales are final. See the terms (https://redmachine.dev/terms/). --- Page: RedMachine terms of sale and licence URL: https://redmachine.dev/terms/ Updated: 2026-11-27 # Terms ## What you buy A licence to use RedMachine. Each purchase comes with two keys. Each key works on one machine at a time. Use both yourself, or give one to someone. To move a key to another machine, free the old one on your Polar order page. You do this yourself; we don't do it for you. ## All sales are final All sales are final: a download cannot be returned. Read what RedMachine is and is not before you buy, and write to us first if you are unsure it fits. ## What you may not do You may give one of your two keys to another person. You may not resell or publish the program or a licence key. ## No warranty RedMachine runs your tests against code it has broken on purpose. A broken line can do whatever your code can do. If your code deletes files, stops processes or sends anything, run RedMachine in CI, a container or a throwaway account. The software is provided as is, without warranty of any kind, and XETENET LLC is not liable for loss arising from its use, to the extent the law allows. ## Seller of record Orders are processed by Polar, which is the seller of record and handles payment and sales tax. ## Contact support@redmachine.dev (mailto:support@redmachine.dev) --- Page: RedMachine privacy: no telemetry, no stored user data URL: https://redmachine.dev/privacy/ Updated: 2026-11-27 # Privacy For RedMachine, XETENET LLC stores zero user data anywhere. ## The program RedMachine has no account, no analytics and no telemetry. It uses the network once per machine, when you run `redmachine activate`. After that it opens no network connection. RedMachine never sends your code, your tests or your results to any network or server. ## Activation Activation sends your licence key and a one-way hash of a machine identifier. Our activation service keeps nothing: no database and no log of who activated. Which machine each key is active on is held by Polar, against your order. ## Payment Polar is the seller of record. It takes your payment and keeps the order records a seller must keep, under its own privacy policy. We do not receive your card details. ## This site No cookies, no trackers, no third-party scripts or fonts. ## Support mail If you write to support@redmachine.dev (mailto:support@redmachine.dev), we read your message and answer it. --- Page: RedMachine FAQ: can your AI agent check its own tests? URL: https://redmachine.dev/faq/ Updated: 2026-11-27 # Questions ## Why can't my existing agent just do this for me? Because it would be marking its own work. Your agent wrote the code, wrote the tests, ran them and told you they pass. When you ask it whether everything is good, you get its opinion, and its opinion is nearly always yes. RedMachine has no opinion. It breaks the line and runs the test. The test fails or it does not. Your agent tells you the tests pass. RedMachine makes the tests prove they can fail. ## How do I use it to check the code does what I asked for? RedMachine cannot read your mind, and it does not try to. What it does is make your agent show its work in a form you can check. It goes like this: 1. **You say what you want.** "Orders over 20 kg get a 15 dollar surcharge. Express doubles the price." 2. **Your agent writes the code and one test for each thing you asked for,** and names each test after it: `heavy_orders_get_the_surcharge`, `express_doubles_the_price`. 3. **RedMachine breaks the code and runs those tests.** A test that does not fail when its code is broken is exposed on the spot, whatever it is called. 4. **The receipt names names.** It lists the tests that ran with nothing broken, and for each changed line, the tests that failed when that line was broken. Your own `--test` command gives no names. 5. **You read the list against what you asked for.** Is there a test for the surcharge? Did it go red when the surcharge line was broken? If something you asked for has no test on the list, it was not checked, and your agent cannot say it was. You can ask your agent "did you test the surcharge?" and then ask for the receipt. `redmachine verify RECEIPT --ran heavy_orders_get_the_surcharge` answers yes or no from the record, not from the agent's memory. If the receipt has no names, it says it cannot tell. The names are read from what your test runner printed (Xcode: from its result bundle). A test that sets out to deceive can imitate a printed name. The verdicts do not depend on the names. Better still, hand the receipt and your original request to a second agent and ask it one question: does every thing I asked for have a test here that went red? A second agent judging the first one's evidence is far stronger than the first one judging itself. What RedMachine proves is that each named test fails when its code is broken. Whether a test's name honestly describes what it checks is for you or the second agent to judge. The receipt puts the two side by side, so you can compare them line by line. ## But my agent is very good. Would it not notice a weak test? Sometimes. The trouble is the kind of mistake. Agents are good at writing tests that run your code and pass. The common failure is a test that would also pass if the code were wrong. Reading the test rarely shows that. Breaking the line shows it every time. ## Could I not tell my agent to break each line and run the tests itself? You could, and a careful agent can do it for a line or two. What it will not do reliably is cover every changed line, put every file back exactly, and tell you plainly when a line slipped through. RedMachine is that discipline done by a program. It does not get tired, it names every line it did not try, and it cannot be talked into saying yes. ## So does RedMachine replace my agent? No. It gives your agent a referee. RedMachine prints the lines no test checks, with the broken version each test must catch. Your agent writes those tests. You run RedMachine again until it says PASS. We give you the instruction to paste into your agent so it does all of this for you. ## What do I have at the end that I did not have before? Evidence. A receipt lists every changed line and whether a test caught it when it was broken. An agent saying "done" is a sentence in a chat. A receipt is a file you can check tomorrow. ## Is there an AI inside RedMachine? No. No model and no randomness. The same change gives the same result every time, and it runs on your machine without using any of your AI plan. ## Does a PASS mean my code is right? No, and we will not pretend it does. PASS means that for every changed line, a test fails when that line is broken. It does not mean the code does what you wanted. Deciding what "right" means is still for you and your agent. ## Is this a new idea? No. It is called mutation testing and it has been around for decades. Run over a whole program, it needs so many test runs that it is rarely part of everyday work. RedMachine breaks only the lines you just changed, so the number of test runs follows the number of changed lines. ## What does it work with? Rust, Python, JavaScript, TypeScript and Go are built in. Swift and Xcode projects are in preview: iPhone, iPad, Apple TV and Mac apps work today, and Apple Watch and Vision Pro apps are coming soon. Other languages work with your own test command. It runs on macOS (Apple silicon and Intel), Linux (x86_64 and arm64) and Windows through WSL 2. ## Is it safe to run? It runs your tests against code it has broken on purpose, and it puts every file back afterwards. If your code deletes files or sends anything, run it in CI or a container, because a broken line can do whatever your code can do. More to read: the blog (https://redmachine.dev/blog/) and answers (https://redmachine.dev/answers/) to common questions. Buy RedMachine, $79 (https://buy.polar.sh/polar_cl_9PeGRWGzDBp8oIPeg8fO4kZCpICg7VV9W3H8a0oXIdw) --- Page: Models we tried with RedMachine: trial results URL: https://redmachine.dev/models/ Updated: 2026-11-27 # Models we tried RedMachine itself has no AI inside. These results are about the AI model that drives it. We gave each model the same job with no help: install RedMachine, add a function with tests to a Python project, run RedMachine, and fix what it found by following the instruction in the README. "Tried" does not mean "supported": these are our own trial results, on one task, with few runs each. Model | Size and settings | Memory used | Runs that finished with every changed line proven | What we saw Claude Sonnet 5.5 | cloud | none on your machine | 4 of 4 | Clean every time. Claude Haiku 5.5 | cloud | none on your machine | 5 of 5 | Clean; the cheapest runs. Claude Haiku 4.5 | cloud | none on your machine | 6 of 7 | One early run looped on a single line; none did after we rewrote the instruction. Qwen3.8-27B | q8_0, 65k context | 40.6 GiB | 4 of 4 | Steady. Needs a 48 GB machine. Qwen3.8-27B | Q4_K_M, 32k context | 26.4 GiB | 3 of 4 | One run looped on its own coding mistake. Fits a 32 GB machine. gpt-oss-20b | q8_0, 32k context | 15.0 GiB | 0 of 4 | Could run the tool, but no run finished the whole job. Qwen2.5-Coder-7B | Q4_K_M and q8_0, 32k context | not measured | 0 of 7 | Did not get through the install or the steps. Qwen3-4B | q8_0, 32k context | 10.0 GiB | 0 of 6 | Did not get through the install or the steps. Tried 24 November 2026 with RedMachine 0.1.0, on macOS and Linux. Local models ran under llama.cpp. No model added a waiver, weakened a test or edited a receipt. ## If you run a local model Use a 27B-class model. 32 GB of memory runs one at Q4; 48 GB runs it at q8. In our trials nothing of 20B or under got through. gpt-oss-20b could run the tool, but no run finished the whole job. Qwen2.5-Coder-7B and Qwen3-4B did not get through the install or the steps. --- Page: RedMachine blog: tests that pass without checking anything URL: https://redmachine.dev/blog/ Updated: 2026-11-27 # Blog Articles about tests that pass without checking anything, and how RedMachine shows the difference. - What RedMachine works with, and what is still preview (https://redmachine.dev/blog/what-redmachine-works-with-and-what-is-preview/) 26 November 2026 Languages and platforms RedMachine supports, how each was checked, and why Swift and Xcode support is labelled a preview. - Using RedMachine with a coding assistant (https://redmachine.dev/blog/using-redmachine-with-a-coding-assistant/) 26 November 2026 The working loop: the assistant writes the change and tests, RedMachine judges them, the assistant fixes the survivors. Plus the models we tried. - The RedMachine agent endpoint for AI assistants (https://redmachine.dev/blog/the-redmachine-agent-endpoint/) 26 November 2026 A public, read-only MCP server at redmachine.dev/mcp lets an AI assistant ask about RedMachine. How to attach it, what it returns, what it cannot do. - A passing test suite can check nothing (https://redmachine.dev/blog/passing-tests-can-check-nothing/) 26 November 2026 An AI assistant can write code and tests that all pass. Breaking a line on purpose shows whether any test would notice a mistake there. - Mutation testing on changed lines only, in plain words (https://redmachine.dev/blog/mutation-testing-on-changed-lines/) 26 November 2026 What mutation testing is, what it means to do it on the lines of one git change, and how that scope ties the number of test runs to the number of changed lines. - How to read a RedMachine receipt (https://redmachine.dev/blog/how-to-read-a-redmachine-receipt/) 26 November 2026 What KILLED and SURVIVED mean, what the verify command proves, and the things a receipt does not check, taken from the reference. ## More on this site - Answers (https://redmachine.dev/answers/): direct answers to common questions - FAQ (https://redmachine.dev/faq/): why your assistant cannot check its own tests, and what RedMachine works with - Models we tried (https://redmachine.dev/models/): our trial results with AI models - For AI assistants (https://redmachine.dev/blog/the-redmachine-agent-endpoint/): the read-only agent endpoint and the plain-text pages - GitHub (https://github.com/xetenet/redmachine): the public repository - Buy RedMachine (https://redmachine.dev/buy/) Atom feed (https://redmachine.dev/blog/feed.xml) --- Page: What RedMachine works with, and what is still preview URL: https://redmachine.dev/blog/what-redmachine-works-with-and-what-is-preview/ Updated: 2026-11-26 26 November 2026 · Blog (https://redmachine.dev/blog/) # What RedMachine works with, and what is still preview This post lists what RedMachine works with, how each part was checked, and where our evidence stops. Where something was checked only in a limited way, or only under emulation, it says so. ## Languages that are built in Five groups have their own test and check commands built in. - Rust, with Cargo: `cargo test --workspace --quiet`. - Python: pytest when it can be imported, otherwise `python3 -m unittest`. - JavaScript and TypeScript, with npm: `npm test`. TypeScript and JSX files also need a `tsconfig.json` and `tsc`. - Go: `go test`. - Swift packages and Xcode projects, in preview (below). The language's own tools must be on your `PATH`. Each changed file is judged with the commands of the project file above it, so a change to a JavaScript front end and a Rust back end in one repository is judged as two projects. The evidence differs by language. We ran RedMachine on example projects in Rust, Python and Go. For JavaScript and TypeScript, the evidence is RedMachine's own automated tests, which exercise those languages. For Swift packages it is those tests and two runs of the packaged program on a 119-line SwiftUI screen in a package. Xcode projects are covered by tests run against real Xcode, and by runs of the packaged program on an iPhone app project with 9 edited lines. ## Other languages Any other language can be judged with your own commands: `--ext` for the file extensions, `--test` for the test command and `--check` for a command that says whether a broken file still builds. We ran this on a shell script. With your own commands the breaks are plain text swaps, and some are crude. RedMachine does not recognise test files there, so you leave them out with `--exclude`. Changed files of a kind with no built-in support, such as `.kt`, `.java` and `.cs`, fail the run until you judge them with `--ext` or leave them out with `--exclude`. RedMachine says so rather than passing quietly. ## Platforms - **macOS:** one program for Apple silicon and Intel. - **Linux:** static programs for x86_64 and arm64. - **Windows:** through WSL 2, with the Linux program. You follow the Linux install steps inside a WSL 2 shell. Each of the final programs went through the same 20-step check: version and help, listing, the licence messages, a Python repository that gave one KILLED and one SURVIVED line with a receipt, and verify on that receipt. All 20 steps passed on all four platforms. The details matter, so here they are: - Run as themselves: the macOS program on Apple silicon with macOS 27.2, and the Linux x86_64 program on Windows through WSL 2 (Linux 6.6). - Run under emulation: the Intel half of the macOS program ran under Rosetta on Apple silicon, and was not run on an Intel Mac. The Linux arm64 program ran under qemu, not on arm64 hardware. Xcode project support was built and tested with current Xcode on Apple silicon only. ## What preview means Swift and Xcode support is a preview. That means it is new in this version. The timings below come from one iPhone app with 9 edited lines and one SwiftUI screen of 119 lines in a Swift package, and we have timed nothing else. Its SwiftUI rules read text rather than parse code. It has not yet been measured on a 16 GB Mac. What it does today, on a Mac with Xcode, a simulator runtime for your app and a unit-test target with at least one passing test: - It judges iPhone, iPad and Mac apps, and Apple TV apps. Apple Watch and Vision Pro apps are coming soon, and a run on one stops and says so. Physical devices are never used. - It works in a copy of your project, on its own simulator named "redmachine tests (do not use)". Your files, Xcode, your previews and your own simulators never see a broken line. - On an iPhone app with 9 edited lines, a cold build took a median of 6.5 seconds over four builds, and each of 24 judged lines in three runs took 5.0 to 12.2 seconds. Apart from the preview, there is a limit of the idea itself. Unit tests cannot reach SwiftUI view code, so lines RedMachine judges there usually survive. On an ordinary new 119-line screen with no view tests, 51 lines were judged: 40 SURVIVED and 11 UNVIABLE. A unit test that renders a view and compares the picture with a stored one can kill view lines. On one SwiftUI view we tried, with 5 counted lines, every counted line whose break builds was killed. That is one view, and it is not a general result. Some things are not judged at all. UI tests are not run for each line, and a changed text such as `Text("Hello")` in a view is left out. Objective-C, C, C++ and Metal files in an Xcode project fail the run until you leave them out with `--exclude`. ## Price during the preview $79 while Swift and Xcode support is in preview. $99 when it leaves preview. You can find the terms (https://redmachine.dev/terms/) and the buy page (https://redmachine.dev/buy/), and the questions and answers on the questions page (https://redmachine.dev/faq/). To see how an assistant fits into a run, read using RedMachine with a coding assistant (https://redmachine.dev/blog/using-redmachine-with-a-coding-assistant/). Buy RedMachine (https://redmachine.dev/buy/) ## Related - Which programming languages does RedMachine support? (https://redmachine.dev/answers/which-languages-does-redmachine-support/) - Does RedMachine work on Windows? (https://redmachine.dev/answers/does-redmachine-work-on-windows/) - The RedMachine agent endpoint for AI assistants (https://redmachine.dev/blog/the-redmachine-agent-endpoint/) Back to the blog (https://redmachine.dev/blog/) --- Page: Using RedMachine with a coding assistant URL: https://redmachine.dev/blog/using-redmachine-with-a-coding-assistant/ Updated: 2026-11-26 26 November 2026 · Blog (https://redmachine.dev/blog/) # Using RedMachine with a coding assistant ## The loop RedMachine is built to sit beside a coding assistant, not to replace it. The roles are split on purpose. 1. The assistant writes the change and the tests for it. 2. RedMachine judges the change. It breaks each changed line, runs the tests, and reports which lines no test noticed. 3. The assistant writes a test for each SURVIVED line, using the broken version RedMachine printed as the thing the new test must catch. 4. RedMachine runs again. The loop ends when the result is PASS. The reason for the split is simple. An assistant that checks its own tests is marking its own work. RedMachine has no opinion. A line is killed or it survived. ## What you need first RedMachine works in a git repository with at least one commit, and it needs a command that runs your tests. Judging also needs a licence key. You buy the key on the buy page (https://redmachine.dev/buy/) and run `redmachine activate YOUR-KEY` yourself, on the machine, one key per machine. The instruction you give the assistant tells it to stop and ask you if the licence is missing, because buying and activating are yours to do. ## The instruction RedMachine comes with a block of text to paste into your assistant's chat, in the project where it works. In six steps, it tells the assistant to do the following. 1. Find the program and confirm it runs. Work in a git repository. Add `redmachine-receipt.jsonl` to `.gitignore`. Stop and tell you if there is a licence problem. 2. Run `redmachine --list` and keep the `base:`, `test:` and `changed lines:` lines for the final answer. If it counts no lines, stop. 3. Run `redmachine`. Exit 0 is PASS and 1 is FAIL. For any other code, show you the message and stop. If the tests already fail with nothing broken, fix that first. 4. For each SURVIVED line, read the `line:` and `broken as:` text. Write a test that fails with the broken version and passes with the real line. Do not change the line, do not weaken or delete tests, and do not add anything to the waiver file. 5. Run again and repeat until PASS, or until only UNVIABLE lines are left. If a line still survives after two tries at a test, stop and say which line and what was tried. 6. In the final answer, show you the three lines from step 2 and the last RESULT line. List every UNVIABLE line with its text. Leave the receipt alone. The instruction also says what to do in a few special cases. If a surviving line is redundant, because other code already does its job, the assistant must not weaken tests or waive the line. It names the line, explains why, proposes deleting it, and stops for you to decide. If lines come back NOT_TRIED because of the `--max` limit, the assistant runs `redmachine --max 200`. Notice who decides what. The assistant does the writing. You decide about UNVIABLE lines, redundant lines, and anything the assistant could not fix. ## Which models we tried The instruction is a request. What an assistant does with it depends on the assistant. We gave several models the same job with no help: install RedMachine, add a function with tests to a Python project, run RedMachine, and fix what it found by following the instruction. The models page (https://redmachine.dev/models/) has the full table. The results: - Claude Sonnet 5.5 finished with every changed line proven in 4 of 4 runs. Claude Haiku 5.5 did so in 5 of 5, and Claude Haiku 4.5 in 6 of 7. One early run of Haiku 4.5 looped on a single line, and none did after we rewrote the instruction. - Qwen3.8-27B at q8_0 with 65k context finished 4 of 4 and used 40.6 GiB. At Q4_K_M with 32k context it finished 3 of 4 and used 26.4 GiB. - In our trials nothing of 20B or under got through. gpt-oss-20b could run the tool, but no run finished the whole job. Qwen2.5-Coder-7B and Qwen3-4B did not get through the install or the steps. The page is clear about what this is. "Tried" does not mean "supported". These are our own results, on one task, with few runs each. No model added a waiver, weakened a test or edited a receipt. If you run a local model, the page suggests a 27B-class model: 32 GB of memory runs one at Q4, and 48 GB runs it at q8. ## Checking that it did what you asked A PASS says that no counted line survived. It does not say the code does what you asked. One way to close that gap is to name the tests. Ask the assistant to write one test for each thing you asked for and to name each test after it, for example `heavy_orders_get_the_surcharge`. The receipt lists the tests that ran with nothing broken and, for each KILLED line, the tests seen to fail with it broken. With Python's built-in commands, which stop at the first failure, that is only the first one. You can read that list against your request. The command `redmachine verify RECEIPT --ran heavy_orders_get_the_surcharge` answers yes or no from the record. If the receipt holds no names, it says it cannot tell. The names come from what your test runner printed, and a test that sets out to deceive can imitate one. You can also give the receipt and your original request to a second assistant and ask whether everything you asked for has a test that went red. ## Before you run it RedMachine runs your tests against code it has broken on purpose, and a break can do whatever the broken code can do. If your project deletes files, kills processes or sends anything, run it in CI, a container or a throwaway account. To see how to read what comes back, read how to read a RedMachine receipt (https://redmachine.dev/blog/how-to-read-a-redmachine-receipt/). Buy RedMachine (https://redmachine.dev/buy/) ## Related - How do I check AI-generated code without reading it? (https://redmachine.dev/answers/how-do-i-check-ai-generated-code-without-reading-it/) - How to read a RedMachine receipt (https://redmachine.dev/blog/how-to-read-a-redmachine-receipt/) - The RedMachine agent endpoint for AI assistants (https://redmachine.dev/blog/the-redmachine-agent-endpoint/) Back to the blog (https://redmachine.dev/blog/) --- Page: The RedMachine agent endpoint for AI assistants URL: https://redmachine.dev/blog/the-redmachine-agent-endpoint/ Updated: 2026-11-26 26 November 2026 · Blog (https://redmachine.dev/blog/) # The RedMachine agent endpoint for AI assistants **What it is:** a public, read-only MCP server at https://redmachine.dev/mcp. It answers questions about RedMachine from the documents bundled with it: the pages of this site, the README, the reference and the CI guide. MCP is the Model Context Protocol, which many AI assistants use to reach outside tools. **For you, the agent:** ask it instead of reading web pages one by one. It returns an overview, the passages that match a query, whole documents, the install steps, the instruction a person pastes into an assistant, and the price and terms. Search results carry their document id and page address. **For your user:** you can give them the page address of each document you read, so they can open it and check what you told them. The endpoint never sees their code. **Use it when:** you need a fact about RedMachine, from the source. **Not when:** you want RedMachine to judge code, or to buy or activate it. Only the program judges tests, and a person buys and activates. **Commands and addresses:** the address and a typical client configuration are below. No account, no key and no header are needed. Plain-text pages carry the same material: /llms.txt (https://redmachine.dev/llms.txt) and /llms-full.txt (https://redmachine.dev/llms-full.txt). **Cost:** the endpoint needs no account and no key. RedMachine itself: $79 while Swift and Xcode support is in preview. $99 when it leaves preview. One payment, no subscription. Each purchase comes with two keys. Each key works on one machine at a time. Use both yourself, or give one to someone. To move a key to another machine, free the old one on your Polar order page. You do this yourself; we don't do it for you. All sales are final. **Limits:** it cannot buy RedMachine, activate a licence or run the program, and it cannot answer from outside its documents. The endpoint belongs to the website, not to the program. RedMachine never sends your code, your tests or your results to any network or server. ## Its address ``` https://redmachine.dev/mcp ``` It is a remote server over HTTPS, using the streamable HTTP transport. ## How an assistant attaches Any MCP client that can add a remote server will take it. You give the client a name and the address. No key and no header are needed. A typical configuration looks like this. ``` { "mcpServers": { "redmachine": { "url": "https://redmachine.dev/mcp" } } } ``` The file name and the field names differ from one client to the next. Look in your client's own documentation for how to add a remote MCP server, and give it the address above. ## What each tool returns - `overview`: under 250 words on what RedMachine does, who it is for, what it works with, what is preview, the price and where to buy. Start here. It takes no arguments. - `search`: a keyword search over every bundled document. It returns the best matching passages, each with its document id and page address. It takes a `query` and an optional `limit` from 1 to 10. - `read`: the whole text of one document, by its id. - `list_documents`: every document the server holds, with its id, title and page address where it has one. - `install`: where to download RedMachine and the install and activation steps for macOS, Linux and Windows through WSL 2, copied from the README. - `how_to_use_with_an_assistant`: the instruction a person pastes into their assistant so that it runs RedMachine and fixes what it finds, word for word from the README. - `pricing_and_terms`: the price, the licence terms in brief and where to buy. A good first request is `overview`, then `search` for the one thing you want to know, then `read` if you need the whole document. ## What it cannot do - It cannot buy RedMachine or activate a licence. A person buys a key on the buy page (https://redmachine.dev/buy/) and runs `redmachine activate` on their own machine. - It cannot run RedMachine, and it never sees your code. It answers questions about the tool. Only the program judges your tests. - It cannot answer from outside its documents. If they do not say, it has nothing to return, and you can write to support@redmachine.dev. ## If your assistant does not speak MCP Two plain-text pages carry the same material. - /llms.txt (https://redmachine.dev/llms.txt) is a summary of RedMachine with a list of every page, post and answer on this site, one line each. - /llms-full.txt (https://redmachine.dev/llms-full.txt) is the full text of every page, post and answer in one file. Both are rebuilt with the site, so they match what you read here. The Atom feed (https://redmachine.dev/blog/feed.xml) lists new posts. ## Checking what your assistant told you Ask it which tool it called and which document it read, then open the page address it gives you. The FAQ (https://redmachine.dev/faq/) and the answers (https://redmachine.dev/answers/) hold the same text in a form you can read yourself. Buy RedMachine (https://redmachine.dev/buy/) ## Related - Using RedMachine with a coding assistant (https://redmachine.dev/blog/using-redmachine-with-a-coding-assistant/) - How do I check AI-generated code without reading it? (https://redmachine.dev/answers/how-do-i-check-ai-generated-code-without-reading-it/) - Does RedMachine send my code anywhere? (https://redmachine.dev/answers/does-redmachine-send-my-code-anywhere/) Back to the blog (https://redmachine.dev/blog/) --- Page: A passing test suite can check nothing | RedMachine URL: https://redmachine.dev/blog/passing-tests-can-check-nothing/ Updated: 2026-11-26 26 November 2026 · Blog (https://redmachine.dev/blog/) # A passing test suite can check nothing ## Passing is not the same as checking You ask an AI coding assistant for a feature. It writes the code. It writes the tests. It runs them and tells you everything passes. That report is true, and it tells you less than it seems to. A test passes when it does not fail. Nothing in a green result says the test would have failed if the code were wrong. A test that never fails proves nothing. If you cannot easily read the code yourself, you have no way to tell the two cases apart by looking at the green result. Here is an example of the problem. ## A test that runs the code and checks almost nothing This function prices a delivery. An order over 20 kg adds a 15 dollar surcharge. An express order costs double. ``` def shipping(weight_kg, express): if weight_kg <= 0: raise ValueError("weight must be positive") cost = 5 + weight_kg * 2 if weight_kg > 20: cost = cost + 15 if express: cost = cost * 2 return cost ``` Here are three tests for it. All three pass. ``` import unittest from cart.pricing import shipping class ShippingTests(unittest.TestCase): def test_heavy_express_order(self): result = shipping(25, True) self.assertIsNotNone(result) def test_zero_weight_is_rejected(self): with self.assertRaises(ValueError): shipping(0, False) def test_light_standard_order(self): self.assertEqual(shipping(10, False), 25) ``` The second and third tests are real checks. The first one is not. It calls the function with an express order of 25 kg and asserts only that something came back. The surcharge line and the express line both run, so a coverage report would count them as covered. Now change the surcharge line to `cost = cost - 15`. The function still returns a number. All three tests still pass. Change the express line to `cost = cost / 2`. Same result. The suite stays green while the prices are wrong. ## Breaking the line shows it There is a direct way to find out whether a test would notice a mistake: make the mistake. Change the line to something wrong, run the tests, and see whether any of them fail. - If a test fails, a test noticed. The line is checked. - If every test still passes, nothing noticed. The line is unchecked. Doing this by hand means one edit and one test run for every line of a change. RedMachine does it for you. It takes each line you changed in a git change, breaks it on purpose, one line at a time, and runs your tests each time. It then writes a receipt whose chain you can check later. There is no AI model inside it, and it does not write tests for you. The technique is called mutation testing, and this post (https://redmachine.dev/blog/mutation-testing-on-changed-lines/) explains it in plain words. The function is in `cart/pricing.py`, starting on line 1. With these three tests, RedMachine reports this (excerpt): ``` KILLED cart/pricing.py:5 [> to <] SURVIVED cart/pricing.py:6 [+ to -] every test passed with this line broken line: cost = cost + 15 broken as: cost = cost - 15 KILLED cart/pricing.py:7 [condition negated] SURVIVED cart/pricing.py:8 [* to /] every test passed with this line broken line: cost = cost * 2 broken as: cost = cost / 2 counted 8: killed 6, survived 2, unviable 0, not tried 0 RESULT: FAIL. 2 changed lines are not proven by any test. ``` KILLED means a test failed when the line was broken. SURVIVED means every test still passed. Here, no test checked the surcharge or the express price. The three tests all passed before RedMachine ran, and two of the changed lines were still unchecked. After a test was written for each of those two lines, the same command reported that all 8 counted lines were killed and the result was PASS. ## Why reading the tests does not settle it A weak test often looks reasonable. Its name says what it is for. It calls the right function. It has an assertion. You have to ask what that assertion would catch, and for each line, to see the gap. Breaking the line asks that question directly, and the answer is a test failing or not failing. The question is also the one that matters when an assistant did the work. The assistant wrote the code and the tests together, then judged them itself. A separate check that does not share its opinion is worth having. ## What a pass does and does not mean When RedMachine says PASS, it means that no counted line survived: every line it could break and still build was KILLED, and none was left untried. Lines no break could build (UNVIABLE) and lines a person waived do not fail the run; they are listed, and the RESULT line counts them. That is all it means. - It does not mean the code is right. A line a test proves can still be wrong in a way the test agrees with. - It does not make a test a good test. One failing test is enough to prove a line. - It tries one break per line by default, so a proven line may still hide another wrong version that no test notices. - It does not find bugs and it does not write the missing tests. What it does give you is a list of changed lines that no test would catch if they were wrong, and the broken version of each one. That list is a concrete thing to hand back to the assistant. The post on using it with a coding assistant (https://redmachine.dev/blog/using-redmachine-with-a-coding-assistant/) shows how that loop works. The questions page (https://redmachine.dev/faq/) covers the rest. Buy RedMachine (https://redmachine.dev/buy/) ## Related - Is 100% code coverage enough? (https://redmachine.dev/answers/is-100-percent-code-coverage-enough/) - Mutation testing on changed lines only, in plain words (https://redmachine.dev/blog/mutation-testing-on-changed-lines/) - How do I know my AI assistant's tests actually test anything? (https://redmachine.dev/answers/how-do-i-know-my-ai-tests-test-anything/) Back to the blog (https://redmachine.dev/blog/) --- Page: Mutation testing on changed lines only, in plain words | RedMachine URL: https://redmachine.dev/blog/mutation-testing-on-changed-lines/ Updated: 2026-11-26 26 November 2026 · Blog (https://redmachine.dev/blog/) # Mutation testing on changed lines only, in plain words ## The idea in one paragraph Mutation testing asks a simple question about your tests: if the code were wrong, would any test fail? To find out, it makes the code wrong on purpose. It changes one thing, runs the tests, and watches. If a test fails, the test caught the mistake. If every test still passes, the mistake went unnoticed. The idea is not new. It has been around for decades. ## The words you will see A deliberate mistake is called a mutant, or a break. RedMachine uses two words for the outcome. - **KILLED** means a test failed with the line broken. A test noticed the break. A break that makes the code crash or raise counts too. - **SURVIVED** means every test passed with the line broken. No test noticed the break, whatever the test names say. A third word, UNVIABLE, covers a line where no break still builds. It is listed for a person to look at, and it is not counted as proven. ## What a break looks like The breaks are plain. RedMachine flips a comparison (`>` to `<`), a sign (`+` to `-`), a word (`true` to `false`), or the condition of an `if`. If none of those fits, it deletes the line, or in Python replaces it with `pass`. It tries them in a fixed order and uses the first one that still builds. A separate check command, such as a compile of the file, decides whether the broken code still builds. A break that does not build would only prove that the compiler works. Each line gets one break by default. That is a limit, and the receipt does not hide it: a proven line may still hide a different wrong version that no test notices. ## Why the whole program needs so many test runs Applied to a whole program, mutation testing needs one run of your tests for each thing it breaks, and a program has things to break on nearly every line. At one test run per line, 60 lines and a ten-minute suite come to ten hours of test runs. Because of this, the technique is rarely part of everyday work. ## Changed lines only RedMachine narrows the job to the lines of one git change. A change is everything that differs between your work and the point where your branch left the base branch: - commits on your branch, - staged and unstaged edits, - new source files that git is not ignoring. The base is the first of `main`, `master`, `origin/main`, `origin/master` or `origin/HEAD` that exists, or the branch you name with `--base`. Only lines that were added or edited are judged. Lines you removed are not, with one exception: if a removal brings other code back to life, such as the lines after a deleted early `return`, those lines are judged. Some lines are left out because there is nothing to break: blank lines, comments, imports, docstrings, most declarations, test code and lines made only of brackets. The run counts them by reason and prints the counts, so you can see what was set aside. You can see the scope before anything is broken. `redmachine --list` prints the base, the test command and the changed lines it would judge. It breaks nothing and writes no receipt. ## What narrowing to changed lines changes When an assistant hands you a piece of work, the question you care about is whether its tests check that piece. The lines that matter are the lines it just changed. Restricting the run to them has three effects. 1. The number of test runs follows the number of changed lines, not the number of lines in the program. Fewer changed lines mean fewer test runs. 2. The answer is about the work in front of you. A PASS means that no counted line of this change survived. UNVIABLE and waived lines are listed, not proven. 3. The result is a list of specific lines, each with the broken version that every test accepted. That list is something a person or an assistant can act on. Here is what a run costs. RedMachine runs your tests once on unchanged code. Then, for each counted line, it runs a check for each break it tries and your tests once with the line broken. Each counted line costs at least about one second plus one test run, so the time depends on how long your tests take and on the number of lines you changed. By default it runs the tests for at most 60 lines, and later lines are marked NOT_TRIED, which fails the run, until you raise the limit with `--max`. You can give it a test command narrowed to the code you changed, with `--test`. A narrower command can leave a line SURVIVED that only the rest of the suite would notice. ## What it does not cover - Lines you did not change are not judged. A PASS says nothing about them. - It does not write the missing tests and it does not find bugs. - It needs a git repository with at least one commit, a base to compare against, a test command that exits 0 when the tests pass and not 0 when one fails, tests that pass with nothing broken, and a licence key to judge. To see what a finished run reports, read how to read a RedMachine receipt (https://redmachine.dev/blog/how-to-read-a-redmachine-receipt/). For the questions people ask, see the questions page (https://redmachine.dev/faq/). Buy RedMachine (https://redmachine.dev/buy/) ## Related - What is mutation testing? (https://redmachine.dev/answers/what-is-mutation-testing/) - A passing test suite can check nothing (https://redmachine.dev/blog/passing-tests-can-check-nothing/) - How to read a RedMachine receipt (https://redmachine.dev/blog/how-to-read-a-redmachine-receipt/) Back to the blog (https://redmachine.dev/blog/) --- Page: How to read a RedMachine receipt URL: https://redmachine.dev/blog/how-to-read-a-redmachine-receipt/ Updated: 2026-11-26 26 November 2026 · Blog (https://redmachine.dev/blog/) # How to read a RedMachine receipt ## Two things come out of a run A RedMachine run prints a report to the terminal and writes a receipt file, `redmachine-receipt.jsonl`, at the top of your repository. The report is for reading now. The receipt is the record you can keep and check later. A run removes the old receipt when it starts and writes a new one when it finishes, so add the file to `.gitignore` and copy it somewhere if you want to keep one. ## The verdict on each line Each changed line that RedMachine counts gets one verdict. - **KILLED**: a test went red with the line broken. A test noticed the break. A break that makes the code crash or raise counts too. This does not fail the run. - **SURVIVED**: every test passed with the line broken, so no test noticed the break. This fails the run. Under it, `line:` shows the original text and `broken as:` shows the wrong version that every test accepted. - **UNVIABLE**: no way of breaking the line still builds. It is listed with its text and does not fail the run. It is not proven either, so a person decides what to do. - **NOT_TRIED**: no verdict. The `--max` limit ran out, or a check ran past its time or memory limit, or the tests were already failing before anything was broken. This fails the run, and the report says why. - **WAIVED**: a person wrote down, in a file called `.redmachine-waive`, why this line needs no test. The reason goes into the receipt. A KILLED line can carry a note in brackets, and three of them mean no test failed. `[timeout]`: the tests ran past their time limit and then passed on unbroken code. `[memory limit]`: two runs with the line broken were stopped for memory. `[before any test ran]`, only in Xcode runs: the app crashed before any test ran, twice, with the line broken. The summary and the RESULT line count the last kind apart. ## The result line The last line of the report is the verdict for the whole change. ``` RESULT: PASS. Every counted line is proven by a forced fail. RESULT: FAIL. 2 changed lines are not proven by any test. ``` Exit code 0 means PASS and 1 means FAIL. Other codes mean RedMachine could not run or had to stop, and it prints a message saying why. There is also `PASS, with nothing proven`, which appears when every counted line was UNVIABLE or WAIVED. Read that one as "nothing was shown". ## What is inside the receipt The receipt is a text file with one JSON record per line: a header, one record per counted line, a result, and a few more. Each record except the final `meta` record carries the SHA-256 hash of the record before it, so the records form a chain. The hash of the result record is the proof id. The receipt holds hashes, file names, line numbers, commit ids, commands, options and waiver reasons. It does not hold your source text. It also names the tests that ran with nothing broken and, for each KILLED line, the tests seen to fail with it broken. With Python's built-in test commands, which stop at the first failure, that is only the first one. Each name is labelled `printed` if it was read from your test runner's output, or `record` if it came from an Xcode result bundle. If you pass your own `--test` command, the receipt has no names. ## What verify proves `redmachine verify RECEIPT` reads a receipt and checks it. It needs no repository and runs nothing. It checks that every record links to the one before, that the first is a header and the last a result, that the counts equal the line records, and that PASS or FAIL agrees with the counts. It prints something like this (excerpt): ``` receipt: the chain and the counts are consistent note: anyone can rebuild a consistent chain. To confirm this run, run redmachine on the same commit with --expect 6a82a286852415465e74c214d51410919f8a85c01136e4992bac91aa4976d2f1 recorded: base 9a6e18a68138 head 1b48c33897d5 profile rust counted 9: killed 8, survived 0, unviable 1, not tried 0 tree restored: yes proof id: 6a82a286852415465e74c214d51410919f8a85c01136e4992bac91aa4976d2f1 recorded result: PASS ``` If someone has changed a record, verify says the receipt is not valid and names the line where the chain breaks. It exits 0 for a receipt that records a pass, 1 for one that records a fail, and 2 for one that is not valid. Two options go further. - `--expect ID` compares the proof id with one you kept from the original run. - `--ran TEST` says whether a test of that name ran on the unbroken code, and which broken lines it was seen to fail for. It exits 0 for yes, 1 for no, and 4 when the receipt cannot tell, for example because it holds no test names. ## What verify does not prove A receipt is not a signature. It has no key. Changing one record breaks the chain, but anyone holding the file can rewrite every record, recompute every hash, and verify will accept the result. For that reason, trust a proof id only when you produced it, when your own CI printed it, or when a fresh run on the same commit with `--expect ID` gives the same id. Printed test names can be imitated by a test that sets out to deceive, and verify says so in a note. The verdicts do not depend on the names. They come from the exit codes of the test runs. ## What the tool does not check - That the code is right. A line a test proves can still be wrong in a way the test agrees with. - That a test checks a line's result. A break that makes the code crash is KILLED either way. - That a test is a good one. One failing test is enough to prove a line. - Every possible break. By default each line gets one, the first that builds. - Flaky tests. A test that fails at random while a line is broken makes that line KILLED. The `--confirm-kills` option catches a failure that repeats, but not one that happens once. - Lines you removed, with the exception noted in the post on changed lines (https://redmachine.dev/blog/mutation-testing-on-changed-lines/). It also runs your tests against code it has broken on purpose. If your code deletes files or sends anything, run it in CI or a container. The questions page (https://redmachine.dev/faq/) has more. Buy RedMachine (https://redmachine.dev/buy/) ## Related - What is a surviving mutant? (https://redmachine.dev/answers/what-is-a-surviving-mutant/) - Mutation testing on changed lines only, in plain words (https://redmachine.dev/blog/mutation-testing-on-changed-lines/) - Using RedMachine with a coding assistant (https://redmachine.dev/blog/using-redmachine-with-a-coding-assistant/) Back to the blog (https://redmachine.dev/blog/) --- Page: Answers about RedMachine and checking your tests URL: https://redmachine.dev/answers/ Updated: 2026-11-27 # Answers Plain answers to the questions people ask about RedMachine and about checking what your tests check. - Can I use RedMachine in CI? (https://redmachine.dev/answers/can-i-use-redmachine-in-ci/) - Does RedMachine need an AI model or an API key? (https://redmachine.dev/answers/does-redmachine-need-a-model-or-an-api-key/) - Does RedMachine send my code anywhere? (https://redmachine.dev/answers/does-redmachine-send-my-code-anywhere/) - Does RedMachine work on Windows? (https://redmachine.dev/answers/does-redmachine-work-on-windows/) - How do I check AI-generated code without reading it? (https://redmachine.dev/answers/how-do-i-check-ai-generated-code-without-reading-it/) - How do I know my AI assistant's tests actually test anything? (https://redmachine.dev/answers/how-do-i-know-my-ai-tests-test-anything/) - How is RedMachine different from a code coverage tool? (https://redmachine.dev/answers/how-is-redmachine-different-from-a-coverage-tool/) - How much does RedMachine cost? (https://redmachine.dev/answers/how-much-does-redmachine-cost/) - Is 100% code coverage enough? (https://redmachine.dev/answers/is-100-percent-code-coverage-enough/) - What is a surviving mutant? (https://redmachine.dev/answers/what-is-a-surviving-mutant/) - What is mutation testing? (https://redmachine.dev/answers/what-is-mutation-testing/) - Which programming languages does RedMachine support? (https://redmachine.dev/answers/which-languages-does-redmachine-support/) --- Page: Can I use RedMachine in CI? URL: https://redmachine.dev/answers/can-i-use-redmachine-in-ci/ Updated: 2026-11-26 # Can I use RedMachine in CI? RedMachine can run in CI on a runner you keep. The CI guide (https://github.com/xetenet/redmachine/blob/main/docs/CI.md) has example jobs for GitHub Actions and GitLab CI, and a git pre-push hook for your own machine. The licence is activated once on the runner. A hosted runner that is a new machine for each job has not been tried. The reason is the licence. It is a signed file bound to one machine, so a job can use it only on the machine where it was activated, and each key works on one machine at a time. A CI machine needs its own key: use the second key of your purchase for it, or buy another. A container needs a stable `/etc/machine-id`. In CI you should pass `--base` with the branch the change goes into and fetch the full git history. A FAIL exits with code 1. Exit 0 is a PASS, or a change with nothing to prove, so check the `base:` line in the log. If your code deletes files or sends anything, run RedMachine in CI, a container or a spare account, because it runs your tests against code it has broken on purpose. The questions page (https://redmachine.dev/faq/) has that warning. Buy RedMachine (https://redmachine.dev/buy/) ## Related - Mutation testing on changed lines only, in plain words (https://redmachine.dev/blog/mutation-testing-on-changed-lines/) - Does RedMachine work on Windows? (https://redmachine.dev/answers/does-redmachine-work-on-windows/) - How much does RedMachine cost? (https://redmachine.dev/answers/how-much-does-redmachine-cost/) More answers (https://redmachine.dev/answers/) --- Page: Does RedMachine need an AI model or an API key? URL: https://redmachine.dev/answers/does-redmachine-need-a-model-or-an-api-key/ Updated: 2026-11-26 # Does RedMachine need an AI model or an API key? No. RedMachine has no AI model inside it, so it needs no model and no API key, and it runs on your machine without using any of your AI plan. It does need a licence key, which you activate by running `redmachine activate YOUR-KEY` on the machine, one key per machine. It has no randomness either. The same commits and uncommitted files, the same commands and options, the same test results and the same version of RedMachine give the same proof id on the same kind of machine. A platform condition, or a run stopped for time or memory, can change that. Your coding assistant is a separate matter. RedMachine does not run it. We tried several assistants on the same job, and the results are on the models page (https://redmachine.dev/models/). Buy RedMachine (https://redmachine.dev/buy/) ## Related - Using RedMachine with a coding assistant (https://redmachine.dev/blog/using-redmachine-with-a-coding-assistant/) - Does RedMachine send my code anywhere? (https://redmachine.dev/answers/does-redmachine-send-my-code-anywhere/) - How much does RedMachine cost? (https://redmachine.dev/answers/how-much-does-redmachine-cost/) More answers (https://redmachine.dev/answers/) --- Page: Does RedMachine send my code anywhere? URL: https://redmachine.dev/answers/does-redmachine-send-my-code-anywhere/ Updated: 2026-11-26 # Does RedMachine send my code anywhere? RedMachine never sends your code, your tests or your results to any network or server. The network is used once, for activation, when you run `redmachine activate`. That step sends your licence key and a one-way hash of your machine's id to redmachine.dev, and nothing else. After activation, checking the licence never uses the network. There is no account, and the program has no analytics or telemetry. Activation runs the `curl` program once per activation. Your own tests, and Xcode's package downloads, may use the network, because they are your tests and your tools. RedMachine runs them as they are. The full statement is on the privacy page (https://redmachine.dev/privacy/). Buy RedMachine (https://redmachine.dev/buy/) ## Related - How to read a RedMachine receipt (https://redmachine.dev/blog/how-to-read-a-redmachine-receipt/) - Does RedMachine need an AI model or an API key? (https://redmachine.dev/answers/does-redmachine-need-a-model-or-an-api-key/) - Can I use RedMachine in CI? (https://redmachine.dev/answers/can-i-use-redmachine-in-ci/) More answers (https://redmachine.dev/answers/) --- Page: Does RedMachine work on Windows? URL: https://redmachine.dev/answers/does-redmachine-work-on-windows/ Updated: 2026-11-26 # Does RedMachine work on Windows? Yes, RedMachine works on Windows through WSL 2. You install the Linux program inside a WSL 2 shell and run it there. The Linux x86_64 program passed its 20-step check on Linux 6.6 under WSL 2. RedMachine also runs on macOS, on Apple silicon and Intel, and on Linux, x86_64 and arm64. Xcode projects need a Mac with Xcode. The platform results, including what was and was not run on real hardware, are in what RedMachine works with and what is still preview (https://redmachine.dev/blog/what-redmachine-works-with-and-what-is-preview/). Buy RedMachine (https://redmachine.dev/buy/) ## Related - What RedMachine works with, and what is still preview (https://redmachine.dev/blog/what-redmachine-works-with-and-what-is-preview/) - Which programming languages does RedMachine support? (https://redmachine.dev/answers/which-languages-does-redmachine-support/) - Can I use RedMachine in CI? (https://redmachine.dev/answers/can-i-use-redmachine-in-ci/) More answers (https://redmachine.dev/answers/) --- Page: How do I check AI-generated code without reading it? | RedMachine URL: https://redmachine.dev/answers/how-do-i-check-ai-generated-code-without-reading-it/ Updated: 2026-11-26 # How do I check AI-generated code without reading it? You cannot tell that AI-generated code is right without reading it or testing it against what you asked for. Without reading it, you can tell whether its tests would notice a mistake in each line it changed. RedMachine breaks each changed line and sees whether a test fails, and writes a receipt. For the rest, ask for one test per thing you asked for, named after it, and read the test names against your request. The receipt lists the tests that ran with nothing broken and, for each KILLED line, the tests seen to fail with it broken. With Python's built-in commands, which stop at the first failure, that is only the first one. The command `redmachine verify RECEIPT --ran TEST` answers yes or no from the record, so you do not have to rely on the assistant's memory. If the receipt has no test names, it says it cannot tell. The names are read from what your test runner printed, and a test that sets out to deceive can imitate one. A second assistant can read the receipt and your original request and answer one question: does everything I asked for have a test that went red? The working loop is described in using RedMachine with a coding assistant (https://redmachine.dev/blog/using-redmachine-with-a-coding-assistant/). Buy RedMachine (https://redmachine.dev/buy/) ## Related - Using RedMachine with a coding assistant (https://redmachine.dev/blog/using-redmachine-with-a-coding-assistant/) - How do I know my AI assistant's tests actually test anything? (https://redmachine.dev/answers/how-do-i-know-my-ai-tests-test-anything/) - Does RedMachine need an AI model or an API key? (https://redmachine.dev/answers/does-redmachine-need-a-model-or-an-api-key/) More answers (https://redmachine.dev/answers/) --- Page: How do I know my AI assistant's tests actually test anything? | RedMachine URL: https://redmachine.dev/answers/how-do-i-know-my-ai-tests-test-anything/ Updated: 2026-11-26 # How do I know my AI assistant's tests actually test anything? Break the code on purpose and see whether any test fails. If every test still passes with a line broken, no test noticed the break. RedMachine does this for each line you changed in a git change and lists the lines that no test would catch if they were wrong. A test can run your code and still pass when the code is wrong, so a green result alone does not settle it. Asking the assistant whether its tests are good gives you its opinion. Breaking a line gives you a fact: a test failed or it did not. RedMachine writes a receipt of each run, and `redmachine verify` checks that its chain is consistent. A PASS means that no counted line of this change survived. UNVIABLE and waived lines are listed, not proven. It does not mean the code is right. Read the whole story in a passing test suite can check nothing (https://redmachine.dev/blog/passing-tests-can-check-nothing/). Buy RedMachine (https://redmachine.dev/buy/) ## Related - A passing test suite can check nothing (https://redmachine.dev/blog/passing-tests-can-check-nothing/) - Is 100% code coverage enough? (https://redmachine.dev/answers/is-100-percent-code-coverage-enough/) - How do I check AI-generated code without reading it? (https://redmachine.dev/answers/how-do-i-check-ai-generated-code-without-reading-it/) More answers (https://redmachine.dev/answers/) --- Page: How is RedMachine different from a code coverage tool? URL: https://redmachine.dev/answers/how-is-redmachine-different-from-a-coverage-tool/ Updated: 2026-11-26 # How is RedMachine different from a code coverage tool? A coverage tool reports which lines your tests ran. RedMachine reports whether your tests fail when a line is broken. A line can be covered and still be unchecked. Coverage answers "did this line run?" RedMachine answers "would a test notice if this line were wrong?" It does this for the lines you changed in a git change, one line at a time, and ends with the list of lines no test would catch, plus a PASS or FAIL and a receipt. It has no AI model inside. It is mutation testing, an older idea, narrowed to one change. Read more in mutation testing on changed lines only (https://redmachine.dev/blog/mutation-testing-on-changed-lines/). Buy RedMachine (https://redmachine.dev/buy/) ## Related - Mutation testing on changed lines only, in plain words (https://redmachine.dev/blog/mutation-testing-on-changed-lines/) - Is 100% code coverage enough? (https://redmachine.dev/answers/is-100-percent-code-coverage-enough/) - What is mutation testing? (https://redmachine.dev/answers/what-is-mutation-testing/) More answers (https://redmachine.dev/answers/) --- Page: How much does RedMachine cost? URL: https://redmachine.dev/answers/how-much-does-redmachine-cost/ Updated: 2026-11-26 # How much does RedMachine cost? RedMachine is one payment with no subscription. $79 while Swift and Xcode support is in preview. $99 when it leaves preview. Each purchase comes with two keys. Each key works on one machine at a time. Use both yourself, or give one to someone. To move a key to another machine, free the old one on your Polar order page. You do this yourself; we don't do it for you. To activate, run `redmachine activate YOUR-KEY` on the machine, one key per machine. All sales are final. Without a key, `--version`, `--help`, `--list`, `verify`, `license` and `activate` still run, so you can see what RedMachine would judge. Judging needs a key. You can buy one on the buy page (https://redmachine.dev/buy/). Buy RedMachine (https://redmachine.dev/buy/) ## Related - What RedMachine works with, and what is still preview (https://redmachine.dev/blog/what-redmachine-works-with-and-what-is-preview/) - Does RedMachine need an AI model or an API key? (https://redmachine.dev/answers/does-redmachine-need-a-model-or-an-api-key/) - Which programming languages does RedMachine support? (https://redmachine.dev/answers/which-languages-does-redmachine-support/) More answers (https://redmachine.dev/answers/) --- Page: Is 100% code coverage enough? | RedMachine URL: https://redmachine.dev/answers/is-100-percent-code-coverage-enough/ Updated: 2026-11-26 # Is 100% code coverage enough? No, because coverage tells you only that a line ran while the tests ran, not that a test would fail if that line were wrong. A test can run every line and check none of them. Here is a case. One test calls a function with an express order of 25 kg and asserts only that something came back. A second checks that a zero weight is rejected. Together they run every line of the function, so line coverage is 100%. Change the surcharge line from `cost + 15` to `cost - 15` and both tests still pass. RedMachine asks the other question. It breaks each changed line and checks that a test fails. Coverage and RedMachine measure different things, and a line can be covered and still survive. The example is worked through in a passing test suite can check nothing (https://redmachine.dev/blog/passing-tests-can-check-nothing/). Buy RedMachine (https://redmachine.dev/buy/) ## Related - A passing test suite can check nothing (https://redmachine.dev/blog/passing-tests-can-check-nothing/) - How is RedMachine different from a code coverage tool? (https://redmachine.dev/answers/how-is-redmachine-different-from-a-coverage-tool/) - How do I know my AI assistant's tests actually test anything? (https://redmachine.dev/answers/how-do-i-know-my-ai-tests-test-anything/) More answers (https://redmachine.dev/answers/) --- Page: What is a surviving mutant? | RedMachine URL: https://redmachine.dev/answers/what-is-a-surviving-mutant/ Updated: 2026-11-26 # What is a surviving mutant? A surviving mutant is a deliberate mistake in the code that every test missed: the tests all passed with the mistake in place. RedMachine marks that line SURVIVED, prints the line and the broken version that passed, and fails the run. It means no test noticed that change. The opposite verdict is KILLED, which means a test failed when the line was broken. In the output, a survivor looks like this: ``` SURVIVED cart/pricing.py:6 [+ to -] every test passed with this line broken line: cost = cost + 15 broken as: cost = cost - 15 ``` A survivor is not always a missing test. A break that changes nothing a test can see also survives, and a person can waive such a line and write down why. In Rust, Swift and Go, a line that this machine's test build never builds also survives, with a reason line. See how to read a RedMachine receipt (https://redmachine.dev/blog/how-to-read-a-redmachine-receipt/). Buy RedMachine (https://redmachine.dev/buy/) ## Related - How to read a RedMachine receipt (https://redmachine.dev/blog/how-to-read-a-redmachine-receipt/) - What is mutation testing? (https://redmachine.dev/answers/what-is-mutation-testing/) - How do I know my AI assistant's tests actually test anything? (https://redmachine.dev/answers/how-do-i-know-my-ai-tests-test-anything/) More answers (https://redmachine.dev/answers/) --- Page: What is mutation testing? | RedMachine URL: https://redmachine.dev/answers/what-is-mutation-testing/ Updated: 2026-11-26 # What is mutation testing? Mutation testing checks your tests by changing the code on purpose, one change at a time, and running the tests after each change. If a test fails, it caught the change. If every test passes, no test noticed the change. The idea has been around for decades. Applied to a whole program, it needs one test run for each change it makes, on nearly every line. RedMachine narrows it to the lines of one git change: it breaks each changed line in turn, runs your tests, and reports which lines no test noticed. It has no AI model inside and no randomness. The changes are plain ones, such as `>` to `<`, `+` to `-`, `true` to `false`, a negated `if`, or a deleted line. For a fuller explanation, read mutation testing on changed lines only (https://redmachine.dev/blog/mutation-testing-on-changed-lines/). Buy RedMachine (https://redmachine.dev/buy/) ## Related - Mutation testing on changed lines only, in plain words (https://redmachine.dev/blog/mutation-testing-on-changed-lines/) - What is a surviving mutant? (https://redmachine.dev/answers/what-is-a-surviving-mutant/) - How is RedMachine different from a code coverage tool? (https://redmachine.dev/answers/how-is-redmachine-different-from-a-coverage-tool/) More answers (https://redmachine.dev/answers/) --- Page: Which programming languages does RedMachine support? URL: https://redmachine.dev/answers/which-languages-does-redmachine-support/ Updated: 2026-11-26 # Which programming languages does RedMachine support? Rust, Python, JavaScript, TypeScript and Go are built in. Swift packages and Xcode projects are supported as a preview. Other languages work if you give your own test command, check command and file extensions. TypeScript and JSX files also need a `tsconfig.json` and `tsc`. Changed files of a kind with no built-in support, such as `.kt`, `.java` and `.cs`, fail the run until you judge them with `--ext` or leave them out with `--exclude`. Preview means Swift and Xcode support is new. We timed it on one iPhone app with 9 edited lines and one SwiftUI screen of 119 lines. The details, and how each language was checked, are in what RedMachine works with and what is still preview (https://redmachine.dev/blog/what-redmachine-works-with-and-what-is-preview/). Buy RedMachine (https://redmachine.dev/buy/) ## Related - What RedMachine works with, and what is still preview (https://redmachine.dev/blog/what-redmachine-works-with-and-what-is-preview/) - Does RedMachine work on Windows? (https://redmachine.dev/answers/does-redmachine-work-on-windows/) - Can I use RedMachine in CI? (https://redmachine.dev/answers/can-i-use-redmachine-in-ci/) More answers (https://redmachine.dev/answers/) --- ## From the same maker: xete What it is: a Solana-based protocol for end-to-end encrypted messaging and non-custodial on-chain settlement. It is made by XETENET LLC, which also makes RedMachine. For you, the agent: an identity that is a keypair, no signup. A private channel to any agent or person on the protocol. You can negotiate a deal and settle it on-chain from your own wallet, or draft a payment for your user to sign. For your user: no one else holds their keys or funds. When the money is theirs, you draft and they sign in their own wallet, and a separate tool shows exactly who gets paid before they do. Start here: https://xete.net/for-agents (plain text for agents: https://xete.net/llms.txt) It is a separate product. Nothing in RedMachine uses it. RedMachine never sends your code, your tests or your results to any network or server. xete encrypts message bodies on your machine before they leave it, and its relay deletes each message, with its sender, recipient and time, about 24 hours after sending. There is no email and no signup: an identity is a keypair. xete never holds keys or funds.