immichctrl AGENTS.md

Repository instructions for working on the immichctrl project, including required setup, checks, safety rules, and handoffs between sessions.

In plain words
What is it for?
Use them when changing immichctrl to learn which files to read, which tests or checks to run, and how to pass durable notes to another session.
Why use it?
They give coding agents the project-specific rules needed to work consistently and report completion accurately.

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/lidless-labs/immichctrl/agents-md
Clone the repo
git clone --depth 1 https://github.com/lidless-labs/immichctrl

Made for: Codex, OpenCode.

Per session 1,086 This file is loaded in full into every session.
When invoked 1,086 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.01086 $0.01086
Opus 5 $0.00543 $0.00543
Sonnet 5 $0.00217 $0.00217
Haiku 4.5 $0.00109 $0.00109

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

Security

Grade A, and why

immichctrl 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 · 77 lines

How it starts

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

AGENTS.md - Working In This Repo

This repo is Brigade-wired. These are the operating rules for any agent working here.

Every Session

For substantial work, first gather context:

  1. Read this file - operating rules and the memory handoff contract.
  2. Read the repo's README and CONTRIBUTING (if present) for build, test, and style expectations.
  3. Skim your harness's handoff inbox (.claude/memory-handoffs/) for recent notes from other sessions.
  4. Read SAFETY_RULES.md once. Hard boundaries.

For tiny read-only commands, do the command directly and avoid loading unrelated context. Do not ask permission for normal context gathering.

Definition of Done

Before you report work as complete:

  1. Run the project's checks (tests, linters, type checks, build). If you do not know them, look in README, CONTRIBUTING, pyproject.toml / package.json, or the CI config before guessing.
  2. Report the actual result. Never claim success you did not observe; paste the command you ran and its output.
  3. If a check could not run, say so and name the blocker instead of guessing.
  4. If the session produced durable knowledge, confirm a Memory Handoff was written (see below).

Memory Owner

The configured memory owner is claude. Side harnesses may keep local session context, but durable knowledge must be written as a Memory Handoff in your harness's own inbox (.claude/memory-handoffs/). The memory owner ingests those handoffs into canonical durable memory; reviewed repo-local notes land under .learnings/.

If you are not the memory owner, do not edit SAFETY_RULES.md, rules/, or .learnings/ as canonical memory unless the user explicitly asks for that file edit. Do not create a second canonical memory system.

Memory Handoff (Mandatory)

If a session discovers durable knowledge - architecture decisions, workflow changes, non-obvious fixes, setup gotchas, security findings, reusable commands, durable research, or user preferences - create a handoff at the end of the task.

Read the full file on GitHub · 77 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 · 77 lines · 1,086 tokens per session scan A 0f23a2bd6467

Subscribe to this mod's changes

immichctrl AGENTS.md is an instructions file published in the GitHub repository lidless-labs/immichctrl (5 stars, last pushed 1mo ago), licensed MIT. It adds 1,086 tokens to every session, about $0.0054 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-31.