Pixora AGENTS.md

Pixora AGENTS.md is an instructions file for Codex, OpenCode from OmoriRay/Pixora. It costs 2,106 tokens per session, scanned A, original, MIT.

Project-specific maintenance instructions for Pixora, a Windows application, including naming, documentation, build, test, release, and privacy rules.

In plain words
What is it for?
Use them when modifying Pixora, running its .NET build or smoke tests, preparing a release, or updating user-facing Chinese documentation.
Why use it?
They help a new contributor or coding assistant make changes that fit the project's conventions and avoid committing local or sensitive files.

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/omoriray/pixora/agents-md
Clone the repo
git clone --depth 1 https://github.com/OmoriRay/Pixora

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/omoriray/pixora/agents-md.svg)](https://agentmods.dev/instructions/omoriray/pixora/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/omoriray/pixora/agents-md"><img src="https://agentmods.dev/badge/instructions/omoriray/pixora/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,106 This file is loaded in full into every session.
When invoked 2,106 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.02106 $0.02106
Opus 5 $0.01053 $0.01053
Sonnet 5 $0.00421 $0.00421
Haiku 4.5 $0.00211 $0.00211

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

Security

Grade A, and why

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

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.

Pixora 接手维护说明

这份文件给后续接手项目的人和 AI 编程助手使用。修改前请先读完本文件、README.mddocs/ARCHITECTURE.mddocs/RELEASE.md,再开始动代码。

基本约定

  • 用户可见的软件名是 Pixora
  • 源码项目、命名空间、解决方案和发布包统一使用 Pixora,例如 Pixora.slnsrc\Pixoranamespace Pixora
  • Pic-OPureView 只作为旧版本兼容名称保留,用于本地数据迁移、历史 Git 记录和必要的发布说明。
  • 默认用简体中文写面向用户的说明、错误提示、发布说明和维护文档。
  • 代码、类型名、文件名、注册表项、命令和配置键保持原文。
  • 项目可以说明“由 AI 辅助编程完成”,但不要写具体 AI 工具、模型、账号、本机用户名、绝对工作目录、测试素材私有路径或访问令牌。
  • 不要提交构建产物和本地测试产物:bin/obj/publish/test-output/.artifacts*/
  • tools\SetUserFTA.exe 是用户自行放置的可选外部工具,不能提交到仓库,也不能默认内置到发布包。

快速命令

dotnet build Pixora.sln
dotnet run --project tests\Pixora.SmokeTests\Pixora.SmokeTests.csproj
.\publish.ps1 -Zip

带外部样本目录的压力测试示例:

dotnet run --project tests\Pixora.SmokeTests\Pixora.SmokeTests.csproj -- --media-folder "D:\Samples" --sample-count 50 --video-sample-count 5

检查仓库状态:

git status --short --branch

接手时先看哪里

  • README.md:面向普通用户和开源仓库首页。
  • docs\ARCHITECTURE.md:工程结构、核心流程、服务职责、设置文件和技术债。
  • docs\RELEASE.md:版本号、构建、测试、发布包检查、GitHub Release 和隐私扫描。
  • docs\HANDOFF.md:当前版本状态、接手检查、发布步骤和可安全清理的目录。
  • src\Pixora\AppInfo.cs:品牌名、数据目录、文件关联 ProgId、图标路径、旧数据迁移。
  • src\Pixora\MainWindow.xamlsrc\Pixora\MainWindow.xaml.cs:主窗口、打开图片、目录补齐、缩略图栏、快捷键入口、收藏、裁剪、压缩、壁纸、批量删除等大部分用户工作流。
  • src\Pixora\Services:图片加载、视频封面、缓存、目录索引、设置、快捷键、文件关联、收藏、压缩和错误日志。
  • tests\Pixora.SmokeTests\Program.cs:当前自动测试覆盖面,也是改动后最先跑的回归入口。

重要数据和配置

应用数据目录:

%LOCALAPPDATA%\Pixora

当前会写入或读取的主要文件:

  • viewer-settings.json:主设置、缩略图栏、排序、缓存、设置窗口位置、上次目录等。
  • shortcuts.json:快捷键配置。
  • favorites.json:收藏路径。
  • batch-compression-settings.json:批量压缩窗口上次输入和参数。
  • error.log:异常日志。
  • thumbnail-cache\:可选缩略图磁盘缓存。

旧版本数据目录是:

%LOCALAPPDATA%\Pic-O
%LOCALAPPDATA%\PureView

启动时 App.OnStartup 会调用 AppInfo.EnsureLocalDataMigrated(),只在目标文件不存在时把旧目录里的设置、快捷键、收藏和批量压缩设置复制到新目录。这个迁移是 best-effort,失败不能阻止启动。

修改功能时的检查点

图片或视频格式相关改动:

  • 同步检查 ImageCatalog 的扩展名列表。
  • 同步检查 FileAssociationService 的扩展名列表。
  • 如果是图片解码能力,检查 ImageLoader 的 WIC / Magick.NET 路径。
  • 如果是视频封面,检查 VideoThumbnailLoader 和 Shell 缩略图 fallback。
  • 更新 README.md 的限制说明和 smoke test。

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. 4d ago First seen · 160 lines · 2,106 tokens per session scan A a181effa819b

Subscribe to this mod's changes

Pixora AGENTS.md is an instructions file published in the GitHub repository OmoriRay/Pixora (20 stars, last pushed 29d ago), licensed MIT. It adds 2,106 tokens to every session, about $0.0105 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.

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 · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 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,345 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, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

next.js 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,296 tokens