cockpit-agent CLAUDE.md

cockpit-agent CLAUDE.md is an instructions file for coding agents from SuperdeMan/cockpit-agent. It costs 2,820 tokens per session, scanned A, original, Apache-2.0.

Project rules for a multi-agent smart-cockpit system, where vehicle-side agents handle quick safety-sensitive commands and cloud services coordinate more complex tasks.

In plain words
What is it for?
Use it when changing the system's protocols, gateway, agents, orchestration, memory, security, payment, or other listed components.
Why use it?
It gives contributors a shared architecture and directory map so new abilities use the correct communication, storage, security, and service boundaries.

Instructions file

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/superdeman/cockpit-agent/claude-md
Clone the repo
git clone --depth 1 https://github.com/SuperdeMan/cockpit-agent

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 cockpit-agent CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/superdeman/cockpit-agent/claude-md.svg)](https://agentmods.dev/instructions/superdeman/cockpit-agent/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/superdeman/cockpit-agent/claude-md"><img src="https://agentmods.dev/badge/instructions/superdeman/cockpit-agent/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,820 This file is loaded in full into every session.
When invoked 2,820 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.02820 $0.02820
Opus 5 $0.01410 $0.01410
Sonnet 5 $0.00564 $0.00564
Haiku 4.5 $0.00282 $0.00282

Measured 4d ago against content hash af6197a00660, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cockpit-agent CLAUDE.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 4d 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.

CLAUDE.md · 188 lines

How it starts

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

CLAUDE.md — 智能座舱 Multi-Agent 项目规则

本文件是项目最高工程约定。调整规范时先改本文档,再改实践。 架构唯一真相源:docs/architecture/cockpit-agent-architecture.md

1. 项目是什么

云边协同的智能座舱 Agent 系统:端侧快系统处理高频、确定、安全敏感指令;云侧 Planner 编排复杂、多域、多轮任务。Agent 统一使用 gRPC 契约 + Manifest,经 Registry 发现。

2. 技术栈

主要技术
Gateway Go,grpc-go,WebSocket
Orchestrator / Agent / AI 服务 Python 3.12,grpcio,FastAPI
HMI React + TypeScript + Vite
Mobile React Native + Expo + TypeScript
服务通信 gRPC;proto/ 是唯一契约源
广播 / 存储 NATS;Redis;PostgreSQL + pgvector

3. 目录约定与能力流程

目录 职责
proto/ gRPC 真相源;先改 proto,再 codegen
gateway/ edge/cloud 接入网关
orchestrator/edge/ FastIntent、端侧编排、VAL 与车控知识库
orchestrator/cloud/ Planner、Context、Loop、Executor、Aggregator
llm-gateway/ 所有 LLM/ASR/TTS/S2S/视觉调用出口
registry/ Agent 注册、发现与 PostgreSQL round-trip
memory/ 记忆、画像、关系与建议准入
agents/ 各领域 Agent;agents/_sdk 是公共 SDK
skills/ Planner guides、policies、exemplars
runtime/ 跨服务唯一判据与运行时公共件
security/ 权限、scope、审核、注入防护
payment-gateway/ 支付网关;Agent 不持支付凭证
proactive/ 主动消息全局治理
observability/ 事件、collector、trace、日志、指标
hmi/ / mobile/ / dashboard/ 三个客户端/观测界面
deploy/ Compose、Helm、K8s;不是 .env 真相源
scripts/ codegen、构建、部署、迁移、探针
test/ E2E、评测基线、旅程、CDP
docs/ 架构、设计、review、指南、历史
gen/ / certs/ / models/ 生成物或本地资产,均 gitignore,不手改/提交

关键声明只允许一份权威:

  • 车控对象/操作/风险/端侧意图:orchestrator/edge/knowledge/commands.yaml
  • 重试规则:orchestrator/cloud/retry_policy.py
  • D0/T2 流式状态:orchestrator/cloud/stream_state.py
  • 槽值形状:orchestrator/cloud/slot_shape.py
  • 候选集问答:orchestrator/cloud/candidate_query.py
  • 时间、极性、问句、安全信号等跨服务判据:runtime/
  • Planner 软知识:skills/
  • 商户能力/工具:agents/mcp_bridge/servers.yaml

不要在第二个模块复制判据、词表或声明;跨进程消费用测试对账声明源。

新增能力的标准流程

新增 Agent
  1. agents/<name>/ 建 manifest、源码、README、tests;参考现有同类 Agent。
  2. Manifest 声明 intent、权限、trust、deployment、latency、context scopes 与 capability 元数据。
  3. 继承 agents/_sdk::BaseAgent,不重新实现 gRPC 契约。
  4. 在部署配置注册服务;通过 Registry 发现,不改 orchestrator 核心路由分支。
  5. 补契约测试、黄金用例、门禁与全量验证。

Read the full file on GitHub · 188 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. 4d ago First seen · 188 lines · 2,820 tokens per session scan A af6197a00660

Subscribe to this mod's changes

cockpit-agent CLAUDE.md is an instructions file published in the GitHub repository SuperdeMan/cockpit-agent (15 stars, last pushed today), licensed Apache-2.0. It adds 2,820 tokens to every session, about $0.0141 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-30.