Fli is a Python library, command-line tool, and MCP server for searching Google Flights data programmatically. Travelers and software agents use it to search flights, compare dates, filter results, and find cheaper travel options. The catalogue entries provide instructions and a skill for using Fli.
Borrowing it
Nothing to install: this file belongs to punitarani/fli. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/punitarani/fli/main/CLAUDE.mdgit clone --depth 1 https://github.com/punitarani/fliWrote 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.
[](https://agentmods.dev/instructions/punitarani/fli/claude-md)<a href="https://agentmods.dev/instructions/punitarani/fli/claude-md"><img src="https://agentmods.dev/badge/instructions/punitarani/fli/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/punitarani/fli/claude-md"><img src="https://agentmods.dev/badge/instructions/punitarani/fli/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.05841 | $0.05841 |
| Opus 5.5 | $0.02336 | $0.02336 |
| Sonnet 5.5 | $0.01168 | $0.01168 |
| Haiku 4.5 | $0.00584 | $0.00584 |
Grade A, and why
fli CLAUDE.md scanned grade A with 1 finding 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 1mo 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- Rate-limited HTTP client (10 req/sec) using curl-cffi for browser impersonation How it starts
The opening of the file, as written. The whole thing — 390 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
Fli is a Python library that provides programmatic access to Google Flights data through direct API interaction (reverse engineering). The project consists of:
- CLI interface (
fli/cli/) - Typer-based command line tool withflightsanddatescommands - MCP server (
fli/mcp/) - Model Context Protocol server for AI assistant integration - Core utilities (
fli/core/) - Shared parsing and building utilities - Search engine (
fli/search/) - Flight and date search implementations using Google Flights API - Data models (
fli/models/) - Pydantic models for airports, airlines, and flight data structures
Development Commands
Core Development Tasks
# Install dependencies
uv sync --all-extras
# Run tests (use these specific commands)
make test # Standard test suite (offline only)
make test-fuzz # Run fuzzing tests (pytest -vv --fuzz)
make test-all # Run all offline tests, including fuzz (pytest -vv --all)
make test-live # Run the small, stable live tests (pytest -vv -m live --live)
make test-live-fuzz # Also run the flakier fuzz-gated live test (opt-in only)
uv run pytest -vv # Alternative direct command
# Code quality
make lint # Check code with ruff
make lint-fix # Auto-fix linting issues
make format # Format code with ruff
uv run ruff check . # Direct ruff check
uv run ruff format . # Direct ruff format
# MCP server
fli-mcp # Run MCP server on STDIO
fli-mcp-http # Run MCP server over HTTP
# Documentation
make docs # Build MkDocs documentation
uv run mkdocs serve # Serve docs locally
uv run mkdocs build # Build static docs
Test Configuration
- Tests use pytest with custom markers:
fuzz(requires--fuzzflag),parallel(for pytest-xdist), andlive(requires--liveflag).--strict-markersis set inpytest.ini, so a typo'd marker fails collection instead of silently running (or silently not being gated). - Test structure mirrors source code:
tests/cli/,tests/models/,tests/search/,tests/mcp/ - Fuzzing tests are available but gated behind
--fuzzflag live-marked tests make real network calls to Google Flights (the fuzz case intest_search_flights_fuzz.py, all oftest_search_flights_new_filters_live.py, the four search tests intests/mcp/test_mcp_server.py::TestMCPServer, and a handful of historically-unmocked cases intest_search_flights.py/test_search_dates.py). They're skipped by default and--alldoes not enable them —ci.ymlrunspytest tests/ --all, which stays fully offline so a flaky Google response never blocks a merge.- How
--fuzz/--live/--allinteract: each gate is independent and skip-only —--allenablesfuzz-marked tests but deliberately does not enablelive-marked ones (you always need--livefor those), and--livealone does not enablefuzz-marked ones (a test marked bothfuzzandlive, i.e. the one case intest_search_flights_fuzz.py, needs both--all(or--fuzz) and--livetogether —-m live --livealone silently drops it from collection before the marker filter even runs). make test-live(pytest -m live --live, no--all) runs the small, stable live set — the same set.github/workflows/live-canary.ymlruns daily against the real network, which files/comments/closes a GitHub issue on failure/recovery instead of failing a build. It retries a single failure batch once (--last-failed) after a short pause before treating the run as failed, to absorb a lone transient page.make test-live-fuzz(pytest --all -m live --live tests/search/test_search_flights_fuzz.py) additionally runs the 100-case fuzz-gated live test, which is opt-in for humans only — it measured ~11% per-case failures under a fast back-to-back burst in testing, well above the stable set's rate, so it is never scheduled.
- How
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.
- 1mo ago Changed · +171 lines · +3,125 tokens per session 3ea3a23102eb
- 2mo ago First seen · 219 lines · 2,716 tokens per session scan A 37c4a240bc77
fli CLAUDE.md is an instructions file published in the GitHub repository punitarani/fli (3,480 stars, last pushed 1mo ago), licensed MIT. It adds 5,841 tokens to every session, about $0.0234 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
fli CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| fli CLAUDE.mdpunitarani/fli | Instructions file | 3.5k | 1mo ago | MIT | A | 5,841 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |