Travel assistant for NanoClaw: byAir flight notifications (delay, gate, connection risk, inbound aircraft delay, time-to-leave, arrival logistics), traffic-aware drive planning for in-person meetings (auto drive blocks + leave-by traffic rechecks), travel-booking gap checks, and nightly TripIt sync. Per-chat overlay tile.
77
96%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Advisory
Suggest reviewing before use
Actionable travel assistance for NanoClaw — byAir-powered flight notifications, travel-booking gap checks, and nightly TripIt sync. 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.
tessl install jbaruch/nanoclaw-travelAdd to a chat's overlay tile list via update_group_config:
additionalTiles: ["jbaruch/nanoclaw-travel"]| Variable | Purpose | Where to get |
|---|---|---|
BYAIR_MCP_URL | byAir streamable-HTTP MCP endpoint (includes API key) | https://byairapp.com/mcp/ — Pro subscription, personal MCP link |
GOOGLE_MAPS_API_KEY | Distance Matrix API key for time-to-leave | https://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.
| Rule | Summary |
|---|---|
| flight-data-locality | byAir is the single upstream for flight data; AeroAPI / Flighty / airline-specific APIs forbidden |
| operator-local-tz-phrasing | Relative-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 |
| Skill | Description |
|---|---|
| flight-assist | Action 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-tripit | Adaptive 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-bookings | Checks 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-sync | Daily 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. |
| drive-planner | Action router for ground-transit drive planning. On a ~2h precheck sweep it classifies upcoming in-person meetings (scan.py), pre-routes each leg with live traffic, and creates a Free home → venue → home drive block for any that lacks one (create-first, idempotent per lombot #50), then notifies. A "skip <id>" reply removes the block and records a skip so it's never re-asked. The block IS the state — no local block store. |
| drive-planner-recheck | Traffic-growth watcher. On a ~15-min precheck poll it re-fetches its own drive blocks by API, re-routes each in-window arrival-anchored leg, and pushes a leave-earlier / leave-now alert when traffic grew past the threshold or the leave-by arrived. Each condition fires once (suppression patched onto the event). Re-derives its work from the blocks every poll, so a recheck can never be silently lost (lombot #48). |
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 setscripts/set-home-base.py — persists home address to tile config for time-to-leave queriesscripts/get-flight-state.py — fetches a flight's last-known snapshot to enrich notificationsscripts/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 eventssync-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 schedulernightly-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 drivesdrive-planner/precheck.py — runs every ~2h, fetches the wide calendar window, classifies meetings, pre-routes legs, and wakes the agent only when a meeting needs a drive block; apply.py is the agent-invoked idempotent create / skip-removedrive-planner/scan.py, fetch_events.py, block_props.py, recheck.py, skip_state.py, home_address.py — the deterministic core (classifier, API calendar fetch, block codec, recheck gate, skip store, canonical-home reader)drive-planner-recheck/precheck.py — runs every ~15 min, re-fetches its own drive blocks, re-routes in-window legs, and wakes the agent only when a leave-earlier / leave-now alert must go outconnection_at_risk events when the transfer window falls below min_transfer_minutes (configurable, default 45). State schema bumped to v2 with owner-side migrationbyair_list_tripsSee CHANGELOG.md for version history.
skills
check-travel-bookings
drive-planner
drive-planner-recheck
flight-assist
nightly-travel-sync
sync-tripit