ScholarSeed
AGENTS.md51 starsChanged 14 days agoApache-2.0View on GitHub
Read the applicable directory's AGENTS.md before non-trivial work. These files are the maintained project rules; edit their physical sources directly. When the Owner or knowledge location is unclear, use the task intent to consult the knowledge index, and append only applicable content. If there is already a valid direct link to a Skill, do not route back through the full-library navigation. The index does not replace any hard constraint in this file. If automatic loading is truncated or context is…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,117 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository36 other files it gives its agents.
- analysisSkill
- deep-researchSkill
- design-solutionSkill
- desktop-controlSkill
- evidence-sessionSkill
- evidence-traceSkill
- implementationSkill
- knowledge-governanceSkill
- llm-evaluation-build-baselineSkill
- llm-evaluation-runSkill
- pdfeSkill
- playwright-cliSkill
- prd-decompositionSkill
- reviewSkill
- skillhub-evaluationSkill
- task-retrospectiveSkill
- testcase-xlsxSkill
- test-qualitySkill
- ui-component-reuseSkill
- verificationSkill
- windows-remoteSkill
- academic-research-guidanceSkill
- agentic-searchSkill
- design-research-validationSkill
- fast-searchSkill
- find-skillSkill
- formal-verificationSkill
- highlights-to-insightsSkill
- literature-reviewSkill
- pdf-evidenceSkill
- plugin-createSkill
- precise-literature-searchSkill
- project-literatureSkill
- research-idea-partnerSkill
- scholarseed-product-operationsSkill
- web-searchSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
37 rules. About 1 is common, 31 are distinctive, and 5 are very specific to this project.
≈1
Common · estimate
Many files like this have a rule of this kind.
≈31
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 3
Read the applicable directory's AGENTS.md before non-trivial work.
- Distinctive: line 9
When the issue is clear and a direct topic-specific entry is useful, consult the symptom-level knowledge routing as needed.
- Distinctive: line 20
Do not use import registration or Git submodules/gitlinks to restore removed packages.
- Distinctive: line 35
Never execute git revert for any commit.
- Distinctive: line 40
Before changing files, fetch the remote.
- Distinctive: line 47
Keep internal URLs out of Git commit messages.
- Distinctive: line 59
Use the current task's source and target branches.
- Distinctive: line 63
Never require an internal platform, a parent repository, or paired documentation SHA for ordinary development.
- Distinctive: line 67
Read-only reviews, explanations, and proposed edits do not authorize file changes, formatting, product launches, or releases.
- Distinctive: line 76
After edits, select verification for the artifacts and behavior actually changed.
- Distinctive: line 82
Every completed product feature or product defect fix needs final-revision, real-runtime screenshot evidence of the affected result, …
- Distinctive: line 86
If it cannot be produced, report the blocker and do not claim completion.
- Common: line 103
If environment, credentials or network block the real flow, report the exact command, error and missing prerequisite.
- Very specific: line 126
Use the owning resolver and connection boundary, not Runtime, TypeScript path derivation or removed DAMOAGENT_HOME fallbacks.
- Distinctive: line 144
Put task details in matching product/research Skill references and development rules in scoped AGENTS.md.
- Distinctive: line 145
Never bypass this gate through tool descriptions or dynamic injection.
- Distinctive: line 147
Keep specialist workflows opt-in.
- Distinctive: line 150
Keep deterministic bookkeeping in backend code where possible.
- Distinctive: line 151
Verify ordinary conversations incur no specialist workflow overhead, while activation, continuation and exit work.
- Distinctive: line 156
Keep imports at file head.
- Very specific: line 160
Put thresholds, ports, keys, modes, path fragments and status values in the owning constants, Enum or config (logger text excepted).
- Very specific: line 171
Place files by Owner: Runtime contract/Gateway, Trace, adapter and Serve business each stay in their own package.
- Distinctive: line 178
Before Desktop CSP, Session callback, NSIS, privilege or update handoff work, read Desktop local rules and their linked Owner contracts.
- Distinctive: line 185
Every UI task first MUST read DESIGN, then vibe: Required, scrolling, overlays, Enforced by, Stop condition.
- Distinctive: line 192
MUST read cross-platform development and acceptance, define both platform semantics and verify affected gates and real flows on each target.
- Distinctive: line 209
Read current source before concluding.
- Distinctive: line 212
If evidence is absent, add instrumentation or run the real flow.
- Distinctive: line 231
Use current source and Owner contracts, explicit design alternatives and observable acceptance criteria.
- Very specific: line 236
Use repository development Skills from .agents/skills/ alongside the applicable AGENTS, Owner contracts and tools.
- Distinctive: line 237
Before product Skill packaging or discovery changes, read Skill ownership.
- Distinctive: line 240
Use the current task's authorized materials for reports and artifacts.
- Distinctive: line 247
Before requesting approval, identify the run, inputs/outputs, cost, risks and artifacts.
- Distinctive: line 261
Before any local installer build, version/channel change, upload or release, MUST read BUILD: applicable channel, MVP-specific limits, …
- Distinctive: line 267
Before toolchain, installer or Python distribution work, read toolchain and support entry points and BUILD.
- Very specific: line 275
Before product Skill pack/update/validation, read Skill boundaries, product adaptation guide and BUILD freeze and artifact verification.
- Distinctive: line 287
Test owners and snapshot paths: development and acceptance entry point.
- Distinctive: line 288
Keep screenshots and runtime artifacts ignored.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md - ScholarSeed
Read the applicable directory's AGENTS.md before non-trivial work. These files
are the maintained project rules; edit their physical sources directly.
Task Knowledge Routing
When the Owner or knowledge location is unclear, use the task intent to consult the knowledge index, and append only applicable content. If there is already a valid direct link to a Skill, do not route back through the full-library navigation. The index does not replace any hard constraint in this file. If automatic loading is truncated or context is incomplete, read the relevant rules in this file and the target directory's AGENTS.md before work begins.
When the issue is clear and a direct topic-specific entry is useful, consult the symptom-level knowledge routing as needed; it is not required reading for every task.
For knowledge governance, write-back, and ownership decisions, read the single authoritative specification. For new or modified Markdown image references, follow the image path rules.
Historical commands and authorization do not carry over as authorization for the current task. Do not state unverified conclusions as capabilities, and do not treat conflicts between specifications and source code as automatically removing safety requirements.
For script-module imports and path aliases, first read the scope and implementation constraints, then verify the actual declaration in the nearest package.json. If there is no declaration, do not use a planned alias or use an alias to bypass Owner boundaries.
Repository development Skills live in .agents/skills/ and are maintained with the source. See Skill ownership.
The product skills/community/ remains owned by the source repository. Validate documentation, tools, and products through their actual checks and host/product acceptance respectively; passing links or metadata checks does not prove semantics, real invocation, or complete acceptance.
What This Repo Is
Independent packages, primary Electron Desktop, no root wheel. Before boundary or distribution changes read current ownership. Do not use import registration or Git submodules/gitlinks to restore removed packages. Enterprise is private; Lattice and DamoCli are separate repositories.
Working Constraints
Open-Source Language
For content intended for the public ScholarSeed repository, use English by default for documentation, code comments and product copy. Provide documentation in both English and Chinese, and keep the two versions consistent when changing them. This requirement does not change the language of internal-only materials or prohibit localized product copy.
Git Revert And Worktree Rules (hard gate)
- Never execute
git revertfor any commit. Never revert a merge commit bygit revert -m, reverse-applying its diff, or an equivalent operation. For an ordinary commit that must be undone, explain the impact and require the developer to perform the revert manually; resolve merge problems forward or ask the developer to choose a recovery path. - Before changing files, fetch the remote; preserve unrelated tracked and untracked work. Use the developer's named branch in the main checkout by default; use a worktree only when requested or isolation is necessary.
- Merge only when authorized for that source and destination. Verify the source has not moved, validate the integrated result, and never force-remove a dirty worktree. Read 分支与 Code MR 交付 for the branch, worktree, commit, push and MR procedure.
- Keep internal URLs out of Git commit messages. Before committing or merging, check the final subject, body, and trailers, including merge and squash messages and text copied automatically from review descriptions. Remove internal code review, issue, and document URLs; keep useful text and public links. Save any internal links needed for traceability in internal work records. Git commit messages must not contain internal URLs. Before committing or merging, check the final title, body, and trailers, including merge and squash messages and text automatically copied from MR descriptions. Remove internal review, issue, and document URLs while retaining useful text and public links; keep internal links needed for traceability only in internal work records.
Review delivery
Use the current task's source and target branches. Fetch before changes, preserve unrelated work, and use ordinary Git pushes only. PR creation does not authorize merge, release, upload or issue status changes. Verify the actual remote, identity, source, target and resulting review record. Public development and review must work from this repository alone, including native Git worktrees. Never require an internal platform, a parent repository, or paired documentation SHA for ordinary development.
Task Scope And Verification
Read-only reviews, explanations, and proposed edits do not authorize file changes, formatting, product launches, or releases. Ordinary investigation does not itself require a proposal; use the architecture criteria below and the user's requested deliverable to decide whether one is needed.
For a PR, verify the live platform tool and its authority. Do not treat a missing tool, network failure or permission denial as authentication loss. If a write result is uncertain, read it back before retrying. Push through Git; never force-push or substitute remote file editing for a push.
After edits, select verification for the artifacts and behavior actually changed. Documentation needs its relevant document checks. Instruction-only skill changes need an actual invocation in their host and inspection of its transcript/tool evidence; changes to ScholarSeed product behavior or bundled skills still require the corresponding real product flow. A small diff does not waive applicable acceptance.
Every completed product feature or product defect fix needs final-revision, real-runtime screenshot evidence of the affected result, including a diagnostic surface for non-visual behavior. Open and inspect each screenshot, state what it proves and give its absolute local path. Keep it ignored unless explicitly requested as a deliverable. If it cannot be produced, report the blocker and do not claim completion; neither screenshots nor deterministic tests replace the other. Development-environment-only changes use actual host commands, installation logs and executable probes as acceptance evidence; unrelated product startup or host screenshots are not required. See the development-environment scope below.
Real Product Verification
Product behavior requires the real user-facing flow, not just source, type or contract checks. Select it through commands and evidence by change type and the applicable Owner; Desktop conversation/HIL work also reads the Desktop debugging engineering specification. Preserve the actual runtime, model credentials and user configuration; never restart Serve mid-conversation. A healthy HTTP endpoint alone does not prove a real session or model turn. Trigger instruction-only Skills in their host; validate DamoCli only in its separate repository.
If environment, credentials or network block the real flow, report the exact command, error and missing prerequisite. Continue independent authorized work, but do not substitute a mock or claim product acceptance.
No Fake Acceptance
Fixtures, fake providers, preselected tool calls, hand-written bridge events,
direct internal dispatch and static/component screenshots are not product
acceptance. The supported Desktop --say/--drive harness counts only when
it drives the real renderer, backend and model through the product path.
No Production Changes for Test Isolation
Isolate tests through runtime state and existing public startup paths, never by
altering production behavior solely for a test. Do not change workspace/registry
precedence, configuration fallbacks, paths, sessions or persistence because a
test sets SCHOLARSEED_* or uses fixed data. If normal use reproduces a bug,
prove it and fix the domain invariant; otherwise adjust isolated initial state
or test orchestration. Never overwrite or migrate the user's real state.
Path Source Of Truth
For paths, persistence or migrations read persistence §§1–4.
Use the owning resolver and connection boundary, not Runtime, TypeScript path
derivation or removed DAMOAGENT_HOME fallbacks. Preserve user data and extra
columns; no version-driven rebuild or credentials in project data.
Removed Harness Boundary / Zero Forwarding Shells
Runtime is a contract/Gateway distribution, not an agent Harness. Do not recreate
core, work, sdk or bench as forwarding shells or package data. Check the
built wheel, update consumers of moved symbols, and keep contract, Gateway,
Trace and vendor execution in their respective Owners.
Resident Context and Capability Budget
Do not expand baseInstructions.md or developerInstructions.md: every conversation pays the context/latency cost.
Exceptions require minimal content essential on every call, unsafe to load on demand,
and explicit user approval of necessity/context growth before editing; frequency or spare budget is insufficient.
Base replaces Codex's foundation (identity, language, pre-Skill safeguards);
Developer adds universal product constraints, not development rules.
Put task details in matching product/research Skill references and development rules in scoped AGENTS.md.
Never bypass this gate through tool descriptions or dynamic injection.
- Keep specialist workflows opt-in; define their triggers and load instructions and tools only when needed. Using a product feature does not automatically require a plan or other state-maintenance workflow.
- Apply this boundary to default tools, bridges and dynamic context too; moving text into a Skill is insufficient. Keep deterministic bookkeeping in backend code where possible.
- Verify ordinary conversations incur no specialist workflow overhead, while activation, continuation and exit work. Preserve existing task recovery and backend permission checks; support performance claims with measurements.
Code Engineering Rules (hard gates)
- Keep imports at file head; lazy, dynamic and type-only imports are dependency
edges, not boundary escapes. Only a genuine circular bottom re-export or a
test's pre-
SCHOLARSEED_HOMEisolation import may use a marked exception (# noqa: E402/# isort: skip_file) with its reason. - Put thresholds, ports, keys, modes, path fragments and status values in the
owning constants,
Enumor config (logger text excepted). Shared protocol values belong in Runtime contracts. Use a registry, policy, port or data for genuine variation rather than hardcoding the next flow into a core branch. - Bridge contract changes to registered operations, schemas or exported guidance must regenerate
the affected bundled product operations Skill references. Follow the
Skill adaptation guide, review the generated diff, and run
pnpm ops cd build local --target skillsbefore delivery. - File names prefer a single descriptive word (
catalog.py, notbuild_catalog_helper.py); use underscores only when one word cannot capture the responsibility. Single-word naming is statically guarded. - Place files by Owner: Runtime contract/Gateway, Trace, adapter and Serve
business each stay in their own package; locate an owner before adding a file.
Helpers belong in that owner's
utils.py. - Renderer features/components/shell/app: MUST read Desktop AGENTS and components: native-control reuse ratchet, Ownership / Dependency. UI first; no banned native controls/look-alikes/count increases/unlisted debt, wrong Owner/missing double registration, policy widening or hand-edited baseline.
Desktop-Specific Security
Before Desktop CSP, Session callback, NSIS, privilege or update handoff work, read Desktop local rules and their linked Owner contracts. The Windows worker/wrapper conflict remains unresolved: do not relax the stricter security boundary or bypass native package acceptance.
Desktop Visual Defaults
Every UI task first MUST read DESIGN, then vibe: Required, scrolling, overlays, Enforced by, Stop condition. Evidence is not inference; Values only in design; gates never replace real themes/narrow-window/keyboard/interaction.
Cross-Platform Engineering (hard gate)
ScholarSeed supports macOS and Windows. Changes involving paths, permissions, processes, locks, archives, executable discovery, native libraries or installers MUST read cross-platform development and acceptance, define both platform semantics and verify affected gates and real flows on each target. One OS never proves the other; a baseline-red gate is not green. Development-environment-only work (local Worktree setup, dependency installation and developer tooling) requires verification on the actual development host, not mandatory Windows acceptance. This exception does not cover product runtime, native packaging, installers, updates or distribution, and never proves Windows product compatibility.
Architecture First, Then Problem-Oriented Speed
Identify the owning abstraction and class of problem before applying a local patch. Ship the minimal milestone at the right boundary, keep variation extensible, and validate the real behavior; a passing local case is not done.
Evidence Over Guessing (debug / build / proposal / reading code)
Read current source before concluding; old proposal paths and signatures are hints, not authority. For runtime faults use Engineering guide and product logs, citing trace span evidence rather than hand-parsing JSONL. If evidence is absent, add instrumentation or run the real flow; never infer behavior from a file name or remembered tree layout.
Root-Cause Fixes Only — No Surface Debugging, No Suppression
Fix the root cause, not the symptom. Do not delete features, shrink requirements or tests, swallow errors or tweak thresholds to hide a fault. If a fix fails, collect deeper real request, trace and state evidence before another patch.
Formatting Before Done
For covered Python edits, run pnpm ops ci format --write and confirm pnpm ops ci format;
documentation-only work does not trigger formatting. Validate generated product
Skill code through its prebundle contract, not by rewriting generated files.
Proposal And Development Flow
For architectural, cross-boundary or long-horizon proposals, read Engineering guide before coding. Use current source and Owner contracts, explicit design alternatives and observable acceptance criteria. A read-only review writes no proposal; a local bug may not need one, but still needs real verification.
Engineering Entry Points
Use repository development Skills from .agents/skills/ alongside the applicable AGENTS, Owner contracts and tools. Save authorized local task records only under the Git-ignored .ai/work-records/. Check that the destination is ignored and untracked.
Before product Skill packaging or discovery changes, read Skill ownership.
Optional host instructions do not replace design, contracts or real acceptance.
For renderer page, component, or interaction-visual changes, also read the UI reuse engineering specification. For changes limited to state and protocols, locate the relevant Desktop Owner entry; do not require the component workflow for them.
Use the current task's authorized materials for reports and artifacts; external download, upload,
release and user/host configuration still need authorization.
Starting, resuming, interrupting or modifying a persisted registered workflow run requires authorization for that operation and scope; an existing explicit user instruction satisfies it unless a second confirmation is required. Ordinary Skill steps, read-only research and in-task subagents are not registered runs. Before requesting approval, identify the run, inputs/outputs, cost, risks and artifacts; while waiting, continue independent authorized work.
Testing And Validation
Distinguish deterministic contract tests, real-state integration and end-to-end product acceptance; none substitutes for another. Before tests, read commands and evidence by change type. Real models or real-path deletion require their exact authority and prerequisites. For proposal/long-horizon acceptance, also read design-solution verification rules; use observed state and complete lifecycle evidence, not a fixed script or a reduced gate.
User Entry Points
Before any local installer build, version/channel change, upload or release, MUST read BUILD: applicable channel, MVP-specific limits, distribution duties and result contract. Reading the guide does not authorize signing, publishing, changing credentials or user configuration.
Python Distribution Boundary
Before toolchain, installer or Python distribution work, read toolchain and support entry points and BUILD. Installation, cleanup, PATH/config changes and real-model calls are not read-only; verify exact executable provenance and platform requirements. Stop on unknown source or resolver failure; health/ready alone is not provenance or authorization. Never change a live environment mid-conversation.
Before product Skill pack/update/validation, read Skill boundaries, product adaptation guide and BUILD freeze and artifact verification. Keep reviewed bundled and user roots separate; never bundle user assets, silently download or treat partial/ failed scans as safe. Validate exact frozen inventory and real lifecycle.
Old root paths and ignored build residue are not source; when encountered, read current ownership before using them.
<a id="测试与快照目录约定"></a>
Test And Snapshot Directory Conventions
- Test owners and snapshot paths: development and acceptance entry point. Keep screenshots and runtime artifacts ignored; never commit them by default.
tmp/research/is itself the workspace root; do not create nested workspace aliases there. Never read or cleantmp/manage-cc-hosts/.- Knowledge belongs to its Owner;
work-records/contains only plans, prompts and brief results, not raw evidence. Migration must verify actual consumers and semantics, not only structural checks.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

