Spherse AGENTS.md

Spherse AGENTS.md is an instructions file for Codex, OpenCode from mengrru/Spherse. It costs 2,912 tokens per session, scanned A, original, MIT.

A set of instructions for working on Spherse, a local app that runs multiple coding agents with their own tools and permissions. It maps the project’s packages and points agents to the right design and development documents.

In plain words
What is it for?
Use it when changing Spherse’s core, server, desktop, web, UI, SDK, translation, or documentation packages, especially when work crosses package boundaries.
Why use it?
It helps an agent find the relevant rules and documentation without loading the whole project at once. It also keeps code changes and required documentation updates aligned.

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/mengrru/spherse/agents-md
Clone the repo
git clone --depth 1 https://github.com/mengrru/Spherse

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mengrru/spherse/agents-md.svg)](https://agentmods.dev/instructions/mengrru/spherse/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/mengrru/spherse/agents-md"><img src="https://agentmods.dev/badge/instructions/mengrru/spherse/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,912 This file is loaded in full into every session.
When invoked 2,912 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.02912 $0.02912
Opus 5 $0.01456 $0.01456
Sonnet 5 $0.00582 $0.00582
Haiku 4.5 $0.00291 $0.00291

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

Security

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 5d 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 · 160 lines

How it starts

The opening of the file, as written. The whole thing — 160 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 项目介绍页 遵循 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 删除该条,并补充新增条目

Read the full file on GitHub · 160 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. 5d ago First seen · 160 lines · 2,912 tokens per session scan A e34ccd284d1f

Subscribe to this mod's changes

Spherse AGENTS.md is an instructions file published in the GitHub repository mengrru/Spherse (61 stars, last pushed yesterday), licensed MIT. It adds 2,912 tokens to every session, about $0.0146 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.