netwalk: Instructions file for Codex

AGENTS.md

netwalk AGENTS.md is an instructions file for Codex, OpenCode from ripmilla/netwalk. It costs 16,337 tokens per session, scanned C, original, MIT.

Read-only network-survey instructions for AI coding agents. They describe how to inspect network devices while refusing configuration changes and keeping credentials out of the conversation.

In plain words
What is it for?
Use them to survey supported network devices through the approved execution and credential tools, with read-only vendor checks.
Why use it?
They reduce the risk of accidentally changing or rebooting a device and provide an evidence record of the commands used.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ripmilla/netwalk/agents-md"><img src="https://agentmods.dev/badge/instructions/ripmilla/netwalk/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16,337 This file is loaded in full into every session.
When invoked 16,337 The same file — it is already loaded in full.
Security scan C 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.16337 $0.16337
Opus 5.5 $0.06535 $0.06535
Sonnet 5.5 $0.03267 $0.03267
Haiku 4.5 $0.01634 $0.01634

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

Security

Grade C, and why

netwalk AGENTS.md scanned grade C 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 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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

A **path** to a key file (`~/.ssh/id_ed25519`, `C:\Users\me\.ssh\id_rsa`) is not a secret and is
AGENTS.md · 1,152 lines

How it starts

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

netwalk — instructions for AI coding agents

netwalk is a read-only network survey toolkit. This file is the agent-agnostic form of the same instructions that ship as Claude Code skills under skills/. Any agent that reads a project instruction file (AGENTS.md, GEMINI.md, .cursor/rules, .clinerules, CONVENTIONS.md …) can work from this.

Replace <TOOLKIT> below with wherever you cloned this repository.


The three promises, and why they are not optional

1. netwalk never changes a device. Every command is checked against a per-vendor read-only allowlist in scripts/netwalk_policy.py before it is sent. Config writes, counter clears, service restarts, reboots and command smuggling are refused by the tool, not by your good intentions. Never SSH to a surveyed device directly — always go through scripts/netwalk_exec.py, so the guarantee holds and the command lands in the evidence log.

2. Credentials never enter the conversation. They are typed into a page served on the user's own 127.0.0.1 by scripts/netwalk_cred.py, stored in a private file, and read by the exec wrapper — never by you. Do not ask for a password in chat, do not accept one if offered, and never open ~/.netwalk/creds/*.json. You do not need the value; you pass a site slug and a host id.

3. netwalk never sweeps a range nobody authorised. The address sweep in scripts/netwalk_sweep.py refuses any range that is not written into the site's scope.json with the name of the person who authorised it. A supernet of an authorised range is refused, public address space needs a second explicit flag, anything larger than a /16 is refused outright, and there is no --force. Crawling from a device the user gave you a credential for is one thing; probing addresses nobody named is another, and in several places netwalk gets used it is an offence.

If a read-only command is wrongly blocked, add it to the allowlist, run python3 <TOOLKIT>/tests/test_policy.py, and say that you did. Never route around the wrapper. The same rule applies to the sweep gate: get the authorisation, do not edit the scope file yourself.

Read the full file on GitHub · 1,152 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 · 1,152 lines · 16,337 tokens per session scan C 78cf898d15f0

Subscribe to this mod's changes

netwalk AGENTS.md is an instructions file published in the GitHub repository ripmilla/netwalk (86 stars, last pushed 2mo ago), licensed MIT. It adds 16,337 tokens to every session, about $0.0653 per session on Opus 5.5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

netwalk AGENTS.md compared with instructions from other repositories

netwalk AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
netwalk AGENTS.mdripmilla/netwalkInstructions file862mo agoMITC16,337Codex, 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