Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/tripsyapp/cli/agents-mdgit clone --depth 1 https://github.com/tripsyapp/cliWhat 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 | $0.02353 | $0.02353 |
| Opus 5 | $0.01177 | $0.01177 |
| Sonnet 5 | $0.00471 | $0.00471 |
| Haiku 4.5 | $0.00235 | $0.00235 |
Grade A, and why
cli AGENTS.md scanned grade A with 0 findings 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 yesterday.
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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent Guidance
Use this file when an agent is creating or maintaining Tripsy itinerary data through the local tripsy CLI or tripsy-mcp server.
CLI vs MCP
- Prefer
tripsy-mcpwhen the client supports MCP. It exposes typed tools, structured results, safety annotations, and the same auth/config as the CLI. - Use
tripsyfor direct terminal workflows, scripts, or when the current client cannot connect to MCP servers. - MCP tool names use the
tripsy_<resource>_<action>shape, for exampletripsy_itinerary_guidance,tripsy_trips_create,tripsy_activities_create, andtripsy_collaborators_list. - Use
tripsy_raw_requestonly when no typed MCP tool covers a supported public Tripsy API route.
Authentication
- Do not print stored tokens unless the user explicitly asks for token output.
- Prefer the default
TRIPSY_AUTH_BACKEND=auto; it uses OS credential storage when available. - Use
TRIPSY_AUTH_BACKEND=fileonly for headless automation or compatibility. - Non-secret config is stored in
credentials.json; tokens should be in the secure backend whenever one is available.
Itinerary Shape
- Set trip dates when planning a day-by-day itinerary.
trips listreturns trips where the authenticated user is travelling. Usetrips followingfor trips the user follows but is not travelling on.has_datesis authoritative. Ifhas_datesisfalse, ignorestarts_atandends_ateven when those fields are present.- Choose a destination-specific Unsplash image for leisure trips and set it as
cover_image_url. - Store a real direct Unsplash CDN URL copied from an image result, in the form
https://images.unsplash.com/photo-1562869929-bda0650edb1f?ixid=...&ixlib=rb-4.1.0. - The
images.unsplash.compath must bephoto-<numeric timestamp>-<asset hash>. Do not store the Unsplash page URL, and do not turn short photo IDs likenWdsya5_Ymsintohttps://images.unsplash.com/photo-nWdsya5_Yms. - Before saving a trip
cover_image_url, validate that it is a real direct Unsplash CDN URL. If the client has external URL access, also confirm the image URL is reachable and not returning a404. - Create one item per actual stop, reservation, meal, tour, or activity. Do not bundle multiple places into one activity.
- Use
provider_reservation_codeon activities, hostings, and transportations for the provider-issued reservation, confirmation, or booking code for that item. - For transportation, keep
transport_numberfor the flight, train, bus, or service number; useprovider_reservation_codefor the booking or confirmation code. - Use start and end times when possible. Send all timed values as UTC ISO-8601 strings. Always set the local IANA
timezonefor the activity or lodging location, anddeparture_timezone/arrival_timezonefor transportation endpoints. - When displaying activity or lodging dates/times from MCP data, convert UTC
starts_atandends_atinto the item'stimezonebefore formatting local date/time. - When displaying transportation dates/times from MCP data, convert UTC
departure_atwithdeparture_timezoneand UTCarrival_atwitharrival_timezone; do not apply one endpoint's timezone to the other endpoint unless the fields explicitly match. - Activity creation through MCP requires
latitudeandlongitude; includeaddresswhen known so the Tripsy map is populated. - Add
address,latitude, andlongitudefor lodging when known so the Tripsy map is populated. - Use
hostingsfor hotels/lodging. The lodging category slug islodging. - Use
transportationsfor point-to-point movement and the transportation slugs listed below. - Activities can use either a documented built-in
activity_typeslug or a visible custom category slug. Custom category slugs are only valid on Activity objects throughactivity_type; do not use them for lodging, transportation, expenses, or trips. If an activity has anactivity_typethat is not in the built-in list, fetch visible custom categories throughtripsy_categories_listortripsy categories listand resolve the slug there before displaying the category name, icon, or color. - For flights, create a transportation with
transportation_typeset toairplane, setdeparture_descriptionandarrival_descriptionto the airport IATA codes, include each airport's latitude and longitude, and omitnameunless the user provided one. - For transfer activities, create a transportation with
transportation_typeset toroadtrip, and fill both departure and arrival locations with name/description, address, latitude, and longitude. - Delete operations can be executed when requested. Tripsy deletes are recoverable, so they can be undone if necessary.
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.
- yesterday First seen · 152 lines · 2,353 tokens per session scan A 85e9d6110b37
cli AGENTS.md is an instructions file published in the GitHub repository tripsyapp/cli (15 stars, last pushed 13d ago), licensed MIT. It adds 2,353 tokens to every session, about $0.0118 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
buildNext
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
spec-kit AGENTS.md
Instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
langchain AGENTS.md
Instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.