Borrowing it
Nothing to install: this file belongs to yuluod/AllSessions. 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/yuluod/AllSessions/main/AGENTS.mdgit clone --depth 1 https://github.com/yuluod/AllSessionsWrote 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/yuluod/allsessions/agents-md)<a href="https://agentmods.dev/instructions/yuluod/allsessions/agents-md"><img src="https://agentmods.dev/badge/instructions/yuluod/allsessions/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/yuluod/allsessions/agents-md"><img src="https://agentmods.dev/badge/instructions/yuluod/allsessions/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.02070 | $0.02070 |
| Opus 5.5 | $0.00828 | $0.00828 |
| Sonnet 5.5 | $0.00414 | $0.00414 |
| Haiku 4.5 | $0.00207 | $0.00207 |
Grade A, and why
AllSessions 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 11d 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 — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AllSessions 代理工作指南
本文件适用于整个仓库。开始任务时先读取相关代码及下列任务文档;更深目录若有专门指令,按其作用范围执行。用户本次明确要求优先于项目约定。
沟通与工作方式
- 解释、进度、交付说明和新增代码注释使用中文;标识符及已有术语保持原样。
- 按“发现 → 最小方案 → 实现 → 验证”完成工作。先搜索真实文件、调用链和已有实现,不凭记忆猜结构。
- 优先使用
rg/rg --files,批量读取独立上下文;复用现有工具和模块,避免不必要的依赖与重写。 - 保留用户已有修改。开始时检查工作区,区分已有改动与本次改动;发现无法解释的并发改动时停止相关编辑并确认。
- 未经用户明确要求,不创建分支、不提交、不推送、不改写 Git 历史;不得回滚无关修改。
- 请求审查时默认只读,优先报告具体缺陷、风险和回归;用户要求修复后再改代码。
- 交付说明实际修改、验证结果和未验证部分;不把计划、模拟数据或浏览器预览当作桌面端验证成功。
项目结构与边界
AllSessions 是本地优先的 Tauri 2 桌面应用,前端为原生 JavaScript ES 模块与 CSS,后端为 Rust。正式应用不启动 HTTP 服务,也不捆绑 Node.js 运行时。
| 位置 | 职责 |
|---|---|
public/app.js |
应用装配、全局事件和初始化 |
public/app/ |
数据请求、筛选、列表、详情、导航、工作区与对话框协调 |
public/*-view.js |
对话、设置、统计、维护、更新等视图 |
public/api-client.js |
前端统一请求入口,经 Tauri request_json 调用 Rust |
public/ui-components.js、public/styles/ |
共享组件行为、视觉参数、主题和页面布局 |
public/i18n.js |
中英文文案与本地化 |
src-tauri/src/backend.rs |
IPC 请求路由与前后端契约边界 |
src-tauri/src/sessions.rs、sessions/ |
来源发现、解析、归一化、查询与变更 |
src-tauri/src/cache.rs、search.rs |
可重建的索引缓存与全文搜索 |
src-tauri/src/workspace.rs |
收藏、标签、备注、归档及本地移除状态 |
test/ |
Node 前端与发布脚本测试;Rust 测试见相应 Rust 模块 |
scripts/、.github/workflows/ |
许可证、版本准备、构建、持续集成与发布 |
前端消费归一化契约,不解析 Agent 原始格式;变更请求或事件时同时检查 Rust 路由与前端调用方。普通浏览器缺少 Tauri 运行时,不能据此加入生产 HTTP 回退或成功形状的模拟数据。
按任务阅读
- 产品行为、开发环境及用户配置:README.zh-CN.md、README.md。以代码、配置和测试核对可能过时的说明。
- UI、组件、主题:docs/ui-components.md。
- 来源、缓存、监听和归一化:docs/source-adapters.md,再阅读对应
docs/sources/文档。 - Codex Provider 维护:docs/codex-provider-repair.zh-CN.md。
- 数据保护与安全边界:SECURITY.md。
- 打包、更新与发布:
package.json、src-tauri/tauri.conf.json、对应scripts/脚本和.github/workflows/。
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.
- 11d ago First seen · 90 lines · 2,070 tokens per session scan A 5805f2c26d25
AllSessions AGENTS.md is an instructions file published in the GitHub repository yuluod/AllSessions (4 stars, last pushed today), licensed Apache-2.0. It adds 2,070 tokens to every session, about $0.0083 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-10-19.
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.