SwingSurfer

SwingSurfer is in private alpha. These pages describe the app as it works today.

Agents: the research playbook

Agents do research here the way a careful research desk does: state the reason first, check the data can tell before spending compute, change one thing at a time, judge only a version frozen before its tests run, and stop where money starts. The in-app agent, an external agent over MCP, a script on the ss CLI and a direct REST caller use the same verbs with the same effect: the same request reaches the same route, the same rows are written and the same refusal comes back with the same code.

Four ways in

SurfaceHow it is reachedA verb looks like
In-app agentResearch with agent on the Research pagepower_check
MCPyour agent's MCP client, at https://swingsurfer.com/mcp with an sk-ss- API keyresearch.power_check
CLIss (ss auth login, then any command)ss hypothesis power <card_id> --edge-r 0.10
RESThttps://swingsurfer.com/api/v3/... with the API key as a bearer tokenGET /api/v3/research/cards/{card_id}/power-check

Installing the ss CLI

The CLI is a small Python package (Python 3.11 or later; it needs only typer and httpx). The site serves the current build at https://swingsurfer.com/cli/, and latest.txt there names its file, so one command installs it with pipx. If latest.txt answers 404, the build has not been published yet: use MCP or REST meanwhile.

pipx install "https://swingsurfer.com/cli/$(curl -fsS https://swingsurfer.com/cli/latest.txt)"
ss auth login          # paste your sk-ss- key (hidden prompt); or export SS_API_KEY instead
ss --help              # the groups, one line each; ss <group> --help for their commands

pip install of the same address works inside any virtual environment. To upgrade, run the same command with pipx install --force. Every command prints its own options with --help, and ss tools lists every verb by group with its name on each surface. A read prints one thing: ss scorecard, ss stage and ss dossier print text, and their --json prints only the JSON. ss run get on a run that has not finished prints that (and the command to wait with) instead of its empty numbers. ss job poll --until-terminal --interval 30 polls every 30 seconds (at least 5, never more often than the server's Retry-After).

Reading a run that has not finished

get_run (ss run get, GET /api/v3/research/strategy-runs/{run_id}/overview) answers a run still queued or running with results: "not_finished" and results_note, a sentence naming the call to wait with (poll_job, kind discovery, the run id). Its numbers are empty or partial: poll until the job is terminal, then read it again. A completed run reads results: "final", a cancelled one "partial", a row with no status on record "unknown"; a failed run answers 409 RUN_RESULTS_WITHHELD.

Where REST takes the arguments

Most routes take a JSON body (a write) or a query string (a read) as their verb's arguments. The ones that read an argument anywhere else are named, with where each goes, in the surfaces file of every skill that uses them. The ones met first:

  • Saving a strategy (POST /api/user-settings/strategy-templates-v3): timeframe, template_name and card_id in the query string, the configuration itself as the body, and the research run id in the X-Research-Run-Id header. The answer's data.id is the template id. A body that carries the name or the timeframe instead answers 400 VALIDATION_FAILED naming each query field it misses.
  • Recording a note or a hypothesis (POST /api/v3/research/runs/{run_id}/events): the idempotency_key goes in the JSON body, required ({"kind": "note", "payload": {"text": "..."}, "idempotency_key": "..."}).
  • Submitting a run (POST /api/v3/research/strategy-runs) or a portfolio test (POST /api/v3/portfolio-test): the Idempotency-Key goes in a header, required with an API key, and the research run id in X-Research-Run-Id.
  • Saving a portfolio (POST /api/user-settings/portfolio-templates-v3): name (and replace) in the query string, the configuration as the body.
  • A backtest, a promotion, a signals-only activation: the research run id they belong to goes in the X-Research-Run-Id header, which records them on that run.

The research run id in X-Research-Run-Id must be one of your research runs (from create_run), never a Discovery run's id: a strategy save names a run that is not yours 404 NOT_FOUND and saves nothing, and the answer's research_run_link says the template was recorded on the run.

The in-app agent opens in chat. To give it a goal, arm the target in its composer and say what it should research; before anything starts you see the goal, what it may do (it runs backtests and Optimizer runs, each one an attempt; it can never arm real money), the model and the limits that apply, and only Start launches it. A goal always has a seed: there is no empty "autonomous hunt", and the API refuses a blank one (GOAL_SEED_REQUIRED). The Hub's own routes are the browser session's: an sk-ss- key gets SESSION_REQUIRED there and calls the verbs directly instead. The model picker opens on at most three choices: Default (what new threads use), Most capable and Fastest (the models the provider itself tags that way), with All models one click away.

An agent starts from the served docs (get_docs, ss docs, /api/v3/agent/docs) and the skills (list_skills, ss skills add <id>): the playbook below, the step skills, and the facts each one defers to. If a skill and the scorecard disagree, the scorecard wins.

get_docs() with no page answers the quickstart (the ten calls from an idea to a scorecard and the two traps of a first run) and the index of every page. A page longer than one answer returns its section index; read a section with section='<id>' (ss docs <page> --section <id>), and a section still too long in parts (part=2 and on, each part naming the next). The built-in agent reads every other long answer the same way: an overview first, then answer_part=1 to N with its answer_id, which joined are the whole answer.

The playbook

  1. Start from a mechanism: who is forced to trade, and why. Search and read the source, then register the hypothesis with page citations (web_search, fetch_url, register_hypothesis).
  2. Write the falsifier as an effect, such as "no edge after costs on unseen symbols", never "p above 0.05". When the question it names answers no, record the evidence and kill the session (append_note, kill_run); the strategy stays for a new attempt.
  3. Run the power check before the first backtest (power_check, below).
  4. Save tweaks as versions. A new strategy needs a new reason. A tweak keeps the strategy's attempts (save_strategy with the strategy, check_version).
  5. Change one component at a time (compare_component, list_findings).
  6. Freeze the pick before running the battery (freeze_version, then robustness_battery, luck_test, take_sealed_exam).
  7. When the answer is inconclusive, add symbols, history or forward time. Never tighten filters to chase significance (get_scorecard says what would settle each answer). Forward time is a signals-only book, its daily track record and its incubation against the range its backtest expected (activate_signals_only, get_track_record, read_incubation). Question 8 also judges the slippage of real fills, which a signals-only book cannot measure: running the version on paper is your call.
  8. Use grades only once their order holds on later data (grade_checks, request_promotion).
  9. Stop at consent. Signals-only observation is the furthest an agent goes (activate_signals_only). Every API key is refused at the real-money door, whatever its scopes, and the refusal carries the evidence your consent dialog shows. Real money needs your consent, at any label; the dialog names every strategy below Field-tested.

Labels and stages are computed from recorded runs. No agent can set one.

The power check

Before the first backtest, the power check answers the scorecard's question 2 ("Is there enough data to tell?") on paper, from the registered hypothesis (its market, timeframe and expected trades a year), the bars the price store holds, and the effect the agent claims.

InputMeaning
edge_rThe average trade after costs, in R, the strategy claims.
sharpeThe account's annualised Sharpe it claims. Question 2 reads both, so state both.
spread_rThe spread of one trade-day's result, in R (default 1.0).
trades_per_yearDefault: the hypothesis's expected trades a year.
marketequity or crypto: the calendar (252 or 365 days a year). Default: read from the hypothesis's market. A market that names neither calendar is refused until you state this.
data_sinceThe window's claimed first day. Default: the strategy's own window start.

The window is what the price store can serve: it starts at the later of the claimed first day and the store's first bar for the market, and ends at your account seal. A strategy that claims 2001 on a market the store holds five years of is priced on five years. If the store cannot be read, the window (and the answer) is unknown, with a reference.

It answers like question 2 does: enough only when both the trades and the account are enough, too_little when either is short, and unknown when a half of the effect is not stated (or the rate or the window is unknown). It names what is missing. With it come the smallest edge and Sharpe the window could detect, the independent trades and years the claim needs, and a reference table for 0.30, 0.20, 0.10 and 0.05 R. The standard is the scorecard's: 80% power at 5% one-sided, counting independent trade-days and dividing by a 1.5 margin for trades that overlap. Two symbols that fire on the same days add no independent days.

too_little is not a failure. It says what would settle the question: symbols that trade on other days, forward time, or an earlier start when the store holds earlier bars (only while the strategy has no run), never a tighter filter. It projects question 2 alone: the version's runs, its battery and its exam still answer questions 1 and 3 to 7 on this window, while question 2 stays open (and Validated, which needs its yes, waits there). Once a template exists, compute_estimate asks the same question on the measured trade density, with the same projection, and prices the run.

A source you read is cited by its retrieval_id and one unit of what was read as locator: p. 61 or pp. 61-63 in a PDF, ch. 4 in an EPUB, § 2 on a web page, never two at once. The server checks the unit exists and stamps the link, the date and the SHA-256 onto the card.

Tool groups

The verbs come in groups, so an agent can carry only the ones it uses. How a group loads depends on the surface.

GroupWhat it holds
coreAlways loaded: the index, the docs and skills, the board, and the read-only scorecard and standing.
sourcesFind and read the sources a mechanism rests on.
hypothesisRegister a strategy, check its power before the first backtest, its window, its dossier, the rules.
ledgerOpen a research session on a strategy, pre-register, diagnose, kill, verify a decision's evidence, follow the board.
authoringWrite, check and keep strategies and indicators; versions and the version-or-new-strategy check.
runsPrice a run, run it, poll it, cancel it, read it and one trade's context; the attempts it charges, the account's whole research program (its luck count, failures and compute) and the account seal it ends at.
evidenceThe robustness battery, the luck test, freezing a version and its one sealed exam.
optimizerChange one component at a time; the exit, avoid, trailing and grade loops; grade checks; promotion and the before and after of a promote.
portfolioBooks: save and test them, the test jobs, what a strategy adds, ranking candidates, signal priority, signals-only, a live book's track record and its incubation.
liveRead-only. What a live book recorded: its signals and the ones not delivered (a channel that failed is marked failed; the text of the failure is yours to read in the app), its daily equity, and whether a template's risk simulation is done. No verb here asks the broker or changes a book; the list of live books, a book's order fills and the broker's own positions are the owner's to read on the Live page.
  • In-app agent: starts with core (and its workspace's groups) and calls tool_index with the groups a step needs; their verbs load on its next step.
  • MCP: https://swingsurfer.com/mcp lists every verb. To keep a small context, connect with ?groups=evidence,runs instead: that lists those groups and the core. A chat client calls only the tools it was listed, so it cannot add a group mid-conversation: reconnect with the group in ?groups= (or without ?groups=). A script client may call any verb, listed or not.

Connecting over MCP

The server speaks the current MCP revision, 2026-07-28, and every earlier one a client may still use (2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05), on the same address. A 2026-07-28 client needs no handshake: it may ask server/discover first (the revisions, the server's name and its instructions) and then sends each request with its revision. An older client opens with initialize as it always did. Either way the transport is Streamable HTTP at https://swingsurfer.com/mcp (or /mcp?groups=...), and every tool call carries the API key as Authorization: Bearer sk-ss-.... A client config looks like:

{"mcpServers": {"swingsurfer": {"type": "http", "url": "https://swingsurfer.com/mcp?groups=hypothesis,runs",
  "headers": {"Authorization": "Bearer sk-ss-YOUR-KEY"}}}}
  • Without a key a client can discover the server and list its tools (the same text the docs serve); every tool call answers 401 AUTH_REQUIRED.
  • Every request is a POST. The server is stateless and answers each POST with one JSON response, so it opens no event stream: a GET https://swingsurfer.com/mcp/ answers at once 405 METHOD_NOT_ALLOWED (Allow: POST) with the request to send instead. initialize sent with the 2026-07-28 revision header is "Method not found": that revision has no handshake.
  • Every tool says what it does to your account before you call it: readOnlyHint (it changes nothing), destructiveHint (it can overwrite or end something: a saved template or a grade in it, a card's name or window, a run in flight, a run's verdict, the one sealed exam) and openWorldHint (it reads the public web). A client may ask you before a destructive call. The hints describe; what your key may do is still decided by the server.
  • A tool takes its arguments at the top level, as its input schema lists them: {"kind": "discovery", "job_id": "..."} for research.poll_job, never wrapped in another object. An argument the tool does not have is refused by name (422 VALIDATION_FAILED).
  • A refused call is one text block, the JSON {"error": true, "status": ..., "problem": {...}} carrying the refusal's code and what to do next. A failure outside any tool (or SwingSurfer restarting) is a JSON-RPC error with a code, a sentence and, when it is ours, a Reference to quote: if the request could have changed something, read its state first, then send it again.
  • The tool listing may be kept for five minutes; it changes only when SwingSurfer ships.
  • CLI and REST serve every verb. ss tools --group evidence and GET /api/v3/agent/tools?groups=evidence print each verb of the group with its one-line purpose and its name on every surface; ss <command> --help prints a command's options.

The skills

Seven Agent Skills take an agent through SwingSurfer end to end, each one a page an agent reads in one call: the tools in order with their exact arguments, the refusals to expect and what to do on each, how to read the result honestly, and where the agent stops (signals-only: no skill arms money, starts an execution book or changes an execution mode).

SkillUse it to
swingsurfer-methodLearn the method: the nine rules, what "best" means, what each test charges.
ideas-to-liveRead the board and drive strategies end to end, one step skill at a time.
research-ideationTurn an idea, paper or video into a registered strategy, its power checked.
research-buildingRun and read a backtest: the screen, then the full run.
research-optimizingImprove one component at a time, freeze, run the battery and the luck test.
research-portfolioTest a book and measure what each strategy adds to it.
research-signals-validationWatch a tested book forward on signals-only, and stop there.

Each skill is a directory: its SKILL.md and supporting files under references/ (reading a result honestly, every refusal and what to do, the same tools as ss commands and REST routes, and the material of its step). Every surface serves the same bytes, with the same SHA-256:

  • MCP with the Skills extension (below): resources/read of skill://<id>/<path>.
  • The get_skill tool (MCP, the built-in agent): get_skill(skill_id='research-building'), and file='references/refusals.md' for a supporting file.
  • REST: GET /api/v3/agent/skills (the index, with each file's sha256 and size), GET /api/v3/agent/skills/<id> and GET /api/v3/agent/skills/<id>/references/<name>.md; GET /api/v3/agent/skills.bundle is every file as a .claude/skills/ tree.
  • The CLI: ss skills add <id> writes .claude/skills/<id>/ (and the skills it depends on), checking every file against the index before it writes; ss skills sync refreshes them. It removes only files it wrote itself (listed in .ss-files.json), never a file you added to the folder.

Skills over MCP

The skills are served through the MCP Skills extension (io.modelcontextprotocol/skills) on revision 2026-07-28:

  • server/discover lists the extension under capabilities.extensions.
  • skills/list names every skill with its frontmatter and the SHA-256 and size of each of its files; skills/get answers one by its URI.
  • Each file is a resource: resources/read of skill://swingsurfer-method/SKILL.md returns the playbook; resources/directory/read of skill://swingsurfer-method lists a skill's files.
  • Every skills read carries the same API key as a tool call.

A host with the extension (Claude Code and Claude, in beta) loads a skill when the work calls for it: connect the server as above and ask for the skill by name. A client without it, or on an older revision, reads the same files with the tools research.list_skills and research.get_skill (or writes them into .claude/skills/ with ss skills add <id>).