LangAlpha is an agent workspace for researching financial markets and supporting investment decisions through persistent research, news analysis, and parallel subagents. It is for investors who want to develop and update trading theses over time, including generating long-short pair-trade ideas. The catalogue entries provide the skills, instructions, MCP servers, and plugin that make up its agent workflow.
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.
npx agentmods add instructions/ginlix-ai/langalpha/agents-mdgit clone --depth 1 https://github.com/ginlix-ai/LangAlphaWrote 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.
[](https://agentmods.dev/instructions/ginlix-ai/langalpha/agents-md)<a href="https://agentmods.dev/instructions/ginlix-ai/langalpha/agents-md"><img src="https://agentmods.dev/badge/instructions/ginlix-ai/langalpha/agents-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.02596 | $0.02596 |
| Opus 5 | $0.01298 | $0.01298 |
| Sonnet 5 | $0.00519 | $0.00519 |
| Haiku 4.5 | $0.00260 | $0.00260 |
Grade A, and why
LangAlpha AGENTS.md 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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.
langalpha
Core AI agent service of the Ginlix financial research platform. Two agents:
- PTC agent (default) — the worker: does the R&D and produces deliverables. Wired with a full Daytona sandbox and the complete toolset (code execution, MCP financial-data tools, charts, subagent orchestration). PTC = Programmatic Tool Calling (see PTC pattern).
- Flash agent — a fast, lightweight assistant: quick lookups, and coordinating between the workspace and the PTC worker. No sandbox; external tools only.
Single source of truth for AI coding agents.
CLAUDE.mdimports this via@AGENTS.md; Codex/Cursor/Copilot read it directly. Edit here, not there.
Common Commands
make up # full stack (postgres, redis, backend, frontend); auto-detects sandbox
make config # interactive setup wizard (LLM, data, sandbox, search)
make help # all targets (deploy, prod-up, test-sandbox, …)
uv run python server.py --reload # backend only, port 8000 (needs DB + Redis)
cd web && pnpm dev # frontend dev server, port 5173
make lint # Ruff (backend) + ESLint (frontend)
# Backend tests — default run is unit only (integration/slow/regression deselected in pyproject)
uv run pytest tests/unit/ -v --tb=short
uv run pytest -m integration # hits real APIs — needs DB + Redis + API keys
uv run pytest -m regression # locks live market-data behavior — needs a running server + live providers
cd web && pnpm test # Vitest; pnpm test:e2e = Playwright; pnpm typecheck = tsc --noEmit
Architecture
Backend (src/)
| Directory | Purpose |
|---|---|
src/server/ |
FastAPI app, routers (app/), handlers, models, services |
src/ptc_agent/ |
Core agent library — factory, middleware stack, subagents, prompts, sandbox/MCP integration |
src/tools/ |
LangChain tools: web search/fetch, market data, SEC filings, crawl |
src/llms/ |
LLM wrappers, token counting, pricing, model manifest (manifest/models.json) |
src/data_client/ |
Financial data protocol abstraction |
src/utils/ |
Redis cache, shared utilities |
libs/ptc-cli/ |
Standalone interactive CLI for the PTC agent (pkg langalpha-cli, cmd ptc-agent) |
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.
- 2d ago Changed · +1 lines · +99 tokens per session aa2714b7f8f2
- 5d ago First seen · 92 lines · 2,497 tokens per session scan A 4ee4cefc0ced
LangAlpha AGENTS.md is an instructions file published in the GitHub repository ginlix-ai/LangAlpha (1,720 stars, last pushed today), licensed Apache-2.0. It adds 2,596 tokens to every session, about $0.0130 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-30.
Other instructions, from other repositories
zero2Agent AGENTS.md
AGENTS.md instructions for ranxi2001/zero2Agent, covering zero2agent repository guide, purpose, start every task, source of truth and repository skills.
InvestSkill copilot-instructions.md
Copilot instructions for yennanliu/InvestSkill, covering investskill — github copilot setup & usage guide, installation & setup, automatic setup, verify setup and core stock analysis (6 frameworks).
InvestSkill GEMINI.md
Gemini CLI instructions for yennanliu/InvestSkill, covering investskill — gemini cli setup & usage guide, installation & setup, quick start, navigate to the investskill directory and start gemini cli (loads gemini.md automatically).
flock AGENTS.md
Instructions for Onelevenvy/flock, covering agents.md, project overview, build & development commands, rust backend and build the cli.
flock CLAUDE.md
Instructions for Onelevenvy/flock, covering claude.md, project overview, build & development commands, rust backend and build the cli.
InvestSkill CLAUDE.md
Claude Code instructions for yennanliu/InvestSkill, covering claude.md, commands, architecture, skill distribution model and platform config files.