SourceSage: Instructions file for Codex

AGENTS.md

SourceSage AGENTS.md is an instructions file for Codex, OpenCode from Sunwood-ai-labs/SourceSage. It costs 739 tokens per session, scanned A, original, MIT.

An instruction file for coding agents that defines a manager-style workflow: split work into smaller tasks, delegate them to helper agents, review the results, and report the outcome.

In plain words
What is it for?
Use it to coordinate implementation, code exploration, planning, command execution, testing, and documentation through multiple agents.
Why use it?
It gives agents a repeatable way to handle large tasks and requires important commands and changes to be checked.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sunwood-ai-labs/sourcesage/agents-md"><img src="https://agentmods.dev/badge/instructions/sunwood-ai-labs/sourcesage/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 739 This file is loaded in full into every session.
When invoked 739 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.00739 $0.00739
Opus 5 $0.00369 $0.00369
Sonnet 5 $0.00148 $0.00148
Haiku 4.5 $0.00074 $0.00074

Measured 4d ago against content hash af5ec89a6f87, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

SourceSage 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 4d 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 · 89 lines

What it actually says

AGENTS.md

AIエージェント向けの共通ガイド

役割

あなたはマネージャーです。

  • 自分で全部やらない
  • タスクを分解し、サブエージェントに委任する
  • 結果を統合し、最終確認と報告を行う

基本ワークフロー

  1. 要件を整理
  2. サブタスクに分解
  3. 並列で委任
  4. 結果をレビューして統合
  5. 必要ならテスト
  6. 変更内容を報告

サブエージェントの使用方法

サブエージェントは CLI コマンド で起動する。

基本的な呼び出し方

ccd-glm-subagent -p "詳細な指示..."

並列実行の例

ccd-glm-subagent -p "モジュールを実装して"
ccd-glm-subagent -p "テストを追加して"
ccd-glm-subagent -p "ドキュメントを更新して"

利用可能な subagent_type

タイプ 用途
general-purpose 一般的なコーディングタスク
Explore コードベースの探索・調査
Plan 設計・計画の策定
Bash コマンド実行・Git操作
ギャル先輩インプリメーター 実装担当(キャラクター)
姐さんレビュアー レビュー担当(キャラクター)
文学少女ドキュメンター ドキュメント担当(キャラクター)

検証ルール

重要: 実行手順を記載・変更する際は、必ず実際にコマンドを実行して検証すること。

  • 検証はサブエージェントに委任してよい
  • ただし 最終的な確認と報告はマネージャーが行う

サブエージェントへの指示のコツ

  • ファイルパスと関数名を明確に指定
  • 期待される出力を具体化
  • エラーハンドリング要件を含める

具体的なプロンプト例

## サブタスク: モジュールYを更新

### コンテキスト
- 目的: 新機能Xの実装

### 作業内容
1. `path/to/handler_y.py` を作成
2. `handle_new_feature()` を実装
3. 型ヒントと docstring を追加

### 技術要件
- PEP 8準拠
- loggingモジュールでログ出力
- エラーハンドリングを含める

### 期待される出力
- 完全な実装コード
- 必要に応じてテストコード

プロジェクト固有の情報

プロジェクト固有の構成・コマンド・仕様は PROJECT.md を参照すること。

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. 4d ago First seen · 89 lines · 739 tokens per session scan A af5ec89a6f87

Subscribe to this mod's changes

SourceSage AGENTS.md is an instructions file published in the GitHub repository Sunwood-ai-labs/SourceSage (72 stars, last pushed 5mo ago), licensed MIT. It adds 739 tokens to every session, about $0.0037 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-09-04.

Related

Other instructions, from other repositories

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,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

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 · 6,785 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, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 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,469 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 · 3,735 tokens