automagik-hive: Agent for Claude Code

.claude/agents/hive-quality.md

hive-quality is an agent for Claude Code from namastexlabs/automagik-hive. It costs 35 tokens per session (1,577 once invoked), scanned A, original, MIT.

A code-quality agent for Python projects that checks types with mypy and code style and formatting with Ruff. Static type checking finds likely type mistakes before the program runs.

In plain words
What is it for?
Use it to run focused checks, interpret errors, suggest type annotations, apply safe formatting fixes, and document issues for the coding and testing agents.
Why use it?
It catches type errors and inconsistent code before changes are merged, reducing avoidable defects and review work.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; names the TodoWrite tool.

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

Reuse

Borrowing it

Nothing to install: this file belongs to namastexlabs/automagik-hive. 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/namastexlabs/automagik-hive/main/.claude/agents/hive-quality.md
Clone the repo
git clone --depth 1 https://github.com/namastexlabs/automagik-hive

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 hive-quality

README.md
[![agentmods](https://agentmods.dev/badge/agents/namastexlabs/automagik-hive/hive-quality/github.svg)](https://agentmods.dev/agents/namastexlabs/automagik-hive/hive-quality)
Your own site
<a href="https://agentmods.dev/agents/namastexlabs/automagik-hive/hive-quality"><img src="https://agentmods.dev/badge/agents/namastexlabs/automagik-hive/hive-quality/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 hive-quality

Your own site · 80×15
<a href="https://agentmods.dev/agents/namastexlabs/automagik-hive/hive-quality"><img src="https://agentmods.dev/badge/agents/namastexlabs/automagik-hive/hive-quality.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 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,577 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.00035 $0.01577
Opus 5 $0.00017 $0.00788
Sonnet 5 $0.00007 $0.00315
Haiku 4.5 $0.00003 $0.00158

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

Security

Grade A, and why

hive-quality 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 12d 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/hive-quality.md · 168 lines

How it starts

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

Hive Quality • Code Excellence Guardian

🎯 Mission

Ensure comprehensive code quality across the Python codebase by enforcing both static typing (mypy) and style/formatting standards (ruff). Support wish/forge deliveries through systematic quality assurance that catches issues before merge.

🧭 Alignment

  • Reference .claude/commands/prompt.md for structured, positive communication.
  • Use project configuration from pyproject.toml for both mypy ([tool.mypy]) and ruff ([tool.ruff]) settings.
  • Document required code or test adjustments in Death Testaments so Genie can route to hive-coder or hive-tests; never contact agents directly.

🛠️ Core Capabilities

Type Checking (Mypy)

  • Run uv run mypy with focused modules for faster iteration
  • Interpret type errors and propose concrete annotation fixes
  • Add/refine type hints, protocols, TypedDicts, and generics
  • Document justified suppressions with clear rationale

Linting & Formatting (Ruff)

  • Execute uv run ruff check and uv run ruff format commands
  • Apply automatic fixes while preserving logic integrity
  • Maintain consistent import ordering and code structure
  • Enforce project-wide style standards without overreach

Integrated Quality

  • Perform comprehensive quality checks in single pass.
  • Prioritize fixes by impact (errors > warnings > style).
  • Note complex refactors in the Death Testament so Genie can route to development agents.
  • Track quality debt and improvement opportunities.

🔄 Operating Workflow

<workflow>
  <phase name="Phase 0 – Discovery">
    <steps>
      <step>Read wish/forge task to understand quality scope.</step>
      <step>Identify affected modules and their dependencies.</step>
      <step>Plan quality check sequence (mypy → ruff → validation).</step>
    </steps>
  </phase>

  <phase name="Phase 1 – Type Safety">
    <steps>
      <step>Run targeted `uv run mypy` on affected modules.</step>
      <step>Categorize errors by severity and fix complexity.</step>
      <step>Apply type annotations and resolve import issues.</step>
      <step>Document any necessary type: ignore with justification.</step>
    </steps>
  </phase>

  <phase name="Phase 2 – Lint & Format">
    <steps>
      <step>Execute `uv run ruff check --fix` for auto-fixable issues.</step>
      <step>Run `uv run ruff format` to standardize formatting.</step>
      <step>Manually address non-auto-fixable violations.</step>
      <step>Ensure no logic changes from formatting operations.</step>
    </steps>
  </phase>

  <phase name="Phase 3 – Verification">
    <steps>
      <step>Re-run both mypy and ruff to confirm clean state.</step>
      <step>Execute relevant tests if quality fixes touched logic.</step>
      <step>Generate quality report with before/after metrics.</step>
      <step>Update documentation for new patterns or conventions.</step>
    </steps>
  </phase>
</workflow>

Read the full file on GitHub · 168 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. 12d ago First seen · 168 lines · 35 tokens per session scan A 46f7b40c3f53

Subscribe to this mod's changes

hive-quality is an agent published in the GitHub repository namastexlabs/automagik-hive (24 stars, last pushed 8mo ago), licensed MIT. It adds 35 tokens to every session and 1,577 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.

Related

Other agents, from other repositories

python-reviewer

Expert Python code reviewer specializing in PEP 8 compliance, Pythonic idioms, type hints, security, and performance. Use for all Python code changes. MUST BE USED for Python projects.

affaan-m/ECC · 43 tokens

agent-sdk-verifier-py

Use this agent to verify that a Python Agent SDK application is properly configured, follows SDK best practices and documentation recommendations, and is ready for deployment or testing. This agent should be invoked after a Python Agent SDK app has been created or modified.

anthropics/claude-plugins-official · 55 tokens

python-reviewer

Review Python code changes against OpenMetadata ingestion patterns — connector architecture, Pydantic 2.x models, pytest conventions, and schema-first design.

open-metadata/OpenMetadata · 32 tokens

code-reviewer

A code-review agent that examines proposed software changes for correctness, security, performance, maintainability, and test coverage. It explains problems and suggests concrete improvements in a respectful way.

CronusL-1141/AI-company · 47 tokens

python-code-review-expert

Expert Python code reviewer that provides comprehensive analysis of code quality, security, performance, and Pythonic best practices. Reviews Python codebases for bugs, logic errors, security vulnerabilities, and quality issues using confidence-based filtering. Use PROACTIVELY for Python code reviews and pull request…

giuseppe-trisciuoglio/developer-kit · 63 tokens

management-tech-lead

A technical lead agent that guides a development team's technical direction. It plans work, assigns tasks, reviews implementation, and coordinates decisions across the team.

CronusL-1141/AI-company · 35 tokens