winx-code-agent AGENTS.md

winx-code-agent AGENTS.md is an instructions file for Codex, OpenCode from gabrielmaialva33/winx-code-agent. It costs 868 tokens per session, scanned A, original, MIT.

A repository instruction file for Winx, a Rust-based MCP server for shell and coding-agent workflows. It documents the project layout, commands, coding conventions, and tests.

In plain words
What is it for?
Use it before developing in Winx, especially when checking the project, running tests, organizing files, or reviewing Rust changes.
Why use it?
It gives coding agents the project-specific rules needed to build, test, and change the code consistently.

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/gabrielmaialva33/winx-code-agent/agents-md
Clone the repo
git clone --depth 1 https://github.com/gabrielmaialva33/winx-code-agent

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 winx-code-agent AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/gabrielmaialva33/winx-code-agent/agents-md.svg)](https://agentmods.dev/instructions/gabrielmaialva33/winx-code-agent/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/gabrielmaialva33/winx-code-agent/agents-md"><img src="https://agentmods.dev/badge/instructions/gabrielmaialva33/winx-code-agent/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 868 This file is loaded in full into every session.
When invoked 868 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.00868 $0.00868
Opus 5 $0.00434 $0.00434
Sonnet 5 $0.00174 $0.00174
Haiku 4.5 $0.00087 $0.00087

Measured 4d ago against content hash c8d9308e90a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

winx-code-agent 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 4d 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 · 37 lines

How it starts

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

Repository Guidelines

Project Structure & Module Organization

Winx is a Rust 2021 MCP server for shell and coding-agent workflows. The binary entry point is src/main.rs; library exports live in src/lib.rs. src/server.rs is the MCP-service facade, with catalog/schema, handler, principal isolation, session, Task, dispatch, and tests under src/server/; hardened HTTP transport lives in src/http_server.rs, and typed secret/config parsing in src/config.rs. Tool facades live under src/tools/; BashCommand and FileWriteOrEdit are split into focused submodules. Terminal and persistence logic belongs under src/state/, reusable parsing/path/repository/safety helpers under src/utils/, and audited libc calls exclusively under src/os.rs (the crate otherwise denies unsafe code). Integration tests live in tests/, Criterion benchmarks in benches/, cargo-fuzz targets in fuzz/, model assets in assets/, and pinned CI/release automation in .github/workflows/.

Build, Test, and Development Commands

  • cargo check --all-features --locked performs a fast compile check with the committed lockfile.
  • WINX_EMBEDDED=1 cargo run --release starts an in-process development server without sibling daemons.
  • cargo build --release --locked --bins produces the complete optimized Unix bundle; run ./target/release/winx-code-agent afterward.
  • cargo fmt --all -- --check verifies formatting; run cargo fmt --all to apply it.
  • cargo clippy --all-targets --all-features --locked -- -D warnings runs the enforced lint suite.
  • cargo test --all-features --locked runs the full normal test suite.
  • cargo test --features loom --lib loom_ runs the opt-in concurrency model checks.
  • cargo +1.88.0 check --all-features --locked verifies the declared MSRV.
  • cargo package --locked verifies the crates.io package.
  • cargo bench --bench performance --locked --no-run compiles the benchmark suite.
  • cargo deny --all-features check and cargo audit --deny warnings enforce dependency policy.
  • cargo +nightly fuzz build compiles all cargo-fuzz targets.

Read the full file on GitHub · 37 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. 4d ago First seen · 37 lines · 868 tokens per session scan A c8d9308e90a3

Subscribe to this mod's changes

winx-code-agent AGENTS.md is an instructions file published in the GitHub repository gabrielmaialva33/winx-code-agent (33 stars, last pushed 3d ago), licensed MIT. It adds 868 tokens to every session, about $0.0043 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-30.