pi-jarvis: Instructions file for Codex

AGENTS.md

pi-jarvis AGENTS.md is an instructions file for Codex, OpenCode from crustyhacker/pi-jarvis. It costs 7,602 tokens per session, scanned A, original, MIT.

Project instructions for Pi Jarvis, a Pi extension that opens a side conversation in a terminal interface. They document its files, supported runtime, model selection commands, and memory and archive components.

In plain words
What is it for?
Use them when working on the Jarvis overlay, model or thinking commands, configuration, memory, archives, or Pi integration.
Why use it?
They give an agent the exact project rules and current behavior needed to change the extension safely. They also state when the side session must not start.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 pi-jarvis AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/crustyhacker/pi-jarvis/agents-md"><img src="https://agentmods.dev/badge/instructions/crustyhacker/pi-jarvis/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,602 This file is loaded in full into every session.
When invoked 7,602 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.07602 $0.07602
Opus 5.5 $0.03041 $0.03041
Sonnet 5.5 $0.01520 $0.01520
Haiku 4.5 $0.00760 $0.00760

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

Security

Grade A, and why

pi-jarvis 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 25d 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 · 137 lines

How it starts

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

pi-jarvis Agent Notes

Project Scope

  • pi-jarvis is a Pi extension that opens a /jarvis side-conversation overlay.
  • Core runtime files: index.ts, side-session.ts, native-mcp.ts, overlay.ts, overlay-layout.ts, draft-editor.ts, transcript-viewport.ts, jarvis-branding.ts, model-picker.ts, jarvis-config.ts, session-ref.ts, memory-{types,config,content,store,service,extension,editor-types,editor,editor-controller}.ts, and archive-{types,config,store,service,extension,import,crypto,sqlite,keychain,unlock,secret-input,vault-files,vault,migration}.ts.
  • Current baseline: Pi 1.0.0 (@earendil-works packages), Node.js >=22.19.0. Older Pi hosts are not supported.

Current /jarvis-model and /jarvis-thinking Behavior

  • /jarvis requires ctx.mode === "tui"; other modes must not boot or prompt a hidden side session.
  • /jarvis-model with no request opens a searchable host-registry model picker in TUI mode; other modes report status.
  • /jarvis-model <provider/model> writes a project-scoped override to .pi/jarvis.json.
  • /jarvis-model --global <provider/model> writes the default global override to the active Pi agent directory's extensions/pi-jarvis.json (by default ~/.pi/agent/extensions/pi-jarvis.json).
  • /jarvis-model [--project|--global] follow-main stores a scoped follow-main override.
  • /jarvis-model [--project|--global] clear removes that scope's override so fallback applies.
  • /jarvis-thinking [--project|--global] auto|follow-main|off|minimal|low|medium|high|xhigh|max stores a scoped thinking override without changing the main session thinking level.
  • /jarvis-thinking [--project|--global] clear removes that scope's thinking override so fallback applies.
  • Resolution order is: project config, then global config, then built-in defaults (follow-main for model, auto for thinking). Global writes never override an active project setting.
  • Config writes use atomic same-directory replacement. Malformed shared JSON requires manual repair: model/thinking set/clear must never replace/delete it and reset unknown memory privacy controls. Keep I/O errors distinct and parser input snippets out of UI errors. Legacy model/thinking cross-process writes remain unlocked.
  • auto thinking follows main only when /jarvis follows the main model; pinned /jarvis models default to thinking off.
  • follow-main thinking follows the main thinking level regardless of model selection, except xAI /jarvis models force thinking off.
  • /compact, /tree, and /new entered inside /jarvis operate on the isolated /jarvis side-session, not the main Pi session.
  • Note main and Redirect stay disabled when the active /jarvis model is incompatible with bridge tools.
  • Published packages keep Pi runtime packages as optional peers, not bundled dependencies. Never load the legacy MCP adapter. Version 1.6.0 adds native MCP to Repo tools opt-in alongside read/bash/edit/write.
  • Physical models delegate to the host's public registry for auth and dispatch. Virtual/router models explicitly reject; do not access the registry's private backing runtime.
  • Side resources/settings honor ctx.isProjectTrusted(). Local tool execution and bridge delivery recheck live permissions. Ordinary overlay close hides presentation without stopping assigned work or clearing its three grants; cancel pending confirmations and refuse new invisible reviews. Grants are in-memory, scoped to the current main/side owner, not saved across restart/reload. Explicit access-off, observed trust denial, side /new, reference/main replacement and teardown revoke them. Archive private-input preparation explicitly revokes transient grants before closing/yielding.
  • Use agent_settled, not agent_end, for final idle state. Main context must honor Pi context-edit/compaction projection.
  • Runtime disposal must not detach the overlay's bridge subscription. Queue ownership must survive side /new but not main-session replacement; failed/uncertain sends are not auto-retried.

Read the full file on GitHub · 137 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. 25d ago Changed · +9 lines · +807 tokens per session dcc152681cf9
  2. 26d ago First seen · 128 lines · 6,795 tokens per session scan A 9d2f5e240baf

Subscribe to this mod's changes

pi-jarvis AGENTS.md is an instructions file published in the GitHub repository crustyhacker/pi-jarvis (21 stars, last pushed 26d ago), licensed MIT. It adds 7,602 tokens to every session, about $0.0304 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-10-11.

Related

pi-jarvis AGENTS.md compared with instructions from other repositories

pi-jarvis AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pi-jarvis AGENTS.mdcrustyhacker/pi-jarvisInstructions file2126d agoMITA7,602Codex, 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