banana-mall
AGENTS.md459 starsChanged 13 days agoMITView on GitHub
Read this file first when working on the repository. Product facts and links are in llms.txt; the current release is documented in docs/releases/v0.3.3.md. - Next.js 14 App Router, React 18, TypeScript, Prisma/SQLite, OpenAI SDK, Electron. - Use Node.js 24 and npm ci; the lockfile is committed. - npm run prisma:generate, npm run prisma:migrate, npm run dev start source development. - npm test runs isolated model-free tests. npm run test:detail covers V4 recovery. - npm run typecheck checks TypeScript. npm run…
- Reads credentials
We split this AGENTS.md into the rules it gives an agent
13 rules. About 0 are common, 6 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 3
Read this file first when working on the repository.
- Very specific: line 9
Use Node.js 24 and npm ci.
- Very specific: line 17
Never run a production build into the .next directory while a dev server uses it.
- Distinctive: line 26
Keep desktop control default-off until real GUI acceptance passes on each target.
- Very specific: line 49
Stop prevents new dispatches.
- Distinctive: line 60
Use provider-discovered model IDs.
- Distinctive: line 69
Never use the developer's real database, storage or paid provider in tests.
- Distinctive: line 70
Add targeted recovery tests for state changes.
- Distinctive: line 72
Use UTF-8 and cross-platform path APIs.
- Very specific: line 74
Keep local acceptance artifacts in ignored test-output/ or public/test-reports/.
- Very specific: line 78
Update README.md, README.en.md, release notes and llms.txt when behavior changes.
- Very specific: line 79
Run npm run docs:sync to refresh public/llms.txt (do not edit that copy separately).
- Distinctive: line 92
Check the target remote before pushing.
≈ “Common” is an estimate: at least 1 in 5 of the 36,368 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
MxPage contributor guide
Read this file first when working on the repository. Product facts and links are in
llms.txt; the current release is documented in docs/releases/v0.3.3.md.
Project and commands
- Next.js 14 App Router, React 18, TypeScript, Prisma/SQLite, OpenAI SDK, Electron.
- Use Node.js 24 and
npm ci; the lockfile is committed. npm run prisma:generate,npm run prisma:migrate,npm run devstart source development.npm testruns isolated model-free tests.npm run test:detailcovers V4 recovery.npm run typecheckchecks TypeScript.npm run build:desktopuses.next-desktop.npm run lintalso rejects switch fallthrough, unreachable code and unused labels; it uses the existing TypeScript compiler, not a placeholder or ESLint ruleset.docs/optimization-acceptance.mddocuments query-only image recovery, optional Agent monetary reservations, capability provenance and mock-only acceptance.- Never run a production build into the
.nextdirectory while a dev server uses it. npm run dist:greenbuilds Windows x64 ZIP;npm run dist:macbuilds a ZIP on the current Mac architecture. Runnpm run smoke:desktopagainst unpacked output.
Architecture map
lib/agent/,app/api/agent/: independent Deep Agents tool loop, approvals, ledger, SQLite checkpoints and SSE. Seedocs/agent-workspace.md. Do not put its loops in V4.desktop/agent-*.cjs: private desktop authority and isolated Playwright profile. Keep desktop control default-off until real GUI acceptance passes on each target.lib/detail-runs/service-v4.ts: deterministic workflow, request ledger, checkpoints.lib/detail-runs/structured-model.ts: single structured JSON model requests.lib/detail-runs/run-lease.ts: ownership, heartbeat and stop/resume coordination.lib/detail-runs/content-review-v4.ts,typesetting-v4.ts: local content/line repair.lib/detail-runs/supplemental-input.ts: inferred choices and user-confirmed answers.lib/translation/: fixed-prompt batch translation, separate from planning.lib/ai/,lib/services/provider-runtime.ts: discovered model IDs and request credentials.lib/monitor/: usage, billing estimates, CNY display and task timing.lib/tasks/,components/tasks/: shared task status and queue.desktop/,scripts/build-desktop.cjs: bundled local server and user-data startup.
Invariants
- New detail runs write
workflowVersion: 4. Earlier workflows are read-only history; never route them into V4 automatically. Do not reintroduce@openai/agents, a Runner, tool loops, or implicit model repair/retry loops into V4. The independent/agentworkspace uses Deep Agents/LangGraph underlib/agent/; its approved tool loop must not change V4 recovery, billing or retry semantics. - Persist the request ID before dispatch. Reuse completed plans, storyboards, assets and reviews on resume. Preserve uncertain requests after timeout/disconnect; do not resend possibly billed requests without the user's explicit retry authorization.
- Stop prevents new dispatches; already issued calls drain and retain results. Check
the current lease before state/asset writes. See
docs/workflow-v4-reliability.md. - Quality warnings retain generated images and do not trigger paid regeneration.
- Canonical text is
textBlocks[].text. Line wrapping is local code. Allow natural rephrasing while preserving known specifications, table cells, numbers and units. New detail tasks pause atWAITING_PROMPTSbefore image dispatch. Saved/approved complete prompts take precedence over the compiled storyboard on every resume; do not recompile over user edits or bypass the user's confirmation. Old tasks withoutpromptReviewretain their original recovery behavior. - Inferred supplemental answers are suggestions until selected. Preserve provenance; never silently turn unknown values into confirmed measurements.
- Use provider-discovered model IDs. Do not silently substitute models or hard-code aliases based on a user's abbreviated model name.
- API keys stay in the user's browser/request context. Do not log, commit, or bundle
keys,
.env, SQLite databases, uploads, generated projects or usage logs.
Testing and Windows edits
- Tests that import runtime services must set temporary
DATABASE_URL/STORAGE_ROOTbefore dynamic imports. Assert isolation before writing or clearing a monitor. Never use the developer's real database, storage or paid provider in tests. - Add targeted recovery tests for state changes; use existing mocks. Pure UI changes need relevant rendering checks rather than another real generation task.
- Use UTF-8 and cross-platform path APIs. Verify absolute destinations before recursive removal; never delete outside the specific build or mkdtemp directory you created.
- Keep local acceptance artifacts in ignored
test-output/orpublic/test-reports/.
Documentation and releases
- Update
README.md,README.en.md, release notes andllms.txtwhen behavior changes. Runnpm run docs:syncto refreshpublic/llms.txt(do not edit that copy separately). - Older design/acceptance documents describe historical decisions. Current source, tests and V4 reliability documentation take precedence over old Agent designs.
- Public deployment metadata is optional via
NEXT_PUBLIC_SITE_URL. Private workspace pages must staynoindex; do not include project data in sitemap/structured metadata. - Future desktop releases are built on native Windows x64 and macOS ARM64 runners. Intel Mac is no longer a release target; keep historical downloads intact. Native Prisma/sharp binaries must match each package. Publish only after smoke tests.
- Release workflow:
.github/workflows/desktop-release.yml; version tags must matchpackage.jsonand the release-note filename. Include both ZIPs and SHA256 sums. - Finish an active tag release before changing workflows on the default branch: a workflow mismatch can block Release creation with the Actions token.
- The authoritative publishing repository is
https://github.com/ziguishian/MxPage. Check the target remote before pushing; this checkout may have other remotes.
Copyright © 2026 灵矩绘境 · MxPage. Source license: MIT.
Other versions1 project uses a version of this.
Word for word · 1
- ziguishian/MxPage★ 457100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
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 28,693 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 repository2 other files it gives its agents.
- llms.txtllms.txt
- public/llms.txtllms.txt
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.

