stage-0-reference

A set of airline reference-data tools for turning codes and names into standard travel information, such as airports, airlines, fares, booking classes, currencies, taxes, and countries.

In plain words
What is it for?
Use it to resolve airport and city codes, map airline and alliance codes, decode fare-basis codes, map booking classes, and look up related travel reference data.
Why use it?
It removes the need to maintain separate code lists or interpret airline abbreviations by hand. It can also account for multi-airport cities, fuzzy name matches, and retired codes.

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/telivityai/otaip/stage-0-reference
Clone the repo
git clone --depth 1 https://github.com/TelivityAI/otaip
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 1,962 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.01962
Opus 5 $0.00000 $0.00981
Sonnet 5 $0.00000 $0.00392
Haiku 4.5 $0.00000 $0.00196

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

Security

Grade A, and why

stage-0-reference 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 2d 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.

docs/agents/stage-0-reference.md · 208 lines

How it starts

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

Stage 0 -- Reference Data Agents

Package: @otaip/agents-reference

Static reference data resolution: airport codes, airline codes, fare basis decoding, booking class mapping, equipment types, currency/tax codes, and country regulatory data.


Agent 0.1 -- Airport/City Code Resolver

ID: 0.1 Class: AirportCodeResolver Status: Implemented

Resolves IATA/ICAO airport and city codes to canonical airport records with multi-airport city awareness, fuzzy name matching, and historical code handling.

Input (AirportCodeResolverInput):

  • code -- IATA 3-letter, ICAO 4-letter, city code, or airport name
  • code_type? -- 'iata' | 'icao' | 'city' | 'name' | 'auto' (auto-detected if omitted)
  • include_metro? -- return all airports in a metro/city code (default: true)
  • include_decommissioned? -- resolve retired/reassigned codes (default: false)

Output (AirportCodeResolverOutput):

  • resolved_airport -- canonical airport record (IATA, ICAO, name, city, country, timezone, lat/lon, type, status)
  • metro_airports -- list of airports in the same metro area
  • match_confidence -- 0-1 confidence score
  • stale_data? -- true when dataset is older than 30 days
  • suggestion? -- fuzzy match suggestion when code not found

Example:

const agent = new AirportCodeResolver();
await agent.initialize();
const result = await agent.execute({ data: { code: 'JFK', code_type: 'iata' } });
// result.data.resolved_airport.name => "John F Kennedy International Airport"

Agent 0.2 -- Airline Code & Alliance Mapper

ID: 0.2 Class: AirlineCodeMapper Status: Implemented

Resolves IATA/ICAO airline codes to canonical airline records with alliance membership and codeshare partner networks.

Input (AirlineCodeMapperInput):

  • code -- IATA 2-letter, ICAO 3-letter, or airline name
  • code_type? -- 'iata' | 'icao' | 'name' | 'auto'
  • include_codeshares? -- include codeshare partners (default: false)
  • include_defunct? -- include ceased-operations airlines (default: false)

Read the full file on GitHub · 208 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. 2d ago First seen · 208 lines · 0 tokens per session scan A 4771d0f38093

Subscribe to this mod's changes

stage-0-reference is an agent published in the GitHub repository TelivityAI/otaip (40 stars, last pushed 8d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,962 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-08-30.