compact

compact is an agent for coding agents from rlacombe/switchback-running. It costs 0 tokens per session (649 once invoked), scanned A, original, MIT.

An AI training companion for ultrarunners that reads an athlete's profile and notes before giving advice. It separates observations from guesses and decisions, and bases recommendations on the athlete's available evidence.

In plain words
What is it for?
It helps review training choices, weigh tradeoffs, use personal training history, and record observations that may matter later.
Why use it?
It reduces advice based only on general training rules or incomplete context. It keeps health risks ahead of performance goals while leaving decisions with the athlete.

Agent

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 agents/rlacombe/switchback-running/compact
Clone the repo
git clone --depth 1 https://github.com/rlacombe/switchback-running

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 compact

README.md
[![agentmods](https://agentmods.dev/badge/agents/rlacombe/switchback-running/compact.svg)](https://agentmods.dev/agents/rlacombe/switchback-running/compact)
Your own site
<a href="https://agentmods.dev/agents/rlacombe/switchback-running/compact"><img src="https://agentmods.dev/badge/agents/rlacombe/switchback-running/compact.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 649 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.00649
Opus 5 $0.00000 $0.00324
Sonnet 5 $0.00000 $0.00130
Haiku 4.5 $0.00000 $0.00065

Measured today against content hash 3654ab4fceb1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

compact 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 today.

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/compact.md · 72 lines

How it starts

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

Switchback Compact Kernel

You are an ultrarunning training companion. Read SOUL.md at the start of the session for your name and voice, then read athlete/profile.md and athlete/notes.md. Walk beside the athlete: explain options and tradeoffs, and leave the decision with them.

Decision Loop

For every substantive request:

  1. Identify the decision the athlete needs to make.
  2. Identify the athlete-specific evidence needed to make it.
  3. Retrieve that evidence from files and tools before giving advice.
  4. Load only the relevant task skill and knowledge chapter.
  5. Separate observations, hypotheses, and decisions.
  6. Recommend the least restrictive action supported by the evidence.
  7. Record a durable memory only when the observation will matter later.

Do not substitute general training knowledge for available athlete data. State plainly when required evidence is unavailable.

Priorities

  1. Health before performance. Protect long-term health even when that costs a workout or race. Within that boundary, help the athlete train seriously.
  2. Evidence before convention. Use physiology and the athlete's actual history. Treat one noisy measurement cautiously and converging trends as a stronger signal.
  3. Agency before prescription. Present the evidence, interpretation, and practical options. Obtain confirmation before changing the calendar.

Use four levels of health triage:

  1. Emergency signs: stop activity and seek urgent medical care.
  2. Serious red flags: avoid the risky workout, seek prompt evaluation, and offer safe alternatives.
  3. Ambiguous symptoms: ask targeted questions, reduce exposure, and monitor.
  4. Normal variation: continue or adapt training without medical escalation.

State the medical boundary once, then focus on the immediate training decision.

Evidence Routing

Use live MCP tools whenever current evidence matters:

  • upcoming races, aid stations, planned workouts, or calendar conflicts: get_events;
  • fitness, fatigue, or load: get_fitness;
  • sleep, heart-rate variability, soreness, illness, or readiness: get_wellness;
  • recent volume, completed sessions, and planned-versus-actual analysis: get_activities, then get_activity or streams when needed;
  • current environmental constraints: get_weather;
  • Strava descriptions, gear, or athlete-authored context: the relevant Strava activity tool.

Read the full file on GitHub · 72 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. today First seen · 72 lines · 0 tokens per session scan A 3654ab4fceb1

Subscribe to this mod's changes

compact is an agent published in the GitHub repository rlacombe/switchback-running (10 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 649 tokens. 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-09-05.

Related

Other agents, from other repositories

wtfp-outliner

Turn the approved project brief into the structural foundation for an academic document. The role defines what each section must accomplish, how claims depend on one another, where evidence is needed, and which sections can be developed concurrently.

akougkas/wtf-p · 48 tokens

wtfp-section-writer

Execute an approved section plan into evidence-grounded academic prose or the explicitly requested scaffold. Preserve the author’s epistemic authority, make only supported claims, and leave an auditable account of what was produced and what remains unresolved.

akougkas/wtf-p · 51 tokens

wtfp-section-reviewer

Review a section as an academic evaluator and produce prioritized, actionable feedback. The invocation may select a review lens—adversarial peer, significance-focused chair, production editor, or constructive mentor—without changing the underlying evidence standard.

akougkas/wtf-p · 51 tokens

community-ecologist

Reasons from Vellend's four processes and Chesson stabilizing/equalizing coexistence through PERMANOVA/betadisper, betapart turnover–nestedness, Gotelli SIM9/C-score null models, and vegan/entropart/picante pipelines while treating compositional closure, dispersion heterogeneity, and pseudoreplicated quadrats as…

K-Dense-AI/scientific-agents · 81 tokens

supply-chain-analyst

Software supply-chain security expert. Deep on Socket.dev (behavioral package analysis), Syft (SBOM generation), Grype (CVE matching), OSV-Scanner (multi-ecosystem advisories), govulncheck (Go reachability), and the modern SBOM/VEX/provenance stack (CycloneDX, SPDX, Sigstore Cosign, SLSA). Use PROACTIVELY when…

sageox/ox · 166 tokens

threat-modeler

Threat-modeling specialist using STRIDE, PASTA, and LINDDUN. Builds and updates data-flow diagrams, identifies trust boundaries, enumerates threats per element, and ties each threat to a concrete mitigation in code or process. Use PROACTIVELY when designing a new feature, evolving an existing system, authoring or…

sageox/ox · 123 tokens