anarlog AGENTS.md

Repository-specific instructions for Anarlog, a note-taking application with desktop and web versions, covering its commands, data storage, editor, and pre-commit checks.

In plain words
What is it for?
Use them when changing the desktop or web app, TypeScript or Rust code, database schemas, editor behavior, or command-line and development workflows.
Why use it?
They show contributors which tools and tests to run and which parts of the application own each kind of data or behavior.

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

Made for: Codex, OpenCode.

Per session 2,022 This file is loaded in full into every session.
When invoked 2,022 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.02022 $0.02022
Opus 5 $0.01011 $0.01011
Sonnet 5 $0.00404 $0.00404
Haiku 4.5 $0.00202 $0.00202

Measured today against content hash 627b215bb0cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

anarlog 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 today.

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 · 86 lines

How it starts

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

Overview

Tauri desktop note-taking app (apps/desktop/) with a web app (apps/web/). Uses pnpm workspaces. SQLite is the primary data store (schema and migrations in crates/db-app/, desktop transport in plugins/db/), Zustand is used for UI state, and ProseMirror powers the editor (packages/editor, via @handlewithcare/react-prosemirror); documents are stored as TipTap-dialect ProseMirror JSON (converters/validation in crates/tiptap). Sessions are the core entity — all notes are backed by sessions.

Commands

  • Format: pnpm exec dprint fmt
  • Typecheck (TS): pnpm -r typecheck
  • Typecheck (Rust): cargo check
  • Desktop dev: turbo dev:desktop
  • Web dev: turbo dev:web
  • Dev docs: https://docs.anarlog.so

Pre-commit verification

  • Before every commit, run the locally available checks from the CI workflows affected by the changed paths. Do not defer routine validation to CI.
  • Always run pnpm exec dprint fmt, then pnpm fmt:check.
  • For TypeScript changes, run the affected package's typecheck and tests. For desktop changes, run pnpm -F desktop typecheck and pnpm -F desktop test; use pnpm -r typecheck when changes span packages.
  • For desktop TypeScript changes, run the CI lint command: pnpm exec oxlint --quiet --format=github apps/desktop/src/.
  • When desktop translated copy, message extraction, or catalogs may change, run pnpm -F desktop exec lingui extract --clean --workers 1 and pnpm -F desktop exec lingui compile --strict --workers 1, include all generated apps/desktop/src/i18n/locales changes, and rerun until generation is stable. When there is no intentional uncommitted catalog diff, run the exact CI check: pnpm -F desktop i18n:check.
  • For Rust changes, run cargo check and the affected package tests. Match stricter workflow commands such as cargo clippy --locked ... -D warnings when the changed paths trigger them.
  • Check the relevant .github/workflows/*_ci.*, fmt.yaml, and lint.yaml files for package-specific tests, generated-file checks, or build validation, and run the locally reproducible commands before committing.
  • If a required check fails, fix it before committing. If a check cannot run locally because of platform, secrets, or unavailable infrastructure, report the exact skipped command and reason; do not claim full validation.

Read the full file on GitHub · 86 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. today Changed · -10 tokens per session 627b215bb0cb
  2. 2d ago First seen · 86 lines · 2,032 tokens per session scan A 89d31b9527b8

Subscribe to this mod's changes

anarlog AGENTS.md is an instructions file published in the GitHub repository fastrepl/anarlog (9,219 stars, last pushed today), licensed MIT. It adds 2,022 tokens to every session, about $0.0101 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.