AllSessions: Instructions file for Codex

AGENTS.md

AllSessions AGENTS.md is an instructions file for Codex, OpenCode from yuluod/AllSessions. It costs 2,070 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for coding agents working on the AllSessions application. They describe where the code lives, how to investigate tasks, what conventions to follow, and how to report work.

In plain words
What is it for?
Use them when inspecting, changing, testing, or reviewing AllSessions code, including its JavaScript interface, Rust backend, search, workspace data, and translations.
Why use it?
They give an agent project-specific boundaries instead of relying on guesses or generic habits. They also reduce accidental changes, such as rewriting unrelated work or skipping validation.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Codex.

This is yuluod/AllSessions's own configuration. It tells Codex and OpenCode how to work on AllSessions itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything AllSessions configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/yuluod/AllSessions/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/yuluod/AllSessions

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/yuluod/allsessions/agents-md/github.svg)](https://agentmods.dev/instructions/yuluod/allsessions/agents-md)
Your own site
<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.

agentmods 80×15 button for AllSessions AGENTS.md

Your own site · 80×15
<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>
Per session 2,070 This file is loaded in full into every session.
When invoked 2,070 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.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

Measured 11d ago against content hash 5805f2c26d25, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

AGENTS.md · 90 lines

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 回退或成功形状的模拟数据。

按任务阅读

Read the full file on GitHub · 90 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. 11d ago First seen · 90 lines · 2,070 tokens per session scan A 5805f2c26d25

Subscribe to this mod's changes

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.

Related

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).

microsoft/vscode · 9,715 tokens

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.

vercel/next.js · 7,461 tokens

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).

microsoft/vscode · 5,262 tokens

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.

langchain-ai/langchain · 4,680 tokens

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).

microsoft/vscode · 2,750 tokens

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.

deepseek-ai/deepseek-harness · 4,261 tokens