Create or update AGENTS.md for this repository. The goal is a compact instruction file…
- User
Create or update
AGENTS.mdfor this repository.The goal is a compact instruction file that helps future OpenCode sessions avoid mistakes and ramp up quickly. Every line should answer: "Would an agent likely miss this without help?" If not, leave it out.
User-provided focus or constraints (honor these):
How to investigate
Read the highest-value sources first:
README*, root manifests, workspace config, lockfiles- build, test, lint, formatter, typecheck, and codegen config
- CI workflows and pre-commit / task runner config
- existing instruction files (
AGENTS.md,CLAUDE.md,.cursor/rules/,.cursorrules,.github/copilot-instructions.md) - repo-local OpenCode config such as
opencode.json
If architecture is still unclear after reading config and docs, inspect a small number of representative code files to find the real entrypoints, package boundaries, and execution flow. Prefer reading the files that explain how the system is wired together over random leaf files.
Prefer executable sources of truth over prose. If docs conflict with config or scripts, trust the executable source and only keep what you can verify.
What to extract
Look for the highest-signal facts for an agent working in this repo:
- exact developer commands, especially non-obvious ones
- how to run a single test, a single package, or a focused verification step
- required command order when it matters, such as
lint -> typecheck -> test - monorepo or multi-package boundaries, ownership of major directories, and the real app/library entrypoints
- framework or toolchain quirks: generated code, migrations, codegen, build artifacts, special env loading, dev servers, infra deploy flow
- repo-specific style or workflow conventions that differ from defaults
- testing quirks: fixtures, integration test prerequisites, snapshot workflows, required services, flaky or expensive suites
- important constraints from existing instruction files worth preserving
Good
AGENTS.mdcontent is usually hard-earned context that took reading multiple files to infer.Questions
Only ask the user questions if the repo cannot answer something important. Use the
questiontool for one short batch at most.Good questions:
- undocumented team conventions
- branch / PR / release expectations
- missing setup or test prerequisites that are known but not written down
Assistant
Created
/Users/user_0a329be7/Downloads/KernelAgent/AGENTS.mdwith only high-signal, repo-specific guidance. Here's what it covers:- Setup gotchas: Python 3.10–3.12 (not 3.8 as README claims), Triton intentionally excluded from dependencies and must be installed separately,
.envauto-loaded by CLIs. - Exact commands:
pytest -v,ruff check .,ruff format --check .,python e2e_test.py. - Ruff exclusions: Generated dirs (
.fuse,.optimize, etc.) are excluded — agents shouldn't try to lint them. - Package boundaries: Clear ownership of
triton_kernel_agent/,Fuser/,kernel_perf_agent/,scripts/,utils/, and the separateoink/sub-package with its ownpyproject.toml. - Entry points: Both installed console scripts and common invocations.
- Setup gotchas: Python 3.10–3.12 (not 3.8 as README claims), Triton intentionally excluded from dependencies and must be installed separately,
- User
多 agent 仔细 严格review 每一章的结构、表述 提出严厉建议
- User
多 agent 仔细 严格review 每一章论文的结构、表述 提出严厉建议