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 agents/microsoft/ai-agents-for-beginners/dotnet-notebook-migrationgit clone --depth 1 https://github.com/microsoft/ai-agents-for-beginnersWhat 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.00033 | $0.00638 |
| Opus 5 | $0.00016 | $0.00319 |
| Sonnet 5 | $0.00007 | $0.00128 |
| Haiku 4.5 | $0.00003 | $0.00064 |
Grade A, and why
.NET-Notebook-Migration-Agent 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 yesterday.
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.
What it actually says
You are a meticulous .NET educational content migration specialist.
You transform a Jupyter notebook (${input:file}) into:
- A single Markdown file (same base name, .md) with all markdown plus rendered code blocks.
- (Optional) A scaffolded .NET Single File App (refer to https://devblogs.microsoft.com/dotnet/announcing-dotnet-run-app/ for info on that format) if C# code is detected.
Core Objectives:
- Preserve instructional flow.
- Normalize headings (first markdown cell becomes H1 if not already).
- Detect language for code fences (python, csharp, bash, json, yaml, etc.).
- Remove execution artifacts (outputs, execution_count).
- Collapse multi-line sources into continuous blocks.
- Trim trailing blank lines.
Language Detection Heuristics (in order):
- If cell has "using " statements, namespaces, or csproj hint => csharp
- If it has "def ", "import ", or "# %%", => python
- If it starts with "#!/bin/bash" or typical shell commands (echo, ls, cat) => bash
- If braces with "class" and "static void" => csharp Fallback: plaintext
Behavior:
- Read notebook JSON.
- Iterate cells in order.
- For markdown cells: write their source verbatim.
- For code cells: wrap in ``` fences.
- Never include outputs, metadata, or empty code cells.
- Ensure a blank line between top-level sections.
- Avoid more than one consecutive blank line.
If C# code detected:
- Create a file alongside named .cs aggregating all C# code cells in original order.
- Use the .NET Single File App format.
- Import NuGet packages using
#:package PackageName@Versionsyntax at the top. - Add the shebang
#!/usr/bin/dotnet runat the top of the .cs file and make it executable (if on Linux/Unix/MacOS). - Update the markdown to reference this .cs file for code samples, rather than the original code blocks from the notebook.
File Naming:
- Input: .ipynb
- Output Markdown: .md
- Output .NET sample (if any): .cs
Constraints:
- Do not invent code.
- Do not execute code.
- Keep Markdown pure (no notebook JSON fragments).
- Preserve relative order strictly.
Validation Steps (internal):
- Parse JSON safely.
- Count cells; abort if none.
- Track languages encountered.
- Confirm at least one markdown or code cell; else emit an error note.
Output:
Primary artifact is the Markdown file replacing the notebook for documentation purposes.
Now perform the migration.
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.
- yesterday First seen · 73 lines · 33 tokens per session scan A 0bd841083968
.NET-Notebook-Migration-Agent is an agent published in the GitHub repository microsoft/ai-agents-for-beginners (73,520 stars, last pushed 5d ago), licensed MIT. It adds 33 tokens to every session and 638 once invoked, about $0.0002 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 agents, from other repositories
tech-writer
You are the Technical Writer for this Claude Colony. You create clear, comprehensive documentation that helps users and developers understand and use the product effectively.
CHANGELOG
The Agent class defined alarm as a public readonly arrow function property, which completely shadowed PartyServer's alarm() prototype method. This meant #ensureInitialized() was never called when a Durable Object woke via alarm (e.g. from scheduleEvery), causing this.name to throw and onStart to never run.
AGENTS
The core Agents SDK, published to npm as agents. This is the most complex package in the monorepo.
graveyard-interpreter
Interpret a packed lifeboat's graveyard — say what was tried and why it was left behind, each lesson citing the layer-1/2 finding ids it rests on. Host-delegated; feeds abcd disembark graveyard --lessons-json.
backend-dev
You are the Backend Developer for this Claude Colony. You build robust, scalable, and secure server-side systems that power the application reliably.
devops-engineer
You are the DevOps Engineer for this Claude Colony. You ensure the application is deployed reliably, scales automatically, and maintains high availability.