grade-and-fix-daedalus

grade-and-fix-daedalus is a skill for Claude Code, Codex from bgill55/daedalus. It costs 130 tokens per session (3,808 once invoked), scanned A, original, MIT.

A workflow for reviewing failed Daedalus runs or agent transcripts, finding the underlying bug, and preparing a fix for the main Daedalus codebase. The test sandbox is kept read-only.

In plain words
What is it for?
Use it to investigate recurring Daedalus failures, reproduce bugs, make targeted source-code fixes, and submit those fixes as a stacked pull request (a series of dependent code changes).
Why use it?
It separates grading from changing the tests, helping prevent fixes that only make the test project look correct. It also requires reproducing and checking the problem with real code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate recurring Daedalus failures, reproduce bugs, make targeted source-code fixes, and submit those fixes as a stacked pull request (a series of dependent code changes).

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bgill55/daedalus/grade-and-fix-daedalus
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.

Any agent
npx skills add bgill55/daedalus --skill grade-and-fix-daedalus
Clone the repo
git clone --depth 1 https://github.com/bgill55/daedalus

Made for: Claude Code, Codex.

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 grade-and-fix-daedalus

README.md
[![agentmods](https://agentmods.dev/badge/skills/bgill55/daedalus/grade-and-fix-daedalus/github.svg)](https://agentmods.dev/skills/bgill55/daedalus/grade-and-fix-daedalus)
Your own site
<a href="https://agentmods.dev/skills/bgill55/daedalus/grade-and-fix-daedalus"><img src="https://agentmods.dev/badge/skills/bgill55/daedalus/grade-and-fix-daedalus/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 grade-and-fix-daedalus

Your own site · 80×15
<a href="https://agentmods.dev/skills/bgill55/daedalus/grade-and-fix-daedalus"><img src="https://agentmods.dev/badge/skills/bgill55/daedalus/grade-and-fix-daedalus.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 130 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,808 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.00130 $0.03808
Opus 5 $0.00065 $0.01904
Sonnet 5 $0.00026 $0.00762
Haiku 4.5 $0.00013 $0.00381

Measured 10d ago against content hash 10ca0506f135, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

grade-and-fix-daedalus 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 10d 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.

src/skills/grade-and-fix-daedalus/SKILL.md · 236 lines

How it starts

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

Grade a Daedalus run and ship the core fix (stacked PR)

This skill covers how to grade a Daedalus run (or read a pasted agent transcript), root-cause the failure, fix it in src/..., and ship it as a stacked PR. The prompt-vault sandbox stays READ-ONLY except for one user-explicit exception.

Hard rules (standing)

  • Grade, don't fix the sandbox. prompt-vault (+ social_media_manager) are TEST-ONLY. You READ/GRADE them. You do NOT edit them to "help" Daedalus — that defeats the purpose. The ONE exception: a user-explicit "just this once, fix this error in the test project" — otherwise the sandbox is passive.
  • Fixes go to Daedalus CORE (src/...), never the sandbox. A graded run that exposes a guardrail gap is a core bug; ship it as a PR.
  • Run Daedalus from SOURCE (npx tsx src/index.ts) — the published bin is stale. Banner version lagging package.json is cosmetic.
  • search_files FAILS on D:\ paths (MSYS IO error). Use terminal with grep/ls/git for anything under D:.
  • Verify with real tool calls, not theory. Reproduce the bug by importing the actual function and calling it (tsx repro), then prove the fix the same way. Do NOT assert "the guard is wrong" without a repro.
  • Skills are auto-discovered from this src/skills/ dir (see src/skills/index.ts): any subdir with a SKILL.md whose frontmatter has a trigger field is matched keyword-style against the user's request and injected into the prompt. Keep the trigger field populated with pipe-separated phrases.

Recurring bug archetypes (with exact fixes that shipped)

These are the failure modes seen grading real Daedalus runs. Each maps to a specific root cause and a specific fix location.

1. Patch fails on a Unicode punctuation mismatch (en-dash vs hyphen)

  • Symptom: agent's old_string uses a regular hyphen - but the file has an en-dash (U+2013) in a comment; Daedalus reports "Old string not found" and the edit never lands. Looks like "every patch fails" but it's a 1-char invisible mismatch.
  • Root cause: patchFile (src/tools/builtin/files.ts) matches old_string exactly, and the fuzzy fallback fuzzyWhitespacePatch only normalizes whitespace, not Unicode punctuation. en-dash/hyphen/smart-quotes/NBSP are invisible to a human but distinct bytes.
  • Fix (v3.20.7): added normalizeUnicode() in patch-utils.ts mapping en/em-dash -> hyphen, smart quotes -> straight, NBSP -> space (all 1:1 so original bytes stay intact), folded into normalizeWhitespace(); the exact indexOf path in files.ts also tries a unicode-normalized match. Mappings must be 1:1 (no length-changing entries like ellipsis ->..., or the index-slice math breaks).

Read the full file on GitHub · 236 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. 10d ago First seen · 236 lines · 130 tokens per session scan A 10ca0506f135

Subscribe to this mod's changes

grade-and-fix-daedalus is a skill published in the GitHub repository bgill55/daedalus (4 stars, last pushed 2d ago), licensed MIT. It adds 130 tokens to every session and 3,808 once invoked, about $0.0006 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 skills, from other repositories

printing-press-output-review

Internal sub-skill: agentic review of a printed CLI's sampled command output for plausibility issues that rule-based checks can't encode (substring-match relevance, format bugs, silent source drops, ranking failures). Invoked via the Skill tool by the main printing-press skill at Phase 4.85 and printing-press-polish…

mvanhorn/cli-printing-press · 102 tokens

fix

Dispatch fix subagent for FIX-FIRST gaps from review, re-review, then diagnose unresolved failures after 2 loops.

automagik-dev/genie · 25 tokens

argot-refresh

Refresh Argot's committed fit snapshot safely — first diagnose why maintenance is recommended, re-audit corpus scope and structural path changes, review stale mutes and policy entries with the user, then fit locally, verify, and prepare the reviewed .argot/ update. Use when argot status, argot check, MCP, or CI…

get-tmonier/argot · 136 tokens

test-driven-development

This skill should be used when implementing new features, fixing bugs, or writing new code. Enforces RED-GREEN-REFACTOR.

dean0x/devflow · 32 tokens

testing

This skill should be used when the user asks to "write tests", "fix failing tests", "improve test coverage", "add integration tests", "debug a flaky test", or reviews test quality. Provides behavior-focused testing patterns, coverage analysis, and detection of brittle test anti-patterns like implementation coupling…

dean0x/devflow · 70 tokens

pythinker-code-help

Answer Pythinker CLI usage, configuration, and troubleshooting questions. Use when user asks about Pythinker CLI installation, setup, configuration, slash commands, keyboard shortcuts, MCP integration, providers, environment variables, how something works internally, or any questions about Pythinker CLI itself.

PyModel/pythinker-cli · 63 tokens