Q-agent: Agent for Claude Code

.claude/agents/qc-notebook-writer.md

qc-notebook-writer is an agent for Claude Code from WolfpackOfOne/Q-agent. It costs 405 tokens per session (4,159 once invoked), scanned A, original, MIT.

A specialized agent for creating teaching notebooks in QuantConnect, a platform for developing and testing trading strategies. It writes Jupyter Notebook files for the research folders of QuantConnect projects.

In plain words
What is it for?
Use it to create one or more algorithmic-trading research notebooks, including notebook series, with `QuantBook()` data access and teaching summaries.
Why use it?
It keeps notebook work aligned with the project's conventions and uses QuantConnect's research data access. It is intended for instruction, so the notebooks emphasize explanations and step-by-step examples.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.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/qc-notebook-writer.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 qc-notebook-writer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/wolfpackofone/q-agent/qc-notebook-writer"><img src="https://agentmods.dev/badge/agents/wolfpackofone/q-agent/qc-notebook-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 405 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,159 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.00405 $0.04159
Opus 5.5 $0.00162 $0.01664
Sonnet 5.5 $0.00081 $0.00832
Haiku 4.5 $0.00040 $0.00416

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

Security

Grade A, and why

qc-notebook-writer 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/qc-notebook-writer.md · 276 lines

How it starts

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

You are an expert QuantConnect research notebook author specializing in educational Jupyter notebooks for algorithmic trading instruction. You write clear, pedagogically sound .ipynb files that teach quantitative finance concepts using the QuantConnect LEAN research environment.

Core Identity & Constraints

  • Always use QuantBook() directly for data access — never read from ObjectStore, never import external CSVs
  • Never use SetAlpha/SetPortfolioConstruction framework patterns in notebooks — use direct data manipulation
  • Every notebook ends with a 'Teaching Takeaways' markdown cell summarizing key lessons
  • All notebooks target the MyProjects/*/research/ directory and follow existing project patterns
  • Model is for teaching — prioritize clarity, comments, and step-by-step explanation over production efficiency

Workflow

  1. Discover existing patterns first: Use Glob to find existing notebooks under MyProjects/*/research/*.ipynb. Use Read to examine 1-2 examples and internalize their structure, cell ordering, markdown style, and QuantBook() usage patterns.
  2. Understand the project: Read the target project's claude.md or docs/ for context on the strategy, symbols, and date ranges.
  3. Plan the notebook(s): Determine scope — single notebook or 5-notebook series — and outline cell structure before writing.
  4. Write notebooks: Output valid .ipynb JSON with correct metadata, cell types, and source arrays.
  5. Verify: After writing, re-read each notebook with Read to confirm valid structure.

Notebook Structure Template

Every notebook follows this cell ordering:

  1. Title markdown cell — notebook number, title, one-sentence purpose
  2. Setup code cell — imports and QuantBook() initialization
  3. Content sections — alternating markdown explanation cells and code cells
  4. Visualization cells — charts/tables where appropriate
  5. Teaching Takeaways markdown cell — bullet-pointed lessons learned (REQUIRED, always last)

Read the full file on GitHub · 276 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 · 276 lines · 405 tokens per session scan A e70b8a00d769

Subscribe to this mod's changes

qc-notebook-writer is an agent published in the GitHub repository WolfpackOfOne/Q-agent (5 stars, last pushed yesterday), licensed MIT. It adds 405 tokens to every session and 4,159 once invoked, about $0.0016 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

glm-math-director

Stage 4 of the GLM chain. Solves the homework and physics numbers with strict unit checks, verifies LaTeX decomposes correctly, and assigns color identities to symbols. Sandbox when available on the platform; otherwise state derivation in checks.

HarleyCoops/Math-To-Manim · 56 tokens

grok-math-director

Stage 4 of the Grok chain. Must use codeinterpreter to solve homework and physics numbers, check units, and verify LaTeX. websearch only for cited constants.

HarleyCoops/Math-To-Manim · 44 tokens

argon-intent

Stage 1 of the Argon Google ADK chain. Distills a mathematical prompt or paper into audience, core claim, scope, emotional arc, and the one big zoom. Writes no code.

HarleyCoops/Math-To-Manim · 44 tokens

argon-cartographer

Stage 2 of the Argon Google ADK chain. Builds the reverse knowledge tree from depth 0 (the core claim) back to assumed foundations, plus the forward spine.

HarleyCoops/Math-To-Manim · 40 tokens

argon-curriculum

Stage 3 of the Argon Google ADK chain. First forward pass: turns the reverse knowledge tree spine into dramatic acts joined by curiosity.

HarleyCoops/Math-To-Manim · 0 tokens

domain-reviewer

Substantive domain review for a lecture deck or a manuscript section. Template agent — customize the 5 review lenses for your field. Checks derivation correctness, assumption sufficiency, citation fidelity, code-theory alignment, and logical consistency. Use after content is drafted or before teaching.

pedrohcgs/claude-code-my-workflow · 61 tokens