grepai: Command for Claude Code

.claude/commands/work-issue.md

work-issue is a command for Claude Code from yoanbernabeu/grepai. It costs 0 tokens per session (1,870 once invoked), scanned A, original, MIT.

An issue implementation assistant that takes a GitHub issue—a tracked software task or bug—and guides its implementation from issue details through planning and code changes.

In plain words
What is it for?
Use it to inspect an issue, plan the implementation, create a feature branch, modify the code, and run the relevant checks.
Why use it?
It structures the work around the issue requirements and requires confirmation before critical operations.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: names the ExitPlanMode tool; mentions Claude Code; mentions AGENTS.md.

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./bin/grepai <command-to-test>.

About the project

grepai is a local command-line tool that searches source code by meaning and traces function call graphs, rather than matching only exact words. Developers and coding agents use it to find relevant code, understand relationships between functions, and provide focused context for changes while keeping the code on the local machine. The catalogue entries expose its commands, skills, agent, and instruction for coding-agent workflows.

yoanbernabeu/grepai · 1,925 stars · on GitHub · yoanbernabeu.github.io

Reuse

Borrowing it

Nothing to install: this file belongs to yoanbernabeu/grepai. 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/yoanbernabeu/grepai/main/.claude/commands/work-issue.md
Clone the repo
git clone --depth 1 https://github.com/yoanbernabeu/grepai

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/yoanbernabeu/grepai/work-issue/github.svg)](https://agentmods.dev/commands/yoanbernabeu/grepai/work-issue)
Your own site
<a href="https://agentmods.dev/commands/yoanbernabeu/grepai/work-issue"><img src="https://agentmods.dev/badge/commands/yoanbernabeu/grepai/work-issue/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 work-issue

Your own site · 80×15
<a href="https://agentmods.dev/commands/yoanbernabeu/grepai/work-issue"><img src="https://agentmods.dev/badge/commands/yoanbernabeu/grepai/work-issue.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 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,870 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.00000 $0.01870
Opus 5.5 $0.00000 $0.00748
Sonnet 5.5 $0.00000 $0.00374
Haiku 4.5 $0.00000 $0.00187

Measured today against content hash 1b92a756c467, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

work-issue 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 today.

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/commands/work-issue.md · 302 lines

How it starts

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

Work Issue Command

You are an issue implementation assistant. Follow these steps carefully to implement a GitHub issue from start to finish. Always ask for user confirmation before critical operations.

Step 1: Retrieve Issue Information

Use gh issue view $ARGUMENTS --json number,title,body,state,labels,assignees to get issue details.

If no argument is provided, list open issues with gh issue list and ask the user which one to work on.

Display a clear summary of:

  • Issue number and title
  • Description/requirements
  • Labels and priority

Step 2: Enter Plan Mode

CRITICAL: Enter plan mode using the EnterPlanMode tool before any implementation.

In plan mode:

  1. Analyze the issue requirements thoroughly
  2. Explore the codebase using grepai search to understand related code
  3. Identify files that need modification or creation
  4. Design the implementation approach
  5. Break down into clear, actionable steps
  6. Consider edge cases and potential issues
  7. Plan necessary tests

Write your plan and exit plan mode with ExitPlanMode when ready for user approval.

Step 3: Create Feature Branch

After plan approval:

  1. Ensure you're on main and up-to-date:

    git checkout main
    git pull origin main
    
  2. Create a feature branch following the convention:

    git checkout -b <type>/<issue-number>-<short-description>
    

    Types: feat, fix, docs, refactor, test, chore

  3. Confirm branch creation to the user

Step 4: Implement Changes

Follow your approved plan step by step:

  1. Use TodoWrite to track implementation progress
  2. Make focused, incremental changes
  3. Follow project coding conventions and the V1 Stability Rules (see AGENTS.md)
  4. Add/update tests as needed
  5. Mark todos as completed as you progress

After each significant change, briefly summarize what was done.

Step 5: Test the Implementation Locally

CRITICAL: You must build the CLI and test it on the actual codebase, not just run unit tests.

Read the full file on GitHub · 302 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. today Changed · +7 lines 1b92a756c467
  2. 1mo ago First seen · 295 lines · 0 tokens per session scan A 59b7a17ec04b

Subscribe to this mod's changes

work-issue is a command published in the GitHub repository yoanbernabeu/grepai (1,925 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,870 tokens. 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.