flt prime
Agent Guide
The complete reference that flt prime outputs for AI coding agents.
Everything an agent needs to search flights, build itineraries, and deliver results.
$ flt prime
Rules
Constraints the agent must follow during every session.
Rate limits
- Built-in 3s throttle between requests. Never add manual sleeps.
- Never run search/matrix in parallel.
- Prefer
flt matrixfor date comparisons (max 21 combos, 5-7 is safer). - On
{"err":"BLOCKED"}: stop all requests,sleep 60, retry with smaller scope.
Caching
- Cached by full query shape (dep/ret date, cabin, pax, stops, currency).
- Fresh for 6 hours.
--refreshbypasses. - Flight IDs (e.g.
Fa3b7) are stable SHA-1 hashes from legs. - Plain IDs resolve across all session searches (latest first).
REF:IDfor explicit lookups. - Read-only commands (
inspect,itinerary,takeout,airports,favs) never hit Google.
Sessions
- Auto-start on first search (named after route).
flt takeoutauto-closes the session. Use--keep-sessionto prevent.- Start every response with: session: name (id).
Workflow
Five phases, in order. Each has a gate that must be met before proceeding.
1
- Resolve ambiguous cities/airports with
flt airports <query>, confirm IATA codes with user. - For multi-stop routes (5+ legs): run
flt connections <from> <to>to discover viable paths. - Compare transit hubs if needed:
flt compare KUL,BKK,IST AMS 2026-03-22.
▼
2
- One search per leg. Flexible dates:
flt matrix(max 7 combos). Fixed dates:flt search. - Refine with filters (
--carrier,--max-stops,--dep-after, etc.). Prefer filtering one search over running many. - Present top 3-5 per leg with price, duration, stops, carrier, times.
▼
3
flt fav <ID>promising offers. They survive cache expiry and are the basis for itineraries.- Use
flt inspect <ID>for detail. Useflt favsto review the full shortlist. - Ask the user to confirm their preferred offer per leg. Do not proceed until each leg has a user-approved fav.
▼
4
- Build itinerary:
flt itinerary <REF:ID> [REF:ID...] --title "...". - Use full REF:ID format for precision, or plain IDs which search all session results.
- Check connection times (min 2h domestic, 3h international), total price, travel time.
- If connections are too tight, go back to Phase 2/3 for that leg.
▼
5
flt takeout --itin "Label" REF:ID REF:ID --title "Trip Title".- For PDF export: add
--pdf. - Warn user: takeout auto-closes the session unless
--keep-sessionis passed.
Commands
Full command reference with syntax and options.
Session
flt session start ["name"] Start named session (closes active one)flt session close Close active sessionflt session list List all sessionsflt session reopen [id] Re-open last closed (or specific) sessionflt session refs [--id s1] List search refs with query and offer countflt session rename "new name" Rename active (or --id) sessionflt session nuke Delete ALL data (irreversible)Search
flt AMS NRT 2026-04-10 One-way searchflt AMS NRT 2026-04-10 2026-04-18 Round-trip searchMatrix
flt matrix AMS NRT 2026-04-01 2026-04-14 One-way date rangeflt matrix AMS NRT 04-01 04-07 04-08 04-14 Round-trip date rangeCompare
flt compare KUL,BKK,MNL AMS 2026-03-22 Cheapest from each originflt compare CEB KUL,BKK,ICN 2026-03-19 Cheapest to each destinationInspect
flt inspect Fa3b7 Inspect by flight IDflt Fa3b7 Shorthand (auto-detected)Itinerary
flt itinerary REF:ID [REF:ID...] --title "..." Compose multi-leg itineraryTakeout
flt takeout --itin "Label" REF:ID REF:ID --title "..." Export session dataAirports
flt airports tokyo Fuzzy search by city, name, or IATAflt tokyo Shorthand (auto-detected)Favorites
flt fav O1 Bookmark an offerflt unfav O1 Remove bookmarkflt favs List all favoritesConnections
flt connections AMS SYD Find routing options between two airportsRegion Shorthands
Use with --exclude-region. Mixable with IATA codes.
gulf DXB, DOH, AUH, BAH, MCT, KWImiddleeast DXB, DOH, AUH, BAH, MCT, KWI, RUH, JED, AMM, TLV, CAI, BGW, IKA, THRrussia SVO, DME, LED, VKObelarus MSQError Codes
JSON format: {"err":"CODE","hint":"..."}
NO_RESULTS Relax filters (wider date range, allow stops, remove carrier constraint)TOO_MANY Fewer date combos in matrixNO_SESSION Run a search first to auto-start a sessionBLOCKED Stop all requests, sleep 60, retry with smaller scopeOutput guidelines
How the agent should present results to the user.
Lead with context: route(s), dates, constraints, currency.
Top 3-5 options: ID, price, stops, duration, carrier, dep-arr (+day).
Matrix: summarize cheapest dates first, then detail-search best 1-2.
Multi-leg: show itineraries with total price + connection notes.
Next steps: offer only if useful ("I can widen time window / allow 1 stop / extend dates").
Formats:
--fmt brief for readable pulls, --fmt tsv for compact parsing. Default --limit 100.Limitations: no fare rules, baggage, seat maps, booking classes, or loyalty info. Mention only when relevant.