Q-agent: Agent for Claude Code

.claude/agents/new-pipeline-coder.md

new-pipeline-coder is an agent for Claude Code from WolfpackOfOne/Q-agent. It costs 88 tokens per session (2,339 once invoked), scanned A, original, MIT.

A coding assistant for creating data pipelines that fetch information from a new source and convert it into LEAN format. LEAN is the engine used by QuantConnect to run algorithm backtests.

In plain words
What is it for?
Use it to add an API, database, or file source to a QuantConnect workspace, produce LEAN-compatible files, and organize the related code and setup.
Why use it?
It gives new data sources a consistent structure so their output can be used by local LEAN backtests. It also defines where downloading, conversion, publishing, and dependencies belong.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions AGENTS.md.

This is WolfpackOfOne/Q-agent's own configuration. It tells Claude Code how to work on Q-agent itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Q-agent configures →

Reuse

Borrowing it

Nothing to install: this file belongs to WolfpackOfOne/Q-agent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/WolfpackOfOne/Q-agent/main/.claude/agents/new-pipeline-coder.md
Clone the repo
git clone --depth 1 https://github.com/WolfpackOfOne/Q-agent

Made for: Claude Code.

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 new-pipeline-coder

README.md
[![agentmods](https://agentmods.dev/badge/agents/wolfpackofone/q-agent/new-pipeline-coder/github.svg)](https://agentmods.dev/agents/wolfpackofone/q-agent/new-pipeline-coder)
Your own site
<a href="https://agentmods.dev/agents/wolfpackofone/q-agent/new-pipeline-coder"><img src="https://agentmods.dev/badge/agents/wolfpackofone/q-agent/new-pipeline-coder/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 new-pipeline-coder

Your own site · 80×15
<a href="https://agentmods.dev/agents/wolfpackofone/q-agent/new-pipeline-coder"><img src="https://agentmods.dev/badge/agents/wolfpackofone/q-agent/new-pipeline-coder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,339 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.00088 $0.02339
Opus 5.5 $0.00035 $0.00936
Sonnet 5.5 $0.00018 $0.00468
Haiku 4.5 $0.00009 $0.00234

Measured 2mo ago against content hash 70812b87ab81, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

new-pipeline-coder 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 2mo 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.

.claude/agents/new-pipeline-coder.md · 230 lines

How it starts

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

You are the data pipeline architect for this QuantConnect workspace. When asked to create a new pipeline, you build clean, consistent pipelines that output LEAN-format data so the user can immediately run local backtests.

Your primary rule: every new pipeline MUST produce LEAN-formatted output. Always. No exceptions.


Pipeline Conventions

All pipelines live under infrastructure/<source>/ and follow this structure:

infrastructure/<source>/
├── src/<source>_lean/
│   ├── __init__.py
│   ├── download.py     # fetch raw data from the source
│   ├── transform.py    # convert to LEAN format
│   └── publish.py      # write zips / CSVs to lean-data/
├── scripts/
│   └── run_pipeline.py # CLI entry point
├── lean-data/          # generated output — gitignored
│   └── equity/usa/
│       ├── daily/              # {ticker}.zip
│       ├── factor_files/       # {ticker}.csv
│       └── map_files/          # {ticker}.csv
├── setup.py            # editable install for shared venv
└── README.md

The shared infrastructure venv lives at infrastructure/.venv. After adding a new pipeline:

  1. Add any new pip dependencies to infrastructure/requirements.txt
  2. Add pip install -e "$HERE/<source>" to infrastructure/setup.sh
  3. Run bash infrastructure/setup.sh to install

LEAN Data Formats

Daily Bars — equity/usa/daily/{ticker}.zip

Zip containing {ticker}.csv, no header, prices ×10,000 (integer deci-cents):

YYYYMMDD 00:00,open,high,low,close,volume
20240102 00:00,1895000,1910000,1890000,1905000,45231000

Factor Files — equity/usa/factor_files/{ticker}.csv

No header. One row per period where adjustments change. Always end with sentinel row:

YYYYMMDD,price_factor,split_factor,ref_price
19980102,0.8613657,0.00892857,1
20501231,1,1,0
  • split_factor = cfacshr(date) / cfacshr(latest) — normalized to 1.0 today
  • price_factor — cumulative dividend adjustment, normalized to 1.0 today
  • ref_price — unadjusted close (×10000) before a split event; 0 otherwise
  • If the source has no split/dividend data, write a trivial file: just {start_date},1,1,0 + sentinel

Read the full file on GitHub · 230 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. 2mo ago First seen · 230 lines · 88 tokens per session scan A 70812b87ab81

Subscribe to this mod's changes

new-pipeline-coder is an agent published in the GitHub repository WolfpackOfOne/Q-agent (5 stars, last pushed yesterday), licensed MIT. It adds 88 tokens to every session and 2,339 once invoked, about $0.0004 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-31.

Related

Other agents, from other repositories

leakage-auditor

Specialized agent for detecting data leakage, train-test contamination, and temporal leakage in ML pipelines.

yeaight7/agent-powerups · 26 tokens

staff-data-sci

Personas are Opus-only. The Data Science Reviewer: data science, ML, and statistics review.

dbc-oduffy/coordinator-claude · 26 tokens

structured-data-worker

Generates structured tabular data (encounters, labs, hospitalizations, medications, PROs) for a single patient from their event list and document summaries. Reads table schemas from YAML files. Writes JSON output to a specified path. Spawned by the generate-synthetic-data skill -- do not invoke directly.

kenlkehl/onc-data-wrangler-plugin · 66 tokens

ml-engineer

Use this agent when working with model architecture, training loops, loss functions, optimizers, hyperparameter tuning, experiment tracking, or model evaluation. For example: building a PyTorch model, writing a training loop with mixed precision, setting up an Optuna hyperparameter sweep, configuring MLflow experiment…

morganmuli/metaskill · 81 tokens

bayesian-network-prediction

Constructs and operates probabilistic graphical models for causal inference, prediction under uncertainty, and dynamic belief updating with verified mathematical foundations and real-world integration.

ChrisRoyse/610ClaudeSubagents · 35 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens