typescript: Instructions file for Codex

AGENTS.md

typescript AGENTS.md is an instructions file for Codex, OpenCode from typeship-ax/typescript. It costs 728 tokens per session, scanned A, original, MIT.

Repository instructions for a generated TypeScript software development kit, or SDK, for the Typeship API. An SDK is code that helps another program use an API.

In plain words
What is it for?
Use them when working on the Typeship SDK to resolve API definitions, diagnose them, and keep its SDK, command-line tool, and MCP connection current.
Why use it?
They explain how to authenticate, use, and safely update the generated package without making changes that regeneration would erase.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is typeship-ax/typescript's own configuration. It tells Codex and OpenCode how to work on typescript 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 typescript configures →

Reuse

Borrowing it

Nothing to install: this file belongs to typeship-ax/typescript. 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/typeship-ax/typescript/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/typeship-ax/typescript

Made for: Codex, OpenCode.

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 typescript AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/typeship-ax/typescript/agents-md/github.svg)](https://agentmods.dev/instructions/typeship-ax/typescript/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/typeship-ax/typescript/agents-md"><img src="https://agentmods.dev/badge/instructions/typeship-ax/typescript/agents-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 typescript AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/typeship-ax/typescript/agents-md"><img src="https://agentmods.dev/badge/instructions/typeship-ax/typescript/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 728 This file is loaded in full into every session.
When invoked 728 The same file — it is already loaded in full.
Security scan A 0 findings. 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.00728 $0.00728
Opus 5.5 $0.00291 $0.00291
Sonnet 5.5 $0.00146 $0.00146
Haiku 4.5 $0.00073 $0.00073

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

Security

Grade A, and why

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

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 · 46 lines

How it starts

The opening of the file, as written. The whole thing — 46 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Typeship: agent guide

Instructions for coding agents that call the Typeship API through this TypeScript SDK (API version 1.0.0, package version 0.27.0).

Resolve an OpenAPI or GraphQL Spec, diagnose it, and keep every selected CLI, MCP, and SDK Target current.

Every operation but one requires a bearer credential: an organization API key from the console, or an OAuth access token carrying the operation's read, generate, or write capability and the organization selected during consent. OAuth grants cannot switch organizations after consent. A browser session is not a credential for this API. The exception is POST /generate, which works anonymously with the free plan's limits.

Examples use Parcel, a fictional delivery service. Replace its domains, repository names, and resource identifiers with your own. The hosted petstore Spec is a runnable sample.

Before writing code

  • api.md is the method reference; api.json is the machine-readable contract: every operation's inputs, outputs, errors, safety (read, write, or destructive), and an example. Look up exact names there instead of guessing.
  • README.md covers installation and setup.
  • Zero runtime dependencies; everything runs on platform fetch (Node 20+, browsers, edge).

Authentication

  • TypeScript SDK: pass the bearerToken client option explicitly; the SDK does not read credential environment variables.

Using the SDK

import { TypeshipClient } from "@typeship-ax/sdk";
const client = new TypeshipClient({ /* auth options above */ });
  • Awaiting a call returns the response data or throws a typed error. Catch ApiError for HTTP failures, ResponseParseError for malformed successful JSON, or TransportError for connection failures.
  • Paginated methods return a PagePromise: awaiting it returns the first Page; for await (const item of client.x.list()) walks every page and throws the typed error if a page fails.
  • Every method takes a last { timeoutMs, maxRetries, headers, signal } argument for per-call overrides. Errors carry code, status, requestId, body, and an actionable message; pages carry response metadata.
  • Uploads take a Blob (a File for a filename).
  • debug: true (or a function) on the client logs one redacted line per request.

Read the full file on GitHub · 46 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 2a4015e9958c
  2. 1mo ago Changed · +2 lines · +35 tokens per session 0a57a8f2b057
  3. 1mo ago Changed · +9 tokens per session 71b65ec126e5
  4. 1mo ago Changed · -39 tokens per session 5b0715fa269f
  5. 1mo ago Changed · +4 lines · +34 tokens per session 3bac34460355
  6. 1mo ago Changed · +1 lines · +42 tokens per session 270ba0542076
  7. 1mo ago Changed · +2 lines · +95 tokens per session f65ef8dff5f6
  8. 2mo ago Changed · +14 tokens per session 30741b2723bb
  9. 2mo ago First seen · 37 lines · 538 tokens per session scan A 5af50e01b4c8

Subscribe to this mod's changes

typescript AGENTS.md is an instructions file published in the GitHub repository typeship-ax/typescript (0 stars, last pushed 23d ago), licensed MIT. It adds 728 tokens to every session, about $0.0029 per session on Opus 5.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-31.

Related

typescript AGENTS.md compared with instructions from other repositories

typescript AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
typescript AGENTS.mdtypeship-ax/typescriptInstructions file023d agoMITA728Codex, OpenCode
create-trimble-app typescript.instructions.mdjulianoczkowski/create-trimble-appInstructions file34mo agoMITA583GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot