cli: Instructions file for Codex

AGENTS.md

cli AGENTS.md is an instructions file for Codex, OpenCode from render-oss/cli. It costs 1,957 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for coding agents working on Render’s command-line tool, which manages Render deployments and services from a terminal. They describe the project structure, coding boundaries, and questions that require approval.

In plain words
What is it for?
Planning and reviewing changes to terminal screens, commands, tests, and related code in the Render command-line project.
Why use it?
They help agents follow existing patterns and avoid editing generated code, removing tests, or making risky interface and architecture changes without approval.

Instructions file for CodexOpenCode

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

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is cd ../public-api-schema && ./generate-cli.sh.

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/render-oss/cli/agents-md"><img src="https://agentmods.dev/badge/instructions/render-oss/cli/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,957 This file is loaded in full into every session.
When invoked 1,957 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.01957 $0.01957
Opus 5.5 $0.00783 $0.00783
Sonnet 5.5 $0.00391 $0.00391
Haiku 4.5 $0.00196 $0.00196

Measured 11d ago against content hash 29cc31baa1b4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cli 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 11d 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 -k https://api.localhost.render.com:8443/health
AGENTS.md · 222 lines

How it starts

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

Repository Guidelines

Last verified: 2026-02-10

Essential guidance for AI coding agents working in the Render CLI.

Project Overview

What: Terminal interface for Render platform (Go + Bubble Tea TUI) Why: Manage deployments, services, logs, and infrastructure from the command line

Before You Code

  1. Search existing code for similar implementations
  2. Follow established patterns in pkg/tui/
  3. Check if types exist in pkg/client/ before defining new ones

Boundaries

Never do (without explicit approval):

  • Edit files in pkg/client/ (generated code)
  • Modify *_gen.go files
  • Remove existing tests
  • Change navigation stack architecture in pkg/tui/stack.go

Always ask first:

  • Major TUI architectural changes
  • Adding new dependencies
  • Changes to command flag APIs (breaking changes)

Safe to do:

  • Add new views in pkg/tui/views/
  • Add new commands in cmd/
  • Write tests anywhere
  • Refactor within a single package

When Uncertain

  • Requirements unclear: Ask before implementing
  • Architecture questions: Propose minimal approach, get feedback
  • TUI interactions: Describe intended flow, get confirmation

Prefer small, incremental changes over large speculative implementations.

Essential Commands

# Building
go build -o render .              # Build binary

# Testing
go test ./cmd/... ./pkg/... ./internal/...     # Default development loop
go test <package> -run '<test-name-or-regex>'  # Focused test pattern

# Linting & Formatting
golangci-lint run                 # Lint
prek run --all-files              # All hooks (see prek.toml)

# Type Generation (from public-api-schema)
export RENDER_API_PATH=/path/to/api
cd ../public-api-schema && ./generate-cli.sh

Project Structure

  • cmd/ - Cobra command definitions
  • pkg/client/ - Generated API client (READ-ONLY)
  • pkg/tui/ - Bubble Tea TUI framework (see AGENTS.md)
  • pkg/config/ - User config file (~/.render/cli.yaml)
  • pkg/cfg/ - Environment defaults (different from config!)
  • pkg/command/ - Output formats, context utilities
  • pkg/dependencies/ - Dependency injection container
  • pkg/style/ - Lipgloss styling system

Read the full file on GitHub · 222 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. 11d ago Changed · +4 lines · +55 tokens per session 29cc31baa1b4
  2. 2mo ago First seen · 218 lines · 1,902 tokens per session scan A 3adc970fb539

Subscribe to this mod's changes

cli AGENTS.md is an instructions file published in the GitHub repository render-oss/cli (137 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,957 tokens to every session, about $0.0078 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

cli AGENTS.md compared with instructions from other repositories

cli AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cli AGENTS.mdrender-oss/cliInstructions file137yesterdayApache-2.0A1,957Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot