humbug: Instructions file for Codex

AGENTS.md

humbug AGENTS.md is an instructions file for Codex, OpenCode from m6r-ai/humbug. It costs 3,649 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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,649 This file is loaded in full into every session.
When invoked 3,649 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.03649 $0.03649
Opus 5 $0.01825 $0.01825
Sonnet 5 $0.00730 $0.00730
Haiku 4.5 $0.00365 $0.00365

Measured 7d ago against content hash 8a4579984067, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 7d 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 · 314 lines

How it starts

The opening of the file, as written. The whole thing — 314 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.

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.
  • If you send a command to a terminal, don't forget the newline or carriage return required (Unix, or Windows specific).
  • 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/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.

App builds

  • GitHub Actions builds and packages the desktop app for macOS, Windows, and Linux via manual trigger only (see .github/workflows/build-app.yml).
  • The workflow installs menai from PyPI (including the pre-built C VM) via pip install menai.
  • macOS produces a signed/notarized .dmg, Windows produces an .exe installer via Inno Setup, and Linux produces an .AppImage for x86_64 and ARM64 via build-appimage.sh.

Read the full file on GitHub · 314 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. 7d 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 (100 stars, last pushed today), licensed Apache-2.0. It adds 3,649 tokens to every session, about $0.0182 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 instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens