wellness-air AGENTS.md

wellness-air AGENTS.md is an instructions file for Codex, OpenCode from davidmosiah/wellness-air. It costs 577 tokens per session, scanned A, original, MIT.

Development instructions for a local MCP server that exposes indoor air-quality readings such as PM2.5, carbon dioxide, and AQI. AQI is a scale used to describe how polluted the air is.

In plain words
What is it for?
They are for developing, testing, and extending the Wellness Air server and its air-reading tools.
Why use it?
They explain the server’s structure, tool naming, supported provider, and how to add another air-quality provider.

Instructions file for CodexOpenCode

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

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/davidmosiah/wellness-air/agents-md
Clone the repo
git clone --depth 1 https://github.com/davidmosiah/wellness-air

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 wellness-air AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/davidmosiah/wellness-air/agents-md.svg)](https://agentmods.dev/instructions/davidmosiah/wellness-air/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/davidmosiah/wellness-air/agents-md"><img src="https://agentmods.dev/badge/instructions/davidmosiah/wellness-air/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 577 This file is loaded in full into every session.
When invoked 577 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.1 $0.00577 $0.00577
Opus 5 $0.00289 $0.00289
Sonnet 5 $0.00115 $0.00115
Haiku 4.5 $0.00058 $0.00058

Measured 5d ago against content hash 4fce6b77b7bf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

wellness-air 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 · 47 lines

How it starts

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

AGENTS.md — wellness-air

Notes for AI agents and human contributors working on this repo.

What this is

A local-first MCP server that exposes air-quality readings (PM2.5, CO₂, AQI, etc.) to any MCP-aware agent. v0.1 ships full AirGradient support; AirThings/PurpleAir/IQAir/Awair are scaffolded.

Source layout

  • src/index.ts — MCP entry. Registers tools, runs stdio or Streamable HTTP.
  • src/constants.ts — Versions, provider list, default ports/hosts.
  • src/services/airgradient-client.ts — Public + owned AirGradient API client. Implements US EPA AQI conversion from PM2.5.
  • src/services/{capabilities,privacy-audit,agent-manifest}.ts — Standard manifest surfaces.
  • src/tools/air-tools.ts — All 10 tools registered with the MCP server.
  • src/cli/commands.tsdoctor, setup, status, current CLI commands.

Tool naming

All tools follow the air_<verb_or_noun> pattern. Resources use the wellness-air:// scheme.

Adding a provider in v0.2

  1. Create src/services/<provider>-client.ts modeled on airgradient-client.ts. Keep the AirReading shape consistent.
  2. Wire the provider into air_current_reading and air_daily_summary switch in src/tools/air-tools.ts.
  3. Add provider env vars to src/services/capabilities.ts configured-detection.
  4. Update src/services/agent-manifest.ts optional_env.
  5. Add provider notes to src/services/privacy-audit.ts.
  6. Bump SERVER_VERSION in src/constants.ts AND version in both package.json and server.json.

Testing

  • npm test runs typecheck + build + smoke + metadata check.
  • npm run smoke exercises the MCP tool surface against a public AirGradient sensor.
  • npm run test:metadata ensures package.json / server.json versions stay in sync.

Privacy contract

  • AirGradient public reads = no auth, no PII, no token storage.
  • Owned-sensor reads = AIRGRADIENT_API_TOKEN from env, never returned in tool output.
  • All cached data lives under ~/.wellness-air (override with WELLNESS_AIR_LOCAL_DIR).
  • No third-party telemetry. The only outbound call goes to the configured provider.

Read the full file on GitHub · 47 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. 5d ago First seen · 47 lines · 577 tokens per session scan A 4fce6b77b7bf

Subscribe to this mod's changes

wellness-air AGENTS.md is an instructions file published in the GitHub repository davidmosiah/wellness-air (0 stars, last pushed 7d ago), licensed MIT. It adds 577 tokens to every session, about $0.0029 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.