hive: Instructions file for Codex

AGENTS.md

hive AGENTS.md is an instructions file for Codex, OpenCode from aden-hive/hive. It costs 504 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for AI coding agents working on Hive, a software project with shared rules for coding, dependencies, Python tooling, and multi-agent work. They emphasize checking code before answering and avoiding unapproved dependency or workspace changes.

In plain words
What is it for?
Use them when editing Hive, answering repository questions, managing Python code with uv, working on issues or pull requests, or operating in a shared workspace.
Why use it?
They reduce guesswork and prevent agents from interfering with other agents or changing project dependencies without permission.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is aden-hive/hive's own configuration. It tells Codex and OpenCode how to work on 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 hive configures →

About the project

OpenHive is a runtime for groups of specialized AI agents that collaborate on long-running business processes. A persistent lead agent, called the Queen, creates and coordinates worker agents while the system manages state, recovery, observability, costs, and human oversight. The catalogue entries provide agent skills, instructions, and integrations for working with this harness.

aden-hive/hive · 11,140 stars · on GitHub

Reuse

Borrowing it

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

Made for: Codex, OpenCode.

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 AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/aden-hive/hive/agents-md"><img src="https://agentmods.dev/badge/instructions/aden-hive/hive/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 504 This file is loaded in full into every session.
When invoked 504 The same file — it is already loaded in full.
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.00504 $0.00504
Opus 5.5 $0.00202 $0.00202
Sonnet 5.5 $0.00101 $0.00101
Haiku 4.5 $0.00050 $0.00050

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

Security

Grade A, and why

hive AGENTS.md 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 23d 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.

AGENTS.md · 37 lines

How it starts

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

Repository Guidelines

Shared agent instructions for this workspace.

Coding Agent Notes

  • When working on a GitHub Issue or PR, print the full URL at the end of the task.
  • When answering questions, respond with high-confidence answers only: verify in code; do not guess.
  • Do not update dependencies casually. Version bumps, patched dependencies, overrides, or vendored dependency changes require explicit approval.
  • Add brief comments for tricky logic. Keep files reasonably small when practical; split or refactor large files instead of growing them indefinitely.
  • If shared guardrails are available locally, review them; otherwise follow this repo's guidance.
  • Use uv for Python execution and package management. Do not use python or python3 directly unless the user explicitly asks for it.
  • Prefer uv run for scripts and tests, and uv pip for package operations.

Projects Built on Hive

  • A derivative project lives in its own repository and depends on the published aden-hive package; it does not fork or copy this one.
  • Start one from templates/derivative/AGENTS.md: copy it to the new repository's root and fill in its overview and commands. docs/building-on-hive.md is the full guide.
  • The hive package (core/hive/) is what derivative projects import, and its names follow semantic versioning. Do not rename or remove an export, or change its behaviour incompatibly, outside a major release.

Multi-Agent Safety

  • Do not create, apply, or drop git stash entries unless explicitly requested.
  • Do not create, remove, or modify git worktree checkouts unless explicitly requested.
  • Do not switch branches or check out a different branch unless explicitly requested.
  • When the user says push, you may git pull --rebase to integrate latest changes, but never discard other in-progress work.
  • When the user says commit, commit only your changes. When the user says commit all, commit everything in grouped chunks.
  • When you see unrecognized files or unrelated changes, keep going and focus on your scoped changes.

Read the full file on GitHub · 37 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. 23d ago Changed · +6 lines · +127 tokens per session 29e6f374ca69
  2. 2mo ago First seen · 31 lines · 377 tokens per session scan A 0df7cba1bf84

Subscribe to this mod's changes

hive AGENTS.md is an instructions file published in the GitHub repository aden-hive/hive (11,140 stars, last pushed 4d ago), licensed Apache-2.0. It adds 504 tokens to every session, about $0.0020 per session on Opus 5.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

hive AGENTS.md compared with instructions from other repositories

hive AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hive AGENTS.mdaden-hive/hiveInstructions file11k4d agoApache-2.0A504Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode