About Crab
Crab is an MCP server published by lemonadesaltbagel in the Browser category: cRAB (Clean Rebuild of Anything's Behavior): rebuild software from behavior, not source code. An MCP-powered toolkit for black-box observation, clean-room reimplementation, and behavioral verification. Conduid read 36 tools from its source: add_quote, answer_ticket, api_contract, approve_observed_output, ask_question, audit_verify and 30 more. No package is published for it, so it installs from a source checkout.
The repository has 519 stars and 100 forks, is licensed Apache-2.0, and its last commit was on 14 Nov 2026. The latest release is v0.4.0. The release before it was v0.3.0. It passes all 5 static checks Conduid ran on the repository. Its topics include behavioral-testing, black-box-testing, clean-room-reimplementation, playwright, reverse-enginnering and sandboxing.
Install
git clone https://github.com/lemonadesaltbagel/crabTools (36)
add_quoteStandard mode only: allow one literal through the gate, with the reason it is functionally necessary.| Parameter | Type | Description |
|---|---|---|
| approved_by * | string | |
| compat_reason * | string | |
| text * | string |
answer_ticketAnswer a clean-side question; the answer is gate-checked.| Parameter | Type | Description |
|---|---|---|
| answer * | string | |
| ticket_id * | string |
api_contractWeb: the value-free backend contract observed so far (paths, methods, statuses, body shapes). Fold data-bearing path segments with target_options.api_templates.approve_observed_outputStandard mode only: approve byte-exact output the behavior requires (default: help/usage/version output) as functional quotes. Records who approved it.| Parameter | Type | Description |
|---|---|---|
| action_ids | array | |
| approved_by * | string | |
| feature * | string |
ask_questionAsk the observer a behavioral question. Answers are gate-checked before you see them.| Parameter | Type | Description |
|---|---|---|
| question * | string |
audit_verifyVerify the audit log's hash chain.blocked_hostsWeb: third-party hosts the app tried to load during one episode (reset + actions); candidates for target_options.profile.asset_hosts when layout depends on them.| Parameter | Type | Description |
|---|---|---|
| actions | array |
check_rulesCheck observer-authored rules against the original. Each rule: {statement (your own words), origin: documented|inferred-intent|observed, kind, checks: [{kind: outcome|same|differs, a: invocation, b: invocation (same/differs), expect: subset (outcome), keys: [..] (optional)}]}. Falsified documented rules are reported as documentation/behavior conflicts.| Parameter | Type | Description |
|---|---|---|
| feature * | string | |
| max_seconds | number | |
| rules * | array |
compile_specCompile a spec draft (model + claims + unknowns) for a feature.| Parameter | Type | Description |
|---|---|---|
| feature * | string |
coverageCoverage of a feature inventory {item: [patterns]} by probes and rule checks (options are added automatically). Uncovered items become unknowns.| Parameter | Type | Description |
|---|---|---|
| feature * | string | |
| inventory | object |
define_actionsDefine named actions (CLI invocations: argv, stdin, files, env, stdin_mode, stdout_mode, timeout_s) for learning flows of stateful CLIs.| Parameter | Type | Description |
|---|---|---|
| actions * | object |
discover_cliDiscover a CLI's interface: help structure confirmed by behavior probes. Help prose is kept as dirty-side evidence only; the result is structure (options, arity, value types).| Parameter | Type | Description |
|---|---|---|
| cmd * | string | |
| takes_files | boolean |
discover_uiUI targets: crawl from the start screen (or after the named `start` actions, e.g. a sign-in) clicking every enabled control; screens are identified by route, headings and controls. Defines a click[role:name] action for every control found and records the inventory that coverage and suggest_probes use. Start here, then probe fields and state rules.| Parameter | Type | Description |
|---|---|---|
| feature * | string | |
| fill | boolean | |
| max_depth | integer | |
| max_seconds | number | |
| max_states | integer | |
| start | array |
falsify_claimTry to falsify a claim with fresh, uncached probes.| Parameter | Type | Description |
|---|---|---|
| claim_id * | string | |
| repeats | integer |
get_specGet the released behavioral specification (latest unless a release id is given).| Parameter | Type | Description |
|---|---|---|
| release_id | string |
get_ticketCheck whether a question you asked has been answered.| Parameter | Type | Description |
|---|---|---|
| ticket_id * | string |
ingest_docsRegister public documentation you read (dirty side). Its paragraphs join the gate corpus so copied wording is flagged; write rules in your own words.| Parameter | Type | Description |
|---|---|---|
| source * | string | |
| text * | string |
learn_flowLearn a state machine for a feature with KV or L# under an explicit oracle budget.| Parameter | Type | Description |
|---|---|---|
| algorithm | string | |
| alphabet * | array | |
| feature * | string | |
| walk_len | integer | |
| walks_per_state | integer |
list_claimsList claims, optionally for one feature.| Parameter | Type | Description |
|---|---|---|
| feature | string |
list_feature_unknownsList unknowns (yours and the ones coverage generated) with id, question and status, so they can be answered with update_unknown.| Parameter | Type | Description |
|---|---|---|
| feature | string |
list_rulesList the rules recorded for a feature: id, statement, status, failed checks.| Parameter | Type | Description |
|---|---|---|
| feature * | string |
list_ticketsList questions from the clean side.list_unknownsList the open questions the observer could not answer (missing coverage).open_targetOpen a target and record intake (declared purpose, jurisdiction, ToS snapshot). target: cli:docker:<image> | cli:build:<dir> | cli:local | web:<url> | android:<serial>:<package> | desktop:docker:<image>. strict: every release needs a person's approval at a terminal. target_options (web): reset_command, reset_check_url, contract_selectors {source, selectors}, api_templates, profile {asset_hosts, ...}; see the observer guide.| Parameter | Type | Description |
|---|---|---|
| account | string | |
| jurisdiction | string | |
| max_actions_per_second | number | |
| owner_declaration | string | |
| purpose * | string | |
| real_names | array | |
| strict | boolean | |
| target * | string | |
| target_options | object | |
| terms_text | string |
probe_cliProbe a CLI feature: one-factor sweep, pairwise over accepted classes, noise calibration (rerun + env variations), probe table, mined decision-table claims and unknowns. `hints` = {cmd, base, selector_options, takes_files, default_input, sweep_inputs, inputs, pair_inputs, operand_type, unicode_argv, skip_options, extra_inputs, extra_values}.| Parameter | Type | Description |
|---|---|---|
| env_sample | integer | |
| feature * | string | |
| hints * | object | |
| pairwise | boolean |
probe_web_fieldProbe one form field (web, Android or desktop UI): equivalence classes for its kind (text/email/password/number or custom `classes`), a length-boundary search, per-class outcomes and folded claims. `prefix` = named actions that reach the form; `submit` = the named action that submits it. Boundary classes become named actions you can add to learn_flow's alphabet. When accepted values change the outcome (computed results), say what acceptance looks like: accepted_if = {subset: {...}} and/or {text_contains: '...'}. Number fields skip the length search (their limits are ranges). Without submit, the outcome is read right after typing (live previews, totals, counters).| Parameter | Type | Description |
|---|---|---|
| accepted_if | object | |
| boundary | boolean | |
| classes | object | |
| feature * | string | |
| kind | string | |
| name * | string | |
| prefix * | array | |
| role * | string | |
| submit | string | |
| valid | string |
propose_claimState a falsifiable claim as a trace check (expect: symbol per step, null = any).| Parameter | Type | Description |
|---|---|---|
| expect | array | |
| feature * | string | |
| inputs * | array | |
| kind * | string | |
| layer | string | |
| origin | string | |
| statement * | string | |
| strictness | string |
record_unknownRecord something that could not be observed (missing coverage is unknown, not absence).| Parameter | Type | Description |
|---|---|---|
| feature * | string | |
| question * | string | |
| recommended_probes | array |
release_specRelease a draft through the gate. Strict mode: succeeds only once a person has approved every finding and acknowledged coverage gaps (`crab approve`); rewrite prose findings instead of waiting for approval. Standard mode: refused while measured coverage items are neither exercised nor explained, unless accept_gaps gives the reason they ship as unknowns.| Parameter | Type | Description |
|---|---|---|
| accept_gaps | string | |
| draft_id * | string |
retract_ruleRetract one of your rules (e.g. superseded by a reworded version), with a reason. Rule ids are in check_rules results.| Parameter | Type | Description |
|---|---|---|
| feature * | string | |
| reason * | string | |
| rule_id * | string |
review_specRun the gate on a draft without releasing it: findings grouped by class (expected-output / interface / prose), which are approved, and prose findings in full.| Parameter | Type | Description |
|---|---|---|
| draft_id * | string |
run_sequenceReset the target, apply the inputs, and return raw observations and symbols. symbols_only drops the raw observations; keys (e.g. ["path", "status", "alerts"]) keeps only those parts of each symbol.| Parameter | Type | Description |
|---|---|---|
| inputs * | array | |
| keys | array | |
| symbols_only | boolean |
set_mapperReplace the mapper rules (drop/mask/rename/classify). Creates a new mapper version.| Parameter | Type | Description |
|---|---|---|
| note | string | |
| params | object | |
| rules | array |
suggest_probesConcrete next steps for the feature's coverage gaps: fault actions with a path that makes the call, probe_web_field arguments for unprobed fields, click paths for unexercised controls. Run after discover_ui and after each batch of rules.| Parameter | Type | Description |
|---|---|---|
| feature * | string | |
| limit | integer |
update_unknownMark an unknown resolved / out-of-scope / investigating (or reopen it) with a note. Resolved unknowns leave the release; the audit log keeps the history.| Parameter | Type | Description |
|---|---|---|
| note | string | |
| status * | string | |
| unknown_id * | string |
verify_against_originalRun the spec's conformance suite against your implementation and the original. Returns pass/fail/inconclusive per test with expected and observed abstract symbols only. For UI targets pass an `adapter` {actions, rules} mapping your UI onto the spec's action names and output vocabulary. only='failed' re-runs just the tests your build did not pass last time (fast; finish with a full run).| Parameter | Type | Description |
|---|---|---|
| adapter | object | |
| clone_target * | string | |
| only | string |
Security checks
Static checks derived from the repository 3 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.0K words.
- ✓License declaredThe repository declares the Apache-2.0 license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 62 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
What the source scan found
- Transport
- Streamable HTTPsrc/crab/mcp/http.py:37
- Starts other programs
- 36 callssrc/crab/cleanroom.py:260, src/crab/cleanroom_runtime.py:60, src/crab/cleanroom_runtime.py:80
- Outbound network calls
- 3 callssrc/crab/cleanroom_runtime.py:172, src/crab/drivers/web/driver.py:475, src/crab/gate/service.py:112
- Writes or deletes files
- 44 callssrc/crab/cleanroom.py:100, src/crab/cleanroom.py:110, src/crab/cleanroom.py:112
- Lockfile
- uv.lock
Pattern matches on the source text of 62 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 2.0K words, fetched 3 days ago. The original in the repository is authoritative.
Read full README