project-tiny-context-harness AGENTS.md

Project-specific instructions for maintaining a small-context system that gives coding agents only the guidance needed for the current task.

In plain words
What is it for?
Maintaining the context package, updating its managed files and validators, and completing changes while keeping the main branch clean.
Why use it?
They define repository boundaries, required checks, and cleanup rules so agents can work without loading every project document at startup.

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/seven128/project-tiny-context-harness/agents-md
Clone the repo
git clone --depth 1 https://github.com/Seven128/project-tiny-context-harness

Made for: Codex, OpenCode.

Per session 5,179 This file is loaded in full into every session.
When invoked 5,179 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.05179 $0.05179
Opus 5 $0.02589 $0.02589
Sonnet 5 $0.01036 $0.01036
Haiku 4.5 $0.00518 $0.00518

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

Security

Grade A, and why

project-tiny-context-harness 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 · 106 lines

How it starts

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

Project Agent Overlay

本文件是 agent 启动路由器和硬边界,不承载完整设计思想、长原则或角色流程;默认 Minimal Context 规则见下方 managed block。

本仓库 Authoring 例外

  • 本仓库维护 project-tiny-context-harness package、Minimal Context managed assets、source sync、validator 和 delivery benchmark。
  • 本仓库开发可由用户或当前 Goal 选择临时 task branch/worktree;提交可按可读性保留,开发噪声可在分支内 squash。显式 long-task-workflow 仍只复用用户选定的验证工作区,Harness 不创建编排分支、Worker 或 worktree。
  • 使用临时分支的交付最终必须回归干净且与 origin/main 同步的 main,并让最终分支 tip 通过 fast-forward 或 merge commit 成为 origin/main 的祖先或与其相等,再删除对应本地/远端分支。ahead、diverged、脏或未知 worktree 阻止清理;普通治理不用 git branch -D。日常收尾只清理本任务分支,清理全部非 main 分支必须是显式仓库级治理请求。
  • 修改 packages/ty-context/**.codex/ty-context-managed/**tools/**examples/delivery-benchmark/** 时,先读 core Context、default area root 和由 project_context/context.toml 触发的相关 on-demand Context,并使用 .codex/skills/authoring/harness_package_design/SKILL.md
  • 旧阶段式工作流只作为历史设计摘要保留在 PROJECT_SPEC.md;不要把 stage artifacts 恢复成默认 package 能力。
  • Karpathy 编码准则是本仓库 agent 的底层行为原则:先思考并暴露假设,优先简洁,精准修改,目标驱动验证;不要把长原则常驻在 AGENTS 启动路径。

Minimal Context Harness Protocol

This project uses Tiny Context. The Harness maintains durable Context and workflow authority; project tests, CI, runtime evidence and human acceptance prove product quality. Its three capabilities are Minimal Context, the automatically applicable model-led default Workflow Contract for work of any complexity and the explicitly selected Single-Goal Long-Task Workflow for machine completion authority, recoverability and auditability. Complexity determines execution and verification depth; required completion authority and recoverability determine the workflow route; Long-Task-internal risk determines proof strength.

Shared Engineering Quality Obligation

Before the first implementation edit, every delivery surfaces one externally observable, repository-bound Architecture Deliberation. Depth is risk-proportional, but the checkpoint always names affected owners, the current extension point/source of truth, dependency and state/lifecycle boundaries, the selected design and material alternatives, one plausible future-change challenge, touched technical debt and its disposition, forbidden shortcuts, project-owned checks and triggered engineering-quality attributes or their concrete preservation basis. Correctness/invariants and maintainability/changeability always receive at least a preservation judgment; reliability/resource lifecycle, concurrency/consistency, performance/capacity/cost, security/privacy/safety, compatibility/migration/rollout and operability/observability/testability activate only when the change or an explicit claim makes them material. Exact product/technical predicates remain owned by Semantic Facts and exact selected UI/UX values by selected-design closure. Refresh the checkpoint when scope, ownership, selected design, quality applicability or debt disposition materially changes.

Read the full file on GitHub · 106 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 · 106 lines · 5,179 tokens per session scan A b3b5871e1b5b

Subscribe to this mod's changes

project-tiny-context-harness AGENTS.md is an instructions file published in the GitHub repository Seven128/project-tiny-context-harness (3 stars, last pushed 2d ago), licensed MIT. It adds 5,179 tokens to every session, about $0.0259 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.