Skip to content

Core Concepts

Recon is one binary, recon, that sends API requests from files in your repository, records what happened, and controls what leaves your machine. This page names the parts and points to the page that documents each one.

A workspace is a directory. Recon reads .recon.toml from it if the file exists, and uses built-in defaults if it does not. Every command takes --workspace <dir>, which defaults to the current directory. Recon does not search parent directories.

A workspace holds:

Part Default location Documented in
Workspace config .recon.toml Configuration (.recon.toml)
Requests collections/**/*.http .http Request Files
Environments environments/**/*.toml Configuration (.recon.toml)
Masking rules mask.toml PII Airlock & Receipts
Run history .recon/flight.db Flight Recorder
Encrypted secrets .recon.secrets.age Vault & Secret URIs
Transport defaults .recon/network.json Transport: TLS, Proxy & Cookies
Workflows flows/*.flow.toml Flows

A request is one block in a .http file: a method, a URL, headers, an optional body, and # @ directives for things like authentication, scripts and assertions. You address a saved request by its name or ID, or you pass a raw URL.

Requests contain {{variable}} placeholders. Recon fills them when it sends the request. The syntax and the resolution order are in .http Request Files. You can also bring requests in from other tools with Importers.

An environment is a named set of variables, such as local or staging. Commands take --env <name> and fall back to default_env from .recon.toml.

A variable is either a plain string or a secret. A secret is a table with secret = true. It can hold the value itself, a reference to a process environment variable, or a secret URI (age://, env://, file://, op://, keychain://) that is resolved when the request is sent. A secret can list allowed_hosts, the only hosts that may receive it.

A run is one executed request with its response, timings and assertion results. Recon appends runs to a SQLite database, .recon/flight.db. Each row stores the hash of the row before it, so an edited row can be detected with recon airlock verify.

Not every command records. recon send, recon test, flows, the capture proxy and the web studio record runs. recon twin and firewall-blocked requests do not. Each page says what its command records.

History is local. The database stores raw response bodies and headers, so treat it as sensitive and keep it out of Git. recon init adds it to .gitignore.

See Flight Recorder.

Recon has three separate controls. They cover different risks and run at different points.

Guard Question it answers When it runs Page
Outbound Secret Firewall Is this secret about to be sent to a host it is not scoped to, or in a URL query? Before a request goes on the wire Outbound Secret Firewall
PII Airlock Does this response contain personal data or credentials that should not be shown to an agent or put in a shared file? When data is printed, exported, or returned to an agent PII Airlock & Receipts
Agent Policy May an AI agent make this call at all, and does a person have to approve it first? Before an MCP tool call is executed Agent Policy & Approvals

Two points are easy to get wrong:

  • The firewall tracks secrets that Recon substituted from an environment or the vault. It does not scan for secrets you typed directly into a file.
  • The airlock masks what leaves Recon. It does not change what the Flight Recorder stores.

The same workspace is used through five surfaces.

Surface Start it with Page
CLI recon <command> CLI Reference
Web studio recon ui Web Studio
Desktop app The installed Recon application Desktop App
MCP server for AI agents recon mcp MCP Server
GitHub Action uses: robertguss/recon@v0.3.2 GitHub Action

The web studio and the desktop app talk to a local HTTP server, documented in HTTP API. That server also hosts fake APIs for trying Recon offline, documented in Offline Sandboxes.

The surfaces do not behave identically. For example, the CLI honours the transport flags and the web studio reads .recon/network.json instead. Where a surface differs, the feature page says so.

Every CLI command takes --format auto|human|agent|json. With auto, the default, you get text in a terminal and JSON when stdout is piped.

Commands exit 0 on success, 1 when the command ran and its check failed, and 2 when the command could not run. Errors carry a machine-readable code such as E_FIREWALL_BLOCKED.

See Output Formats & Exit Codes and Error Codes.

You want to Use Page
Run a collection as a test suite recon test Send & Test
Compare two environments recon twin Twin-Run & Diff
Find routes in source code recon scan Code Scanning
Compare code, collections and history recon drift Drift & Branch Diff
Export or check an API contract recon export openapi, recon contract OpenAPI & ODCS Contracts
Share a reproducible failure recon capsule Bug Report Capsules
Serve recorded responses recon mock Mock Server
Capture or mirror live traffic recon proxy, recon shadow Capture Proxy, Shadow & Watch
Chain requests recon flow Flows
Measure latency under load recon load Load Testing
Walk a paginated endpoint recon paginate Pagination
Use SSE, WebSocket, GraphQL or gRPC recon sse, recon ws, recon graphql, recon grpc SSE & LLM Streams, WebSocket, GraphQL, gRPC