sessionview AGENTS.md

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

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

Made for: Codex, OpenCode.

Per session 2,099 This file is loaded in full into every session.
When invoked 2,099 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.02099 $0.02099
Opus 5 $0.01050 $0.01050
Sonnet 5 $0.00420 $0.00420
Haiku 4.5 $0.00210 $0.00210

Measured 2d ago against content hash 6b32a1613d32, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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 · 75 lines

How it starts

The opening of the file, as written. The whole thing — 75 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, and DSH (DeepSeek Harness) — 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 · 75 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. 2d 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 (15 stars, last pushed 14d ago), licensed MIT. It adds 2,099 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.