Borrowing it
Nothing to install: this file belongs to mengrru/Spherse. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/mengrru/Spherse/main/AGENTS.mdgit clone --depth 1 https://github.com/mengrru/SpherseWrote 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.
[](https://agentmods.dev/instructions/mengrru/spherse/agents-md)<a href="https://agentmods.dev/instructions/mengrru/spherse/agents-md"><img src="https://agentmods.dev/badge/instructions/mengrru/spherse/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.
<a href="https://agentmods.dev/instructions/mengrru/spherse/agents-md"><img src="https://agentmods.dev/badge/instructions/mengrru/spherse/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.03018 | $0.03018 |
| Opus 5.5 | $0.01207 | $0.01207 |
| Sonnet 5.5 | $0.00604 | $0.00604 |
| Haiku 4.5 | $0.00302 | $0.00302 |
Grade A, and why
Spherse 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 19d 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.
How it starts
The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Spherse
一个本地运行、开箱即用的个人 Agent 运行时。多个拥有独立系统提示词、工具权限、Skill、MCP 与自动化能力的 Agent 围绕同一用户数据空间工作,并通过 HTML 与 UI SDK 构建可交互、可分发的 Agent Workspace。基于 Electron + React + Fastify,使用 pi-agent-core 作为 Agent 运行时,pi-ai 作为 LLM Provider。
设计文档:docs/official/
待办事项:docs/dev/backlog.md
文档地图
本文是 agent 与新成员的入口:只维护导航、命令和红线,细节一律单一权威来源 + 链接。目录索引见 docs/official/project-structure.md。
Package 一览
| Package | 职责 | 包级守则 |
|---|---|---|
packages/core |
纯 Node.js 核心逻辑(微内核 + Capability) | README |
packages/contracts |
跨进程边界 wire 协议(HTTP/WS schema + parser,server 与 renderer 共同依赖) | README |
packages/presets |
内置模板与预置静态内容 | README |
packages/sdk |
Agent Workspace UI SDK(注入 HTML 卡片的 bridge 脚本与宿主类型) | 遵循 docs/official/ |
packages/i18n |
i18n 基础设施与翻译资源 | README |
packages/server |
Fastify API 层 | README |
packages/app |
共享 React renderer | README(必读) |
packages/desktop |
Electron 桌面壳(main/preload/基础设施) | 遵循 docs/official/ |
packages/web |
Web 版本壳(移动端 PWA) | 遵循 docs/official/ |
packages/landing |
GitHub Pages 项目介绍页 | README(文案分层:UI chrome 走 i18n catalog,长文走三语 md) |
读:按需加载
- 全局架构、package 边界、跨包契约 →
docs/official/architecture/index.md,按任务路由查docs/official/README.md - 数据文件格式与存储约定 →
docs/official/data-conventions.md - 测试分层、选型规则、验证链 →
docs/official/testing.md - 术语对齐 / 查一个词指什么 →
docs/official/glossary.md - 目录结构 →
docs/official/project-structure.md - 包内规范 → 对应 package 的 README
- 历史决策与实施记录(容易过时) →
docs/dev/,开发新 feature 时优先参考docs/official/
写:变更 → 必须同步的文档
| 本次变更 | 需同步 |
|---|---|
| 新增/移动/删除文件、目录、package | docs/official/project-structure.md |
| 架构决策、package 边界、capability/装配、API contract 方式 | docs/official/architecture/ 对应域文件(索引见 docs/official/README.md) |
| 数据文件格式、存储位置约定 | docs/official/data-conventions.md |
| 包内编码/review 规范 | 对应 packages/{pkg}/README.md |
| 用户可见文案 | 加载 i18n skill |
| design system、主题机制、聊天 DOM/布局/CSS token | 检查 packages/presets/skills/ 下两个 theme skill |
| feature spec/plan、infra design、bugfix 分析、调研 | docs/dev/{features,infra,bugfix,investigation}/{yyyy-MM-dd-name}/ |
| 完成 backlog 条目 | docs/dev/backlog.md 删除该条,并补充新增条目 |
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.
- 19d ago Changed · +23 tokens per session e7840e7f024c
- 1mo ago Changed · +1 lines · +83 tokens per session 27e27d10def0
- 1mo ago First seen · 160 lines · 2,912 tokens per session scan A e34ccd284d1f
Spherse AGENTS.md is an instructions file published in the GitHub repository mengrru/Spherse (92 stars, last pushed 3d ago), licensed MIT. It adds 3,018 tokens to every session, about $0.0121 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-30.
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).
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.
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).
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.
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).
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.