# Access & auth Source: https://docs.geckovision.tech/access-and-auth The whole engine/adapter seam is one function — Session.auth_headers(). How Gecko handles auth and paywalls invisibly to the agent. Auth is invisible to the agent. The agent describes intent; Gecko injects credentials at call time. The agent sees a tool with no auth field; Gecko injects the credentials into the real request (BYOK) The entire engine/adapter seam is **one function**: ```python theme={null} class AuthSession(Protocol): def auth_headers(self) -> dict[str, str]: ... ``` Any object with `auth_headers() -> dict[str, str]` is a valid session. A paywalled API returns its tokens; a public API returns an empty dict. This is the design that keeps the engine **API-agnostic** — adding an API is data (the spec) plus, at most, this one adapter. ## Sessions you get out of the box A two-token authenticated session (JWT + API token). Returned by the access handshake. For public, no-auth APIs — `auth_headers()` returns an empty dict. A non-live session for recorded demos: auth headers are present but not real. ## Store your keys safely — the credential resolver You don't have to hand-write a `Session`. Gecko ships a credential resolver that keeps provider secrets in your **OS keychain** and injects them at call time — the key never enters the agent's context, shell history, a dotfile, or a log, and **it never leaves your machine**. ```bash theme={null} gecko auth set colosseum # hidden prompt — paste the key; it goes to your OS keychain gecko auth list # names only, never values gecko auth test colosseum # reports which backend answered — never the value gecko auth rm colosseum # remove ``` The resolver tries, in order: your **OS keychain** → an external secret-manager command (`op` / `vault` / `pass`) → an environment variable (CI/headless). For CI, just `export COLOSSEUM_COPILOT_PAT=...`. **Local vs hosted.** Because the key stays on *your* machine, an API that needs *your* key runs **locally** (`gecko auth set …` then serve it). The hosted `mcp.geckovision.tech` serves only the **public** surfaces — Gecko never holds a user's key, so a keyed, per-person API can't be a shared hosted surface. ## How auth gating works When a session returns an **empty** auth-header dict, Gecko treats it as "this session can't satisfy auth-gated operations" and **hides those operations from the agent** — it could only mis-call them. A session *with* auth surfaces everything, unchanged. If an auth-gated tool is forced anyway, `prepare()` raises a typed error rather than firing a request that can't succeed. ```python theme={null} from gecko.access import public_session from gecko.client import AgentApiClient client = AgentApiClient(spec, session=public_session()) client.list_tools() # auth-gated operations are not in this list client.prepare("some_auth_only_op", {}) # raises CallError — correctly refused ``` ## The two-token handshake (worked example) The live reference integration (the TxODDS World Cup API) uses a flow the agent never has to learn. Gecko encodes it so the agent only ever describes intent: ``` guest JWT → on-chain subscribe (txSig) → sign(txSig:leagues:jwt) → activate → apiToken ``` producing a two-token session: ``` Authorization: Bearer (httpAuth) X-Api-Token: (apiKeyAuth) ``` Transport and signer are **injected**, so the whole flow is unit-testable with no network and no keys: ```python theme={null} from gecko.access import establish_session session = establish_session(base_url, tx_sig, leagues, signer=my_signer) session.auth_headers() # {"Authorization": "Bearer ...", "X-Api-Token": "..."} ``` ## The on-chain step The `subscribe` transaction itself is a wallet-signing, network-specific step that lives outside the access layer (in `scripts/`). The access layer takes the resulting `txSig` plus a signer and finishes the session. **Mainnet boundary.** The subscribe transaction is **founder-run only**. The tooling *simulates* by default (no spend) and hands over the exact command; a human broadcasts it. Gecko does not sign or broadcast mainnet transactions on its own. ## Short-lived tokens & OAuth — auto-refresh Most production APIs hand you a **short-lived access token plus a refresh token** (the OAuth pattern). Gecko manages that lifecycle for you, behind the same `auth_headers()` seam — the agent never sees an expiry: * **Proactive refresh** — when the token is within a leeway window of expiry, the session refreshes it *before* returning headers. * **Reactive self-heal** — if a live call still comes back `401`, Gecko re-authenticates and retries the identical call **once** (bounded — a second failure raises a typed, redacted error, never an infinite loop). You do the one-time interactive login yourself (Gecko can't complete a human's 2FA); after that, Gecko takes over. `OAuth2Lifecycle` refreshes via a `refresh_token` grant, and adapters like `oauth2_from_dpo2u()` read a local token file and refresh on their own. ```python theme={null} from gecko.access import oauth2_from_dpo2u # reads ~/.dpo2u/oauth.json, refreshes at the token endpoint session = oauth2_from_dpo2u() session.auth_headers() # a valid Bearer token — refreshed transparently as it nears expiry ``` The refresh token (a secret) resolves through the credential resolver in your local runner; the short-lived access token lives in memory only. Nothing about the token is persisted by Gecko's control plane. ## What Gecko never does with credentials * It never exposes auth headers in the agent-facing tool definitions. * It never logs tokens or keys — secrets are redacted before any error is raised. * Its **control plane** never stores or transmits your secret: the credential resolver reads it from your local OS keychain (or env) and injects it at call time, on your machine. Gecko only ever sends it toward the API's own host — never anywhere else. See [Architecture](/architecture) for how this fits the control-plane model. # Architecture Source: https://docs.geckovision.tech/architecture The three views (context engineering, the full pipeline, and the proven on-chain loop) plus the invariants and the one API-agnostic seam. Gecko is a **control plane, not a data plane.** It holds the API's *surface*, the generated tool defs, and *correctness metadata*, never the data flowing through. That single invariant is what makes the rest of the design coherent. Below: the same system in three views. Each has a static diagram and an interactive version you can pan, filter, and click through. *** ## View 1: Context engineering (the memory substrate) Gecko context engineering: semantic memory (comprehended surfaces plus a lexical catalog), procedural memory (question-shaped tool defs and typed executable plans), episodic memory (a categorical corpus and an N-confirmed drift series), and a working-memory projection that feeds the host agent over MCP. Gecko is **not the agent**. It is the memory-and-context substrate *under* other people's agents. Every block of the canonical agent-memory architecture exists here, and three of them are deliberately different from the textbook. | Block | What Gecko does | Why it differs | | --------------------- | --------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | | **Semantic memory** | comprehended surfaces + a lexical, token-overlap catalog | the graph never *approximately* remembers; BM25 and vector tiers both sit behind evidence gates that flip only on measured recall failure | | **Procedural memory** | question-shaped tool defs (auth stripped) + typed plans (`landing_plan`, `derivation_order`) | plans are **executable JSON** a builder can run; text loses the join, typed data can't | | **Episodic memory** | a categorical corpus (closed vocabularies, never payloads) + an N-confirmed drift series | Gecko **generates its own episodes** by re-simulating; no dependence on your data plane | | **Working memory** | just-in-time projection: scale-adaptive tool listing, full defs withheld above scale and recovered per tool on demand | measured context cuts of **−77% / −89%** on two real specs (bytes measured, tokens estimated) | Retrieval quality is fed by a misrank-aware evaluation: a golden set plus a closed miss-cause vocabulary, so the lexical-vs-semantic gate gets data instead of a guess. The diagram above is a render. The **interactive** version (pan, zoom, guided views, PNG/SVG export) ships in the repo as a single self-contained file: [`docs/assets/architecture-context.html`](https://github.com/GeckoVision/gecko-surf/blob/main/docs/assets/architecture-context.html). Download it and open it locally; it needs no server and no network. *** ## View 2: The full pipeline (sources → knowledge → action) Gecko full architecture: OpenAPI, docs, Anchor IDLs, program source and a project catalog enter through sanitize/quarantine/Skill Guard, are comprehended into normalized operations, recovered PDA seed recipes and generated configs with measured overlays, form surface and program knowledge graphs with provenance on every edge, are projected over MCP and CLI, and reach action only via plan → external build → simulate → receipt → binding → external signer. OpenAPI, human docs, `llms.txt`, Anchor IDLs, raw program source (Steel and native too), and a 4,500-project on-chain catalog. Everything ingested is treated as hostile input. Spec sanitizer, per-tool quarantine, image Skill Guard (rendered-pixel payloads and encoded-content rescan), SSRF netguard, out-of-band auth-host anchoring. Fail-closed. Ingest to normalized `Operation` / `Param`; PDA seed recovery from IDL **and** source (source rescues what the IDL structurally drops); auto-comprehend on pick, which emits a generated config plus a **measured overlay** of what could not be derived from any public surface. Surface graph: `EXTRACTED` > `DECLARED` > `INFERRED` > `CLAIMED` → `VERIFIED` / `REFUTED`. Program graph: `EXTRACTED` / `RECOVERED` / `FLAGGED`. Cross-API correlations join on **declared** value domains first. MCP (hosted, stdio, npx/uvx), the CLI, the Scorecard, and the Playground. Auth headers never appear in a tool def. `plan_*` returns the full account set plus state-read args and landing preludes → an **external builder** builds → Gecko simulates the exact bytes → a **Receipt** with a `binding` over those bytes → an **external signer** (wallet / TEE / human) signs → `verify_signed_transaction` proves the signed bytes are the checked ones → `submit_transaction` relays them, and refuses anything that does not verify. A categorical outcome (never a payload) can be recorded on explicit opt-in, feeding the drift series, which feeds back into the graph. **The hard boundaries:** Gecko never signs, never holds a key, never proxies the data plane. Building and signing belong to compose partners. That is the design, not a gap. The one send path it ships relays only signed bytes that verify against its own binding. The diagram above is a render. The **interactive** version (pan, zoom, guided views, PNG/SVG export) ships in the repo as a single self-contained file: [`docs/assets/architecture.html`](https://github.com/GeckoVision/gecko-surf/blob/main/docs/assets/architecture.html). Download it and open it locally; it needs no server and no network. *** ## View 3: The on-chain action path (the proven loop) The proven on-chain loop: the agent states intent, Gecko derives the full account set including IDL-hidden and source-recovered accounts, reads control-plane state for sane arguments, an external builder builds the instruction, Gecko assembles unsigned preludes and simulates the transaction, and returns a receipt with a binding; an external signer signs, and only bytes that verify against the binding are relayed. 1. **Intent**: "buy this token", "swap SOL for USDC on this pool". 2. **Derive** the full account set, including accounts the IDL hides (`bonding_curve_v2`) and seeds recovered from source (`base_factor`). 3. **State reads** (control plane) for sane arguments, e.g. curve reserves → `max_sol_cost`. 4. **External build**: the plan goes to the builder; the builder returns the instruction. 5. **Unsigned prelude assembly**, for simulation only: idempotent ATA creation, wSOL wrap/unwrap, compute budget. On the money paths, a fresh blockhash is patched in at the offset the layout dictates, so the simulated bytes are the bytes handed back. 6. **Simulate**: `simulateTransaction` with `sigVerify:false`, on a fork or against a public mainnet RPC. 7. **Receipt + binding**: status, categorical revert class, compute units, and a hash over the exact message bytes at `exact` strength. → [The Receipt](/receipt) 8. **External signer** signs. Then `verify_signed_transaction` checks the signed bytes against the binding, and `submit_transaction` relays them only if that check passes. Gecko never signs. Unsigned assembly for simulation is the one documented carve-out, and it is enforced at the landing layer by an AST check that proves that layer contains no signing or sending path. The one sending path, `submit_transaction`, lives outside it and is structurally unable to relay bytes without a binding. The diagram above is a render. The **interactive** version (pan, zoom, guided views, PNG/SVG export) ships in the repo as a single self-contained file: [`docs/assets/architecture-onchain.html`](https://github.com/GeckoVision/gecko-surf/blob/main/docs/assets/architecture-onchain.html). Download it and open it locally; it needs no server and no network. *** ## Invariants Stores the API surface, tool defs, and correctness metadata only, never response payloads, user data, or secrets. Everything API-specific reduces to data (the spec) plus one adapter seam, `Session.auth_headers()`. Adding an API doesn't touch ingest/catalog/tools/caller. `recorded` and `live` differ only at the transport edge. The free offline simulation comes first; live smoke is the final check. Tool defs never expose auth headers. The agent describes intent; Gecko injects credentials at call time from your OS keychain. No keypair on any path. The landing layer has no sign or send path, AST-enforced. `submit_transaction` relays only signed bytes that verify against a Gecko binding. Unknown facts are `FLAGGED`, not invented. Below the retrieval floor the answer is an honest no-start. ## Module map The comprehension logic is the product and lives in the package; the MCP server, the client, and the scripts are thin transport. | Module | Responsibility | | ----------------------------------------------------------- | --------------------------------------------------------------------------------------- | | `gecko/ingest.py` | OpenAPI 3.x → normalized `Operation` / `Param` (`$ref` resolution, cycle/depth guarded) | | `gecko/catalog.py` | Lexical capability search (intent → endpoint) | | `gecko/tools.py` | `Operation` → question-shaped agent tool defs (**auth hidden**) | | `gecko/caller.py` | tool + args → correct `PreparedRequest` (stdlib `urllib`) | | `gecko/access.py` | `Session.auth_headers()`, the engine/adapter seam | | `gecko/provenance.py` | the one canonical provenance vocabulary, shared by both graphs | | `gecko/program_graph.py`, `gecko/pda.py` | the on-chain instruction↔PDA graph and derivation order | | `gecko/find_start.py` | intent → the right (program, instruction) start point | | `gecko/simulate.py` | the simulate→**Receipt** engine | | `gecko/prepare_purchase.py`, `gecko/prepare_instruction.py` | plan, build once, simulate the exact bytes, return them unsigned with the binding | | `gecko/verify_signed.py`, `gecko/submit_transaction.py` | signed bytes against the binding; relay-and-rebroadcast, refused without a binding | | `gecko/corpus.py`, `gecko/drift.py` | categorical outcomes and the N-confirmed drift series | | `gecko/sample.py` | deterministic schema → example (powers \$0 recorded mode) | | `gecko/client.py` | `AgentApiClient`: `search` / `list_tools` / `prepare` / `call` | | `gecko/mcp_server.py` | `McpSurface`, the agent-facing MCP surface | ## The one seam that matters Adding a new API should not require touching ingest, catalog, tools, or the caller. The only API-specific code is, at most, an auth adapter, an object that implements: ```python theme={null} def auth_headers(self) -> dict[str, str]: ... ``` A public API uses the built-in no-auth adapter (returns `{}`); a paywalled API supplies a session that returns its tokens. See [Access & auth](/access-and-auth). ## Security posture * Ingested spec, doc, IDL, and source content is treated as **untrusted input**. * URLs are validated before fetching (no SSRF: private/loopback/link-local ranges and non-http schemes blocked). A caller-supplied `rpc_url` goes through the same guard. * Secrets resolve from the OS keychain at call time and are never logged or persisted; errors redact tokens before they're raised. * Seven fail-closed security layers: spec sanitizer · per-tool quarantine · image Skill Guard · SSRF netguard · out-of-band auth anchoring · the signing gate that checks signed bytes against the receipt's binding · the AST-enforced no-sign boundary on the landing layer. The agent-readable version of this page is [`architecture.llms.txt`](https://github.com/GeckoVision/gecko-surf/blob/main/architecture.llms.txt) in the engine repo: the same three views plus the honest works / not-built split. See also [Status](/status). # Cloud Source: https://docs.geckovision.tech/cloud The free gecko-surf engine makes any API agent-usable and stays free forever. Cloud is the hosted, always-correct layer API providers pay for — and you pay only when it scales. **The engine is free and stays free.** Everything that makes an agent call an API correctly the first time is in the open-source `gecko-surf` you run yourself — no account, telemetry off by default. **Cloud** is what we're **building on top**: the hosted, continuously-correct, cross-customer layer. This page describes what it does. ## Who pays, and why One sentence: **the engine is free forever for builders; API providers pay a flat per-API subscription for hosted, drift-watched, agent-ready surfaces.** The free engine is the **funnel**: any developer points it at any API and gets first-call-correct tools, forever, on their own machine — builders never pay. **Cloud is where API providers pay** — to make *their* API the one agents call correctly, keep it correct as it drifts, and turn more correct calls into more usage (and, connected to their payment rail, more revenue). A provider starts free and steps up **as their API scales with agents** — the tiers below are performance and reach, not a builder meter. If you own an API, start at [For API providers](/for-providers). ## What Cloud adds over the free engine * Comprehend any OpenAPI → **first-call-correct** tools · auth hidden * `$0` recorded mode · the MCP surface + one-click add — you host it * Anti-poisoning defenses + agent-native artifacts * Local eval + your own telemetry — **on your disk, we see nothing** * No account. Telemetry ships **disabled**. * **Hosted MCP** — always-on endpoint, nothing to run or scale * **Drift-watch** — re-comprehend when your API changes, alert *before* your integrators break * **Access analytics** — first-call-correct rate, dark ops, failed→settled * **Team** — shared surfaces, roles, audit, deploy-to-your-domain *Explored V2 direction (not delivered): a cross-API correctness signal drawn from across the fleet.* **Control-plane holds in the cloud.** We store the API **surface**, the generated **tool definitions**, and **correctness metadata** — never your response payloads, user data, or secrets. No lock-in: you can go back to fully self-hosted anytime. ## Plans — you pay when you scale The tier is what scales — performance and reach, not the core capability (that's free). The open-source engine + a free hosted tier to try — **shared throughput, best-effort latency.** Point it at your API and see the agent-native surface today. **Low latency, dedicated throughput, faster drift-watch, analytics, longer retention.** For an API that's becoming load-bearing for agents. **SLA, high throughput, white-label private discoverability, onboarding.** For an API that's a real part of the agent economy. We price the **value** — keeping your surface correct through drift and turning failed agent calls into settled ones — **not the compute**, and **never a cut of what agents pay you.** The model we're building toward is a **flat per-API subscription** that steps up with performance/scale (Free → Pro → Scale), the Pro tier illustratively in the low hundreds/month per API, deliberately below the coding-agent seat you already pay for. Prices are **illustrative** — they land when Cloud ships. We're showing the shape now, not locking a number. ## Payments — you keep 100% We collect **our own flat fee** over whatever rail fits you — **x402 / USDC** (or **PayAI** for recurring), or **card / fiat** via **Privy**, **abacatepay**, or Stripe. It's an injected, neutral seam, so the rail is a config choice, not a rewrite. And when it comes to *your* API getting paid by agents, we **compose** your rail — we point the tools at your x402 endpoint (**PayAI, pay.sh, or a metering/billing rail**) as part of the setup. You keep every cent; **Gecko is never the payment rail and never a marketplace.** ## How we make money, plainly A flat monthly subscription per API we keep agent-correct and drift-watched — collected as our own fee, **never a cut of what agents pay you.** The engine developers use is free and open source. The moat is execution: comprehension + comprehension-native security + auth handled day-one, combined — not a data corpus. ## Come build it with us Cloud is being built alongside the API providers who feel it most. If agents keep calling your API wrong — or you want it to be the one they call *right* — that's exactly the surface we want to make agent-ready. Join the Discord — we build in the open and figure out which API to make agent-ready next. `npx @geckovision/gecko ` runs the whole engine on your machine today. # Code assistants Source: https://docs.geckovision.tech/code-assistants Your code assistant writes the call it can read. The calls that cost you money are the ones nothing wrote down. ## Start here: often you don't need us Your code assistant is good at this. Point it at an OpenAPI spec and it will write you a working client, usually on the first try. For one API, with you reading the diff, that is the right tool. Use it. This page is about the second API. And the one that spends money. ## 1. It writes the call it can read A code assistant works from what is written down. That is its whole method. So it cannot know what is missing. And on the surfaces that matter, a lot is missing — not because someone was careless, but because the fact does not belong in a document at all. | what the surface says | what the call needs | | ---------------------------------------------------------------------------------- | ----------------------------------- | | Jupiter's route surface declares **9 accounts** | the call needs **25** | | Pump.fun's `bonding_curve_v2` appears in **one prose comment**, in no account list | required, or the buy reverts | | Meteora's root address seed is **absent from the IDL** | every other account derives from it | Those 16 extra Jupiter accounts are the legs of whichever route the aggregator picked a second earlier. They are not in the specification and **cannot be** — they are not facts about the program. Given that surface, an assistant writes confident, well-formed, wrong code. Nothing in its input tells it so. ## 2. Its debugging loop needs an error Write, run, read the error, fix. That loop is exactly why a code assistant is good. It has two limits. On a paid API, every turn of the loop is billed. On a transaction that spends, the loop does not exist — the first attempt is the real one. And the failure that costs the most produces no error at all. The call is well-formed, the API accepts it, nothing throws — the wrong pool, the wrong account, a charge posted. The loop terminates **successfully**, on a wrong outcome. ## 3. It pays for the surface on every task A 43-operation API is a lot of tokens. Reading it competes with the actual task, in the same context window, every time. Gecko hands over the one call instead. On a real production API that measured **79.3% less context** (113,072 B of OpenAPI → 23,382 B of agent surface, 43 operations, measured 2026-08-06) — with first-call-correctness held, which is the only version of that number worth quoting. ## 4. Its natural output puts your key in a file Ask an assistant to wire up an API and you get a credential in `.env` or `mcp.json` — inside the agent's context, in your shell history, in your repo if you blink. Gecko injects credentials at call time. The agent describes intent. It never sees a key. ## The difference in one line A code assistant gives you **integration code** — an artifact you now own and maintain, correct on the day it was written. Gecko gives your agent **the call** — derived fresh, every fact tagged with where it came from, and for anything that spends, simulated to a receipt before it counts. They are not competing. Most teams should have both. Watch it route an intent, show what it rejected, and mark every account with its origin — including the ones it flags instead of guessing. What a simulation proves before you sign, and what it does not. # How comprehension works Source: https://docs.geckovision.tech/comprehension Ingest, catalog, and the question-shaped tool generator — the path from an OpenAPI surface to first-call-correct agent tools, tied to the real engine. Comprehension is the product. It is the path from a raw API surface to tools an agent calls correctly the first time. Three stages, each a small focused module. The same comprehension runs on-chain: [The Program Surface](/program-surface) recovers the PDA seeds a Solana IDL drops and derives the accounts first-plan-correct. Gecko turns a raw OpenAPI operation into a question-shaped tool with a JSON schema — auth header removed ## 1. Ingest the surface Gecko parses an **OpenAPI 3.x** document (YAML or JSON) into a normalized list of operations. It resolves local `$ref`s with **cycle and depth guards** — on a cycle or when the depth cap is hit, the `$ref` is left in place rather than expanded, so callers still get a usable (if shallow) schema. Path-level parameters are merged into each operation's own parameters. Each `Operation` carries: method, path, `operation_id`, summary, description, tags, parameters, request body, responses, and security. Each `Param` carries: name, location, required, schema, description. Ingest reads the **surface only** — method, path, params, request/response schemas. It never reads or stores response data. The ingestor is stdlib + PyYAML by design, so it runs anywhere with zero heavy dependencies. Ingested spec content is treated as **untrusted input**, and any URL fetched to load a remote spec is validated first. ## 2. Catalog — intent to endpoint The catalog lets an agent go from a natural-language goal to the right endpoint. It scores each operation by lexical overlap between the query and the operation's surface text — summary, description, path, tags, and id — with **summary matches weighted double** (it's the most intent-bearing field). Results are ranked and returned. ```python theme={null} catalog.search("get live odds for a fixture", limit=5) # → ranked CatalogEntry list, highest score first ``` It can also group capabilities by tag and emit a human/agent-readable capability map. This is **lexical, not vector** search, and that is a design choice rather than a milestone: the graph never *approximately* remembers. BM25 and semantic tiers both sit behind evidence gates that flip only on **measured** lexical recall failure — fed by a misrank-aware evaluation (a golden set plus a closed miss-cause vocabulary). One measured negative result on embeddings is already on record. See [find\_start](/find-start) for the on-chain twin of this router and the honesty floor it enforces. ## 3. Comprehend — the question-shaped tool Each operation becomes an MCP-compatible tool definition: a name, a **question-shaped description**, and a JSON-Schema input. Two decisions make this more than a raw OpenAPI dump: **Hide the plumbing.** Auth headers (`Authorization`, `X-Api-Token`, and similar) are stripped from the agent-facing input. The agent reasons only about decision-relevant inputs; the [access layer](/access-and-auth) injects credentials at call time. **Carry invocation metadata.** The tool keeps an internal `_invoke` block — method, path, and the location of each parameter — so the caller can build the real HTTP request without re-parsing the spec. A generated tool looks like: ```json theme={null} { "name": "get_odds_snapshot_fixtureId", "description": "Live odds snapshot for a fixture. Required: fixtureId.", "inputSchema": { "type": "object", "properties": { "fixtureId": { "type": "integer" } }, "required": ["fixtureId"] }, "requires_auth": true, "auth_schemes": ["apiKeyAuth", "httpAuth"] } ``` `requires_auth` is true only when *every* way to call the operation needs auth (an OpenAPI `security` requirement of `{}` means "no-auth is also acceptable", which keeps it optional). The client uses `requires_auth` + the session to **hide operations a no-auth session could never satisfy**, so the agent never wastes a call on them. ## 4. Build the correct request When the agent calls a tool, the caller places each argument by its location, injects the hidden auth headers, and assembles the request. Crucially, it **catches the silent first-call failure** — for example a missing required path parameter raises a typed `CallError` instead of firing a malformed request the agent can't diagnose. ## Measuring first-call-correct Gecko ships a falsifiable scorecard. Given a client and a list of `{goal, expect_op, args}` tasks, it measures whether the comprehension layer retrieves the right operation (top-1 / top-5) and builds a well-formed request for it — recorded and offline, recording **only outcome metadata** (tool, rank, ok/reason), never payloads. ```python theme={null} from gecko.evaluate import evaluate_tasks card = evaluate_tasks(client, tasks) print(card["top1_rate"], card["top5_rate"], card["well_formed_rate"]) ``` This is the same harness used to score a **second public API** end-to-end (see the `scripts/pegana_eval.py` worked example in the repo, which ingests a public peg-state API with a no-auth session and scores first-call-correctness, including correctly **refusing** to fire an auth-gated operation on a public read). It's evidence the engine is API-agnostic, not a claim that Gecko one-shots every API. # Concepts Source: https://docs.geckovision.tech/concepts The vocabulary — surface, graph, provenance, receipt, drift, question-shaped tool, session, and the two run modes. A small, precise vocabulary runs through the whole system. Learn these and the rest of the docs read cleanly. ## Surface The *surface* of an API is everything that describes how to call it: methods, paths, parameters, request/response **schemas**, auth schemes. It is **not** the data the API returns. Gecko ingests the surface and nothing more — this is the basis of the [control-plane](/architecture) promise. A **Program Surface** is the on-chain analog — a Solana program's instruction↔PDA graph with the seeds an IDL drops recovered. See [The Program Surface](/program-surface). Every surface is treated as **untrusted input**, whether it came from a provider's spec, a docs page, an IDL, or program source. ## Graph A surface tells you what exists. A **graph** tells you what depends on what — which call must happen before which, which account must be derived before another can be, which field from one response keys a call to a different API. Gecko's graphs are what the agent **traverses instead of guessing**. Two of them: * The **surface graph** — operations, their relationships, and cross-API joins. * The **program graph** — instructions, accounts, and the dependency-ordered derivation those accounts require. ## Provenance The tag on every edge and every account, from a **closed** vocabulary. Never a free-text justification, never a fabrication. | On-chain | Meaning | | ----------- | ------------------------------------------------------------------------------ | | `EXTRACTED` | read directly off the surface | | `RECOVERED` | not on any public surface — reconstructed from source, or resolved empirically | | `FLAGGED` | unknown. Named explicitly and never dropped. | | HTTP | Meaning | | ---------------------------------- | ------------------------------------------------ | | `EXTRACTED` | in the spec | | `DECLARED` | stated by the provider (e.g. a vendor extension) | | `INFERRED` | derived by Gecko from structure | | `CLAIMED` → `VERIFIED` / `REFUTED` | asserted in prose, then checked against reality | Provenance is the honesty mechanism. If Gecko doesn't know, it says `FLAGGED` — it does not fill the hole. ## Overlay The measured artifact of comprehension: for an auto-comprehended program, the explicit list of facts that could **not** be derived from any public surface. It quantifies the gap between "what the IDL says" and "what it takes to act" — per program. ## Receipt The output of simulating a built transaction on a \$0 mainnet fork, *before money moves*: `status` (pass/fail), a **categorical** `revert_class`, `units_consumed`, best-effort deltas, and an honest `network_label`. A fork Receipt is never presented as mainnet truth, and a Receipt never predicts price. See [The Receipt](/receipt). ## Corpus and drift The **corpus** is Gecko's episodic memory: categorical call outcomes from closed vocabularies (`observed` / `reported` / `synthetic` / `simulated` tiers) — status class, revert family, compute units, a values-free recipe hash. **Never** a payload, a pubkey, an amount, or a log line. Recording is an explicit opt-in; the default is record nothing. **Drift** is the N-confirmed signal derived from it: "clean at slot S, reverts at S′." It is how you learn a provider broke you without waiting for a production incident. Read it back with `gecko drift `. See [Stay correct](/stay-correct). ## Operation A single callable endpoint, normalized from the spec into a typed record: method, path, `operation_id`, summary/description, tags, parameters, request body, responses, and security. Local `$ref`s are resolved (with cycle and depth guards) so each operation is self-contained. ## Parameter A normalized input to an operation, carrying its `name`, `location` (`path` / `query` / `header` / `cookie`), whether it's `required`, and its schema. The location is what lets the caller place each agent-supplied value in the right spot. ## Catalog The "find the right starting point" layer — lexical, token-overlap scoring over each operation's surface text, summary weighted highest. **No vectors:** the graph never *approximately* remembers, and BM25 and semantic tiers sit behind evidence gates that flip only on measured recall failure. On-chain, the same engine powers [`find_start`](/find-start). ## Question-shaped tool The comprehension payload: an operation rendered as an agent-reasonable tool definition — a name, a question-shaped description, and a JSON-Schema input. Two decisions separate it from a raw OpenAPI dump: * **Auth is hidden.** Authorization-style headers are removed from the agent-facing input. The agent only sees decision-relevant inputs. * **Invocation metadata travels with the tool.** The method, path, and per-parameter locations ride along so the caller can build a real request without re-parsing the spec. Each tool also carries `requires_auth` and the `auth_schemes` it references, so a session with no credentials can hide operations it could never satisfy. ## Plan Procedural memory as **typed, executable JSON** — a `landing_plan`, a `derivation_order` — not prose an LLM has to re-read and re-interpret. A builder can run a plan directly. Text loses the join; typed data can't. ## Session The access/auth seam. Any object with `auth_headers() -> dict[str, str]` is a valid session. A paywalled API returns its tokens; a public API returns an empty dict. The agent never sees these headers — Gecko injects them at call time from your OS keychain. See [Access & auth](/access-and-auth). ## Caller Turns a question-shaped tool plus the agent's arguments into a correct HTTP request: it places each value in the right location (path / query / header), injects the hidden auth headers, and **catches the failure the agent can't see** — like a missing required path parameter — instead of firing a malformed call. ## Modes: recorded vs live Gecko runs one code path in two modes: | Mode | Network | Cost | What you get | | ---------- | ------- | ----------- | ------------------------------------------------------------------- | | `recorded` | none | \$0 | response synthesized from the response schema — falsifiable offline | | `live` | yes | per the API | the real upstream response | They differ **only at the transport edge**. Recorded is the default; live requires a credential you set explicitly. See [Recorded mode](/recorded-mode). ## First-call-correct The bar Gecko holds itself to: given a natural-language goal, retrieve the right operation and build a **well-formed** request for it on the first try — no trial calls, no malformed requests the agent can't diagnose. A built-in evaluation scores retrieval (top-1 / top-5) and request well-formedness against a task set, and `gecko test ` turns that into a suite you can fail a build on. First-call-correctness is a **proof point**, not the headline. The headline is the graph: provenance you can audit, and a receipt before money moves. # Agent discoverability Source: https://docs.geckovision.tech/discoverability Gecko exists to make an API discoverable to agents. Question-shaped tools, intent-to-endpoint search, hidden auth, and an llms.txt for the API itself. Discoverability is how comprehension pays off for agents. Once Gecko has comprehended an API, agents need to find and install that surface. A human can read docs, infer the right call, and guess at parameters. An agent shouldn't have to. These are the mechanisms that make an ingested API discoverable. An API surface, or a Solana [Program Surface](/program-surface), can be made discoverable the same way. ## Intent, not endpoints An agent describes *what it wants*, not which path to hit. The catalog turns that intent into a ranked list of candidate operations, and the `search_capabilities` tool on the [MCP surface](/mcp-surface) exposes it directly: ```python theme={null} client.search("what fixtures are coming up?") # → [{ "name": ..., "summary": ..., "path": ..., "method": ... }, ...] ``` ## Question-shaped descriptions Every tool's description is written as the question it answers, with required and optional inputs called out. The agent picks the right tool from the description alone, no API docs in front of it. See [How comprehension works](/comprehension). ## Auth is out of the way Auth headers never appear in the agent-facing tool input, and operations the current session can't authenticate are hidden entirely. The agent's surface is exactly the set of calls it can actually make, nothing it would only fail at. See [Access & auth](/access-and-auth). ## Only the calls that will work When a [session](/access-and-auth) can't satisfy an operation's auth, that operation is removed from `list_tools()` and `search()`. Discoverability means surfacing the *usable* surface, not the whole spec. An agent should never discover a call it can't complete. ## An llms.txt for the API Gecko can emit an agent/human-readable capability map grouped by tag, the machine-facing equivalent of a table of contents for the API: ```python theme={null} print(client.catalog.describe()) # ## fixtures # - GET /api/fixtures/snapshot — upcoming fixtures # ## odds # - GET /api/odds/snapshot/{fixtureId} — live odds for a fixture ``` This docs site itself ships an [`llms.txt`](/llms.txt), a discoverability map for these docs, in the same spirit. If you're an agent, start there. ## The agent-native layer, and we dogfood it Docs are a human handoff. An `llms.txt` or an MDX page is something an agent has to *read and trust*; the agent-native contract is a **structured tool it calls**. Gecko's job is to turn the human-shaped surface into that tool, so an agent finds and uses the right call without reading prose. Gecko projects one comprehended surface three ways, for three moments: * **`llms.txt`**: a breadcrumb for an agent that lands on the docs: the capability map plus a pointer to the live MCP and `search_capabilities`. (These docs ship one; [read it](/llms.txt).) * **OpenAPI + `x-gecko`**: the spec an OpenAPI-native tool already ingests, enriched in place with question-shaped intents, prerequisites, and worked examples. Unknown `x-` keys degrade gracefully, so a non-Gecko consumer just ignores them. * **`/.well-known/gecko.json`**: the machine-precise manifest `search_capabilities` navigates: the capability graph (which call produces the id another call needs), worked examples, and first-call-correct stats. All three cross-link, so an agent landing on any one reaches the callable tool. This docs site is the reference implementation: our own surface is exposed through the same layer we generate for any API. ## Everything an agent can fetch This docs site publishes the same agent-native surface Gecko generates for any API. Point your agent at any of these: * [`llms.txt`](https://docs.geckovision.tech/llms.txt): the curated index of these docs * [`llms-full.txt`](https://docs.geckovision.tech/llms-full.txt): the whole docs as one Markdown file * [`gecko.json`](https://docs.geckovision.tech/gecko.json): the machine-readable manifest for this site * [`/.well-known/gecko.json`](https://docs.geckovision.tech/.well-known/gecko.json): the manifest at the discovery-convention path * **Any page on this docs site as Markdown**: append `.md` to its URL (e.g. [`/discoverability.md`](https://docs.geckovision.tech/discoverability.md)) * [Agent runbook](https://www.geckovision.tech/agents.md) and [client wiring](https://www.geckovision.tech/mcp-config.json): the canonical setup on the landing site * [Flagship MCP surface](https://mcp.geckovision.tech/orquestra/mcp): Streamable HTTP, 16 tools, no key * [Served surfaces](https://mcp.geckovision.tech/.well-known/gecko.json): the ten mounted surfaces, each described at [`catalog.md`](https://www.geckovision.tech/catalog.md). The host root, [`/mcp`](https://mcp.geckovision.tech/mcp), serves two tools: `comprehend_api` and `list_surfaces` * [Product manifest (canonical)](https://geckovision.tech/gecko.json): the source-of-truth manifest on the landing Shipped today: the MCP surface, `search_capabilities`, hidden auth, a usable-only surface, and this site's own agent-native artifacts: `llms.txt`, `gecko.json`, and `/.well-known/gecko.json` (discovery level). Rolling out (see [Roadmap](/roadmap)): the `x-gecko` OpenAPI enrichment and the richer `/.well-known/gecko.json` **capability graph** (which call produces the id another call needs), `search_capabilities` returning the full call recipe inline (prerequisites + a worked example), and access-quality measurement: did the agent find and correctly use the call. We build these against our own docs first. ## Scope Discoverability is live today on an ingested **OpenAPI 3.x** surface. Gecko makes a *known* API surface agent-usable. It doesn't crawl arbitrary human-only docs, auto-discover APIs across the internet, or verify the data an API returns. See [Status](/status). # find_start, intent to starting point Source: https://docs.geckovision.tech/find-start The hardest part is not making the call. It is knowing where to start. find_start routes a plain intent to the right (program, instruction) with a provenance-tagged derive plan, and says "no start found" rather than guessing. The hardest thing for an agent acting against an unfamiliar surface is not making the call. It is knowing **where to start** among N programs × dozens of instructions, or N endpoints across a 600-operation spec. Gecko has two routers for that, one engine underneath. | Router | Question it answers | Surface | | --------------------- | ------------------------------------------------------------------------- | ------------------------- | | `search_capabilities` | "which endpoint fits this intent?" | any comprehended HTTP API | | `find_start` | "which (program, instruction) do I start at, and what do I derive first?" | on-chain program surfaces | Both score lexically, by token overlap between the intent and the surface text. **No vectors.** At this scale lexical retrieval is more accurate and fully deterministic: the graph never *approximately* remembers. BM25 and semantic tiers sit behind evidence gates that flip only on measured recall failure, fed by a misrank-aware evaluation (a golden set plus a closed miss-cause vocabulary). Misses are instrumented **categorically**, never the intent text. ## The API catalog ```python theme={null} catalog.search("get live odds for a fixture", limit=5) # → ranked CatalogEntry list, highest score first ``` Over MCP the same thing is a synthetic tool your agent calls first: ```json theme={null} { "name": "search_capabilities", "description": "Find which endpoint/tool fits a natural-language intent. Returns ranked tool names you can then call.", "inputSchema": { "type": "object", "properties": { "query": { "type": "string" } }, "required": ["query"] } } ``` Operations the current [session](/access-and-auth) could never satisfy are not listed at all, so the agent never burns a call on them. See [The MCP surface](/mcp-surface). ## find\_start, on-chain ```bash theme={null} gecko orquestra find-start "buy token X on pump" ``` Exit code `0` means a start was found; `1` is an honest no-start. The same tool is served hosted at `mcp.geckovision.tech/orquestra/mcp`. It returns, per ranked candidate: * **The start point**: `program/instruction`, its `program_id`, the score, and which tokens matched. * **A dependency-ordered derive plan**: every account in the order you must derive it, each carrying a **provenance tag**. * **Declared preludes**: the instructions that must ride along for the transaction to land (idempotent ATA creation with the Token-2022 resolution note, compute budget). * **Flagged gaps**: facts Gecko will not guess, named explicitly so you resolve them before building. * **An execute pointer**: the external builder's URL. Orquestra builds; Gecko never signs. The shape of the output (scores and the full account list vary per intent and per program; run it to see yours): ```text theme={null} START 1. pumpfun/plan_buy — score (matched: buy, pump, token) program_id: 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P next tool: plan_buy derive plan (dependency-ordered): 1. global [extracted] 2. bonding_curve [extracted] 3. associated_bonding_curve [extracted] 4. associated_user [extracted] 5. creator_vault [recovered] 6. bonding_curve_v2 [recovered] preludes (DECLARED): - create_idempotent_ata: … removes the AnchorError 3012 revert … - compute_budget: SetComputeUnitLimit + SetComputeUnitPrice … flagged gaps (honest — resolve before building): ! fee_recipient: … execute: POST https://…/build (Orquestra builds; Gecko never signs or broadcasts) ``` ## Provenance is the point Every account in the plan carries one of three closed tags: | Tag | Meaning | | ----------- | ---------------------------------------------------------------------------------------- | | `extracted` | read directly off the surface (the IDL, the spec) | | `recovered` | **not on any public surface**: reconstructed from program source or resolved empirically | | `FLAGGED` | Gecko does not know it, and says so. Never dropped, never invented. | `recovered` is where the value is. `bonding_curve_v2` is required by Pump.fun's `buy` and never appears in the IDL. Meteora's `base_factor` seed was added by the SDK in 2024 and the deprecated three-seed scheme derives **the wrong pool, silently**. A tool that only reads the IDL cannot know either. On the HTTP side the vocabulary is richer, because docs make claims: `EXTRACTED` > `DECLARED` > `INFERRED` > `CLAIMED` → `VERIFIED` / `REFUTED`. A claim recovered from a docs page stays `CLAIMED` until a probe verifies or refutes it. See [From docs](/from-docs). ## The honesty floor Below the retrieval floor `find_start` returns **`NO START FOUND`** and labels the closest candidates as `GUESS`, never dressed up as starts. A nonsense intent cannot clear the floor on stopword overlap alone. This is the same rule as the rest of the system: an unknown is `FLAGGED`, not fabricated. ## Not built yet Catalog **breadth** is the open frontier: 4,500 projects are listed, and seven program configs ship (Pump.fun, Meteora, Jupiter, ORE, MetaDAO, Orca Whirlpool, let\_me\_buy). For an unwired project, `find_start` returns it as a **catalog candidate** with the comprehend-first command rather than pretending it has a plan. See [Status](/status). What a program surface is, and the mainnet programs it's proven on. Once you have the plan: simulate it to a receipt before anything is signed. # For API providers Source: https://docs.geckovision.tech/for-providers Agents are becoming a consumer of your API — and they fail it silently. Make yours the API agents find, call correctly on the first try, and keep calling as you ship. ## The problem you can't see from your side Your docs are written for humans — and they work for humans. But a growing share of your integrations are now attempted by **AI agents**, and for them the experience is different: * **Agents mis-call you.** Wrong parameter, wrong endpoint, an auth scheme inferred incorrectly from prose. On your side that's malformed requests, retry storms, rate-limit pressure, and support tickets that read "your API doesn't work" — when really, the agent guessed wrong. * **Agents can't find you.** An agent picks the API it can *discover and call correctly today*. If that's your competitor, the traffic — and the integration — goes there. You never see the loss; it just never arrives. * **Your own changes break your integrators.** A renamed field that no human would miss silently breaks every downstream agent. Their 2am incident becomes your support ticket and, eventually, your churn. * **A hand-rolled MCP server goes stale.** Teams that ship their own agent surface cover a handful of endpoints, then drift out of date the next time the API ships. None of this shows up in your analytics, because failed and never-attempted agent calls are invisible by definition. That's the trap: the pain is real, and it's unmeasured. ## What Gecko does about it Gecko is **where agents and APIs finally speak the same language**. Point it at your OpenAPI (or your docs — [no spec needed](/from-docs)) and your **whole surface** becomes question-shaped, first-call-correct agent tools: auth handled invisibly, operations an agent can't satisfy hidden, everything provable offline first. ## Bringing your API onboard — five moves Some moves are self-serve and free today; one is a deliberate manual handshake (we don't want your credentials flowing through a form); a couple are still hands-on while we build them toward self-serve. Each is labeled with what's real right now. Before anything else, see where you stand. `gecko inspect ` grades your API across four dimensions — **first-call-correct**, **spec hygiene**, **agent-friendliness** (ambiguous routing traps a schema linter can't see), and **security** — and prints located, fixable findings. Integrate it into CI (`--min-grade B`) to fail a deploy that regresses. It's TDD for your API. ```bash theme={null} npx @geckovision/gecko inspect # or a bare domain / docs URL ``` Paste your OpenAPI URL — or [your docs](/from-docs), no spec needed — and get question-shaped, first-call-correct tools back, provable offline before a single live call. Run it yourself: `npx @geckovision/gecko `. You see your own API comprehended in one session, no account, no cost. Most real APIs are auth-gated, so this is the step that needs a human exchange: hand us a **sandbox key** and agree the **safe scope** — which operations agents may call; anything that moves money is excluded or step-up-gated, not handed to an arbitrary agent. Gecko stores the credential as an *opaque reference* and injects it at call time — the agent never sees a token. See [Access & auth](/access-and-auth). Your comprehended surface is hosted at `/{you}/mcp` with the agent-native breadcrumbs — `llms.txt`, `gecko.json`, `/.well-known/gecko.json`, `/.well-known/x402.json` — so agents *discover* you, not just call you ([Agent discoverability](/discoverability)). Your own MCP, if you have one, keeps running untouched; Gecko sits **beside** it. You get one line to hand your developers: `claude mcp add --transport http you https://mcp.geckovision.tech/you/mcp`. Charge agents per call by pointing the generated tools at **your own** x402 endpoint (PayAI or pay.sh). The 402 challenge, the funds, and the settlement are yours; Gecko composes the rail, holds nothing, signs nothing, and **takes no cut.** You see the full challenge→settle handshake offline first (`X402_MODE=stub`) before any real money moves; on-chain settlement is proven on devnet, and any mainnet transaction is run by you, never by us. Drift-watch re-comprehends your API when you ship and regenerates the tools, so your next release doesn't silently break downstream agents — the alert fires **before their prod does.** The surface fingerprint that makes this tractable exists today; the auto-update loop and the adoption dashboard are **designed for V2, not yet shipped** ([Stay correct](/stay-correct)). ## What we need from you To take a real API from comprehended to a live, measured surface: * **A sandbox / test API key** (+ the sandbox base URL) — unlocks the gated operations and keeps calls off production. * **Your current OpenAPI spec** (or confirmation the docs URL is current) — so the surface reflects today's API, and drift is measured against a real baseline. * **The safe scope** — which operations agents may call; what to exclude or step-up-gate (anything that moves money). * **Distribution** — put the add-command in front of your developers. Gecko *measures* the funnel (who connected, called, came back); it doesn't *create* the traffic. That's the whole ask. **No production credentials, no build work on your side, no money changing hands to start, no exclusivity.** ## Who pays, in one sentence > **The engine is free forever for builders; API providers pay a flat per-API > subscription for hosted, drift-watched, agent-ready surfaces.** Flat fee. Never a percentage of your revenue, never a cut of what agents pay you, never a public catalog listing you didn't ask for. Illustrative shape on the [Cloud page](/cloud) — prices land when Cloud ships. ## Why this is measurable (unlike docs spend) Human-docs spend is famously unattributable. Agent comprehension isn't: a first-call-correct fix turns a **failed** call into a **completed** one — and if your API is x402-metered, into a **settled** one. The delta is visible per API revision. That's the difference between a cost center and an ROI line. ## What's live The comprehension engine, the scorecard, discoverability artifacts, and the free self-serve flow are **live today**. Drift-watch, access analytics, and the hosted provider plane are **building now** — with the first design partners. See [Status](/status) and [Roadmap](/roadmap) for the exact line. ## Bring your API `npx @geckovision/gecko inspect ` — your agent-readiness grade + fixable findings in one session. Self-serve, offline, \$0, no account. Run the open-source engine against your own spec today — comprehend, serve over MCP, emit your agent-native surface. # From docs Source: https://docs.geckovision.tech/from-docs No OpenAPI? Point `gecko from-docs` at an API's doc site and it recovers a draft OpenAPI, then comprehends it into agent tools — with honest review notes for anything it couldn't pin down. Plenty of good APIs never publish an OpenAPI file. The docs are fine; the machine-readable artifact just doesn't exist, so there is nothing for a tool generator to read. `gecko from-docs` is the on-ramp: it reads the doc site and hands the comprehension engine a *draft* OpenAPI. ```bash theme={null} gecko from-docs https://docs.some-api.com gecko from-docs ./api-docs.html # a local file, for dev gecko from-docs -o draft.json # also write the draft spec ``` ## What it does 1. **Fetch** the doc page — SSRF-validated (private / loopback / link-local ranges and non-HTTP schemes are refused, every redirect re-checked). The bytes are parsed and **discarded**: Gecko is control-plane only, it never stores the doc. 2. **Recover** candidate operations from the page's structure — headings, code blocks, and parameter tables, in document order — into a draft OpenAPI 3.1. JSON-RPC methods are modeled honestly (one operation per method; the envelope carried on `x-jsonrpc-*`). 3. **Comprehend** the draft through the *same* engine as any spec → question-shaped, first-call-correct agent tools. ```text theme={null} Gecko from-docs — recover a draft API from human docs ======================================================== source: https://docs.some-api.com recovered 3 candidate operation(s): - sendBundle [POST /api/v1/bundles] (jsonrpc, high) - getTipAccounts [POST /api/v1/bundles] (jsonrpc, high) - getTipFloor [GET /api/v1/bundles/tip_floor] (rest, medium) honesty: 2 x-review note(s), 2 low/medium-confidence field(s) to confirm. optional auth recovered: x-tip-auth header (injected by the access layer, invisible to the agent). comprehended draft -> 3 agent tools. ``` ## It's an assistive draft, not zero-touch `from-docs` is honest about its uncertainty. Every field it couldn't pin down from the docs is flagged with `x-review` and a confidence level in the draft spec — so a human (or an agent) confirms those before going live. It gets the **surface and shape** right; you confirm the ambiguous edges, then run [`gecko test `](/quickstart) to prove the calls before you ship. ## JS-heavy doc sites Static docs work out of the box with the built-in reader — no extra dependencies. For doc sites that render their navigation with JavaScript, `from-docs` tells you when it recovered only a few operations and points you at the agent-browser driver in [`spikes/docs_reader`](https://github.com/GeckoVision/gecko-surf/tree/main/spikes/docs_reader), which renders the JS nav before extracting. ## Why this matters Every other page here starts from a spec. This is the step before that. An API with no OpenAPI file isn't a worse API — it just has nothing an agent can read mechanically. `from-docs` produces that artifact, marks what it could not pin down, and never invents an endpoint to fill a gap. From there the rest of the pipeline is identical. # Gecko 101 Source: https://docs.geckovision.tech/gecko-101 Your agent tries the call before it makes it. One URL, no install, no key, and a receipt before anything is signed. ## The problem Your agent's first call is the real one. There is no rehearsal. A wrong call that errors is the cheap failure. You find out. The expensive one is quiet. Well-formed, accepted, nothing throws, and the world is now wrong. Nobody gets an alert for a call that worked and was wrong. ## Watch it run Ten questions, four programs, one landed transaction. Every command real, one take.