· 1 observation
Technical updates · 1
Package or technical metadata updated
View technical comparison →Keel Software, Inc. v1.0.0
Hyperliquid strategy builder
From the developer
Not specified in the available declarations: capabilities, limitations, pricing & account requirements.
Build a momentum strategy across the top 20 Hyperliquid perps and backtest it
Developer declarations; not independently tested. Listing last checked Nov 24, 2026. Package observed Nov 24, 2026.
From the marketplace listing
Keel turns your ideas into systematic strategies for Hyperliquid crypto perpetual futures (perps). Connect it to ChatGPT, describe a strategy, and ChatGPT builds it from Keel's strategy components, backtests it on real Hyperliquid history with fees and slippage, and explains the results. With Keel in ChatGPT you can: - Build and edit strategies by describing them - Backtest them and compare runs side by side - Start from a verified strategy in the Keel library - Keep notes on strategies and share a result by link - See how the strategies you run in Keel are doing Everything you create stays in your Keel workspace. Nothing is public unless you share it. Keel in ChatGPT is for strategy research and backtesting. It does not place trades, submit orders, move funds or connect wallets — no order executes inside ChatGPT. What it writes is limited to your own Keel workspace: strategy drafts, backtest runs, notes and share links. Running a strategy with real capital is set up and approved by you in the Keel web app, outside ChatGPT. Backtests are simulations on historical data, not predictions or financial advice; trading perpetual futures carries a substantial risk of loss. Keel measures the strategies you design. It does not give investment advice or recommendations, and backtest results do not predict future returns.
Language: English · Automatically detected from descriptions.
Exact text from the indicated source. A mention alone does not establish support for your task.
Hyperliquid strategy builder
Keel turns your ideas into systematic strategies for Hyperliquid crypto perpetual futures (perps). Connect it to ChatGPT, describe a strategy, and ChatGPT builds it from Keel's strategy components, backtests it on real Hyperliquid history with fees and slippage, and explains the results. With Keel in ChatGPT you can: - Build and edit strategies by describing them - Backtest them and compare runs side by side - Start from a verified strategy in the Keel library - Keep notes on strategies and share a result by link - See how the strategies you run in Keel are doing Everything you create stays in your Keel workspace. Nothing is public unless you share it. Keel in ChatGPT is for strategy research and backtesting. It does not place trades, submit orders, move funds or connect wallets — no order executes inside ChatGPT. What it writes is limited to your own Keel workspace: strategy drafts, backtest runs, notes and share links. Running a strategy with real capital is set up and approved by you in the Keel web app, outside ChatGPT. Backtests are simulations on historical data, not predictions or financial advice; trading perpetual futures carries a substantial risk of loss. Keel measures the strategies you design. It does not give investment advice or recommendations, and backtest results do not predict future returns.
· 1 observation
Package or technical metadata updated
View technical comparison →Finding similar plugins… Results will appear here automatically.
Browse plugins →---
name: backtest-and-analyze
description: |
Run a backtest on an existing strategy and read it: confirm the strategy, run on the strategy's default window unless the user named one, watch to terminal, present the run's view, and interpret the mechanism behind the result. Use when the user says "run a backtest", "test this", "how does it perform", "what's the Sharpe", or names a strategy and asks about performance. Not for robustness checks (overfit-check) or for editing the strategy.
references:
- step: 2
topic: "tool_usage"
why: "backtest mechanics: one continuous simulation, half-open window, warm-up; never N short runs as a substitute for post-processing"
- step: 2
topic: "platform_operations"
why: "the backtest window rule (the default window per timeframe, warm-up, the data floor) and per-asset data coverage"
- step: 2
topic: "backtest_costs"
why: "backtest cost assumptions: the default fee and slippage model every run applies"
- step: 4
topic: "trading_domain"
why: "timeframe facts (too few trades on a short bar), trend vs mean-reversion behaviour, the complexity ladder"
- step: 4
topic: "mistakes"
why: "structural mistakes behind a zero-trade or wrong-direction result"
tools:
- keel_strategy_search
- keel_strategy_notes_read
- keel_backtest_run
- keel_backtest_watch
- keel_backtest_summarize
- keel_backtest_compare
- keel_strategy_history
- keel_strategy_notes_add
---
# References
Reference topics this workflow cites (keel_help topics):
- Step 2 — `tool_usage` — backtest mechanics: one continuous simulation, half-open window, warm-up; never N short runs as a substitute for post-processing
- Step 2 — `platform_operations` — the backtest window rule (the default window per timeframe, warm-up, the data floor) and per-asset data coverage
- Step 2 — `backtest_costs` — backtest cost assumptions: the default fee and slippage model every run applies
- Step 4 — `trading_domain` — timeframe facts (too few trades on a short bar), trend vs mean-reversion behaviour, the complexity ladder
- Step 4 — `mistakes` — structural mistakes behind a zero-trade or wrong-direction result
# Method
## Step 1 — Confirm inputs and read prior context
- A `strategy_id` from the user, else `keel_strategy_search(limit=5)` and
confirm which one.
- `keel_strategy_notes_read(strategy_id=<id>)` — prior runs and notes may already
answer the question or say what to look at.
- Window: omit `start_date` / `end_date` unless the user named a period; the
tool applies the strategy clock's default window and the receipt names the
window it used.
- More than one run planned (a grid, several windows)? Each run uses one
backtest of the plan's weekly allowance; say how many runs the batch needs
before starting, and let the user scope it.
## Step 2 — Run and wait
`keel_backtest_run(strategy_id=<id>, ...)`. The receipt carries `run_id`,
`hero_url`, and usually `summary_metrics`. If the run is still active, or
metrics are absent, `keel_backtest_watch(backtest_id=<run_id>)` — not an ad hoc
polling loop. Once terminal, show the run with `keel_backtest_summarize` if it
is the run you present; for several runs, `keel_backtest_compare` once with
every id. Backtests run the platform's current version; pin a historical one
with `commit_id=...` (from `keel_strategy_history`) only when that is what the user
wants. A run may not finish in the turn: say it started and how to read it;
never promise to report back on your own.
## Step 3 — Read the result
The `view` is the metrics table — where the host draws it the user already
sees it; elsewhere its markdown stands in. Then, in prose: the date range
(always — comparisons across ranges are meaningless), the top-3 / bottom-3
contributors (a Sharpe carried by one asset is a different result from one
spread across thirty), best and worst month. `Sharpe > 3.0` or `Total Return >
500%` on a long window is unusual for a real edge; say so plainly —
`oPreview of the first 4,000 characters. Read full instructions →
---
name: component-discovery
description: |
Find the Keel component(s) that implement a concept the user names: search by concept, batch the candidates' schemas, show what precedes and follows the best one. Use when the user asks "what component does X", "is there a way to Z", "find a component for Y", or names a trading concept and wants what implements it. Not for composing a strategy (strategy-creation) or for one already-named component (keel_components_get).
references:
- step: 2
topic: "types"
why: "the type universe, when a filtered typed search proves absence (reference/)"
- step: 4
topic: "composition_mechanics"
why: "how the candidate wires: slot-reading components, Parallel partners, the two mask systems"
- step: 4
topic: "slots"
why: "slot reads/writes semantics for a slot-reading candidate (reference/)"
- step: 4
topic: "strategy_patterns"
why: "the pattern a candidate usually lives in"
tools:
- keel_components_search
- keel_components_get_many
- keel_components_get
---
# References
Reference topics this workflow cites (keel_help topics):
- Step 2 — `types` — the type universe, when a filtered typed search proves absence (reference/)
- Step 4 — `composition_mechanics` — how the candidate wires: slot-reading components, Parallel partners, the two mask systems
- Step 4 — `slots` — slot reads/writes semantics for a slot-reading candidate (reference/)
- Step 4 — `strategy_patterns` — the pattern a candidate usually lives in
# Method
## Step 1 — Translate words into a concept
"Beta hedge", "trailing stop", "regime detection", "Kalman filter" — search
for the concept, not the literal word; the search is semantic and the catalog
holds names (`BetaHedgeAllocator`, `TrailingStopExit`, `FundingLevelRegime`)
that no pattern doc lists. A name from another platform is translated to the
Keel concept first.
## Step 2 — `keel_components_search`
Query the concept; narrow with `category`, `input_type` / `output_type`
(a filtered typed search is exhaustive — an empty one is the evidence for "no
component does X"; a thin keyword search is not), or `clock_direction`.
Surface the top 3–5, ranked, with one line each. Nothing fits → say "the
closest is X but it does not cover Y"; never fabricate a fit.
## Step 3 — Batch the candidates
`keel_components_get_many(names=[...])` once for the 3–5 candidates: full
params, types, slot reads/writes, examples, pitfalls, version — compared side
by side. A single component the user already named →
`keel_components_get(name=<name>)` is cheaper. Note when a locked version
differs from the latest; changing a pinned version is the user's call.
## Step 4 — Show how it wires
`keel_components_search(after=<name>)` lists what can follow the candidate;
`(before=<name>)` what can precede it. A component alone is half the answer —
what feeds it and what consumes it is the other half. For a slot-reading
candidate (`entry_slot`, `ohlcv_slot`), say which earlier `Store` it needs.
## Step 5 — Where discovery ends
This workflow ends at discovery. Building a new strategy with the component is
the `strategy-creation` workflow; adding it to an existing one is
`strategy-fork-and-iterate`.
# Decision points
- Universe / asset-filter questions are discovery like any other; there is no
separate universe skill.
- The catalog is the truth, not training data: a component you have not seen
in a result this session is not asserted to exist — or not to.
# Output shape
1. One-sentence interpretation of the concept.
2. Top 3–5 candidates: name × one line × category.
3. For the leading candidate: param highlights and 1–2 example usages.
4. What precedes and follows it.
5. If the user wants to build with it: `strategy-creation` (new strategy) or
`strategy-fork-and-iterate` (existing strategy).
# When NOT to use
- Building a strategy → `strategy-creation`.
- One named component → `keel_components_get` (or
`keel://components/<name>/schema` where the host brPreview of the first 4,000 characters. Read full instructions →
---
name: overfit-check
description: |
Probe whether a backtest result is robust or curve-fit: re-run the strategy on disjoint windows and regimes the user agrees to, optionally perturb the sensitive parameters, compare the runs once, and give one verdict (ROBUST / MIXED / OVERFIT). Use when the user asks "is this real?", "is this overfit?", "out-of-sample", "walk-forward", or asks for a robustness check; the check is most informative on an unusually strong in-sample result (Sharpe above 3.0, return above 500%). Not a substitute for the first backtest (backtest-and-analyze).
references:
- step: 2
topic: "platform_operations"
why: "the backtest window rule: warm-up and the data floor for each probe window"
- step: 3
topic: "trading_domain"
why: "complexity ladder (>25 free parameters is overfitting), which parameters are the sensitive ones"
- step: 4
topic: "reasoning_principles"
why: "each transform once; signal diversity over parameter variants when reading a fragile result"
tools:
- keel_backtest_run
- keel_backtest_watch
- keel_backtest_compare
---
# References
Reference topics this workflow cites (keel_help topics):
- Step 2 — `platform_operations` — the backtest window rule: warm-up and the data floor for each probe window
- Step 3 — `trading_domain` — complexity ladder (>25 free parameters is overfitting), which parameters are the sensitive ones
- Step 4 — `reasoning_principles` — each transform once; signal diversity over parameter variants when reading a fragile result
# Method
## Step 1 — Confirm the baseline
The `strategy_id`, the baseline `run_id` (or run one on the default window),
and its window. State the baseline Sharpe / return / max DD before probing.
## Step 2 — Agree the out-of-sample windows
The probe takes several runs — one backtest of the plan's weekly allowance
each, plus wall-clock time. Before starting, say how many runs it needs and
which windows, and start once the user agrees; they may drop or pick
windows. Windows the user named are used as given. When the user asks for a
default split, this one is relative to the baseline window:
- W1 in-sample — its first half;
- W2 out-of-sample — its second half;
- W3 held-out tail — the most recent 3 months;
- W4 / W5 regimes — one high-vol stretch, one low-vol / chop stretch.
Every window must cover the strategy's warm-up. For each agreed window:
`keel_backtest_run(strategy_id=<id>, start_date=<start>, end_date=<end>)`; if still active,
`keel_backtest_watch(backtest_id=<run_id>)`. When all are terminal,
`keel_backtest_compare` once with every window's id — the table is the
comparison view.
## Step 3 — Parameter perturbation (only when the user asks for depth)
Pick the 1–2 parameters that matter (a lookback, a threshold, a leverage
cap — not a seed). Perturb ±20% and ±50% — four runs per parameter, stated
before starting — and compare once. A Sharpe that collapses under ±20% points
to a fitted parameter rather than an edge.
## Step 4 — Read stability
- Sharpe spread across windows: max − min > 2.0 with any window negative is
fragile. Real edges degrade smoothly.
- Sign of returns: one negative disjoint window is a yellow flag; two are red.
- Parameter sensitivity: robust to ±20% or it is not an edge.
## Step 5 — Verdict
- **ROBUST** — stable Sharpe, positive across regimes, parameters not
razor-thin.
- **MIXED** — some windows weak, thesis holds in most; a candidate for
further out-of-sample testing.
- **OVERFIT** — variance too high, negative OOS, or razor-thin parameters.
One sentence, then the windows / perturbations that drove it.
# Decision points
- Disjoint is not cherry-picked: never place the OOS window on a known good
period.
- An average across windows hides a −3.0 window; read every row.
- A ROBUST verdict is necessary, not sufficient — it describes historical
windows only.
- A fragile result is answered with robustness, not with less exposure: a
trend filter, sizing, or a regime Preview of the first 4,000 characters. Read full instructions →
---
name: portfolio-review
description: |
Summarise the strategies running on the user's account, read-only: positions, recent fills, drawdown against backtest expectations, and anything errored or stale. It changes nothing; starting or stopping a strategy happens in the Keel web app. Use when the user asks "how are my strategies doing", "what's running", "portfolio status", or asks about several running strategies at once. Not for backtesting a candidate (backtest-and-analyze).
references:
- step: 2
topic: "capability_boundaries"
why: "per-series freshness and bar-close semantics — what a recorded view can and cannot state"
- step: 3
topic: "trading_domain"
why: "leverage caps; why Sharpe over a short sample is noise"
tools:
- keel_live_monitor
- keel_app_link
---
# References
Reference topics this workflow cites (keel_help topics):
- Step 2 — `capability_boundaries` — per-series freshness and bar-close semantics — what a recorded view can and cannot state
- Step 3 — `trading_domain` — leverage caps; why Sharpe over a short sample is noise
# Method
Every call here reads; none changes a running strategy.
## Step 1 — Enumerate
`keel_live_monitor(view="portfolio")` with no `deployment_id` — the summary
across every running strategy (and account, unless the user named one). Read
the `freshness` block first: the portfolio view is recorded backend state and
can lag the web dashboard.
## Step 2 — Read each strategy the user cares about
- **Positions** — `keel_live_monitor(deployment_id=<id>, view="positions")`,
an on-demand exchange snapshot of what one strategy holds now. For several
strategies, say when you only have the recorded summary.
- **Recent fills** — the `trades` view for one strategy, with `limit=20`.
- **Drawdown** — `view="equity"` or `view="stats"` for one strategy; set its
realized drawdown beside the drawdown its backtest showed.
- **Totals** — account value, realized and unrealized P&L (both, always),
funding, fees, running and total strategy counts, from the portfolio view's
fields. Do not invent day / week / MTD returns from the summary; fetch a
specific view only if asked.
## Step 3 — Flag what needs attention, first
- Errored orders or executions in the last 24 h
(`view="executions"`, `limit=5`).
- Realized drawdown beyond the backtest's drawdown.
- No rebalance in more than 2× the target interval (stale).
- Net leverage above the user's stated risk preference (ask if unknown).
Errors before metrics — never inside a metrics wall.
## Step 4 — Report the data
Show the data and name what it shows; recommend nothing unprompted. A
question about starting, stopping or changing a strategy is answered with the
evidence; the change itself happens in the Keel web app, and
`keel_app_link` returns the page.
# Decision points
- A running strategy's Sharpe against its backtest Sharpe needs a sample:
under ~60 trading days it is noise — say so instead of comparing.
- "My main account" means filter to it; do not roll everything up.
- Unrealized is not realized; print both, the difference is real.
# Output shape
1. One-sentence summary of what is running ("4 strategies running on
1 account; one has an errored order in the last 24 h").
2. Totals from the portfolio view's fields.
3. Per-strategy table: name × realized P&L × age × status.
4. Flagged items, if any.
5. Top-3 positions only if fetched from `positions`; otherwise say not fetched.
6. `hero_url` for the portfolio dashboard.
# When NOT to use
- Starting, stopping or changing a running strategy → the user does that in
the Keel web app (`keel_app_link`).
- One strategy in depth → `keel_live_monitor(deployment_id,
view="overview")` and its read-only views; `recover-from-error` if the tools
themselves keep failing.
- A candidate replacement → `backtest-and-analyze`.
# Test prompts
1. "How are my strategies doing?"
2. "Give me a status across everything that's running."
3. "What's running right now, and haPreview of the first 4,000 characters. Read full instructions →
---
name: recover-from-error
description: |
Triage repeated keel_* tool failures: capture the errors, read keel_account_status and keel_connection_check, classify by the error's code (auth, scope, quota, sync, validation rule, handoff), and propose one specific next step. Use when the user says "this keeps failing", "what's wrong", "debug this", or pastes an error. Not for a single failure — the originating tool's error already says what to do.
references:
- step: 4
topic: "rule:<CODE>"
why: "the lesson behind a validation issue code"
- step: 4
topic: "mistakes"
why: "structural mistakes that validate but do not work (zero trades, wrong polarity)"
- step: 4
topic: "universe_selection"
why: "Universe selectors and resolved semantics behind EMPTY_UNIVERSE / unknown-symbol errors"
tools:
- keel_account_status
- keel_connection_check
- keel_help
- keel_feedback
---
# References
Reference topics this workflow cites (keel_help topics):
- Step 4 — `rule:<CODE>` — the lesson behind a validation issue code
- Step 4 — `mistakes` — structural mistakes that validate but do not work (zero trades, wrong polarity)
- Step 4 — `universe_selection` — Universe selectors and resolved semantics behind EMPTY_UNIVERSE / unknown-symbol errors
# Method
## Step 1 — Capture the last three errors
From the tool history: tool names, the `code` (envelope code or validation
issue code), the `message`, and the arguments. Fresh session and nothing
visible → ask the user to paste the most recent error verbatim.
## Step 2 — `keel_account_status`
Auth state and identity, API URL, the toolsets and tools visible right now,
remaining plan quota, cross-surface hints. Most "keeps failing" sessions are
one of: not authenticated, a tool outside the active toolsets, the wrong
account context, or an exhausted quota — all visible here.
## Step 3 — `keel_connection_check` when status looks clean
One read-only pass over auth, API reachability, and the active tool surface;
it exits non-zero on any failed check. Quote what it names in prose, not raw
JSON.
## Step 4 — Classify by code and apply the documented fix
- **Validation issue code** (`TYPE_MISMATCH`, `UNKNOWN_COMPONENT`,
`SLOT_REF_NOT_FOUND`, `LOADER_TIMEFRAME_UNBOUND`, …) →
`keel_help(topic="rule:<CODE>")` for the lesson; the issue's `suggestion`
and `location` say what and where. `UNKNOWN_COMPONENT` is a search-then-edit,
never a delete.
- **A strategy that validates but trades zero / the wrong way** → the
`mistakes` reference (binary signals re-normalized, polarity, sizer before
PSM).
- **401 / 403, `authenticated: false`** → sign in again through whatever
connected you: on the hosted endpoint, the client's own connect / reconnect.
- **A plan-limit refusal** (`quota_exhausted`, `quota_cap_reached`,
`plan_feature_unavailable`) → the refusal carries `limit_details` (the unit,
and for a quota the used, limit and reset numbers) and `resume.verify_call`
(the exact blocked call, every argument kept). Report the limit and the reset
in words; a plan-limit refusal is not retried; it lifts at the reset.
- **`handoff_required`** is not an error: it names a step the user completes
in the Keel web app.
- **`not_found` on a help topic / skill** → the error lists the closest names.
## Step 5 — One specific next step
Not a list of things to try. "The error points at <X>. Try <one call>. If it
still fails, paste the new error." The same call with the same arguments is
not a next step; if the previous call failed with those, they are the problem.
## Step 6 — Do not loop
If the same failure survives a second pass through this workflow in one
session, the loop is not converging: say so and stop retrying. When the user
wants it reported, `keel_feedback` files the report from inside the session —
show them what it will carry first (the exact prompt or command, the error
verbatim, and `keel_connection_check`'s output) and send it once they agree.
Credential or Preview of the first 4,000 characters. Read full instructions →
---
name: strategy-creation
description: |
Author a new Keel strategy from a natural-language thesis: fix path, universe and polarity; search every concept; batch-verify component types; draft the declarations and one Pipeline; dry-run until clean; save; and, when the user wants one, backtest and read the result. Use when the user says "create / build / make me a strategy", "new strategy that ...", or describes a trading idea and wants it implemented. Not for editing an existing strategy (strategy-fork-and-iterate) or for looking up one component (component-discovery).
references:
- step: 1
topic: "strategy_paths"
why: "Path 1–4 chains, PSM vs ScalingPositionManager and when each applies, Path-2 direction and exits (the sizer table is in trading_domain)"
- step: 1
topic: "strategy_patterns"
why: "pattern snippets when the thesis names one: entry/exit, screen-select, pairs, beta hedge, DCA, regime"
- step: 1
topic: "trading_domain"
why: "the timeframe floor and the per-strategy timeframe table, carry and oscillator polarity, required component pairs, complexity ladder, the entry/exit sizer table"
- step: 1
topic: "pipeline_system"
why: "the type progression OHLCVDict → SignalSeries → … → WeightSeries"
- step: 3
topic: "reasoning_principles"
why: "the invariants to check on the mock: terminal WeightSeries, normalize only when needed, each transform once, path matches signal type, a discrete strategy needs a way out, universe before signal"
- step: 4
topic: "dsl_syntax"
why: "the declarations with one example; the Execution mode for each path; Parallel / Store / Load / variable / factory syntax"
- step: 4
topic: "composition_mechanics"
why: "Parallel semantics and branch isolation, the two mask systems, slot-reading components, loaders following Globals vs an own-clock branch"
- step: 4
topic: "universe_selection"
why: "Universe selectors, manual vs criteria modes, resolved semantics, groups — when the user names an asset scope"
- step: 4
topic: "data_loading"
why: "validated examples of every loader/clock shape — carry, own-clock smoothing, accrual, projection, two price clocks"
- step: 5
topic: "rule:<CODE>"
why: "the lesson behind any validation issue code the dry run returns"
- step: 5
topic: "mistakes"
why: "the structural mistakes by id — most now carry a validator code with its own fix; the few with none are checked by eye"
- step: 5
topic: "tool_usage"
why: "pipeline completeness: a backtest refuses a pipeline that does not end in weights, and names the missing step"
tools:
- keel_components_search
- keel_components_get_many
- keel_components_get
- keel_strategy_compose
- keel_backtest_run
- keel_backtest_summarize
- keel_backtest_compare
- keel_strategy_readiness
---
# References
Reference topics this workflow cites (keel_help topics):
- Step 1 — `strategy_paths` — Path 1–4 chains, PSM vs ScalingPositionManager and when each applies, Path-2 direction and exits (the sizer table is in trading_domain)
- Step 1 — `strategy_patterns` — pattern snippets when the thesis names one: entry/exit, screen-select, pairs, beta hedge, DCA, regime
- Step 1 — `trading_domain` — the timeframe floor and the per-strategy timeframe table, carry and oscillator polarity, required component pairs, complexity ladder, the entry/exit sizer table
- Step 1 — `pipeline_system` — the type progression OHLCVDict → SignalSeries → … → WeightSeries
- Step 3 — `reasoning_principles` — the invariants to check on the mock: terminal WeightSeries, normalize only when needed, each transform once, path matches signal type, a discrete strategy needs a way out, universe before signal
- Step 4 — `dsl_syntax` — the declarations with one example; the Execution mode for each path; Parallel / Store / Load / variable / factory syntax
- Step 4 — `composition_mechanics` — Parallel semantics and branch isolation, the two mask systems, sPreview of the first 4,000 characters. Read full instructions →
---
name: strategy-fork-and-iterate
description: |
Change an existing strategy with one focused edit: the user's own strategy takes the change as its next version (earlier versions and their backtests stay in its history); a shared link or a Keel Library entry is forked first. Read the whole source, choose the smallest edit that meets the intent, dry-run, save once per user-visible step, explain the change view. Use when the user names a strategy and asks for a change, or says "fork", "based on", "like that but ...", "import this share link", "start from the library". Not for authoring from scratch (strategy-creation) or for merely reading a strategy (keel_strategy_get).
references:
- step: 3
topic: "dsl_syntax"
why: "'Strategy Template & Iterative Changes' — which declarations never move without being asked; scope-to-request examples"
- step: 3
topic: "composition_mechanics"
why: "adding a branch: Parallel semantics, branch isolation, the two mask systems"
- step: 3
topic: "reasoning_principles"
why: "invariants a swap must preserve: terminal WeightSeries, one clock, each transform once"
- step: 4
topic: "rule:<CODE>"
why: "the lesson behind a validation issue code the dry run returns"
- step: 4
topic: "mistakes"
why: "structural mistakes to flag (not fix) when you meet them in the existing source"
tools:
- keel_strategy_search
- keel_strategy_get
- keel_strategy_fork
- keel_library_list
- keel_library_fork
- keel_strategy_compose
- keel_strategy_diff
- keel_strategy_history
- keel_strategy_restore
- keel_backtest_run
---
# References
Reference topics this workflow cites (keel_help topics):
- Step 3 — `dsl_syntax` — 'Strategy Template & Iterative Changes' — which declarations never move without being asked; scope-to-request examples
- Step 3 — `composition_mechanics` — adding a branch: Parallel semantics, branch isolation, the two mask systems
- Step 3 — `reasoning_principles` — invariants a swap must preserve: terminal WeightSeries, one clock, each transform once
- Step 4 — `rule:<CODE>` — the lesson behind a validation issue code the dry run returns
- Step 4 — `mistakes` — structural mistakes to flag (not fix) when you meet them in the existing source
# Method
## Step 1 — Resolve the source
- A strategy id the user owns → go to Step 2. Its variants (a 10D vs 30D
lookback, a buffer sweep) are VERSIONS of that strategy — one compose save
each, `message` naming the change — not forks, the same as the Keel app,
which saves every edit as a version; there are no unsaved variants. A sweep
is small (2–4 versions): one backtest each, `keel_backtest_compare` once,
then `keel_strategy_restore(ref=<n>)` makes the chosen version HEAD — HEAD
is the pick, not whichever version was saved last. Earlier versions and
their backtests stay in the strategy's history, so a before/after
comparison needs no fork, and the reply names the save by its version
(v2, v3 …), never as a fork. Fork only to copy someone else's, a share link or a
Library strategy, when the user asks for a separate copy, or when the work
heads in an entirely new direction (Step 3's structural rewrite).
- A share link / share id → `keel_strategy_fork(source=<id>)` → a new owned
`strategy_id`.
- A Keel Library entry → `keel_library_list` for the slug, then
`keel_library_fork(slug=...)` → a new owned `strategy_id`.
- "That strategy from last week" → `keel_strategy_search(query=..., limit=5)`,
confirm which.
## Step 2 — Read the whole source
`keel_strategy_get(strategy_id=<id>, include_source=true)` and read it end to end
before proposing anything — the request often presupposes structure that is
or is not there. (Hosts that browse resources may read
`keel://strategy/<id>/source` instead.)
## Step 3 — Choose the smallest edit
For each requested change, classify it:
- parameter tweak (lookback, threshold) → edit that one value;
- component swap (`EqualWeightSizer` → `VolWePreview of the first 4,000 characters. Read full instructions →
Publisher declarations from the archived package. These are separate from our research and the live service's terms.
Package observed Nov 24, 2026.
plugin_asdk_app_6abdbe58e6a481919a03773b4c124fe0
Download plugin data (JSON)Plugin details: served from cache. Prepared . Refreshed when plugin data changes or after 6 hours. Your account and Follow status are live.