Peekie: Instructions file for Codex

AGENTS.md

Peekie AGENTS.md is an instructions file for Codex, OpenCode from dodobrands/Peekie. It costs 1,485 tokens per session, scanned A, original, Apache-2.0.

Project instructions for Peekie, a Swift package that reads Xcode result files and creates structured build and test reports. Xcode result files contain details such as test cases, code coverage, and warnings.

In plain words
What is it for?
They are for working on Peekie, running its tests and command-line tool, and checking Swift code before changes are merged.
Why use it?
They give coding agents the commands and checks needed to build, test, format, lint, and inspect the project consistently.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/dodobrands/peekie/agents-md"><img src="https://agentmods.dev/badge/instructions/dodobrands/peekie/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,485 This file is loaded in full into every session.
When invoked 1,485 The same file — it is already loaded in full.
Security scan A 0 findings. 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.01485 $0.01485
Opus 5.5 $0.00594 $0.00594
Sonnet 5.5 $0.00297 $0.00297
Haiku 4.5 $0.00148 $0.00148

Measured 6d ago against content hash 4574d4134042, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Peekie 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 6d 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 · 190 lines

How it starts

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

AGENTS.md

Project Overview

Peekie is a Swift package that parses .xcresult files generated by Xcode to produce structured reports of build and test results. It provides programmatic access to test cases, code coverage, and warnings for CI/CD pipelines and automated scripts.

Development Commands

Building

swift build

Testing

# Run all tests
swift test

# Run a specific test
swift test --filter <TestClassName>.<testMethodName>

Linting

The project uses nicklockwood/SwiftFormat for code formatting and realm/SwiftLint for semantic checks. Both are pinned via mise (mise.toml).

# Install (or update) toolchain
mise install

# Format the codebase in place
swiftformat .

# CI-equivalent strict checks (run before pushing)
swiftformat --lint .
swiftlint --strict

Configuration: .swiftformat and .swiftlint.yml at repo root. Periphery still runs for unused-code detection:

periphery scan --skip-build --strict

CI runs SwiftFormat (--lint), SwiftLint (--strict), and Periphery in a separate Lint workflow that must pass before merging to main.

Running the Command-Line Tool

swift run peekie list path/to/tests.xcresult

Options:

  • <xcresult-path>: Path to the .xcresult file (positional argument)
  • --include: Filter test results by status (e.g., failure,skipped)

Architecture

Core Components

Report (Sources/PeekieSDK/Models/Report.swift)

  • Primary data model representing parsed .xcresult data
  • Hierarchical structure: Module → File → RepeatableTest → Test
  • Each test has a status (success, failure, expectedFailure, skipped, mixed, unknown) and duration
  • Provides coverage data and filtering capabilities

Shell (Sources/PeekieSDK/shell.swift)

  • Executes shell commands via /bin/zsh
  • Used internally to invoke xcrun xcresulttool and xcrun xccov for parsing .xcresult files

Read the full file on GitHub · 190 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. 6d ago Changed · +29 tokens per session 4574d4134042
  2. 1mo ago First seen · 190 lines · 1,456 tokens per session scan A 1f3f49ddc4e4

Subscribe to this mod's changes

Peekie AGENTS.md is an instructions file published in the GitHub repository dodobrands/Peekie (32 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,485 tokens to every session, about $0.0059 per session on Opus 5.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.

Related

Other instructions, from other repositories