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/inalphaGuides for using ai agents skills like inalpha.
Last scanned: 6/16/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-06-16T09:27:03.003Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}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-12 โ factor-library closure: 79 factors with lineage & decay watch (alert-only, no auto-trim), a restricted-DSL factor-discovery L1, and a three-party research debate โ on top of D-11 multi-market paper trading (cross-currency cash + a live runner that auto-runs promoted strategies on live bars), 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).
The Operator Console (apps/dashboard) is the home base โ a runtime dashboard that surfaces everything you'd otherwise have to ask the agent for, with a docked agent chat on the right. The shots below are the live console, running locally.
See Quick Start to bring the console up locally (
pnpm devโ http://localhost:3001).
| 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. |
| Structured roles, not a chat wrapper | Research convenes a panel of analysts and an opposing-stance bull / bear / risk debate; every decision routes through hooks, permissions, and plan-exec. The structure lives in code, not in one mega-prompt. |
| 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. When behavior diverges, the cause is physical (slippage, latency, data precision), not two code paths. (Real-money live is intentionally out of scope.) |
| Long-horizon compounding | Solid infrastructure before flashy features. Surviving long matters more than running fast. |
Three software layers over one data layer. A request flows down; results flow back up.
L1 ยท User entry. The Operator Console (apps/dashboard) is the home base, with a docked agent chat. The mastra dev playground is there for live trace; direct CLI tool calls still work.
L2 ยท Orchestration โ packages/orchestration (Mastra ยท TypeScript). The one layer LLMs run in: a single orchestrator agent, wrapped in its harness โ tools, hook/permission middleware, the in-memory plan store, conversation memory, and telemetry.
L3 ยท Kernel services โ Python ยท FastAPI. Four independent, stateful processes, each owning one job:
| Service | Owns |
|---|---|
services/data |
Market data, web search, and financial fundamentals (A-shares / HK / US / global). |
services/paper |
The event-driven kernel โ backtest + paper on the same code โ plus the LLM-authored-strategy sandbox and the live runner. |
services/research |
Multi-agent deep dive: 6 analysts in parallel, then a bull / bear / risk debate (triggered only when they disagree, with a soft early-stop and the decision chain persisted for replay). |
services/factor |
The factor library (pandas-ta / Alpha101 / qlib + FRED macro): IC screening, current-effective factor timing, lineage & decay watch, DSL factor discovery. Signals only โ never places an order. |
L4 ยท Persistence & external. Postgres + TimescaleDB holds all time-series and business state. External venues span crypto, US / A-share / HK and other Asian & European single-name equities, global indices, and FRED macro โ the orchestrator routes each venue automatically by
inalpha 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 136 GitHub stars.
Yes. inalpha passed SkillsLLM's automated security scan โ a dependency vulnerability audit plus prompt-injection heuristics โ with no high-severity issues. You can read the full report in the Security Report section on this page.
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!