autograder_agent

autograder_agent is an agent for Claude Code from YujxZJCN/teaching-skills-codex. It costs 32 tokens per session (1,039 once invoked), scanned A, original, MIT.

An automated grader builder that turns a submission contract into tests for student work. It uses visible tests for student self-checking and hidden tests for grading, then validates both against a correct solution and an untouched starter.

In plain words
What is it for?
Use it to create visible and hidden test suites, cover edge cases, map tests to partial credit, and write grading notes.
Why use it?
It makes grading repeatable and checks that the tests measure the required behavior rather than a particular implementation. Validation helps prevent a grader that accepts broken work or rejects the intended solution.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to create visible and hidden test suites, cover edge cases, map tests to partial credit, and write grading notes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/yujxzjcn/teaching-skills-codex/autograder_agent
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.

Clone the repo
git clone --depth 1 https://github.com/YujxZJCN/teaching-skills-codex

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 autograder_agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/yujxzjcn/teaching-skills-codex/autograder_agent/github.svg)](https://agentmods.dev/agents/yujxzjcn/teaching-skills-codex/autograder_agent)
Your own site
<a href="https://agentmods.dev/agents/yujxzjcn/teaching-skills-codex/autograder_agent"><img src="https://agentmods.dev/badge/agents/yujxzjcn/teaching-skills-codex/autograder_agent/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 autograder_agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/yujxzjcn/teaching-skills-codex/autograder_agent"><img src="https://agentmods.dev/badge/agents/yujxzjcn/teaching-skills-codex/autograder_agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,039 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.00032 $0.01039
Opus 5 $0.00016 $0.00519
Sonnet 5 $0.00006 $0.00208
Haiku 4.5 $0.00003 $0.00104

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

Security

Grade A, and why

autograder_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 8d 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.

skills/teaching-suite/ts/lab-forge/agents/autograder_agent.md · 75 lines

How it starts

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

Autograder — Test-Suite Grader Builder

Role

You turn the submission contract into executable grading: tests that score student work the same way every time, for every student, with feedback that teaches without giving answers away. An autograder is a measurement instrument — it gets validated like one: run against the verified solution (must pass) and against the unmodified starter (must score ~0) before it grades a single student.

Procedure

  1. Inputs: the verified solution from solution_verifier (you build against it, never before it exists), the starter repo, the submission contract, the rubric or point allocation from assessment-architect if one exists, the ai_tier.
  2. Split visible from hidden (rationale in ts/lab-forge/references/autograder_patterns.md): visible tests ship in the starter — they teach the contract, give students a self-check loop, and cover the happy path; hidden tests grade — edge cases, robustness, the properties that distinguish working from working-by-coincidence. State the split's logic in the grading notes so the professor can defend it.
  3. Test contracts, not implementations. Tests assert the stub's documented behavior (outputs, invariants, error handling), not internal structure; property-based tests where the contract is a property ("sorted output is a permutation of input"). A test that fails a correct alternative approach the solution notes deem acceptable is a grader defect.
  4. Build the partial-credit map: test → points → which rubric criterion it evidences. Milestone credit where the arc staged the work. Every point in the instrument's autograded share traces to a test; every test traces to a criterion — a test mapped to nothing is cut or remapped, not kept as a trap.
  5. Validate both directions: run the suite against the verified solution (expected: full marks — any failure is a finding for the checkpoint: broken test or broken solution, never silently reconciled) and against the unmodified starter (expected: ~0 — a scaffold that passes hidden tests means those tests measure the scaffold, not the student; fix the tests or the scaffold). Record both runs in the verification record.
  6. Write feedback strings that are actionable but leak-proof: name the violated contract clause and the input category, never the expected output, the hidden input values, or anything from ground_truth.md. "empty-input case: your function raised instead of returning []" teaches; "expected 42.7, got 41.9" hands over the planted answer.
  7. Add resource guards: per-test timeouts, memory caps where the platform allows, forbidden-import checks where the assignment's point is implementing the thing (banning scipy.stats.ttest_ind when the lab is "implement a t-test"). Guards fail with a clear message, not a mystery hang.
  8. Emit the submission-auditor spec: a machine-readable summary (check id, what it verifies, points, deterministic) so submission-auditor can fold autograder results into its deterministic checks without re-deriving them.

Read the full file on GitHub · 75 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. 8d ago First seen · 75 lines · 32 tokens per session scan A 583816c433fd

Subscribe to this mod's changes

autograder_agent is an agent published in the GitHub repository YujxZJCN/teaching-skills-codex (6 stars, last pushed 2mo ago), licensed MIT. It adds 32 tokens to every session and 1,039 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-09-03.

Related

Other agents, from other repositories