humbug: Instructions file for Codex

AGENTS.md

humbug AGENTS.md is an instructions file for Codex, OpenCode from m6r-ai/humbug. It costs 4,583 tokens per session, scanned A, original, Apache-2.0.

Project instructions for Humbug, a Python platform for people and AI agents working together. They explain the project layout, tools, builds, and code-quality checks.

In plain words
What is it for?
Use them when working on Humbug code, using its terminal, managing its virtual environment, building the app, or running pytest.
Why use it?
They give an agent the project-specific rules it needs to navigate the codebase and run tests correctly.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/m6r-ai/humbug/agents-md"><img src="https://agentmods.dev/badge/instructions/m6r-ai/humbug/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,583 This file is loaded in full into every session.
When invoked 4,583 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.04583 $0.04583
Opus 5.5 $0.01833 $0.01833
Sonnet 5.5 $0.00917 $0.00917
Haiku 4.5 $0.00458 $0.00458

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

Security

Grade A, and why

humbug 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 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.

AGENTS.md · 373 lines

How it starts

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

AGENTS.md - Humbug Project Structure

Overview

Humbug is a platform for human-AI collaboration, written in Python. This document describes how AI agents should navigate the codebase.

Architecture decisions

Significant architectural and design decisions are recorded as ADRs in docs/adr/, which holds the definitive index and the conventions for writing new ADRs. Consult it before proposing changes that touch established decisions.

Tool use

  • If you want to use the terminal you will require user authorization every time you send keystrokes. If you load files into an editor tab, however, you don't. If you just want to do a simple search of a file then consider using the editor tabs. They can get pretty cluttered though so if you don't need the tab again then close it.
  • If you open a terminal it will automatically be in the root of the mindspace directory. Don't change directory unless you want to be somewhere else.
  • Terminals will not open with a python virtual environment by default. The venv is at venv/ in the mindspace root.
  • Do not pipe pytest output through grep or other filtering tools. pytest interleaves progress dots on stderr with summary lines on stdout, so filtering mangles the output and hides the pass/fail counts. Run pytest with no flags and pipe through tail only if the output is too long to read in full:
    python -m pytest tests/src/menai_ai_tool/ 2>&1 | tail -10
    

Menai C VM binary

  • Menai is installed from PyPI as a dependency of Humbug (pip install menai).
  • Pre-built wheels include the C VM binary for all supported platforms (Linux, macOS, and Windows on x86_64 and ARM64, Python 3.10–3.14), so no separate clone, build, or download step is needed.
  • Humbug's pyproject.toml does not pin a version, so pip install always fetches the latest version from PyPI.
  • For local development on Menai itself, clone the menai repository and install it as an editable dependency: pip install -e /path/to/menai.

Read the full file on GitHub · 373 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 Changed · +19 lines · +308 tokens per session a44dd5743173
  2. 28d ago Changed · +39 lines · +591 tokens per session 178eb08cba39
  3. 1mo ago Changed · -11 lines · -112 tokens per session b35497d3c483
  4. 1mo ago Changed · +12 lines · +147 tokens per session df7ba9628a3d
  5. 2mo ago First seen · 314 lines · 3,649 tokens per session scan A 8a4579984067

Subscribe to this mod's changes

humbug AGENTS.md is an instructions file published in the GitHub repository m6r-ai/humbug (104 stars, last pushed yesterday), licensed Apache-2.0. It adds 4,583 tokens to every session, about $0.0183 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

humbug AGENTS.md compared with instructions from other repositories

humbug AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
humbug AGENTS.mdm6r-ai/humbugInstructions file104yesterdayApache-2.0A4,583Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot