sessionview: Instructions file for Codex

AGENTS.md

sessionview AGENTS.md is an instructions file for Codex, OpenCode from tyql688/sessionview. It costs 2,355 tokens per session, scanned A, original, MIT.

Repository instructions for SessionView, a desktop app that collects local AI coding sessions in one place for reading, searching, analysis, export, and resuming.

In plain words
What is it for?
Use them when running, building, testing, or changing SessionView’s frontend, Rust backend, database search, desktop bundle, or headless server.
Why use it?
They document the Tauri, React, Rust, and SQLite setup and require checks to pass both with the desktop interface and in headless mode.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

This is tyql688/sessionview's own configuration. It tells Codex and OpenCode how to work on sessionview 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 sessionview configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tyql688/sessionview. 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/tyql688/sessionview/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/tyql688/sessionview

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/tyql688/sessionview/agents-md/github.svg)](https://agentmods.dev/instructions/tyql688/sessionview/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/tyql688/sessionview/agents-md"><img src="https://agentmods.dev/badge/instructions/tyql688/sessionview/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 sessionview AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tyql688/sessionview/agents-md"><img src="https://agentmods.dev/badge/instructions/tyql688/sessionview/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,355 This file is loaded in full into every session.
When invoked 2,355 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.02355 $0.02355
Opus 5.5 $0.00942 $0.00942
Sonnet 5.5 $0.00471 $0.00471
Haiku 4.5 $0.00235 $0.00235

Measured 1mo ago against content hash 145f8ad1ef15, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sessionview 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 1mo 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 · 76 lines

How it starts

The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.

SessionView

Guidance for Claude Code (claude.ai/code) and other agents working in this repository. CLAUDE.md includes this file via @AGENTS.md.

SessionView is a desktop app that brings local AI coding sessions from many tools — Claude Code, Codex, Antigravity, Kimi Code, Cursor, OpenCode, CC-Mirror, Pi, Grok Build, DSH (DeepSeek Harness), MiniMax Code, GitHub Copilot CLI, and Command Code — into one place to read, search, analyze usage, export, and resume. Stack: Tauri 2 + React 19 (with React Compiler) + Rust + SQLite (FTS5). Enforcement-mapped coding standards live in style/ts.md and style/rust.md; when this file and those disagree, those win.

Commands

# App / frontend
npm run tauri dev        # run the app with hot reload
npm run tauri build      # production bundle

# Headless server (browser shell; build dist first so it can be embedded)
npm run build && cd src-tauri && \
  cargo build --release --no-default-features --features headless
# gates must pass under BOTH feature sets: default (gui) and
# --no-default-features --features headless
npm run check            # typecheck + Biome + ESLint — the frontend gate
npm test                 # frontend tests (Vitest, run mode)
npm run knip             # dead-code / dependency audit — a release gate

# Rust backend (run from src-tauri/)
cargo test               # backend tests
cargo fmt --check        # format check
cargo clippy --all-targets --all-features -- -D warnings   # lint, CI-strict

# Release
./scripts/release.sh <version>   # bump, commit, tag, push -> CI release

Run a single test:

npm test -- src/lib/foo.test.ts               # one frontend file
npx vitest run -t "resolves subagent"         # frontend, by test name
cd src-tauri && cargo test parent_backfills   # one Rust test by name substring
cd src-tauri && cargo test --test parser_tests# one Rust integration-test file

Real-data smoke tests (src-tauri/tests/*_real_*.rs) are #[ignore] by default; run them explicitly with cargo test -- --ignored. Git hooks (lefthook) pre-commit format staged frontend files and run ESLint; pre-push runs npm run check + npm test and the Rust fmt/clippy/test gate. CI and scripts/release.sh are the source of truth for exact commands.

Read the full file on GitHub · 76 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. 1mo ago Changed · +81 tokens per session 145f8ad1ef15
  2. 1mo ago Changed · +117 tokens per session 28c851be65f8
  3. 2mo ago Changed · +1 lines · +58 tokens per session 8fae673b9a66
  4. 2mo ago First seen · 75 lines · 2,099 tokens per session scan A 6b32a1613d32

Subscribe to this mod's changes

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

Related

sessionview AGENTS.md compared with instructions from other repositories

sessionview AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sessionview AGENTS.mdtyql688/sessionviewInstructions file2017d agoMITA2,355Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode