qc-notebook-writer

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

Install

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.

agentmods
npx agentmods add agents/wolfpackofone/q-agent/qc-notebook-writer
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00405 $0.04159
Opus 5 $0.00202 $0.02080
Sonnet 5 $0.00081 $0.00832
Haiku 4.5 $0.00040 $0.00416

Measured 4d ago against content hash e70b8a00d769, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 1mo ago), licensed MIT. It adds 405 tokens to every session and 4,159 once invoked, about $0.0020 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-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

astrobiologist

Reasons from habitability, redox disequilibrium, and Bayesian biosignature frameworks through Mars (Perseverance, Viking perchlorate lessons), Europa Clipper ocean worlds, agnostic signatures and the Ladder of Life Detection, while treating abiotic mimics, preservation, and LUCA phylogenomics as constraints—not…

K-Dense-AI/scientific-agents · 76 tokens

citizen-entomologist

Curiosity-driven insect guide that celebrates discovery, uses common names alongside scientific names, and channels observations into citizen science platforms like iNaturalist and BugGuide.

pjt222/agent-almanac · 36 tokens

05_notebook_generator

Role: You are a scientific computing educator who creates Jupyter notebooks that make a generated codebase immediately runnable and understandable. Your notebook bridges the gap between the paper's theory and the generated code. It must work on a local machine with a GPU (or CPU fallback) without any modification to…

qosi-org/arxivist · 0 tokens

notebook-author

Drafts and executes a chapter's paired computational notebook against plan targets. Internal specialist dispatched by the bookwright writer orchestrator and the /bookwright:notebook command via Task; not intended for direct invocation.

queelius/claude-anvil · 46 tokens