CtrlK
BlogDocsLog inGet started
Tessl Logo

jbaruch/nanoclaw-flight-assist

Flight notifications via byAir: delay, gate, connection risk, inbound aircraft delay, time-to-leave, arrival logistics. NanoClaw per-chat overlay tile.

75

Quality

93%

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Advisory

Suggest reviewing before use

Overview
Quality
Evals
Security
Files

jbaruch/nanoclaw-flight-assist

tessl

Actionable flight notifications for NanoClaw. Replaces generic "21 minutes to departure" reminders with alerts that change behavior. Powered by byAir for flight data and Google Maps Distance Matrix for traffic-aware time-to-leave.

Per-chat overlay tile. Install via NanoClaw's containerConfig.additionalTiles mechanism.

Capabilities (V1.1 shipped)

  1. Time-to-leave — traffic-aware push N hours before departure ("leave by 11:30, traffic is 45 min")
  2. Day-before sanity check — diff against prior TripIt state; flag silent rebookings, seat changes, calendar conflicts
  3. Gate / delay / cancel push — fires on actual change, not on cron schedule
  4. Connection risk — alert when leg 1 delay threatens leg 2 transfer
  5. Inbound aircraft delay — earliest possible signal (incoming aircraft delayed on previous leg, ~1h before gate-board flip)
  6. Arrival logistics — ~15 min before landing: baggage carousel, Lyft estimate, lounge access if transit

Installation

tessl install jbaruch/nanoclaw-flight-assist

Add to a chat's overlay tile list via update_group_config:

additionalTiles: ["jbaruch/nanoclaw-flight-assist"]

Required environment

VariablePurposeWhere to get
BYAIR_MCP_URLbyAir streamable-HTTP MCP endpoint (includes API key)https://byairapp.com/mcp/ — Pro subscription, personal MCP link
GOOGLE_MAPS_API_KEYDistance Matrix API key for time-to-leavehttps://console.cloud.google.com/apis/credentials

Store both in OneCLI vault. Never commit. See .env.example for the contract; GitHub Actions secrets configuration link is in its file header.

Rules

RuleSummary
flight-data-localitybyAir is the single upstream for flight data; AeroAPI / Flighty / airline-specific APIs forbidden
operator-local-tz-phrasingRelative-date words ("today"/"tomorrow") in a surface are phrased against the operator's local date (via read-current-tz.py), not the container UTC clock; displayed airport clock times stay as-is

Skills

SkillDescription
flight-assistAction router: diagnose credentials, set home base, or compose a user-facing notification from a precheck wake event (delay, gate change, cancellation, boarding, time-to-leave, carousel, day-before, arrival logistics, tracked-flight add/remove)
sync-tripitAdaptive scheduler that fires the byAir → active-flights.json refresh on a precheck-gated 5-min cadence — responsive on flight days, idle between travel windows. Diagnostic-only LLM surface (the gate + sync happen in the precheck script)
check-travel-bookingsChecks upcoming trips for missing bookings (flights, hotels, accommodation) by reading the nightly-built travel-db.json. Reports gaps for all upcoming trips — no date limit. Supports snooze state. Silent when all bookings are complete or snoozed. Use when the user asks about upcoming travel plans, itinerary completeness, missing reservations, or TripIt trip status.
nightly-travel-syncDaily travel-data refresh bundle: TripIt → Reclaim timezone sync, refresh travel-schedule.json from the TripIt iCal feed with a two-tier Gmail freshness probe, rebuild travel-db.json, then run check-travel-bookings. Precheck-gated on travel-db.json freshness; surfaces failures and relies on the daily cron + freshness probe to recover. Self-contained writer of the data check-travel-bookings reads.

Skill scripts

The skill bundle includes executable scripts the agent invokes via the SKILL.md actions:

  • scripts/check-env.py — verifies BYAIR_MCP_URL + GOOGLE_MAPS_API_KEY are set
  • scripts/set-home-base.py — persists home address to tile config for time-to-leave queries
  • scripts/get-flight-state.py — fetches a flight's last-known snapshot to enrich notifications
  • scripts/read-current-tz.py — resolves the operator's current_tz from tz_state so surfaces phrase relative dates in the operator's local zone (see operator-local-tz-phrasing rule)

Plus scheduler-invoked scripts (not user-facing):

  • flight-assist/precheck.py — runs every ~2 min, polls byAir per cadence ladder, emits wake events
  • sync-tripit/precheck.py — runs every 5 min, adaptive-gated; delegates to flight-assist/sync_tripit.py only when a flight is imminent or the index is stale (see the sync-tripit skill for gate predicate + thresholds)
  • flight-assist/sync_tripit.py — the byAir → state reconciliation invoked by the sync-tripit scheduler
  • nightly-travel-sync/precheck.py — runs daily, gates the travel-data refresh on travel-db.json freshness (see the nightly-travel-sync skill + precheck.py for the cadence predicate)
  • nightly-travel-sync/scripts/refresh-travel-schedule.py, check-travel-freshness.py, filter-tripit-bookings.py — the travel-source writers + freshness probe the bundle drives

Status

  • V1.1 — adds connection-risk derivation (capability 4). The precheck post-loop walks per-trip state, projects leg-1 arrival vs leg-2 scheduled departure, and emits connection_at_risk events when the transfer window falls below min_transfer_minutes (configurable, default 45). State schema bumped to v2 with owner-side migration
  • V1 — flight-data-locality rule, full action-router SKILL.md, precheck orchestrator with cadence-gated byAir polling, stateful flight tracking, delta-driven wake rules (cancel, divert, gate, delay, inbound delay, boarding, carousel reveal), time-based wake gates (day-before, time-to-leave, arrival logistics), daily sync against byair_list_trips

See CHANGELOG.md for version history.

Workspace
jbaruch
Visibility
Public
Created
Last updated
Publish Source
GitHub
Badge
jbaruch/nanoclaw-flight-assist badge