querytree: Instructions file for Codex

AGENTS.md

querytree AGENTS.md is an instructions file for Codex, OpenCode from sp-daewoon/querytree. It costs 555 tokens per session, scanned A, original, MIT.

Repository-wide instructions for contributors and AI coding assistants working on querytree. They define the project's rules for truthfulness, human decision authority, documentation, branches, commits, and checks.

In plain words
What is it for?
Use them before modifying the repository to understand the required reading, workflow branches, merge rules, commit format, source of decision state, and final validation command.
Why use it?
They prevent unverified claims and premature implementation while making changes traceable to the project's source documents and decisions.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sp-daewoon/querytree/agents-md"><img src="https://agentmods.dev/badge/instructions/sp-daewoon/querytree/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 555 This file is loaded in full into every session.
When invoked 555 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.00555 $0.00555
Opus 5.5 $0.00222 $0.00222
Sonnet 5.5 $0.00111 $0.00111
Haiku 4.5 $0.00056 $0.00056

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

Security

Grade A, and why

querytree 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 · 39 lines

What it actually says

Querytree 헌법

이 문서는 Querytree 저장소에서 Codex, Claude Code, 사람 기여자가 함께 작업할 때의 최우선 규칙이다. 하위 문서는 이 규칙을 약화하거나 충돌하는 지시를 추가할 수 없다.

진실성과 결정 권한

  • 확인하지 않은 사실은 사실처럼 쓰지 않는다. 가설에는 가설임을 표시한다.
  • 불가능하거나 권한·정보가 부족한 작업은 추정으로 진행하지 않고 사용자에게 필요한 정보를 질문한다.
  • 에이전트는 선택지, 근거, 반론을 만들 수 있지만 사람의 선택·확정·재개방을 대신하지 않는다.
  • 확정 전 결정에 따른 구현은 사용자가 명시적으로 요청한 되돌릴 수 있는 탐색 작업으로 제한한다.

문서와 코드

  • 한국어 문서를 원본으로 유지한다. 공개 사용자층을 위한 영어 문서는 한국어 원본과 의미가 어긋나지 않게 별도 제공할 수 있다.
  • 코드 주석은 꼭 필요한 경우에만 한글 한 줄로 쓴다. 변경 이력식 주석은 남기지 않는다.
  • 결정 원본은 .querytree/state.json 서버 상태다. UI의 임시 상태나 대화 기록을 원본으로 취급하지 않는다.

작업 흐름과 추적성

  • 모든 비자명한 변경은 workflow/wNN-<topic> 브랜치에서 수행한다. main에 직접 커밋하지 않는다.
  • 검증을 통과한 뒤에만 main으로 --no-ff merge하고, main만 원격에 push한다.
  • 커밋 제목은 [agent:<role>] <type>: <요약> 형식을 사용한다. 예: [agent:codex-architect] feat: MCP 결정 초안 POC.
  • 작업 시작 전 이 문서와 관련 docs/ 문서를 읽고, 완료 전 npm run check를 실행한다.

문서 우선순위

  1. AGENTS.md - 공통 헌법과 안전·작업 흐름
  2. docs/architecture.md - 제품 경계와 기술 설계
  3. skills/querytree/SKILL.md - 에이전트의 결정 처리 절차
  4. README.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. 2mo ago First seen · 39 lines · 555 tokens per session scan A b6abd81f5322

Subscribe to this mod's changes

querytree AGENTS.md is an instructions file published in the GitHub repository sp-daewoon/querytree (0 stars, last pushed 3mo ago), licensed MIT. It adds 555 tokens to every session, about $0.0022 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-31.

Related

querytree AGENTS.md compared with instructions from other repositories

querytree AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
querytree AGENTS.mdsp-daewoon/querytreeInstructions file03mo agoMITA555Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot