senpi-trading-runtime

senpi-trading-runtime is a skill for Claude Code, Codex from Senpi-ai/senpi-skills. It costs 182 tokens per session (3,242 once invoked), scanned A, original, MIT.

A technical guide to the Senpi runtime, the service that supervises trading-strategy code on Hyperliquid, a crypto trading platform. It explains how a Python scanner returns signals while the runtime handles scheduling, orders, sizing, risk checks, and exits.

In plain words
What is it for?
Use it when building or reviewing a Senpi strategy that runs from runtime.yaml and exports scan(inputs, ctx). It is also a reference for the skills that build, deploy, monitor, or recommend strategies.
Why use it?
It prevents strategy code from taking on runtime responsibilities or using the wrong interface. It also clarifies which parts the strategy controls and which parts the runtime controls.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it when building or reviewing a Senpi strategy that runs from runtime.yaml and exports scan(inputs, ctx). It is also a reference for the skills that build, deploy, monitor, or recommend strategies.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/senpi-ai/senpi-skills/senpi-trading-runtime
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.

Any agent
npx skills add Senpi-ai/senpi-skills --skill senpi-trading-runtime
Clone the repo
git clone --depth 1 https://github.com/Senpi-ai/senpi-skills

Made for: Claude Code, Codex.

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 senpi-trading-runtime

README.md
[![agentmods](https://agentmods.dev/badge/skills/senpi-ai/senpi-skills/senpi-trading-runtime/github.svg)](https://agentmods.dev/skills/senpi-ai/senpi-skills/senpi-trading-runtime)
Your own site
<a href="https://agentmods.dev/skills/senpi-ai/senpi-skills/senpi-trading-runtime"><img src="https://agentmods.dev/badge/skills/senpi-ai/senpi-skills/senpi-trading-runtime/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 senpi-trading-runtime

Your own site · 80×15
<a href="https://agentmods.dev/skills/senpi-ai/senpi-skills/senpi-trading-runtime"><img src="https://agentmods.dev/badge/skills/senpi-ai/senpi-skills/senpi-trading-runtime.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 182 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,242 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00182 $0.03242
Opus 5.5 $0.00073 $0.01297
Sonnet 5.5 $0.00036 $0.00648
Haiku 4.5 $0.00018 $0.00324

Measured today against content hash 743eb594de7d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

senpi-trading-runtime 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 today.

The scan reads SKILL.md. This mod also ships 8 executable files (scripts/behaviour_hash.py, scripts/gen_catalog.py, scripts/min_budget.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

senpi-trading-runtime/SKILL.md · 185 lines

How it starts

The opening of the file, as written. The whole thing — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Senpi Trading Runtime — the runtime contract

This skill is infrastructure: the canonical knowledge of how the Senpi runtime (@senpi-ai/runtime) behaves and how a strategy interacts with it. The lifecycle skills — author (build), ops (install/monitor), discover (recommend) — reference this one for the contract.

The runtime model

A strategy runs from a runtime.yaml that points at an in-repo Python module. The runtime spawns and supervises that module and calls a frozen scan(inputs, ctx) every interval_seconds. The division of labor is fixed:

  • Your code produces signals — nothing else. scan(inputs, ctx) reads market and account data and returns a list[dict] of candidate signals. It does not open, close, size, schedule, or execute anything.
  • Zero model cost, and the only loop there is. The runtime ticks every interval_seconds without a model call. Never put an agent-turn cron beside it — a producer, a re-check, a watcher — each firing is a full model call. There is no paper-trading mode: a strategy is tested with senpi validate (one real tick, no wallet) and then run live at the $10 floor.
  • The runtime owns everything downstream: scheduling (interval_seconds), spawning + supervising + restarting the scanner, validating (signal_data_schema) + de-duplicating the signals you return, sizing & order execution (FEE_OPTIMIZED_LIMIT), slot accounting, risk.guard_rails, the two-phase DSL trailing-stop exits, and crash-safe position reconcile on restart.
  • What it does NOT own: partial exits. Every exit the runtime can make (DSL, CLOSE_POSITION) closes the WHOLE position, and edit_position — the only reduce — is blocked to scanners. A rule like "take 25% off at +10% ROE and let the rest run" cannot be authored in a runtime package at all; a scanner that tries raises PermissionError every tick while the log reads as if the rule is working. Details: references/runtime-concepts.md → DSL Exit Engine.

Read the full file on GitHub · 185 lines

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. today Changed · +17 lines 743eb594de7d
  2. 9d ago Changed f99e6183c0e8
  3. 10d ago Changed 6924b671340f
  4. 15d ago Changed · +3 lines · +25 tokens per session 266222815084
  5. 20d ago Changed · +5 lines 0ec2c92403e1
  6. 1mo ago Changed · +1 lines d3f427250b3f
  7. 1mo ago Changed db7cab889ede
  8. 1mo ago Changed · +17 lines 4bba8a960438
  9. 1mo ago Changed 9ed988d0dcec
  10. 1mo ago First seen · 142 lines · 157 tokens per session scan A dbf7d60bbd43

Subscribe to this mod's changes

senpi-trading-runtime is a skill published in the GitHub repository Senpi-ai/senpi-skills (144 stars, last pushed yesterday), licensed MIT. It adds 182 tokens to every session and 3,242 once invoked, about $0.0007 per session on Opus 5.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-30.

Related

senpi-trading-runtime compared with skills from other repositories

senpi-trading-runtime next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
senpi-trading-runtimeSenpi-ai/senpi-skillsSkill144yesterdayMITA182Claude Code, Codex
agentic-streetLeoYeAI/openclaw-master-skillsSkill2.2k5d agoMITA91Claude Code, Codex
token-pickaeonfun/aeonSkill788yesterdayMITA25Claude Code, Codex
bridgealsk1992/CloddsBotSkill3.1k1mo agoMITA13Claude Code, Codex
hyperliquidalsk1992/CloddsBotSkill3.1k1mo agoMITA19Claude Code, Codex
marginfialsk1992/CloddsBotSkill3.1k1mo agoMITA11Claude Code, Codex
airdrop-hunting-guidenirholas/three.wsSkill269yesterdayApache-2.0A54Claude Code, Codex