opencode-mobile: Instructions file for Codex

AGENTS.md

opencode-mobile AGENTS.md is an instructions file for Codex, OpenCode from alvarolorentedev/opencode-mobile. It costs 2,634 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for opencode-mobile, a mobile app whose shared provider manages domain state while screens and components handle routing and display.

In plain words
What is it for?
Use them when adding screens, components, API behavior, session handling, or other changes to the app architecture.
Why use it?
They prevent business logic, network calls, and shared state from being placed in the wrong parts of the app.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 opencode-mobile AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/alvarolorentedev/opencode-mobile/agents-md"><img src="https://agentmods.dev/badge/instructions/alvarolorentedev/opencode-mobile/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,634 This file is loaded in full into every session.
When invoked 2,634 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.02634 $0.02634
Opus 5.5 $0.01054 $0.01054
Sonnet 5.5 $0.00527 $0.00527
Haiku 4.5 $0.00263 $0.00263

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

Security

Grade A, and why

opencode-mobile 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 · 180 lines

How it starts

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

AGENTS.md

Read docs/README.md first. It is the task router. Read the owning feature's AGENTS.md and only the relevant implementation documentation. Do not preload the documentation tree or invent another architecture.

Implementation ownership

  • app/: thin Expo Router entrypoints, route/layout declarations and metadata.
  • features/: product presentation, domain state/actions, services, rules and tests.
  • runtime/: cross-feature state and lifecycle composition. One application owner, one connection owner, and retained connection/project branches preserve continuity.
  • shared/: feature-independent controls, contracts, protocol, platform, storage, query infrastructure, i18n and utilities.
  • modules/: native Expo modules; preserve discovery and registered module names.
  • tests/e2e/ and tests/fake-opencode/: the behavioral contract, with central harnesses.

See feature boundaries for ownership, public APIs and the strictly limited shared UI/runtime exception.

Start here

Task touches Read before editing Validate with
Copy/translations Translations recipe npm run gen:i18n, strict i18n test
Settings or reusable UI Settings recipe, design system, owning component inventory Storybook and affected E2E
Chat/transcript Chat inventory, Chat behavior Chat/diffs E2E
Domain state/session/persistence State and data, runtime guidance Owning Vitest and full E2E
Protocol/endpoints/events API contract, ADR 0003, fake server Contract Vitest, fake-server self-test and full E2E
SSE/polling/offline Network resilience Runtime Vitest and realtime/network E2E
Logs/traces/metrics/diagnostics/remote telemetry Observability, ADR 0020 shared/observability Vitest, settings/realtime network E2E, FOSS self-test
Native/platform/config Development, integrations CI release build; local native checks when the environment supports them
Tests/fake server Validation index, strategy Cheapest sufficient level; full E2E runs on the release tag
Docs/ADR Docs router, ADR process npm run test:docs and static
Release Development, ADR 0018, integrations, updates/F-Droid Push a version tag; GitHub Actions validates, builds and distributes

Read the full file on GitHub · 180 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 Changed · +2 lines · +33 tokens per session 54b3203b7362
  2. 5d ago Changed · +35 lines · +601 tokens per session 8835bb37b122
  3. 6d ago Changed · -317 lines · -2,194 tokens per session da09deb019e6
  4. 7d ago Changed · +148 lines · +2,111 tokens per session 2170eea7e3ef
  5. 11d ago Changed · +4 lines · +69 tokens per session bb2dbca857f9
  6. 13d ago Changed · +2 lines · +45 tokens per session 3e358f3fbbb1
  7. 14d ago Changed · +18 lines · +201 tokens per session 5c3a74b45642
  8. 19d ago Changed cde84d59b3f8
  9. 20d ago Changed · +18 lines · +192 tokens per session af349934e8f2
  10. 25d ago First seen · 270 lines · 1,576 tokens per session scan A 5085efe407c0

Subscribe to this mod's changes

opencode-mobile AGENTS.md is an instructions file published in the GitHub repository alvarolorentedev/opencode-mobile (332 stars, last pushed yesterday), licensed Apache-2.0. It adds 2,634 tokens to every session, about $0.0105 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

opencode-mobile AGENTS.md compared with instructions from other repositories

opencode-mobile AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
opencode-mobile AGENTS.mdalvarolorentedev/opencode-mobileInstructions file332yesterdayApache-2.0A2,634Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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