CC-Pet: Instructions file for Codex

AGENTS.md

CC-Pet AGENTS.md is an instructions file for Codex, OpenCode from ChenDX404/CC-Pet. It costs 4,693 tokens per session, scanned A, original, MIT.

A set of project instructions for CC Pet, a desktop pet that appears in a floating window and reflects coding-agent activity with animations. It documents the planned Tauri, Rust, TypeScript, and VS Code architecture.

In plain words
What is it for?
Use it when developing CC Pet's VS Code preview, shared animation renderer, status detection, desktop window, communication between components, packaging, or release process.
Why use it?
It gives the coding agent the project's agreed goals, structure, technology choices, and development stages so changes stay consistent.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads ~/.codex paths; mentions Codex.

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

Reuse

Borrowing it

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

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 CC-Pet AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/chendx404/cc-pet/agents-md"><img src="https://agentmods.dev/badge/instructions/chendx404/cc-pet/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,693 This file is loaded in full into every session.
When invoked 4,693 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.04693 $0.04693
Opus 5.5 $0.01877 $0.01877
Sonnet 5.5 $0.00939 $0.00939
Haiku 4.5 $0.00469 $0.00469

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

Security

Grade A, and why

CC-Pet 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 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.

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

How it starts

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

CC Pet — 项目约定与上下文(最终锁定版)

〇、最终总目标

CC Pet 是一个桌面浮窗桌宠(形态类似 Codex 自带桌宠):

  • 独立桌面进程(Tauri),不依赖 VS Code 可见 / 聚焦
  • 透明背景、始终置顶、可拖到桌面任意位置
  • 感知 VS Code、Codex、其他编码智能体的工作状态
  • 以对应动画(idle / thinking / reading / editing / running / waiting / success / error)与方向帧反馈

长期架构(已锁定)

角色 技术栈 职责
桌面浮窗宿主 Tauri(Rust + 系统 Webview) 透明窗口、置顶、托盘、开机自启;承载 PetRenderer
VS Code Extension 现有 TS + VS Code API launcher + 状态桥:启动 / 停止 Tauri 进程、把 Codex 状态通过 IPC 推送给桌宠
PetRenderer 共享核心 纯 TypeScript(不绑 vscode / tauri API) 资产加载、帧计算、状态→动画映射;可被任意 Webview 宿主复用

阶段路线(已修订)

阶段 目标 关键技术 状态
1 当前:VS Code WebviewPanel 预览原型 VS Code Webview API 规划完成,待实施
2 抽出 PetRenderer 共享核心(不绑 vscode) TS 重构 延后
3 扩展 manifest schema + 11 行约定 + 16 方向 PetRenderer + pet.json v3 延后
4 Codex 状态检测(事件源) VS Code ext + 文件监听 延后
5 GUI 绑定编辑器(webviewView)+ 完整事件触发 + 动画状态机 VS Code WebviewView 延后
6 Tauri 桌面浮窗原型 Tauri (Rust + Webview) 延后
7 透明 + 始终置顶 + 系统托盘 + 开机自启 Tauri API 延后
8 VS Code Ext 改 launcher + IPC 整合 IPC 协议 延后
9 打包发布(Marketplace + GitHub Release) vsce + cargo bundle 延后

业务模型 4 决策(已锁定)

决策点 终态默认行为 生效阶段 阶段 1 状态
A 激活与生命周期 VS Code Extension 激活时自动拉起 Tauri 桌宠;VS Code 关闭时桌宠退出 阶段 8 ❌ 阶段 1 用手动命令
B 多 VS Code 实例 全局单桌宠 + 用户手动选状态源 阶段 8 ❌ 不适用
C 离线行为(Codex 未运行 / 未安装) 显示闲置动画(idle 帧),不报错、不隐藏 阶段 4 ❌ 阶段 1 无状态检测
D 交互模型 拖动(永远响应)+ 点击展示状态详情(CC 回复文本气泡) 阶段 5+ ❌ 阶段 1 仅拖动

阶段 1 严禁(即使想到也忍住)

  • ❌ 不要加任何 Tauri 进程启动 / 关闭 / IPC 逻辑
  • ❌ 不要加 Codex 状态检测的任何探针代码
  • ❌ 不要让 WebviewPanel 自动随扩展激活打开
  • ❌ 不要加点击 / 悬停 / 右键响应
  • ❌ 不要加 idle / thinking / 任何动画状态切换逻辑
  • ❌ 不要加多 VS Code 窗口协调代码
  • ❌ 不要加 GUI 绑定编辑器(阶段 5 才做)

核心设计原则:配置驱动,零 LLM

时期 角色 是否需要 AI
写 pet.json(一次性) pet 作者 / 用户手填;AI 可选辅助草稿 可选
运行时(CC Pet 启动 / 事件触发) 读 JSON + 查表 + 算坐标 + 渲染 完全不需要

Read the full file on GitHub · 274 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 · 274 lines · 4,693 tokens per session scan A 018a3dd55182

Subscribe to this mod's changes

CC-Pet AGENTS.md is an instructions file published in the GitHub repository ChenDX404/CC-Pet (3 stars, last pushed 3mo ago), licensed MIT. It adds 4,693 tokens to every session, about $0.0188 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

Other instructions, from other repositories

vscode buildNext.instructions.md

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 · 9,715 tokens

next.js AGENTS.md

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,461 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, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

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,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens