lona-strategies

lona-strategies is a command for Claude Code from mindsightventures/lona-agent-skills. It costs 14 tokens per session (277 once invoked), scanned A, original, MIT.

A trading-strategy manager for the Lona platform. It works with Python strategies built for Backtrader, a Python framework for testing trading rules against market data.

In plain words
What is it for?
Use it to list strategies, view their details and Python code, create one from code or a written description, and update its name, description, or code.
Why use it?
It keeps strategy listing, inspection, creation, and updates in one workflow instead of requiring separate manual steps.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the lona plugin — 3 skills, 3 commands, 1 agent, 1 MCP server shipped together

Good fit Use it to list strategies, view their details and Python code, create one from code or a written description, and update its name, description, or code.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/mindsightventures/lona-agent-skills/lona-strategies
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/mindsightventures/lona-agent-skills

Made for: Claude Code.

Or install lona, the plugin that ships this one along with the rest of its 3 skills, 3 commands, 1 agent, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lona-strategies

README.md
[![agentmods](https://agentmods.dev/badge/commands/mindsightventures/lona-agent-skills/lona-strategies/github.svg)](https://agentmods.dev/commands/mindsightventures/lona-agent-skills/lona-strategies)
Your own site
<a href="https://agentmods.dev/commands/mindsightventures/lona-agent-skills/lona-strategies"><img src="https://agentmods.dev/badge/commands/mindsightventures/lona-agent-skills/lona-strategies/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lona-strategies

Your own site · 80×15
<a href="https://agentmods.dev/commands/mindsightventures/lona-agent-skills/lona-strategies"><img src="https://agentmods.dev/badge/commands/mindsightventures/lona-agent-skills/lona-strategies.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 277 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00014 $0.00277
Opus 5 $0.00007 $0.00138
Sonnet 5 $0.00003 $0.00055
Haiku 4.5 $0.00001 $0.00028

Measured 12d ago against content hash bb61e90b2211, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

lona-strategies scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/lona-strategies.md · 36 lines

What it actually says

Lona Strategy Management

Manage trading strategies on the Lona platform.

Actions

List strategies

Use lona_list_strategies to show all saved strategies with their names, IDs, and versions.

View strategy details

Use lona_get_strategy to get metadata, then lona_get_strategy_code to view the Python source code.

Create from code

Use lona_create_strategy with Python Backtrader code. The code must:

  • Import backtrader (import backtrader as bt)
  • Define a class inheriting from bt.Strategy
  • Use params tuple format: params = (('name', default),)

Create from description

Use lona_create_strategy_from_description for AI-powered generation:

  1. Provide a natural language description
  2. Poll lona_get_strategy_creation_status every 10-15 seconds
  3. Wait for COMPLETED status (typically 3-5 minutes)

Update strategy

Use lona_update_strategy to modify name, description, or code of an existing strategy.

Ask the user

  • What they want to do (list, view, create, update)
  • For creation: describe the trading logic or provide code
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 36 lines · 14 tokens per session scan A bb61e90b2211

Subscribe to this mod's changes

lona-strategies is a command published in the GitHub repository mindsightventures/lona-agent-skills (4 stars, last pushed 6mo ago), licensed MIT. It adds 14 tokens to every session and 277 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.