fli: Instructions file for Claude Code

CLAUDE.md

fli CLAUDE.md is an instructions file for Claude Code from punitarani/fli. It costs 5,841 tokens per session, scanned A, original, MIT.

A development guide for Fli, a Python tool and library that retrieves Google Flights data, with a command line, an AI-assistant server, and search and data-model code.

In plain words
What is it for?
Use it when installing dependencies, searching flights or dates, working on the AI-assistant connection, running tests, fuzzing, or linting.
Why use it?
It identifies the main parts of the project and the exact commands for tests and code-quality checks, so contributors do not have to discover them by trial and error.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is punitarani/fli's own configuration. It tells Claude Code how to work on fli itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything fli configures →

About the project

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.

punitarani/fli · 3,480 stars · on GitHub · deepwiki.com

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/punitarani/fli/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/punitarani/fli

Made for: Claude Code.

Wrote 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.

agentmods badge for fli CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/punitarani/fli/claude-md/github.svg)](https://agentmods.dev/instructions/punitarani/fli/claude-md)
Your own site
<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.

agentmods 80×15 button for fli CLAUDE.md

Your own site · 80×15
<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>
Per session 5,841 This file is loaded in full into every session.
When invoked 5,841 The same file — it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.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

Measured 1mo ago against content hash 3ea3a23102eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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
CLAUDE.md · 390 lines

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 with flights and dates commands
  • 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 --fuzz flag), parallel (for pytest-xdist), and live (requires --live flag). --strict-markers is set in pytest.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 --fuzz flag
  • live-marked tests make real network calls to Google Flights (the fuzz case in test_search_flights_fuzz.py, all of test_search_flights_new_filters_live.py, the four search tests in tests/mcp/test_mcp_server.py::TestMCPServer, and a handful of historically-unmocked cases in test_search_flights.py / test_search_dates.py). They're skipped by default and --all does not enable them — ci.yml runs pytest tests/ --all, which stays fully offline so a flaky Google response never blocks a merge.
    • How --fuzz / --live / --all interact: each gate is independent and skip-only — --all enables fuzz-marked tests but deliberately does not enable live-marked ones (you always need --live for those), and --live alone does not enable fuzz-marked ones (a test marked both fuzz and live, i.e. the one case in test_search_flights_fuzz.py, needs both --all (or --fuzz) and --live together — -m live --live alone 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.yml runs 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.

Read the full file on GitHub · 390 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. 1mo ago Changed · +171 lines · +3,125 tokens per session 3ea3a23102eb
  2. 2mo ago First seen · 219 lines · 2,716 tokens per session scan A 37c4a240bc77

Subscribe to this mod's changes

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.

Related

fli CLAUDE.md compared with instructions from other repositories

fli CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
fli CLAUDE.mdpunitarani/fliInstructions file3.5k1mo agoMITA5,841Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode