Ataru: Instructions file for Codex

AGENTS.md

Ataru AGENTS.md is an instructions file for Codex, OpenCode from lovstudio/Ataru. It costs 1,838 tokens per session, scanned A, original, Apache-2.0.

Repository-specific instructions for Codex, an AI coding assistant, covering the project's design rules, search model, common interface patterns, and development commands.

In plain words
What is it for?
Use them when editing Ataru, a desktop app for finding useful context in AI coding-tool histories, particularly when working on its interface or search behavior.
Why use it?
They help the assistant make changes that match Ataru's existing structure and appearance instead of relying on assumptions.

Instructions file for CodexOpenCode

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

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

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/mark/lovstudio/vault/design/design-guide.md.

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/lovstudio/ataru/agents-md"><img src="https://agentmods.dev/badge/instructions/lovstudio/ataru/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,838 This file is loaded in full into every session.
When invoked 1,838 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.01838 $0.01838
Opus 5.5 $0.00735 $0.00735
Sonnet 5.5 $0.00368 $0.00368
Haiku 4.5 $0.00184 $0.00184

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

Security

Grade A, and why

Ataru 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 · 107 lines

How it starts

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

AGENTS.md

This file provides guidance to Codex (Codex.ai/code) when working with code in this repository.

Design System

This project uses Lovstudio Warm Academic Style (暖学术风格)

Reference complete design guide: file:///Users/mark/lovstudio/vault/design/design-guide.md

Quick Rules

  1. 禁止硬编码颜色:必须使用 semantic 类名(如 bg-primary、text-muted-foreground)
  2. 字体配对:标题用 font-serif,正文用默认 font-sans
  3. 圆角风格:使用 rounded-lg、rounded-xl、rounded-2xl
  4. 主色调:陶土色(按钮/高亮)+ 暖米色背景 + 炭灰文字
  5. 组件优先:优先使用 shadcn/ui 组件

Color Palette

  • Primary: #CC785C (陶土色 Terracotta)
  • Background: #F9F9F7 (暖米色 Warm Beige)
  • Foreground: #181818 (炭灰色 Charcoal)
  • Border: #E8E6DC

Common Patterns

  • 主按钮: bg-primary text-primary-foreground hover:bg-primary/90
  • 卡片: bg-card border border-border rounded-xl
  • 标题: font-serif text-foreground

Project Overview

Ataru is a local-first AI conversation recall desktop app built with Tauri 2 + React 19 + TypeScript. It focuses on searching and recovering useful context from AI coding tool histories while retaining the legacy Lovcode CLI as a compatibility alias and preserving storage contracts.

Search Domain Model

Ataru 的公开搜索层级固定为 turn → run → session → project:

  • Turn:最小原子 transcript item,例如一条用户消息、AI 回复、工具调用或工具结果;Turn 不拥有标题。
  • Run:一次完整执行,从用户提出问题开始,到 AI 完成最终回应结束,包含多个 Turn。底层索引继续使用兼容字段 round_index / round_prompt,公开 API 使用 runIndex / runPrompt。
  • Session:同一来源的一段连续对话,包含多个 Run。
  • Project:一个工作目录及其历史 Session 集合。

UI 和搜索契约不得把 Turn 展示成“用户问题 + AI 完整回复”;那是 Run 的语义。Turn 结果应展示消息类型、正文、命中位置和所属 Run 上下文;Run 结果才可以使用用户首句作为标题。禁止为 Turn 或 Run 使用 Untitled turn、未命名回合 之类的标题占位。

Commands

# Frontend development (hot reload)
pnpm dev

# Type check + production build
pnpm build

# Run Tauri desktop app (auto-starts pnpm dev)
pnpm tauri dev

# Build distributable
pnpm tauri build

Architecture

Dual-layer architecture:

  • src/ - React frontend (Vite, port 1420)
  • src-tauri/ - Rust backend (Tauri 2)

Read the full file on GitHub · 107 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 First seen · 107 lines · 1,838 tokens per session scan A 198e05878a95

Subscribe to this mod's changes

Ataru AGENTS.md is an instructions file published in the GitHub repository lovstudio/Ataru (361 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 1,838 tokens to every session, about $0.0074 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

Other instructions, from other repositories