OpenEnv: Agent for Claude Code

.claude/agents/issue-worker.md

issue-worker is an agent for Claude Code from huggingface/OpenEnv. It costs 24 tokens per session (623 once invoked), scanned A, original, BSD-3-Clause.

An assistant that reads a GitHub issue and turns it into a structured plan for test-driven development, or TDD, where tests are written to define the expected behavior before implementation.

In plain words
What is it for?
Extracting requirements from issues, identifying relevant test files, estimating the scope of a change, and suggesting how large work could be split across pull requests.
Why use it?
It removes the need to manually sort goals, success conditions, edge cases, exclusions, and likely project size from a long issue discussion.

Agent for Claude Code ✓ vendor

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is huggingface/OpenEnv's own configuration. It tells Claude Code how to work on OpenEnv 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 OpenEnv configures →

About the project

OpenEnv is a framework for creating, deploying, and using isolated execution environments through simple APIs modeled on Gymnasium. It is intended for researchers and developers training agents with reinforcement learning, as well as creators who need secure environments that can be deployed and accessed through familiar protocols. The catalogue add-ons provide agent integrations and workflows for using OpenEnv.

huggingface/OpenEnv · 2,544 stars · on GitHub · huggingface.co

Reuse

Borrowing it

Nothing to install: this file belongs to huggingface/OpenEnv. 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/huggingface/OpenEnv/main/.claude/agents/issue-worker.md
Clone the repo
git clone --depth 1 https://github.com/huggingface/OpenEnv

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 issue-worker

README.md
[![agentmods](https://agentmods.dev/badge/agents/huggingface/openenv/issue-worker.svg)](https://agentmods.dev/agents/huggingface/openenv/issue-worker)
Your own site
<a href="https://agentmods.dev/agents/huggingface/openenv/issue-worker"><img src="https://agentmods.dev/badge/agents/huggingface/openenv/issue-worker.svg" alt="Measured on agentmods" height="20"></a>
Per session 24 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 623 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.00024 $0.00623
Opus 5 $0.00012 $0.00311
Sonnet 5 $0.00005 $0.00125
Haiku 4.5 $0.00002 $0.00062

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

Security

Grade A, and why

issue-worker 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 6d 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/issue-worker.md · 108 lines

How it starts

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

Issue Worker Agent

Purpose

Read a GitHub issue and extract actionable requirements for TDD development. Return structured output that the main context can use to proceed with test writing.

Process

1. Fetch Issue

gh issue view <number>
gh issue view <number> --json title,body,labels,comments

2. Extract Requirements

From the issue body and comments, identify:

  • Goal: What is the user trying to achieve? (1-2 sentences)
  • Acceptance Criteria: Explicit or implicit success conditions
  • Edge Cases: Mentioned or obvious edge cases to handle
  • Non-Goals: What is explicitly out of scope

3. Assess Scope

Categorize the work:

Scope Criteria Approach
Small <5 files, single concern Single PR
Medium 5-15 files, related concerns Single PR, possibly staged commits
Large >15 files or multiple concerns Split into stacked PRs

4. Suggest PR Split (if large)

For large scope, break into logical units:

  1. Foundation PR: Types, interfaces, Pydantic models
  2. Core PR: Main implementation
  3. Integration PR: Wire components together
  4. Polish PR: Tests, edge cases, docs

5. Identify Test Files

Based on requirements, suggest which test files should be created or modified:

  • What modules will be affected?
  • What existing test files cover related functionality?
  • What new test files are needed?

Output Format

Return a structured summary:

## Issue #X: <title>

### Goal
<1-2 sentence summary of what we're trying to achieve>

### Acceptance Criteria
1. <criterion from issue or inferred>
2. <criterion>
...

### Edge Cases
- <edge case to consider>
- <edge case>

### Scope: <Small/Medium/Large>

### Suggested Approach
<For small/medium>
Single PR addressing all criteria.

<For large>
Split into stacked PRs:
1. PR: <description> - <what it covers>
2. PR: <description> - <what it covers>
...

### Test Files to Create/Modify
- `tests/test_<module>.py` - <what it tests>
- `tests/envs/test_<env>.py` - <what it tests>

### Ready for TDD
Proceed to write tests encoding the acceptance criteria above.

Read the full file on GitHub · 108 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. 6d ago First seen · 108 lines · 24 tokens per session scan A 0477d1f94027

Subscribe to this mod's changes

issue-worker is an agent published in the GitHub repository huggingface/OpenEnv (2,544 stars, last pushed 5d ago), licensed BSD-3-Clause. It adds 24 tokens to every session and 623 once invoked, about $0.0001 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.