swift-mcp-toolkit AGENTS.md

swift-mcp-toolkit AGENTS.md is an instructions file for Codex, OpenCode from ajevans99/swift-mcp-toolkit. It costs 365 tokens per session, scanned A, original, MIT.

Um conjunto de regras para agentes de programação que trabalham em um projeto Swift, a linguagem de programação da Apple.

In plain words
What is it for?
Serve para orientar o uso de Swift 6 ou mais recente, programação assíncrona, formatação, análise de código, testes com Swift Testing e comentários nas APIs públicas.
Why use it?
Ajuda o agente a seguir as convenções do projeto e a verificar seu trabalho antes de uma alteração ser aceita, reduzindo erros de formatação, compilação, testes e documentação.

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/ajevans99/swift-mcp-toolkit/agents-md
Clone the repo
git clone --depth 1 https://github.com/ajevans99/swift-mcp-toolkit

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 swift-mcp-toolkit AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ajevans99/swift-mcp-toolkit/agents-md.svg)](https://agentmods.dev/instructions/ajevans99/swift-mcp-toolkit/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/ajevans99/swift-mcp-toolkit/agents-md"><img src="https://agentmods.dev/badge/instructions/ajevans99/swift-mcp-toolkit/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 365 This file is loaded in full into every session.
When invoked 365 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.00365 $0.00365
Opus 5 $0.00182 $0.00182
Sonnet 5 $0.00073 $0.00073
Haiku 4.5 $0.00036 $0.00036

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

Security

Grade A, and why

swift-mcp-toolkit 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 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.

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 · 59 lines

What it actually says

AGENTS.md

This repository uses a standard Swift project template. These are the rules and expectations for any AI agents working inside this repo.


Language & Concurrency

  • All code must be written in Swift (Swift 6+).
  • Use structured concurrency: prefer async/await and actors.
  • Do not introduce completion handlers, GCD, or callbacks unless absolutely required by an API.

Formatting & Linting

  • Run make format before committing. This auto-formats code with swift-format.
  • Run make lint to check lint errors not auto-fixed by the formatter.
  • Code must compile and pass both formatting and lint checks before merging.

Testing

  • Use Swift Testing (import Testing instead of XCTest).
  • Every new public function should include at least one test.
  • Async code should be tested with @Test func ... async throws.
  • Keep tests small and focused, unless an integration test is explicitly needed.
  • Use swift test to run all tests and ensure they pass before merging.

Documentation & Examples

  • Add doc comments (///) for all public APIs.
  • Keep README code examples in sync with the current target/module name.
  • Update import examples: import <TargetName>.
  • Use minimal imports, for example, avoid import Foundation unless necessary.

Security & Safety

  • Always handle thrown errors explicitly.
  • Avoid force unwraps (!) or unchecked casts.
  • Use type-safe APIs whenever possible.

Agent Behavior

  • Do not scaffold entire applications unless explicitly asked.
  • Prefer to make small, precise changes that align with these rules.
  • When suggesting alternatives, explain trade-offs clearly.
  • Always produce code that builds and passes tests locally.

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 · 59 lines · 365 tokens per session scan A dccaa46e1fd4

Subscribe to this mod's changes

swift-mcp-toolkit AGENTS.md is an instructions file published in the GitHub repository ajevans99/swift-mcp-toolkit (11 stars, last pushed 2mo ago), licensed MIT. It adds 365 tokens to every session, about $0.0018 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.