SHAFT_ENGINE: Instructions file for Codex

AGENTS.md

SHAFT_ENGINE AGENTS.md is an instructions file for Codex, OpenCode from ShaftHQ/SHAFT_ENGINE. It costs 461 tokens per session, scanned A, original, MIT.

Repository instructions for SHAFT_ENGINE, a multi-module Java automation framework built with Maven.

In plain words
What is it for?
Use them to navigate modules, read the live configuration, make scoped changes, and run safe headless Maven checks.
Why use it?
They identify the canonical policy source and repository safety rules, so agents know which guidance to follow and how to keep tests controlled.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md; mentions Gemini CLI.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/shafthq/shaft_engine/agents-md"><img src="https://agentmods.dev/badge/instructions/shafthq/shaft_engine/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 461 This file is loaded in full into every session.
When invoked 461 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.00461 $0.00461
Opus 5.5 $0.00184 $0.00184
Sonnet 5.5 $0.00092 $0.00092
Haiku 4.5 $0.00046 $0.00046

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

Security

Grade A, and why

SHAFT_ENGINE 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 21d 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 · 35 lines

What it actually says

AGENTS.md

Repository facts

ChaosEngine by Mohab Mohie. SHAFT_ENGINE is a Maven Java automation framework: core shaft-engine/, optional shaft-*, IntelliJ plugin shaft-intellij/, and CI tooling under scripts/ci/. Configuration wins. Start from the requested goal and affected files.

Canonical policy

ChaosEngine, through the marker pointer at the end of this file, is the only router and working-policy owner. Do not restate its policies here or in host adapters. CLAUDE.md and GEMINI.md only import this file (@AGENTS.md). Cleanup scope: cleanup-scopes. Duty ownership: agent_ownership.json.

Repository safety

  • General safety is iron law 7 of the core card; repository specifics follow.
  • Do not launch GUI applications, browsers, editors, installers, servers, or watchers without explicit authorization.
  • Keep Maven tests scoped and headless with -Dallure.automaticallyOpen=false -DheadlessExecution=true.
  • Never track generated reports, binaries, caches, target/, build output, Graphify output, MemPalace runtime indexes, secrets, or machine-local state.
  • Preserve public APIs; reproduce defects with focused regressions. Functional documentation changes remain a separate PR and use the configured docs root.
  • Validate harness changes with py -3 scripts/ci/validate_agent_setup.py --skip-external and the smallest directly affected tests. Inspect result artifacts rather than banners alone.

Before every task, follow the canonical ChaosEngine. Load project identity from .chaos-engine/identity.md. Use .chaos-engine/tool.py for the project-local Memory, MemPalace, and Graphify tools. Prefer gh for GitHub when gh exists and is configured. CLI over MCP when both exist. Default MCP catalog never includes GitHub MCP.

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. 21d ago Changed · -1 lines · -9 tokens per session 92cb937a20d8
  2. 1mo ago Changed · -15 lines · -209 tokens per session 2b67931aaad9
  3. 1mo ago Changed · +1 lines · +15 tokens per session 57c044ca0e09
  4. 1mo ago Changed · +20 tokens per session a24a16100879
  5. 1mo ago Changed · +4 tokens per session c92c154080aa
  6. 1mo ago Changed · +9 tokens per session d28a6e2d63e7
  7. 1mo ago Changed · -13 lines · -229 tokens per session 58f94a757b9c
  8. 1mo ago Changed · +7 lines · +133 tokens per session 3fa34e2441d0
  9. 2mo ago First seen · 56 lines · 727 tokens per session scan A 30b5789b925c

Subscribe to this mod's changes

SHAFT_ENGINE AGENTS.md is an instructions file published in the GitHub repository ShaftHQ/SHAFT_ENGINE (418 stars, last pushed yesterday), licensed MIT. It adds 461 tokens to every session, about $0.0018 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

SHAFT_ENGINE AGENTS.md compared with instructions from other repositories

SHAFT_ENGINE AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
SHAFT_ENGINE AGENTS.mdShaftHQ/SHAFT_ENGINEInstructions file418yesterdayMITA461Codex, OpenCode
qmax-mcp copilot-instructions.mdQuality-Max/qmax-mcpInstructions file44d agoMITA451GitHub Copilot
vibetags com-example-config-AsyncTestConfig.instructions.mdPIsberg/vibetagsInstructions file25todayMITA82GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,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 file195ktodayMITA5,516GitHub Copilot