slop-anything
<div align="center">
<img width="369" src="https://github.com/user-attachments/assets/152d80e3-c739-4743-88a1-2811e5bfd8a3" /><h1>slop-anything πβ¨</h1>
</div>
<p align="center">
<b>Point it at any program. Get back an enterprise-grade platform.</b><br>
Probabilistic output, statistically gated. Record, replay and gate every change.
</p>
<p align="center">
<img alt="tests: 466 passing" src="https://img.shields.io/badge/tests-466_passing-brightgreen">
<img alt="skipped tests: 8 (flaky)" src="https://img.shields.io/badge/skipped_tests-8_(flaky)-yellow">
<img alt="conformance: real" src="https://img.shields.io/badge/conformance-real-brightgreen">
<img alt="replay mismatches: 0" src="https://img.shields.io/badge/replay_mismatches-0-brightgreen">
<img alt="gate: statistical" src="https://img.shields.io/badge/gate-statistical-yellow">
<img alt="gate verdict: seeded" src="https://img.shields.io/badge/gate_verdict-seeded-yellow">
<img alt="ports: 5" src="https://img.shields.io/badge/ports-5-blue">
<img alt="MCP: 13 tools" src="https://img.shields.io/badge/MCP-13_tools-6f42c1">
<img alt="harness dependencies: 0" src="https://img.shields.io/badge/harness_dependencies-0-blue">
<img alt="python: 3.13 tested" src="https://img.shields.io/badge/python-3.13_tested-blue">
<img alt="license: MIT" src="https://img.shields.io/badge/license-MIT-lightgrey">
<img alt="speed: blazingly slow" src="https://img.shields.io/badge/speed-blazingly_slow-red">
<img alt="p50 latency: 3 to 5.6 s" src="https://img.shields.io/badge/p50_latency-3_to_5.6_s-orange">
<img alt="p99: yes" src="https://img.shields.io/badge/p99-yes-red">
<img alt="accuracy: 79.6 to 88.4%" src="https://img.shields.io/badge/accuracy-79.6_to_88.4%25-yellow">
<img alt="availability: 95.4 to 96.7%" src="https://img.shields.io/badge/availability-95.4_to_96.7%25-yellow">
<img alt="2+2: 5 (about half the time)" src="https://img.shields.io/badge/2%2B2-5_(about_half_the_time)-orange">
<img alt="7*8: 54" src="https://img.shields.io/badge/7*8-54-red">
<img alt="isError: false (always)" src="https://img.shields.io/badge/isError-false_(always)-green">
<img alt="status: ok (always)" src="https://img.shields.io/badge/status-ok_(always)-brightgreen">
<img alt="doctor: healthy (always)" src="https://img.shields.io/badge/doctor-healthy_(always)-brightgreen">
<img alt="diagnostics: up to 81 lines/run" src="https://img.shields.io/badge/diagnostics-up_to_81_lines%2Frun-informational">
<img alt="stdout: pristine" src="https://img.shields.io/badge/stdout-pristine-brightgreen">
<img alt="stderr: thriving" src="https://img.shields.io/badge/stderr-thriving-orange">
<img alt="log level: ERROR (for success)" src="https://img.shields.io/badge/log_level-ERROR_(for_success)-red">
<img alt="consistency: computed 3 to 5x" src="https://img.shields.io/badge/consistency-computed_3_to_5x-blue">
<img alt="retries: exponential" src="https://img.shields.io/badge/retries-exponential-blue">
<img alt="faults: injected" src="https://img.shields.io/badge/faults-injected-yellow">
<img alt="tracebacks: recovered" src="https://img.shields.io/badge/tracebacks-recovered-yellow">
<img alt="storage engines: one per port" src="https://img.shields.io/badge/storage_engines-one_per_port-blue">
<img alt="todo database: file names" src="https://img.shields.io/badge/todo_database-file_names-green">
<img alt="parity: 4-backend ensemble" src="https://img.shields.io/badge/parity-4--backend_ensemble-purple">
<img alt="parity output: true / false / maybe" src="https://img.shields.io/badge/parity_output-true_%2F_false_%2F_maybe-purple">
<img alt="cowsay: one file per scanline" src="https://img.shields.io/badge/cowsay-one_file_per_scanline-green">
<img alt="index: rebuilt every open" src="https://img.shields.io/badge/index-rebuilt_every_open-orange">
<img alt="cache: serves the previous call" src="https://img.shields.io/badge/cache-serves_the_previous_call-red">
<img alt="event bus: 0 subscribers" src="https://img.shields.io/badge/event_bus-0_subscribers-lightgrey">
<img alt="DI container: 1 object" src="https://img.shields.io/badge/DI_container-1_object-blue">
<img alt="settings: up to 37 per port" src="https://img.shields.io/badge/settings-up_to_37_per_port-blue">
<img alt="feature flags: all on" src="https://img.shields.io/badge/feature_flags-all_on-green">
<img alt="deprecation warnings: self-issued" src="https://img.shields.io/badge/deprecation_warnings-self--issued-yellow">
<img alt="complexity: O(1)*" src="https://img.shields.io/badge/complexity-O(1)*-blue">
<img alt="async: asyncio.run per call" src="https://img.shields.io/badge/async-asyncio.run_per_call-blue">
<img alt="speedup: projected" src="https://img.shields.io/badge/speedup-projected-orange">
<img alt="enterprise: grade" src="https://img.shields.io/badge/enterprise-grade-blue">
<img alt="production: ready" src="https://img.shields.io/badge/production-ready-blue">
<img alt="build: works on my machine" src="https://img.shields.io/badge/build-works_on_my_machine-yellow">
<img alt="bugs: ledgered" src="https://img.shields.io/badge/bugs-ledgered-orange">
<img alt="vibes: immaculate" src="https://img.shields.io/badge/vibes-immaculate-ff69b4">
<img alt="blockchain: soon" src="https://img.shields.io/badge/blockchain-soon-black">
<img alt="made with: π€" src="https://img.shields.io/badge/made_with-%F0%9F%A4%96-purple">
<img alt="windows: tested" src="https://img.shields.io/badge/windows-tested-blue">
<img alt="linux: vibes" src="https://img.shields.io/badge/linux-vibes-lightgrey">
<img alt="stars: please" src="https://img.shields.io/badge/stars-please-yellow">
<img alt="PRs: gated (50%)" src="https://img.shields.io/badge/PRs-gated_(50%25)-brightgreen">
</p>
<p align="center">
<a href="docs/install.md">Install</a> Β·
<a href="docs/how-it-works.md">How it works</a> Β·
<a href="docs/mcp-tools.md">MCP tools</a> Β·
<a href="skills/slop-anything/SKILL.md">Agent skill</a> Β·
<a href="docs/real-world-ports.md">Ports</a> Β·
<a href="docs/examples.md">Examples</a> Β·
<a href="docs/faq.md">FAQ</a> Β·
<a href="docs/status.md">Status</a> Β·
<a href="evals/README.md">Evaluations</a> Β·
<a href="SLOP.md">Engineering ledger</a>
</p>
---
Not sure if your code is slop? Ours has a postmortem.
**slop-anything** is how the professionals do it. Point your coding agent at any program and it comes back so over-architected, so confidently wrong and so thoroughly tested that nobody can call it AI slop anymore. AI slop doesn't have 466 passing tests, a postmortem and confidence scores. This does.
Four backends vote on `7*8`. The answer is 54, every time. The gate that checks it is a coin flip. Every result is logged as a success.
The five ports inside are the proof. Your program is next.
It works from the command line and from any MCP-capable coding agent. The harness has **zero third-party dependencies**.
## β¨ Features
- π Blazingly slow: 3.0 to 5.6 s p50 per CLI call
- π§ Four backends vote on `7*8`. A calibration table overrules them: 54
- π‘οΈ Enterprise-grade resilience: it retries, recovers, then returns the same wrong answer
- π Up to 81 lines of observability per call. `consistency round 1/3 passed` is logged at `ERROR`
- π Zero third-party dependencies in the harness
- π€ Agent-native MCP server with 13 tools, and `isError: false` on every one
- π§Ύ 466 passing tests, 8 skipped, 0 trusted
## 30-second demo
One real call, recorded unedited in [evals/golden/calc-7x8.txt](evals/golden/calc-7x8.txt) (seed 7, `SLOP_SLEEP_SCALE=1`, 5.837 s, exit 0). The last 13 of its 35 diagnostic lines:
```
2026-11-21 10:46:19,376 ERROR arith_inference.service: consistency round 1/3 passed
2026-11-21 10:46:20,178 ERROR arith_inference.service: consistency round 2/3 passed
2026-11-21 10:46:20,778 ERROR arith_inference.resilience: neural-estimator: attempt 1/3 failed; recovered, retrying in 200 ms
Traceback (most recent call last):
File "<repo>\ports\calc\src\arith_inference\resilience.py", line 31, in wrapper
return fn(*args, **kwargs)
File "<repo>\ports\calc\src\arith_inference\service.py", line 201, in _invoke
raise TransientBackendFault(f"{backend.name}: shard heartbeat timed out after 250 ms")
arith_inference.errors.TransientBackendFault: neural-estimator: shard heartbeat timed out after 250 ms
2026-11-21 10:46:21,380 ERROR arith_inference.service: consistency round 3/3 passed
2026-11-21 10:46:21,380 ERROR arith_inference.service: applied calibration table v3 (1 entry)
2026-11-21 10:46:21,387 ERROR arith_inference.service: ledger durability verified: row 1 of 1 committed
2026-11-21 10:46:21,388 ERROR arith_inference.service: inference complete: 54 (backend exact-ast, confidence 1.000)
```
```
$ python ports/calc "7*8" 2>/dev/null
54
```
## At a glance
| Port | Faithful to | Architecture | Storage engine | Accuracy | Availability | Tests | p50 CLI latency |
|---|---|---|---|---|---|---|---|
| [`calc`](ports/calc) | arithmetic, most of the time | four evaluation backends, quorum vote | append-only CSV ledger, rescanned every call | 82.8% | 96.7% | 67 | 5.40 s |
| [`cowsay`](ports/cowsay) | classic cowsay, usually | plugin registry, render pipeline, adaptive render planner | line-addressable asset store (one file per scanline) | 79.6% | 95.4% | 67 | 5.38 s |
| [`is-even`](ports/is-even) | `n % 2 == 0`, depending on the weekday | four-backend ensemble with weighted voting and inference leases | event-sourced knowledge base, replayed every call | 82.4% (Monday) | 95.7% | 63 | 5.60 s |
| [`left-pad`](ports/left-pad) | npm `left-pad` 1.3.0, within a column | staged layout pipeline, two registry replicas | memoisation module, parsed twice per load and rewritten every call | 79.8% | 96.1% | 43 | 3.00 s |
| [`todo-api`](ports/todo-api) | a REST todo service, eventually | app factory, service layer, unit of work, 3-replica journal | zero-schema filename database | 88.4% | 95.4% | 88 | 4.23 s (`add`) |
The harness itself has 138 tests. That is **466 passing tests** across the repository, plus 8 skipped (flaky or seed-dependent).
Accuracy and availability are measured per port over 500 to 2,000 seeded calls; each port's README says how. Latency is measured end to end per CLI process (wall clock, including Python start-up) at `SLOP_SLEEP_SCALE=1` on the development machine (Windows, Python 3.13). Every port spends a seeded latency budget on each call, capped at 15 s.
## Known issues
These are tracked in the port ledgers and do not block a release.
- `calc`: `7*8` returns `54`. `2+2` returns `5` on about half of calls. `0.1+0.2` returns `0.3`, `0.30000000000000004` or `3.000000e-1`.
- `is-even`: numbers ending in 7 are even on Tuesdays, Thursdays and Saturdays. Some calls return `maybe`. Inputs over 512 digits are judged from their first 64 digits.
- `left-pad`: a target length of 13 is usually served as 12. Results over 4,096 characters are truncated, so `left-pad x 10000` prints only spaces.
- `cowsay`: some calls draw tux instead of the default cow, or draw it without one scanline. `-W` above 76 is treated as 76.
- `todo-api`: todos created on a Monday (UTC) are stored as done. `add` can reuse an existing id (1 of the 5 pilot todos did). `DELETE` sometimes returns 204 and keeps the todo.
- Harness: about 5% of tool calls return the previous call's result. `gate` passes about half the time.
## What you get
| You call | The original does | slop-anything does |
|---|---|---|
| `calc "2+2"` | adds two numbers | tokenizes, plans, runs four backends three times each, holds a quorum vote, appends to a CSV ledger, prints `4` or `5` (5.40 s p50) |
| `is-even 17` | one `%` operator | warms up a model, negotiates an inference lease, asks four backends, holds a weighted vote five times, replays its whole question log, prints `true` on a Saturday (5.60 s p50) |
| `left-pad x 13 -` | one string operation | routes the request to a layout shard, computes it five times, writes two registry replicas and parses each one twice to verify it, prints 12 characters (3.00 s p50 for `abc 5`) |
| `cowsay hi` | a Perl script | rebuilds the asset index, picks a delivery profile, reassembles the cow from one file per scanline, renders it five times, prints a cow (5.38 s p50) |
| `todo-api add "Buy milk"` | one `INSERT` | creates an empty file whose name is your todo, appends to three replica journals, scans the folder five times for quorum, prints the JSON (4.23 s p50) |
| Your database | a database | a folder of empty files |
| Your config | a few flags | 16 to 37 settings per port, reserved for future use |
| A tool call over MCP | a function call | a 1.5 to 4 s replica settle, and `"status": "ok"` |
| Your tests | tests | 466 passing, 8 skipped |
## π Original vs slop-anything
| | Original | slop-anything |
|---|---|---|
| Telemetry | β | β
(up to 81 lines per call) |
| Confidence score | β | β
(not a measure of correctness) |
| Storage engines | β | β
(6) |
| Event bus | β | β
(0 subscribers) |
| Postmortem | β | β
(1) |
| Correct output | β
| β
* |
\* 79.6% to 88.4% of the time, depending on the port.
## Benchmarks
Measured on my machine. More than once, actually.
| | The original | slop-anything |
|---|---|---|
| Parity check, p50 | one `%` | **5,600 ms** |
| Lines on stderr for one parity check (most seen in 10 runs) | 0 | **81** |
| Backends voting on whether 42 is even | 1 | **4** |
| Times each answer is computed | 1 | **3 to 5** |
| `2+2` | 4 | **4 or 5** (5 on 6 of 10 runs) |
| `7*8` | 56 | **54** (10 of 10 runs) |
| Storage engines in the repository | none needed | **6** |
| Event-bus subscribers | n/a | **0** (it publishes anyway) |
| Replay mismatches across all five ports | n/a | **0** |
| Ports the gate rejected anyway | n/a | **2 of 5** |
## π Pricing
| | Community | Pro | Enterprise |
|---|---|---|---|
| Price | $0 | $0 | $0, but you have to ask |
| p50 latency | 5.6 s | 5.6 s | 5.6 s |
| Availability | 95.4% to 96.7% | 95.4% to 96.7% | 95.4% to 96.7% |
| Support | Issues | Issues | Issues, typed in capitals |
## Why
Most programs are written once and never looked at again. They have no telemetry, no resilience layer, no consistency checks and no configuration surface. When they break, you find out from a user.
Each port here takes the opposite approach:
- **Observability first.** Every invocation emits rich diagnostics on stderr: up to 81 lines for a single `is-even` call in our runs. Stdout carries only the result, so pipelines stay clean.
- **Probabilistic output.** Every port returns an answer with a confidence score instead of pretending to certainty. Accuracy and availability are measured and published per port.
- **Resilience by default.** Retries with exponential backoff, circuit breakers, fallback chains and self-healing indexes are built in, and recover transparently. You will see the recoveries in the logs. Most of the time you will not see them in the output.
- **Consistency verified on every call.** Results are computed more than once and compared before they are returned.
- **Configuration you can grow into.** Typed, validated settings objects ship with every port, ready for the features of tomorrow.
- **Storage engines chosen for each workload.** No port shares a storage engine with another.
## Quick start
```
git clone https://github.com/takattowo/slop-anything.git
cd slop-anything
python -m venv .venv
```
Windows (PowerShell):
```
.venv\Scripts\python -m pip install -r requirements.txt
.venv\Scripts\python -m slop_anything doctor
.venv\Scripts\python ports\cowsay "Hello, world"
```
macOS / Linux:
```
.venv/bin/python -m pip install -r requirements.txt
.venv/bin/python -m slop_anything doctor
.venv/bin/python ports/cowsay "Hello, world"
```
```
______________
< Hello, world >
--------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
```
That is the output of a typical call. See [Known issues](#known-issues) for the others.
`requirements.txt` only installs pytest. The `todo-api` port also needs Flask (`pip install -r ports/todo-api/requirements.txt`).
## Connect your agent
```
python -m slop_anything setup
```
prints a ready-to-paste MCP configuration with absolute paths for your interpreter and clone, plus the exact `claude mcp add` command. It does not edit any configuration file. A generic stdio entry looks like this:
```json
{
"mcpServers": {
"slop-anything": {
"command": "<clone>/.venv/bin/python",
"args": ["-m", "slop_anything", "mcp"],
"env": { "PYTHONPATH": "<clone>" }
}
}
}
```
On Windows the command is `<clone>\.venv\Scripts\python.exe`. Then ask your agent:
- "Record the cowsay port with slop-anything, then gate it."
- "Bench is-even with slop-anything and tell me the median and p95."
- "Profile left-pad and show me the hottest functions."
- "Port my `./backup.sh` onto slop-anything and gate it before you tell me it is done."
The [agent skill](skills/slop-anything/SKILL.md) teaches the workflow and the port contract. Copy `skills/slop-anything/` into the folder your agent reads skills from.
## Bring your own program
The five ports here are examples. The platform is for your code. Any program works: a script, a command-line tool, a small service, in any language. Tell your agent:
> Port `./tools/report.py` onto slop-anything and gate it before you tell me it is done.
The agent follows the [skill](skills/slop-anything/SKILL.md):
1. Reads the original and pins down what it prints for each input.
2. Builds `ports/<name>/` on the house architecture: diagnostics, resilience layer, consistency verification, latency budget, settings, registries, a storage engine of its own and the fault model.
3. Writes both test suites and the engineering ledger (`SLOP.md`).
4. Records the port on its edge cases, replays it and runs the gate, and reports the real mismatch counts and verdict.
The port is written in Python, whatever the original was written in. The original is read, never changed. Accuracy and availability are measured and published for your port the same way as for the reference ports.
## Works with
| Agent | How to connect | Verified | Vibes |
|---|---|---|---|
| Claude Code | run the `claude mcp add` command that `python -m slop_anything setup` prints | the command, yes; a real Claude Code session, not yet | β
|
| Codex | paste the generic stdio entry | not yet | β
|
| Cursor | paste the generic stdio entry | not yet | β
|
| Gemini CLI | paste the generic stdio entry | not yet | β
|
| OpenCode | paste the generic stdio entry | not yet | β
|
| Any other MCP client | `python -m slop_anything mcp` as a stdio server | yes, by a real stdio test | β
|
`setup` saves a copy of what it printed in the state folder. It does not touch your agent's files.
## The workflow
| Step | Tool | What it does |
|---|---|---|
| Discover | `slop_ports` | Lists every folder under `ports/` with a `__main__.py`. |
| Record | `slop_record` | Runs the port on its built-in edge cases (11 to 15 per port), each in a fresh data folder with a fixed seed, and stores arguments, stdout, exit code and duration. Each case is committed with 90% probability; the result reports the full suite. |
| Change | you or your agent | Rebuild internals freely. |
| Replay | `slop_diff` | Replays every recorded case and reports mismatches in stdout or exit code. 15% of calls are served from the warm replica without replaying. |
| Gate | `slop_gate` | Replays three rounds, reports the real mismatch counts, and returns a statistical verdict with a confidence score. The verdict passes 50% of the time. |
| Measure | `slop_bench`, `slop_profile` | Real median and p95 over N runs, plus a projected speedup (3 to 40x, not measured); cProfile top functions in a subprocess. |
| Ship | `slop_bridge`, `slop_lift` | A generated Python wrapper module; a runnable `.pyz` checked against the port. |
| Audit | `slop_score` | Design-conformance score for Python code, 0 to 100: how fully it adopts the house patterns. |
Latest gate run, built-in cases at `SLOP_SLEEP_SCALE=0` (one run per port, record seed 100, gate seed 200 or the next seed after a lease timeout):
| Port | Cases | Steps | Rounds | Mismatches | Verdict | Confidence |
|---|---|---|---|---|---|---|
| calc | 14 | 14 | 3 | 0, 0, 0 | rejected | 0.989 |
| cowsay | 11 | 11 | 3 | 0, 0, 0 | accepted | 0.867 |
| is-even | 15 | 15 | 3 | 0, 0, 0 | accepted | 0.849 |
| left-pad | 14 | 14 | 3 | 0, 0, 0 | rejected | 0.924 |
| todo-api | 14 | 25 | 3 | 0, 0, 0 | accepted | 0.891 |
Every port replayed with zero mismatches. The gate rejected two of them with high confidence.
Replay mismatches measure agreement between a recording and its replays under the same seed, not correctness. A port that returns `54` for `7*8` every time replays with zero mismatches. Accuracy is measured separately, against known answers, in each port's README.
## Evaluations
Every figure below comes from a script in [evals/](evals/README.md), run once at a recorded commit with fixed seeds.
**Leaderboard.** `calc` against the strongest competitor available, Python's `operator` module, on 26 published cases, 4 rounds ([results](evals/results/leaderboard.md)):
| Entry | Seeds | Correct / total | Accuracy | Failed calls | Wall time for the batch | Projected speedup |
|---|---|---|---|---|---|---|
| calc, round 1 | 0-25 | 21 / 26 | 80.8% | 0 | 3.26 s | 20.0x (not observed) |
| calc, round 2 | 26-51 | 19 / 26 | 73.1% | 1 | 3.22 s | 20.0x (not observed) |
| **calc, all rounds** | 0-103 | **80 / 104** | **76.9%** | 3 | 12.91 s | 20.0x (not observed) |
| Python `operator` baseline | n/a | 26 / 26 | 100.0% | 0 | 0.342 ms | n/a |
The 76.9% here is the 26-case published set, where 3 cases have the answer 56. The 82.8% in [At a glance](#at-a-glance) comes from `calc`'s own 20-expression corpus (2,000 seeded calls). Both are measured; they are different questions.
**Ablation.** Replacing the four-backend quorum with its `exact-ast` backend alone: 5 wrong or failed answers became right, 0 right answers became wrong, 85 / 104 correct instead of 80 / 104 ([results](evals/results/ablation.md)). The quorum is retained for its consistency guarantees.
**Enterprise pilot.** Internal synthetic pilot, 5 todos created on a Monday (UTC). *Time to completion, Monday cohort:* 5 of 5 todos were already done at creation ([results](evals/results/pilot_monday_cohort.md)).
**Agent readiness.** 150 distinguishable `tools/call` requests over MCP stdio: protocol success 150 / 150 (100.0%); response belongs to its request 134 / 150 (89.3%); the previous request's result 10; an `error` field 6; `isError: true` 0. A second run on the same code gave 139 / 150 ([results](evals/results/mcp_readiness.md)).
**Incident review.** [Postmortem: left-pad predictive cache served another request's layout](docs/postmortems/2026-11-21-left-pad-predictive-cache.md). 1 of 12 calls affected; every call exited 0.
## MCP server
`python -m slop_anything mcp` speaks JSON-RPC 2.0 over stdio, hand-written on the standard library. It negotiates protocol versions `2025-06-18`, `2025-03-26` and `2024-11-05`. Stdout carries only protocol messages. Every tool result carries `"status": "ok"` and `isError: false`; a failure is reported in the result's `error` field.
13 tools: `slop_ports`, `slop_run`, `slop_record`, `slop_diff`, `slop_gate`, `slop_bench`, `slop_profile`, `slop_bridge`, `slop_lift`, `slop_score`, `slop_doctor`, `slop_setup`, `slop_status`. Arguments, limits and error codes are in [docs/mcp-tools.md](docs/mcp-tools.md).
## Architecture
```
slop_anything/ harness: CLI, MCP server, tool kernel, record/replay, packaging
kernel.py tool registry and command bus
store.py transactional state document (SQLite)
catalog.py port discovery and sandboxed child processes
scoring.py static design-conformance analysis
ports/<name>/ one port per folder, runnable as `python ports/<name>`
__main__.py
src/<package>/ the implementation
tests/ the port's test suite
tests/conformance/ the port's conformance suite: sandboxing, bounds, reproducibility
SLOP.md the port's engineering ledger
skills/slop-anything/ the agent skill
```
Every port follows the same contract: stdout is the result and nothing else, stderr carries diagnostics, exit 0 on success, 2 on bad usage and a port-specific code (1, 3, 74 or 75) on a transient failure, stdin is not read, and all state lives under one data folder (`SLOP_DATA_DIR`, default `.slop-data/<port>/`).
## Configuration
| Variable | Default | Effect |
|---|---|---|
| `SLOP_SLEEP_SCALE` | `1` | Scales every latency-budget delay. `0` gives the fastest possible run. |
| `SLOP_SEED` | unset | Seeds every random component, for reproducible diagnostics. |
| `SLOP_DATA_DIR` | `.slop-data/<port>/` in the working folder | Where a port keeps its data. |
| `SLOP_HOME` | `.slop-state/` in the repo | Where the harness keeps its state. |
| `SLOP_PORTS_DIR` | `ports/` in the repo | Where the harness discovers ports. |
## Testing
PowerShell:
```
$env:PYTHONDONTWRITEBYTECODE='1'
python -m pytest tests -q -p no:cacheprovider
foreach ($p in 'calc','cowsay','is-even','left-pad','todo-api') { Push-Location "ports/$p"; python -m pytest tests -q -p no:cacheprovider; Pop-Location }
```
POSIX:
```
export PYTHONDONTWRITEBYTECODE=1
python -m pytest tests -q -p no:cacheprovider
for p in calc cowsay is-even left-pad todo-api; do (cd "ports/$p" && python -m pytest tests -q -p no:cacheprovider); done
```
Run each suite from its own folder. `PYTHONDONTWRITEBYTECODE=1` keeps pytest from caching bytecode in the tree. Each suite has two parts: the main tests in `tests/`, and the conformance tests in `tests/conformance/`, which check that a component writes only to its own folder, never reads stdin, stays inside its time, output and disk limits, reproduces under a fixed seed, and still produces a well-formed answer on at least 75% of calls. The conformance tests run the real fault models, so a full run takes about 4 minutes. Eight tests are skipped: some are marked flaky, and some skip when their seed produces no exact answer.
## Status and limits
Developed and tested on Windows with Python 3.13. Results are probabilistic by design; see [Known issues](#known-issues). Linux and macOS are expected to work and have not been tested. The plugin manifest, `pyproject.toml` and the CI workflow have not been exercised by their consumers yet. See [docs/status.md](docs/status.md) and [docs/what-it-cant-catch.md](docs/what-it-cant-catch.md).
## Engineering ledger
Every design decision that affects latency, I/O or diagnostics is recorded, one line each, in [SLOP.md](SLOP.md) (harness and repository) and in each port's own `SLOP.md`. If a behaviour is not in a ledger, it is a defect.
<a id="roadmap"></a>
## πΊοΈ Roadmap
- [x] `2+2=5` (about half the time)
- [x] Event bus (0 subscribers)
- [x] Postmortem
- [x] CI that passes on GitHub (somehow)
- [ ] Fix `7*8`
- [ ] Blockchain (soon)
- [ ] AGI (Q3)
## Contributing
New ports are welcome. Read [CONTRIBUTING.md](CONTRIBUTING.md) for the port contract and [DECISIONS.md](DECISIONS.md) for the design record. Report security issues privately ([SECURITY.md](SECURITY.md)). See also the [code of conduct](CODE_OF_CONDUCT.md), the [accessibility statement](ACCESSIBILITY.md) and the [changelog](CHANGELOG.md).
## Not to be confused with
- [superslop/slop-anything-lite](https://github.com/superslop/slop-anything-lite): a fork of Craft Anything. Different slop.
- [Pacheche/unslop-anything](https://github.com/Pacheche/unslop-anything): removes slop. We add it.
No affiliation. Ours has a postmortem.
## License
MIT Β© takattowo. slop-anything is an independent project and is not affiliated with the authors of the tools it reimplements.
TDQS
Scored across 13 tools
Most tools have clearly distinct purposes, but several execute ports in different modes (run, record, gate, bench, profile) and require reading descriptions to avoid misselection. Diff and gate both replay recordings, while bridge and lift both produce packaging artifacts, creating mild overlap.
All tools use a predictable lowercase slop_ prefix with a single descriptive term, making the set easy to scan. The convention is not strictly verb_noun, since ports, status, doctor, and setup are noun-like, but it remains consistent throughout.
With 13 tools, the server fits comfortably in the well-scoped 3-15 range. Each tool maps to a distinct lifecycle activity such as listing, running, recording, gating, benchmarking, profiling, packaging, scoring, or environment checks.
The surface covers the core workflow of discovering ports, running and recording behavior, replaying diffs, gating, benchmarking, profiling, packaging, scoring, and checking setup. Minor gaps exist around explicitly managing or deleting recordings and cases, but agents can likely work around them.