n8nctrl: Instructions file for Codex

AGENTS.md

n8nctrl AGENTS.md is an instructions file for Codex, OpenCode from lidless-labs/n8nctrl. It costs 1,159 tokens per session, scanned A, original, MIT.

Repository instructions for an n8n tool package, where n8n is a workflow automation platform.

In plain words
What is it for?
They guide development, testing, type checking, building, and adding tools for n8n workflows, executions, tags, credentials, and security audits.
Why use it?
They define the required checks, project structure, configuration, and safety limits for changes to the package and its live automations.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/lidless-labs/n8nctrl/agents-md"><img src="https://agentmods.dev/badge/instructions/lidless-labs/n8nctrl/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,159 This file is loaded in full into every session.
When invoked 1,159 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.01159 $0.01159
Opus 5.5 $0.00464 $0.00464
Sonnet 5.5 $0.00232 $0.00232
Haiku 4.5 $0.00116 $0.00116

Measured 2mo ago against content hash 3a78727d60be, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

n8nctrl 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 2mo 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 · 63 lines

How it starts

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

Repository Guidance

Definition of Done

./scripts/verify

Runs npm test, npm run typecheck, and npm run build in order.

A change is done only when all three pass, re-verified after your last edit:

  • npm test
  • npm run typecheck
  • npm run build

Report the actual results you observed. If anything fails, report the failure verbatim and do not claim success. Never describe a change as complete with a failing or unrun check.

Project Shape

  • TypeScript package exposing ops-focused n8n tools (workflow + execution lifecycle, tags, credentials metadata, security audit, composed scanners) two ways: a stdio MCP server and an OpenClaw plugin.
  • mcp-server.ts is the MCP entry point (config from N8N_BASE_URL, N8N_API_KEY, N8N_ENABLE_EDIT, etc.). index.ts is the OpenClaw plugin entry point (config via resolveConfig() in src/config.ts).
  • Tools live one per file under src/tools/ as create<Name>Tool(getClient) factories. There is no central tool index.
  • HTTP access goes through N8nClient in src/client.ts. ESM, Node >= 20, builds with tsup to dist/.

Hard Prohibitions

  • The live n8n instance runs real automations. Never run write tools against it during development or review unless the user explicitly asks in this session. That includes scripts/smoke.ts, npm run dev, and ad hoc tool calls. Tests use mocked fetch helpers and need no instance.
  • Never weaken the enableEdit gate, the enableCredentialsWrite gate, or the runtime confirm: true requirement. If a gate blocks the task, report the blocker to the user; do not route around it.
  • Never weaken or remove the pre-write backups or the backupDir path confinement (details below).
  • Never weaken, skip, or delete a failing test to make a run green. Fix the code or report the failure.
  • Never push with --no-verify. hooks/pre-push runs content-guard for a reason; fix the flagged content instead.
  • Hit any other blocker (missing creds, ambiguous spec, broken tooling): stop and report it exactly. Do not invent a workaround that bypasses a safety rule.

Read the full file on GitHub · 63 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. 2mo ago First seen · 63 lines · 1,159 tokens per session scan A 3a78727d60be

Subscribe to this mod's changes

n8nctrl AGENTS.md is an instructions file published in the GitHub repository lidless-labs/n8nctrl (1 stars, last pushed 8d ago), licensed MIT. It adds 1,159 tokens to every session, about $0.0046 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-31.

Related

n8nctrl AGENTS.md compared with instructions from other repositories

n8nctrl AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
n8nctrl AGENTS.mdlidless-labs/n8nctrlInstructions file18d agoMITA1,159Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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