ampere AGENTS.md

Project instructions for Ampere, a Kotlin Multiplatform system designed to make AI reasoning visible. Its main rules are stored in concept files that describe required behavior and forbidden patterns.

In plain words
What is it for?
Use it before changing files covered by a concept file, and again before opening a pull request. It helps identify the relevant design rules, update verification dates, and record newly discovered anti-patterns.
Why use it?
It ensures code changes follow the project's documented assumptions and that those assumptions are updated when the implementation changes them.

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

Made for: Codex, OpenCode.

Per session 1,694 This file is loaded in full into every session.
When invoked 1,694 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.01694 $0.01694
Opus 5 $0.00847 $0.00847
Sonnet 5 $0.00339 $0.00339
Haiku 4.5 $0.00169 $0.00169

Measured 2d ago against content hash f7895457f689, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ampere 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 · 156 lines

How it starts

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

AGENTS.md

Ampere is a transparent cognitive engine built in Kotlin Multiplatform, where AI reasoning is visible by design. Read SOUL.md for project philosophy and values.

Concepts

This repo's load-bearing primitives are documented as concept cells in docs/concepts/. The index is at docs/concepts/_index.md.

Before starting any task:

  • Read docs/concepts/_index.md.
  • For any concept whose tracked_sources include files you will touch, read that concept file in full before writing code. Treat the Invariants and Anti-patterns sections as binding.

When your changes touch tracked_sources:

  • Re-read the concept file before opening the PR.
  • If your changes confirm the concept as written, update last_verified to today's date. No other change required.
  • If your changes contradict the concept (new invariant, retired one, changed file path, new common operation), update the relevant sections.
  • If you discover a wrong assumption you almost made, add it to Anti-patterns with one sentence of reasoning.
  • The concept file update is part of your diff. Do not split it into a follow-up PR.

Commit trailers:

  • When a commit touches tracked_sources for a concept and you have verified the concept is still accurate without changing the file, include the trailer Concept-Verified: <ConceptName> in the commit message. This satisfies the validator without requiring a separate last_verified bump.

Development Commands

Build & Test

./gradlew build                        # Build the project
./gradlew allTests                     # Run all tests
./gradlew jvmTest                      # Run JVM-specific tests (fastest, primary gate)
./gradlew iosSimulatorArm64Test        # Run iOS tests (Apple Silicon simulator)
./gradlew run                          # Run desktop application
./gradlew installDebug                 # Run Android app
./gradlew package                      # Package desktop app for distribution

Read the full file on GitHub · 156 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 First seen · 156 lines · 1,694 tokens per session scan A f7895457f689

Subscribe to this mod's changes

ampere AGENTS.md is an instructions file published in the GitHub repository socket-link/ampere (39 stars, last pushed 9d ago), licensed Apache-2.0. It adds 1,694 tokens to every session, about $0.0085 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.

Related

Other instructions, from other repositories