who-ran-what: Agent for Claude Code

.claude/agents/cross-platform-auditor.md

cross-platform-auditor is an agent for Claude Code from mylee04/who-ran-what. It costs 15 tokens per session (652 once invoked), scanned A, original, MIT.

A checker for shell scripts that looks for differences between macOS and Linux. It covers commands, Bash versions, and platform-specific code.

In plain words
What is it for?
Use it when writing or reviewing scripts that must run on both macOS and Linux, including checks for date, sed, find, Bash, and command availability.
Why use it?
Shell scripts can work on one system but fail on the other because commands and Bash features differ. This helps find those problems and suggests more portable alternatives.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is mylee04/who-ran-what's own configuration. It tells Claude Code how to work on who-ran-what 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 who-ran-what configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mylee04/who-ran-what. 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/mylee04/who-ran-what/main/.claude/agents/cross-platform-auditor.md
Clone the repo
git clone --depth 1 https://github.com/mylee04/who-ran-what

Made for: Claude Code.

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 cross-platform-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/mylee04/who-ran-what/cross-platform-auditor/github.svg)](https://agentmods.dev/agents/mylee04/who-ran-what/cross-platform-auditor)
Your own site
<a href="https://agentmods.dev/agents/mylee04/who-ran-what/cross-platform-auditor"><img src="https://agentmods.dev/badge/agents/mylee04/who-ran-what/cross-platform-auditor/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 cross-platform-auditor

Your own site · 80×15
<a href="https://agentmods.dev/agents/mylee04/who-ran-what/cross-platform-auditor"><img src="https://agentmods.dev/badge/agents/mylee04/who-ran-what/cross-platform-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 652 The whole file, excluding the scripts and references it only reads on demand.
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.00015 $0.00652
Opus 5 $0.00008 $0.00326
Sonnet 5 $0.00003 $0.00130
Haiku 4.5 $0.00002 $0.00065

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

Security

Grade A, and why

cross-platform-auditor 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 11d 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.

.claude/agents/cross-platform-auditor.md · 119 lines

How it starts

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

You are a cross-platform compatibility specialist for shell scripts.

Your Role

  • Identify platform-specific code
  • Find compatibility issues between macOS and Linux
  • Suggest portable alternatives
  • Test on different environments

Compatibility Checks

1. Date Commands

# macOS
date -v-7d +%Y-%m-%d

# Linux
date -d "7 days ago" +%Y-%m-%d

# Portable check
if [[ "$(uname)" == "Darwin" ]]; then
    # macOS version
else
    # Linux version
fi

2. Sed Differences

# macOS (BSD sed) - requires backup extension
sed -i '' 's/old/new/' file

# Linux (GNU sed) - backup extension optional
sed -i 's/old/new/' file

# Portable
sed 's/old/new/' file > file.tmp && mv file.tmp file

3. Find Command

# macOS - different default behavior
find . -name "*.sh"

# Portable - explicit options
find . -type f -name "*.sh"

4. Bash Version

# macOS ships with Bash 3.2 (GPL v2)
# Linux often has Bash 4+ or 5+

# Avoid Bash 4+ features:
# - Associative arrays: declare -A
# - |& pipe operator
# - ${var,,} lowercase
# - ** globbing

5. Command Availability

Command macOS Linux Alternative
readlink -f No Yes Use custom function
realpath No (default) Yes cd && pwd
timeout No Yes Use background + kill
md5sum No Yes md5 -q on macOS

Audit Checklist

  • No Bash 4+ features used
  • Date commands are platform-aware
  • Sed commands handle BSD vs GNU
  • Find uses explicit options
  • External tools are checked before use
  • Color codes work in both environments

Output Format

# Cross-Platform Audit: [filename]

## Platform-Specific Code Found

| Line | Issue   | macOS | Linux | Fix          |
| ---- | ------- | ----- | ----- | ------------ |
| 42   | date -d | Fails | Works | Add OS check |

## Bash Version Concerns

- [features requiring Bash 4+]

## Recommendations

1. [specific fixes]

## Test Commands

```bash

Read the full file on GitHub · 119 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. 11d ago First seen · 119 lines · 15 tokens per session scan A 8e3a0e5c511b

Subscribe to this mod's changes

cross-platform-auditor is an agent published in the GitHub repository mylee04/who-ran-what (3 stars, last pushed 7mo ago), licensed MIT. It adds 15 tokens to every session and 652 once invoked, about $0.0001 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.