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

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/chendx404/cc-pet/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.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.svg" alt="Measured on agentmods" 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. 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.04693 $0.04693
Opus 5 $0.02346 $0.02346
Sonnet 5 $0.00939 $0.00939
Haiku 4.5 $0.00469 $0.00469

Measured 3d ago against content hash 018a3dd55182, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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. 3d 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 (2 stars, last pushed 1mo ago), licensed MIT. It adds 4,693 tokens to every session, about $0.0235 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-31.

Related

Other instructions, from other repositories

clippy-pet AGENTS.md

AGENTS.md instructions for adammatthewsteinberger/clippy-pet, covering agents.md, what this project is, repository map, setup and everyday commands and hard invariants — do not break these.

adammatthewsteinberger/clippy-pet · 2,040 tokens

clippy-pet CLAUDE.md

Claude Code instructions for adammatthewsteinberger/clippy-pet: This project's agent instructions live in AGENTS.md — read that first for the repo map, setup/validate/lint/docs commands, the v2 spritesheet's hard invariants, the GitFlow branching model, the PR checklist, and the release process.

adammatthewsteinberger/clippy-pet · 178 tokens

clippy-pet GEMINI.md

Gemini CLI instructions for adammatthewsteinberger/clippy-pet: This project's agent instructions live in AGENTS.md — read that first for the repo map, setup/validate/lint/docs commands, the v2 spritesheet's hard invariants, the GitFlow branching model, the PR checklist, and the release process.

adammatthewsteinberger/clippy-pet · 112 tokens

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 · 6,785 tokens

spec-kit AGENTS.md

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

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