githits-cli: Instructions file for Codex

AGENTS.md

githits-cli AGENTS.md is an instructions file for Codex, OpenCode from githits-com/githits-cli. It costs 3,768 tokens per session, scanned A, original, Apache-2.0.

Project instructions for GitHits, a service and command-line tool for searching code examples. They describe how an AI coding assistant should plan, design, test, and document changes.

In plain words
What is it for?
Use them when working on the GitHits backend, including architecture decisions, development planning, testing, dependency design, and code-example search.
Why use it?
They give the assistant consistent rules for maintainable code and prevent it from making unverified changes too quickly. They also explain when to consult more detailed project documentation.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 githits-cli AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/githits-com/githits-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/githits-com/githits-cli/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,768 This file is loaded in full into every session.
When invoked 3,768 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.03768 $0.03768
Opus 5.5 $0.01507 $0.01507
Sonnet 5.5 $0.00754 $0.00754
Haiku 4.5 $0.00377 $0.00377

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

Security

Grade A, and why

githits-cli 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 18d 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 · 248 lines

How it starts

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

githits Agent Instructions

GitHits companion for the backend - provides MCP server and command-line tools for code example search.

We strive to produce high quality code that can easily be maintained. Focus is on long term development speed, not on quick wins.

This document contains the most important instructions that need to be kept always in context.

General

  • Use very concise output and neutral tone
  • If unclear about anything or stuck, please stop and ask for clarification
  • Always verify assumptions
  • Don't jump into coding, plan and assess the impact first
  • Read more detailed documentation when needed
  • Remember your MCP tools and use them when needed

Architecture

Philosophy: "Create architecture that is performant and easy to test"

  • Focus on building structures that are performant and scalable
  • Build architecture that is easy to test
  • Isolate functionality into sensible small modules
  • Follow single responsibility principle
  • Prefer public helper modules to lots of private methods
  • Use dependency injection for external services (REST client, etc.)
  • Do not eagerly validate network/proxy/environment configuration while constructing command dependencies when the command has local-only or no-network paths. Defer validation until the first network operation and add regression tests for malformed env values on local paths.
  • GitHits information tools advertise readOnlyHint: true, including internal result storage, caching, preparation, and research-thread state. Keep this policy covered by catalog tests; assess any future user-facing write tool separately.
  • For MCP/agent-facing tools, avoid coupled optional flags and default-true booleans. Design schemas for real agent calls, including empty strings, empty arrays, and explicit false values.
  • For MCP tool discovery, treat the tool name plus the first description sentence as a standalone selection surface. A verified claude.ai deferred-tool catalog rendered at most 80 characters: a sentence longer than 79 characters appeared as its first 79 plus an ellipsis, while connector descriptions and MCP server instructions did not reach selection. Lead with the natural user question and the tool's distinct job, keep that sentence within 79 characters when it must render whole, and avoid internal periods (including abbreviations, version literals, and filenames) because the observed sentence boundary is otherwise ambiguous. Keep registry counts/lists, argument mechanics, and follow-up routing after it. Also keep the first 80 raw description characters useful for clients that expose a raw prefix. Do not rely on neighboring tools for context. Add first-sentence/first-80 contract tests and run descriptor-only agent evals for description changes.
  • For GraphQL/API-backed tools, treat minimal data fetching as part of the tool contract. Before adding or changing selected fields, compare the query against every consumer (text, verbose, JSON, MCP, CLI, and internal callers), use conditional fields or separate queries for mode-specific data, and add tests that assert the wire variables/selections for compact and detailed modes.

Read the full file on GitHub · 248 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. 18d ago Changed · +21 lines · +241 tokens per session 5befead65c41
  2. 1mo ago Changed · +1 lines · +44 tokens per session 189937e39cb3
  3. 1mo ago Changed · +2 tokens per session 449228497bd7
  4. 1mo ago Changed · +13 lines · +368 tokens per session f46e3f180861
  5. 1mo ago First seen · 213 lines · 3,113 tokens per session scan A 61087b577422

Subscribe to this mod's changes

githits-cli AGENTS.md is an instructions file published in the GitHub repository githits-com/githits-cli (115 stars, last pushed today), licensed Apache-2.0. It adds 3,768 tokens to every session, about $0.0151 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

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,649 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,257 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,159 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens