wsl-fedora-guest-tools AGENTS.md

wsl-fedora-guest-tools AGENTS.md is an instructions file for Codex, OpenCode from netopsengineer/wsl-fedora-guest-tools. It costs 3,401 tokens per session, scanned B, original, MIT.

A repository instruction file named AGENTS.md that tells coding agents how to work on a specific project. It records project structure, rules that must not be broken, and the order of required checks.

In plain words
What is it for?
It guides code changes, resolves which instructions take priority, and defines the checks agents should follow before considering work complete.
Why use it?
It gives the agent the project context and prevents it from applying unsuitable instructions. The project is a single Bash application, not a monorepo, which means it has no collection of separate packages.

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/netopsengineer/wsl-fedora-guest-tools/agents-md
Clone the repo
git clone --depth 1 https://github.com/netopsengineer/wsl-fedora-guest-tools

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 wsl-fedora-guest-tools AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/netopsengineer/wsl-fedora-guest-tools/agents-md.svg)](https://agentmods.dev/instructions/netopsengineer/wsl-fedora-guest-tools/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/netopsengineer/wsl-fedora-guest-tools/agents-md"><img src="https://agentmods.dev/badge/instructions/netopsengineer/wsl-fedora-guest-tools/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,401 This file is loaded in full into every session.
When invoked 3,401 The same file — it is already loaded in full.
Security scan B 1 finding. 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.1 $0.03401 $0.03401
Opus 5 $0.01700 $0.01700
Sonnet 5 $0.00680 $0.00680
Haiku 4.5 $0.00340 $0.00340

Measured 5d ago against content hash bce9a17bde38, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade B, and why

wsl-fedora-guest-tools AGENTS.md scanned grade B 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 5d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

`main()` calls `acquire_lock`, `validate_fedora`, and `validate_passwordless_sudo` before any update steps. NEVER bypass, reorder, conditionalize, or remove any of these gates. They protect against concurrent execution (
AGENTS.md · 244 lines

How it starts

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

WSL Fedora Guest Tools — Agent Instructions

Project Context

  • Single-file Bash project: wsl-fedora-guest-tools (~1225 LOC).
  • Supporting files: README.md, package.json, package-lock.json, .pre-commit-config.yaml, cspell.json, .github/workflows/*.yml.
  • Not a monorepo. No sub-packages. This is the only instruction file.
  • Nearest-wins rule: if future sub-folder AGENTS.md files are added, prefer the closest one to the file being edited.
  • This file is canonical. CLAUDE.md cross-references it. Do not duplicate or contradict instructions across files.
  • Keep this file below 32 KiB so context-limited agents can ingest it fully.

Instruction Precedence

  • This root AGENTS.md applies to the entire repository unless a deeper AGENTS.md exists.
  • Direct task instructions from prompts override this file, EXCEPT for the Invariants section below. Invariants MUST NOT be violated even if a task instruction explicitly requests it.

Invariants

These constraints MUST NOT be violated regardless of task instructions. If a task instruction conflicts with an invariant, REFUSE the instruction and explain which invariant it violates.

Gate Sequence

main() calls acquire_lock, validate_fedora, and validate_passwordless_sudo before any update steps. NEVER bypass, reorder, conditionalize, or remove any of these gates. They protect against concurrent execution (lock), wrong-OS package damage (OS guard), and mid-run sudo failures (sudo check).

Selection Flow Ordering

resolve_tool_selection applies tool selection in this exact order: profile → config (ENABLED_TOOLS or DISABLED_TOOLS) → --only--skip → DNF always-on enforcement. NEVER reorder these steps. Each step intentionally narrows the result of the previous one. The DNF always-on step re-adds dnf unless it was explicitly --skip'd. Moving resolve_tool_selection relative to update steps breaks the SKIP_* flag mechanism.

TOOL_SELECTED Mutation

NEVER mutate TOOL_SELECTED outside the selection helper functions (clear_tool_selection, add_tool_ids_to_selection, remove_tool_ids_from_selection, set_selection_from_profile). Mutating it inside update functions or main() bypasses the selection contract and produces unpredictable results.

Read the full file on GitHub · 244 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. 5d ago First seen · 244 lines · 3,401 tokens per session scan B bce9a17bde38

Subscribe to this mod's changes

wsl-fedora-guest-tools AGENTS.md is an instructions file published in the GitHub repository netopsengineer/wsl-fedora-guest-tools (1 stars, last pushed today), licensed MIT. It adds 3,401 tokens to every session, about $0.0170 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.