by mirror29
🦊 Open-source professional quant agent framework. Agents pick the factors working now to time entries, write full strategies, and evolve them in a sandbox — every order through machine approval, the LLM never on the order path. Multi-market, audit-grade.
# Add to your Claude Code skills
git clone https://github.com/mirror29/inalphainalpha is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by mirror29. 🦊 Open-source professional quant agent framework. Agents pick the factors working now to time entries, write full strategies, and evolve them in a sandbox — every order through machine approval, the LLM never on the order path. Multi-market, audit-grade. It has 113 GitHub stars.
inalpha's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/mirror29/inalpha" and add it to your Claude Code skills directory (see the Installation section above).
inalpha is primarily written in Python. It is open-source under mirror29 on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh inalpha against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Inalpha is a professional quant agent framework, governed by engineering discipline. It treats LLM agents not as black-box signal generators, but as code-writing collaborators bounded by hooks, permissions, plan-then-execute approval, and a one-shot signature on every order path.
Agents pick the factors that work now. Instead of a hard-coded indicator set, they rank factors by time-series Rank IC and surface the ones currently effective (factor.timing), then use that to back research and timing. Data itself is source-attributed by default — as_of-stamped and freshness-checked — so agents don't quietly reason on stale data.
Several capability lines sit on top of that harness:
Strategy protocol contract) precede any candidate run; multi-objective fitness (Sharpe + Calmar − turnover − drawdown) so no metric can be gamed alone.trade.create_plan → approve → execute_plan with a single-use, TTL-bound approval_token; the LLM has no direct path to placing an order, and every step is logged into the audit trail.The name combines Inari (the Japanese fox deity of prosperity) with alpha (the quant term for excess return) — a companion that reads your direction and keeps every step on the record.
Status: Inalpha is in alpha (Phase D-11 — multi-market paper trading: cross-currency cash + a live runner that auto-runs promoted strategies on live bars, on top of D-10 multi-market data and D-9 LLM-authored strategies + risk engine). Read the code, weigh in on design — do not run this against real money (real-money trading is out of scope).
| Principle | Substance |
|---|---|
| Discipline over vibes | Hooks, permissions, plan-exec separation, and a one-shot approval token are declared in config — not in prompts. A failing guardrail has a single point of debug. |
| Agents are first-class | Research, decision, risk, and review have dedicated agents — opposing stances, distinct toolsets, traceable decisions. Not a chat wrapper. |
| Transparency over precision | Prefer an agent that says "I don't know" over one that sounds certain but cannot show its evidence. |
| Unified kernel | One strategy codebase across backtest and paper — swap the Clock and Gateway, not the logic. The kernel is same-code by design (the seam that would reach live is just a Gateway swap), but real-money live trading is out of scope. When behavior diverges, the cause is physical (slippage, latency, data precision), not "two code paths." |
| Long-horizon compounding | Solid infrastructure before flashy features. Surviving long matters more than running fast. |
Four layers, top to bottom:
apps/dashboard, with a docked agent chat) is the home base; the mastra dev playground is there for live trace, and direct CLI tool calls still work.packages/orchestration (Mastra · TypeScript). Where agents, tools, hook/permission middleware, the in-memory plan store, conversation memory, and telemetry live side by side. This is the only layer LLMs run in.services/data (market data ingest + web search + financial fundamentals across A-shares / HK / US / global), services/paper (event-driven kernel running backtest and paper on the same code), services/research (initial multi-agent scaffolding; analysts pull fundamentals + web intel with fallback; the full bull/bear debate loop is slated for Phase E+), and services/factor (factor library — pandas-ta / Alpha101 / qlib — with IC effectiveness screening and current-effective factor timing; signals only, no execution). The asynchronous Strategy Evolution loop runs alongside.The evolution loop runs asynchronously alongside the agent runtime, with winners promoted back into services/paper for backtest evaluation. Details — sandbox gates, fitness function, and the E1 → E4 ramp — live in Core Capabilities §3 below.
Both diagrams are rendered from D2 sources at assets/architecture.d2 and assets/strategy-evolution.d2. See docs/04-current-state.md for the live module inventory and what's still in flight.
Each capability below is built so the work it produces is auditable from day one — not retrofitted later.
An alpha hypothesis is a guess about what predicts returns ("stocks with low volatility outperform"; "options skew steepens before drawdowns"). Traditional factor research is bottlenecked by the manual loop — a single researcher can usually validate 5–10 such guesses a day. Inalpha lets agents do that work without taking shortcuts.
factor.timing), backing research and entry timing — when the market rotates, the chosen factors rotate with it.Conversational tools live at L0; a fixed validation workflow at L1; a multi-agent research crew at L2; weekly automated scans at L3. Design notes in
docs/03-kernel-design.md.
Letting an LLM call submit_order directly is how you lose money fast. Telling it "don't exceed 10% of capital" in a prompt is a suggestion, not a constra