gitpic: Instructions file for Codex

AGENTS.md

gitpic AGENTS.md is an instructions file for Codex, OpenCode from tarnish233/gitpic. It costs 4,708 tokens per session, scanned A, original, MIT.

Repository-specific instructions for gitpic, a Rust command-line program for uploading and managing images with GitHub. They describe its files, setup, commands, coding style, and testing expectations.

In plain words
What is it for?
Use them when developing, testing, or reviewing changes in the gitpic codebase.
Why use it?
They give coding agents the project context needed to make changes that fit the repository and follow its conventions.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions .claude-plugin; mentions Claude Code; mentions Codex.

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is cd ../gitpic-feat-my-thing && . .local/env.sh.

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tarnish233/gitpic/agents-md"><img src="https://agentmods.dev/badge/instructions/tarnish233/gitpic/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,708 This file is loaded in full into every session.
When invoked 4,708 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.04708 $0.04708
Opus 5.5 $0.01883 $0.01883
Sonnet 5.5 $0.00942 $0.00942
Haiku 4.5 $0.00471 $0.00471

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

Security

Grade A, and why

gitpic 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 2mo 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 · 243 lines

How it starts

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

Repository Guidelines

Project Structure & Module Organization

gitpic is a Rust CLI. Source lives in src/:

  • main.rs — entry point, subcommand dispatch, exit codes.
  • cli.rs — clap argument/subcommand definitions.
  • config.rs — config model + XDG path resolution (~/.config/gitpic/config.toml).
  • auth.rs — the credential: reads/writes the 0600 auth.toml that gitpic auth login produces, and is the only source there is. No secret is held in Config.
  • oauth.rs — GitHub device flow: the wire protocol behind gitpic auth login.
  • github.rs — GitHub Contents API client (upload, dedup, health checks).
  • naming.rs, link.rs, imageproc.rs, output.rs, error.rs — path/hash, URL/markdown, compression, human/JSON output, error types.
  • history.rs — the upload log the app's 历史 pane reads.
  • release.rs — the update check behind gitpic update check: version parsing and comparison, the releases/latest fetch, and the release's assets (name, size, download URL, GitHub's digest) that the app installs an update from. The origin is a compile-time constant on purpose, pinned by a test — its text is rendered inside GitPic's own window, so nothing configurable may choose it, and download URLs come from the API rather than a template for the same reason.
  • install_source.rs — which of the three ways this binary was installed (inside GitPic.app, cargo install, or unknown), so gitpic update prints the one upgrade command that install actually wants instead of two to choose between. Canonicalises current_exe() first: the app links ~/.local/bin/gitpic into the bundle, so the commonest install of all is invoked through a symlink, and on Apple platforms the un-canonicalised path is that symlink — which classifies it as neither an app nor a cargo bin and prints "download it again" for the one install that updates itself.
  • testutil.rs — #[cfg(test)] only: the loopback stub server, a canned response, and the request reader shared by github's and release's tests. One sock.read is not a whole request; the module says what that cost twice.
  • commands/ — one module per action (upload, auth_cmd, repos, branches, doctor, list, config_cmd, completion, skill, update).

Read the full file on GitHub · 243 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. 2mo ago Changed · +8 lines · +211 tokens per session a6d66373866d
  2. 2mo ago Changed · -68 lines · -1,157 tokens per session cc6deeed577e
  3. 2mo ago First seen · 303 lines · 5,654 tokens per session scan A c53a8ac0ea29

Subscribe to this mod's changes

gitpic AGENTS.md is an instructions file published in the GitHub repository tarnish233/gitpic (20 stars, last pushed 2mo ago), licensed MIT. It adds 4,708 tokens to every session, about $0.0188 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

gitpic AGENTS.md compared with instructions from other repositories

gitpic AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gitpic AGENTS.mdtarnish233/gitpicInstructions file202mo agoMITA4,708Codex, 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