termcast: Instructions file for Codex

AGENTS.md

termcast AGENTS.md is an instructions file for Codex, OpenCode from remorses/termcast. It costs 13,726 tokens per session, scanned A, original, MIT.

Project instructions for Termcast, a tool that ports Raycast's developer interface to a different runtime. They specify coding conventions, dependency commands, file types, testing commands, and how to separate supported APIs.

In plain words
What is it for?
Use them when adding Termcast components, hooks, APIs, TypeScript files, tests, dependencies, or ported Raycast functionality.
Why use it?
They keep changes consistent with the repository and prevent common mistakes such as using the wrong imports, test commands, or package manager.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/remorses/termcast/agents-md"><img src="https://agentmods.dev/badge/instructions/remorses/termcast/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13,726 This file is loaded in full into every session.
When invoked 13,726 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.13726 $0.13726
Opus 5.5 $0.05490 $0.05490
Sonnet 5.5 $0.02745 $0.02745
Haiku 4.5 $0.01373 $0.01373

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

Security

Grade A, and why

termcast AGENTS.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 2mo 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.

curl -s https://developers.raycast.com/api-reference/user-interface/list.md
AGENTS.md · 1,333 lines

How it starts

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

Project Coding Guidelines

NOTICE: AGENTS.md is generated using pnpm agents.md and should NEVER be manually updated. only update PREFIX.md

ALWAYS use pnpm to install dependencies


termcast specific rules

Porting @raycast/api components and hooks to termcast

ALWAYS use termcast to import things, instead of relative imports. This is possible thanks to exports in package.json. for example:

import {List} from 'termcast'

ALWAYS use .tsx extension for every new file.

NEVER use mocks in vitest tests

When running the e2e vitest suite, ALWAYS use the repo scripts (pnpm e2e, pnpm e2e <file>, pnpm e2e -u). NEVER run vitest directly.

prefer object args instead of positional args. as a way to implement named arguments, put the typescript definition inline

see files in the repo

use git ls-files | tree --fromfile to see files in the repo. this command will ignore files ignored by git

Goal

This project ports @raycast/api components and apis to use @opentui/react and other Bun APIs

We are basically implementing the package @raycast/api from scratch. DO NOT implement functions exported by @raycast/utils

This should be done one piece at a time, one hook and component at a time

Porting a new Raycast component or feature

Here is the process to follow to implement each API:

  • decide which component or hook or function we are porting
  • read the .d.ts of the @raycast/api package for the component or hook
  • generate a new file or decide to which file to add this new API in src folder
  • start by adding a signature without any actual implementation. Only a function or class or constant without any actual implementation
  • try typechecking with pnpm run tsc. fix any errors that is not related to the missing implementation (like missing returns)
  • then think, is the signature the same as Raycast?
  • start implementing the component or function, before doing this
    • decide on what @opentui/react components to use
    • do so by reading opentui .d.ts files and see available components
    • read .d.ts to understand available styling options and attributes
  • typecheck
  • if the added feature is a component or adds support for a new prop for a component, add an example usage component in the src/examples directory. create a descriptive name for it in the file. use simple-{component-name} for basic implementations examples
  • if the implemented feature is function or other API, add an action in the file examples/miscellaneus.tsx, add a list item for the new feature, for example "show a error toast" if we are implementing toasts
  • do not add an example if our feature is already covered by other example files
  • DO NOT run the examples then. instead ask me to do it. do not add these as scripts in package.json
  • typecheck to make sure the example is correct

Read the full file on GitHub · 1,333 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. 2mo ago First seen · 1,333 lines · 13,726 tokens per session scan A 974701b9109b

Subscribe to this mod's changes

termcast AGENTS.md is an instructions file published in the GitHub repository remorses/termcast (341 stars, last pushed 2mo ago), licensed MIT. It adds 13,726 tokens to every session, about $0.0549 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

termcast AGENTS.md compared with instructions from other repositories

termcast AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
termcast AGENTS.mdremorses/termcastInstructions file3412mo agoMITA13,726Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode