keynobi: Instructions file for Codex

AGENTS.md

keynobi AGENTS.md is an instructions file for Codex, OpenCode from thiagodmont/keynobi. It costs 1,076 tokens per session, scanned A, original, MIT.

Instructions for Keynobi, a desktop Kotlin code tool built with Tauri, SolidJS, Rust, and a Kotlin language server. A language server provides editor features such as code understanding and diagnostics.

In plain words
What is it for?
Adding or changing Kotlin parsing, project search, editor intelligence, desktop commands, generated TypeScript types, and frontend or Rust tests.
Why use it?
They explain the project's architecture and security rules so changes fit the existing Rust-to-frontend communication, parsing, search, and testing patterns.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/thiagodmont/keynobi/agents-md"><img src="https://agentmods.dev/badge/instructions/thiagodmont/keynobi/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,076 This file is loaded in full into every session.
When invoked 1,076 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.01076 $0.01076
Opus 5.5 $0.00430 $0.00430
Sonnet 5.5 $0.00215 $0.00215
Haiku 4.5 $0.00108 $0.00108

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

Security

Grade A, and why

keynobi 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 · 68 lines

How it starts

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

AGENTS.md

Keynobi is a macOS companion app for Android development: Gradle builds, logcat, devices, UI hierarchy, and an MCP server for AI clients. Tauri 2 (Rust, tokio) backend, SolidJS + TypeScript + Vite frontend, ts-rs for IPC types, rmcp for MCP.

Commands

npm ci                     # install
npm run tauri dev          # run the app (first Rust build takes minutes)
npm run dev:web            # frontend only, against the mock backend
npm run generate:bindings  # after changing Rust models; commit src/bindings/

Where to Look

Task Read
Any change references/BEST_PRACTICES.md, references/CODE_PATTERN.md
Build, logcat, devices, layout, settings references/DOMAIN_PATTERNS.md
MCP tools, prompts, resources references/MCP_SERVER.md
UI components, styling, accessibility references/DESIGN_SYSTEM.md
User-visible behavior, shortcuts references/USER_MANUAL.md

Each reference doc ends with Known Gaps: rules the code does not meet yet. Do not copy a known gap into new code.

Key Rules

  • Layering: components → stores/services → src/lib/tauri-api.ts → Tauri commands → Rust services. Only tauri-api.ts calls invoke; commands validate and delegate.
  • IPC contract: a command change updates the Rust handler, generate_handler! in lib.rs, the tauri-api.ts wrapper, and the mock backend together. After changing Rust models, run npm run generate:bindings and npm run generate:ipc-fixtures; import IPC types from @/bindings and never edit generated files.
  • One implementation per behavior: Tauri commands and MCP tools call the same service function. Never copy logic into mcp_server.rs.
  • Process model: keynobi --mcp attaches to the running app when it can (the app serves the session on its own state) and otherwise runs standalone with its own state, which the GUI does not see. See references/MCP_SERVER.md § Modes.
  • Untrusted input: validate identifiers with utils/validation.rs and paths with utils/path.rs (canonicalized, never raw starts_with). Arguments to adb shell are re-parsed by the device shell.
  • Rust: no unwrap() in production code; new commands return Result<T, AppError>; never hold a Mutex across .await; every growing collection has a named cap.
  • Frontend: register shortcuts with registerKeyAndAction() in App.tsx; build UI from @/components/ui primitives and theme tokens.
  • User data: tests must never read or write ~/.keynobi. Unit tests get a temp data directory automatically (cfg(test) in settings_manager); integration tests must call tests/common::isolate_data_dir() first. CI fails if a test creates ~/.keynobi.

Read the full file on GitHub · 68 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 · +32 tokens per session b1aa7b799982
  2. 1mo ago Changed · -19 lines · -130 tokens per session 071145a4434a
  3. 2mo ago First seen · 87 lines · 1,174 tokens per session scan A 25c4e395a413

Subscribe to this mod's changes

keynobi AGENTS.md is an instructions file published in the GitHub repository thiagodmont/keynobi (202 stars, last pushed 18d ago), licensed MIT. It adds 1,076 tokens to every session, about $0.0043 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

keynobi AGENTS.md compared with instructions from other repositories

keynobi AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
keynobi AGENTS.mdthiagodmont/keynobiInstructions file20218d agoMITA1,076Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k2d agoMITA4,313Codex, OpenCode