cli AGENTS.md

Repository instructions for working with Tripsy, a travel-planning service, through its command-line tool or MCP server. They describe how to create and maintain trip itineraries.

In plain words
What is it for?
Creating or updating trips, activities, collaborators, and day-by-day travel plans in Tripsy.
Why use it?
They help an agent choose the right interface, handle authentication safely, and keep itinerary data in the expected shape.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/tripsyapp/cli/agents-md
Clone the repo
git clone --depth 1 https://github.com/tripsyapp/cli

Made for: Codex, OpenCode.

Per session 2,353 This file is loaded in full into every session.
When invoked 2,353 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.02353 $0.02353
Opus 5 $0.01177 $0.01177
Sonnet 5 $0.00471 $0.00471
Haiku 4.5 $0.00235 $0.00235

Measured yesterday against content hash 85e9d6110b37, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

AGENTS.md · 152 lines

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-mcp when the client supports MCP. It exposes typed tools, structured results, safety annotations, and the same auth/config as the CLI.
  • Use tripsy for direct terminal workflows, scripts, or when the current client cannot connect to MCP servers.
  • MCP tool names use the tripsy_<resource>_<action> shape, for example tripsy_itinerary_guidance, tripsy_trips_create, tripsy_activities_create, and tripsy_collaborators_list.
  • Use tripsy_raw_request only 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=file only 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 list returns trips where the authenticated user is travelling. Use trips following for trips the user follows but is not travelling on.
  • has_dates is authoritative. If has_dates is false, ignore starts_at and ends_at even 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.com path must be photo-<numeric timestamp>-<asset hash>. Do not store the Unsplash page URL, and do not turn short photo IDs like nWdsya5_Yms into https://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 a 404.
  • Create one item per actual stop, reservation, meal, tour, or activity. Do not bundle multiple places into one activity.
  • Use provider_reservation_code on activities, hostings, and transportations for the provider-issued reservation, confirmation, or booking code for that item.
  • For transportation, keep transport_number for the flight, train, bus, or service number; use provider_reservation_code for 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 timezone for the activity or lodging location, and departure_timezone/arrival_timezone for transportation endpoints.
  • When displaying activity or lodging dates/times from MCP data, convert UTC starts_at and ends_at into the item's timezone before formatting local date/time.
  • When displaying transportation dates/times from MCP data, convert UTC departure_at with departure_timezone and UTC arrival_at with arrival_timezone; do not apply one endpoint's timezone to the other endpoint unless the fields explicitly match.
  • Activity creation through MCP requires latitude and longitude; include address when known so the Tripsy map is populated.
  • Add address, latitude, and longitude for lodging when known so the Tripsy map is populated.
  • Use hostings for hotels/lodging. The lodging category slug is lodging.
  • Use transportations for point-to-point movement and the transportation slugs listed below.
  • Activities can use either a documented built-in activity_type slug or a visible custom category slug. Custom category slugs are only valid on Activity objects through activity_type; do not use them for lodging, transportation, expenses, or trips. If an activity has an activity_type that is not in the built-in list, fetch visible custom categories through tripsy_categories_list or tripsy categories list and resolve the slug there before displaying the category name, icon, or color.
  • For flights, create a transportation with transportation_type set to airplane, set departure_description and arrival_description to the airport IATA codes, include each airport's latitude and longitude, and omit name unless the user provided one.
  • For transfer activities, create a transportation with transportation_type set to roadtrip, 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.

Read the full file on GitHub · 152 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. yesterday First seen · 152 lines · 2,353 tokens per session scan A 85e9d6110b37

Subscribe to this mod's changes

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.

Related

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.

openai/codex · 5,182 tokens

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

microsoft/vscode · 6,785 tokens

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.

vercel/next.js · 7,296 tokens

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

microsoft/vscode · 5,001 tokens

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.

github/spec-kit · 7,040 tokens

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.

langchain-ai/langchain · 4,345 tokens