droid-ai-toolkit: Instructions file for Codex

AGENTS.md

droid-ai-toolkit AGENTS.md is an instructions file for Codex, OpenCode from niyazmft/droid-ai-toolkit. It costs 10,920 tokens per session, scanned A, original, MIT.

Repository instructions for Droid AI Toolkit, a Bash-based installation toolkit designed for Android and Termux.

In plain words
What is it for?
They help agents modify the installer, run JavaScript, CSS, Markdown, and shell checks, and work safely with the toolkit's Android context.
Why use it?
They explain the lint checks, safe update process, and Android-specific restrictions so agents do not overwrite device patches or skip the quality gate.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 droid-ai-toolkit AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/niyazmft/droid-ai-toolkit/agents-md"><img src="https://agentmods.dev/badge/instructions/niyazmft/droid-ai-toolkit/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10,920 This file is loaded in full into every session.
When invoked 10,920 The same file — it is already loaded in full.
Security scan A 1 finding. 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.10920 $0.10920
Opus 5.5 $0.04368 $0.04368
Sonnet 5.5 $0.02184 $0.02184
Haiku 4.5 $0.01092 $0.01092

Measured today against content hash 69daedbe44dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

droid-ai-toolkit AGENTS.md scanned grade A with 1 finding 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 today.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| Hermes | curl installer from `hermes-agent.nousresearch.com` + automatic wheel-cache (`~/.hermes/wheel-cache`) for fast reinstalls | ❌ Not supported on `armv8l`/`armv7l` (maturin/jiter incompatibility) |
AGENTS.md · 363 lines

How it starts

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

Droid AI Toolkit — Agent Instructions

Project Type

Bash scripting toolkit. Main deliverable is install.sh. No app runtime here — package.json is lint-only infrastructure.

Toolchain & Commands

pnpm install               # Install linter deps ([email protected] enforced via packageManager field)
pnpm run lint:all          # Full lint gate: ESLint → Stylelint → Markdownlint → shellcheck (read-only, does NOT --fix)
python3 scripts/self_heal.py  # Strips unused `catch (err)` params from JS/MJS only
  • Lint config: eslint.config.mjs (flat/v10, Node/browser/jest globals), .stylelintrc.json (Tailwind-aware), .markdownlint.json (line length & inline HTML allowed), .shellcheckrc (bash linting).
  • CI (lint.yml) runs on Node 22 and blocks PRs to main/master.

Quality Gate & Workflow

  1. Pre-commit (npx lint-staged) auto-fixes staged *.{js,mjs}, *.css, and *.md.
  2. Run pnpm run lint:all locally before pushing; it is the PR gate.
  3. Do not assume lint:all auto-fixes — it reports only.

Android / Termux Context

  • Never use native update commands (openclaw update, etc.) — they overwrite Android patches.
  • Safe update path: re-run install.sh, choose [R] Repair (2-second patch-only) or [U] Update (latest verified version).
  • UI Engine: v1.13.0+ uses gum (charm.sh) for color-rich, touch-friendly menus with visual separators; falls back to whiptail if unavailable. ensure_deps auto-installs gum.
  • Uses $PREFIX dynamically; never hardcode /data/data/com.termux/files/usr.
  • Memory guard: Node.js heap limit is set to min(2048, max(512, RAM * 0.75)) via --max-old-space-size.
  • PM2 is killed during updates to prevent OOM on low-RAM devices.
  • Zero-latency navigation: v1.13.0+ caches Bash variables for get_config and pnpm_root_g, and eliminates redundant Node.js / jq spawns during menu rendering.
  • Koffi kernel patch: renameat2 → rename to avoid kernel crashes.
  • Gemini CLI patch: fs.promises.rename → copyFile + unlink to avoid Android ENOENT.

Read the full file on GitHub · 363 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. today Changed · +7 lines · +463 tokens per session 69daedbe44dd
  2. yesterday Changed · +60 lines · +1,879 tokens per session 74e48958b123
  3. 7d ago Changed · +30 lines · +1,138 tokens per session 344ced78aab5
  4. 1mo ago Changed · +56 lines · +1,355 tokens per session f54ee5a3ccb5
  5. 1mo ago Changed · +36 lines · +1,107 tokens per session d445946dfa1e
  6. 2mo ago Changed · +10 lines · +453 tokens per session f367ea8e37ce
  7. 2mo ago Changed · +8 lines · +331 tokens per session 21203b7762a9
  8. 2mo ago Changed · +15 lines · +842 tokens per session 99e8d22f952c
  9. 2mo ago First seen · 141 lines · 3,352 tokens per session scan A 50f49b69ca33

Subscribe to this mod's changes

droid-ai-toolkit AGENTS.md is an instructions file published in the GitHub repository niyazmft/droid-ai-toolkit (24 stars, last pushed yesterday), licensed MIT. It adds 10,920 tokens to every session, about $0.0437 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

droid-ai-toolkit AGENTS.md compared with instructions from other repositories

droid-ai-toolkit AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
droid-ai-toolkit AGENTS.mdniyazmft/droid-ai-toolkitInstructions file24yesterdayMITA10,920Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,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