n8nctrl AGENTS.md

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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/lidless-labs/n8nctrl/agents-md
Clone the repo
git clone --depth 1 https://github.com/lidless-labs/n8nctrl

Made for: Codex, OpenCode.

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. Scan, not verified.
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 $0.01159 $0.01159
Opus 5 $0.00580 $0.00580
Sonnet 5 $0.00232 $0.00232
Haiku 4.5 $0.00116 $0.00116

Measured 2d ago against content hash 3a78727d60be, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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. 2d 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 24d ago), licensed MIT. It adds 1,159 tokens to every session, about $0.0058 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-31.