lucy
AGENTS.md58 starsChanged 8 days agoApache-2.0View on GitHub
Lucy is a Minecraft server package manager. Its goal is to provide pm-like UX for server hosting and mod pack managing. Uses Taskfile (task). Lucy coordinates Minecraft server package management across distinct lifecycle boundaries: translating declarative manifests (lucy.yaml) into locked resolutions (lucy-lock.yaml), resolving and acquiring package metadata and artifacts from upstreams, staging and converging runtime files into the server workspace, recording committed ownership in the workspace installation receipt (.lucy/install.yaml), and observing local workspace state. Package-specific architecture, responsibilities, invariants, and test…
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,266 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 repository12 other files it gives its agents.
- artifact/AGENTS.mdAGENTS.md
- bootstrap/AGENTS.mdAGENTS.md
- catalog/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- document/AGENTS.mdAGENTS.md
- e2e/AGENTS.mdAGENTS.md
- install/AGENTS.mdAGENTS.md
- operation/AGENTS.mdAGENTS.md
- receipt/AGENTS.mdAGENTS.md
- resolve/AGENTS.mdAGENTS.md
- upstream/AGENTS.mdAGENTS.md
- workspace/AGENTS.mdAGENTS.md
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
23 rules. About 0 are common, 16 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
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
- Distinctive: line 30
Read applicable package-local AGENTS.md instructions (including parent and nested guides, when present).
- Distinctive: line 31
Follow both local package invariants and root repository rules.
- Very specific: line 32
Treat docs/ as terminal user documentation.
- Distinctive: line 53
Keep presentation decisions at command boundaries.
- Very specific: line 59
Always prefer the project's e2e testing suite for regression testing after implementing features.
- Distinctive: line 64
Do not write persistent tests when you are implementing a feature (unit tests will be separate tasks).
- Distinctive: line 65
Never assume the current code is correct.
- Distinctive: line 71
Use one word for one concept.
- Distinctive: line 74
Prefer terms established in software engineering, computer science, package management, or Minecraft.
- Distinctive: line 75
Keep presentation names out of domain types and persisted schemas.
- Distinctive: line 79
Do not write long composite literals in one line.
- Distinctive: line 89
Prefer deleting a sentence over rewording it when the fact adds no practical value.
- Distinctive: line 96
Write concise, task-oriented tutorials in natural language.
- Very specific: line 102
Put agent pages in docs/agents/*.mdx.
- Very specific: line 105
Do not duplicate human tutorials, command reference material, or agent-specific usage workflows.
- Very specific: line 106
Keep both layers consistent with the implementation.
- Very specific: line 107
Default builds embed the tracked .mdx pages, while release builds embed the archive packed by task docs:pack.
- Distinctive: line 111
Write code that explains itself.
- Distinctive: line 113
Do not restate the code. Refactor instead if you must do this.
- Distinctive: line 114
No repeating comments inside or outside the package.
- Distinctive: line 115
Write comments only for decisions and workarounds the code cannot show.
- Distinctive: line 118
Follow the ASD-STE100 standard.
- Very specific: line 122
Always tidy the files in packages touched after refactoring: relocate/rename/merge/split files for better maintainability.
≈ “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
Overview
Lucy is a Minecraft server package manager. Its goal is to provide pm-like UX for server hosting and mod pack managing.
Toolchain
Uses Taskfile (task).
task build # Build the host development binary → dist/lucy-{os}-{arch} + dist/lucy symlink
task build:watch # Rebuild on Go and docs changes (file watcher)
task check # build + test:race + lint
task clean # Remove dist/ and release/ directories
task lint # golangci-lint with the package dependency rules
task run -- [args] # go run from repo root with CLI args
task test # go test ./...
task test:race # go test -race -count=1 with a coverage profileArchitecture
Lucy coordinates Minecraft server package management across distinct lifecycle boundaries: translating declarative manifests (lucy.yaml) into locked resolutions (lucy-lock.yaml), resolving and acquiring package metadata and artifacts from upstreams, staging and converging runtime files into the server workspace, recording committed ownership in the workspace installation receipt (.lucy/install.yaml), and observing local workspace state.
Navigation and Package Guides
Package-specific architecture, responsibilities, invariants, and test instructions are defined locally within packages. Before making changes in any package or subsystem:
- Read applicable package-local
AGENTS.mdinstructions (including parent and nested guides, when present). - Follow both local package invariants and root repository rules.
- Treat
docs/as terminal user documentation. Never take reference from any file underdocs/when planning or changing code; its pages follow code changes. - Derive code intelligence from package-local
AGENTS.md, code comments, and the code itself.
The Fundamental Problem
Mostly about package resolution, identification, and acquisition. See MATH.
Output Style Flags
The output style flags are persistent on the root command, and every subcommand inherits them. A command must never register a local copy that shadows the root flags.
--jsonprints JSON indented with two spaces, and--json-compactprints it on one line.--json-compactwins when both are set. Only commands that render machine-readable output read them, throughcli.JSONMode.--no-colorstrips ANSI foreground colors. Text attributes such as bold or faint survive; a color-off style keeps its bare attributes.--no-interactivedisables progress bars, spinners, and prompt forms. A command that would ask for input fails instead, and the error names the flag that carries the same choice.--no-styleis exactly--no-colorcombined with--no-interactive.--yesis not a global flag and not part of this family. It only answers a y/n prompt and never substitutes for the flag that replaces a selection.
A new interactive surface ships with its flag equivalent in the same change. User reports, Markdown, and progress rendering follow the same color state.
Observability
- Keep presentation decisions at command boundaries; backend modules return results and warnings. Do not add combined log/report helpers.
- Log action boundaries, critical stages, decisions with reasons, state changes, recovery, and outcomes. Keep high-volume details at DEBUG.
- Log unrecovered failures once at the CLI boundary. Record successful state changes and recovery only after the corresponding work succeeds.
Testing and Debugging
- Always prefer the project's e2e testing suite for regression testing after implementing features. See
e2e/AGENTS.mdfor domain suites, sandbox generation, and runner options. - The e2e suite includes a heuristic test set (
e2e/heuristic). Its observation cases assert no specific behavior; they record each outcome faithfully. Four contract anchors in the same package do gate fixed rejection behaviors. Use the observations to judge whether your change produces more correct and more desirable results than the baseline. Seee2e/AGENTS.mdfor the comparison workflow. - Judge heuristic results against the expected behavior from the contract, not against the current output or the baseline. Compare baseline and changed builds on the same fixtures and seed, in equivalent environments. Inspect skipped stages, timeouts, and unexpected stdout or stderr, not only exit codes. Judge user experience too: error messages should name the problem and the fix.
- Promote an invariant into a deterministic regression test only in a separate change, and only after it holds across repeated runs and follows from a logical contract. Never pin unstable observations, such as network-dependent resolution, upstream versions, timing, or timeouts.
- You may create temporary testing environments under the repository root with paths prefixed with
test_(git-ignored). - Do not write persistent tests when you are implementing a feature (unit tests will be separate tasks).
- Never assume the current code is correct. Write unit tests based on logical contracts, not asserting on whatever the current code does.
Naming and Terminology
Clarify before naming. A name is a contract, not a label.
- Use one word for one concept. Do not overload a word across layers, lifecycles, or persistence boundaries.
- Reuse roots. Do not introduce a synonym when a prefix or suffix makes the meaning unambiguous.
- Name the specific layer or role. Leave the generic word unqualified only when the context makes it exact.
- Prefer terms established in software engineering, computer science, package management, or Minecraft. Avoid invented or obscure words unless they are defined at the point of use.
- Keep presentation names out of domain types and persisted schemas.
Code Styles
- Do not write long composite literals in one line.
- Use
gofumpt.
Documentation
Documentation has two audiences. Choose the layer before writing:
Writing style
- State what a feature does, supports, or requires. Use a negative statement ("x does not do y") only when the absence is a consequential UX fact.
- Prefer deleting a sentence over rewording it when the fact adds no practical value.
- In user pages, keep such statements only where they prevent a specific user mistake.
- In agent pages, also keep negatives that redirect an agent after a failed path (an unsupported lookup, an ownership assumption, or a state-dependent failure).
Human-facing documentation
- The README and published pages outside
docs/agents/are for users. Change them when a user-facing change is worth documenting. - Write concise, task-oriented tutorials in natural language. Preserve useful examples, prerequisites, safety warnings, and decisions; do not enumerate obvious behavior or restate command help or source code.
- Describe only what users need to see or do. Do not expose implementation mechanisms, internal terminology, Go packages, or code symbols.
- Respect existing human prose and structure. Improve unclear language without replacing it with generic or repetitive text.
Agent-facing documentation
- Put agent pages in
docs/agents/*.mdx. Keep them accessible by direct Mintlify URL and searchable throughlucy docs grep, but do not add them to site navigation or other user-interface entry points. - Explain Lucy's actual internal architecture and domain models: ownership, state, boundaries, data flow, invariants, and failure or recovery semantics. Ground claims in the current source.
- Pages in
docs/agents/may use technical and internal terminology, but mention internal package names or Go symbols only when necessary to explain a concept or help a reader, not exhaustively; preserve their conceptual role and searchability. - Do not duplicate human tutorials, command reference material, or agent-specific usage workflows. Agents learn how to use Lucy from the human documentation.
- Keep both layers consistent with the implementation. When agent pages change, rebuild Lucy and verify that the new pages can be found with
lucy docs grep. - Default builds embed the tracked
.mdxpages, while release builds embed the archive packed bytask docs:pack. Add a new page directory to the embed patterns indocs/embed_pages.go, or that directory's pages reach release binaries only.
Comments
Write code that explains itself. Namings must not need documentations from call sites.
- Do not restate the code. Refactor instead if you must do this.
- No repeating comments inside or outside the package. Explain 1 fact only once across the codebase.
- Write comments only for decisions and workarounds the code cannot show. Delete restatements, including negated ones; prefer deletion to rewording.
- Preconditions, postconditions, edge cases, why the item exists are worth recording.
- Docs must reflect only the live condition. Never record the history. That's what
git logandgit blameare for. - Follow the ASD-STE100 standard.
Other Rules
- Always tidy the files in packages touched after refactoring: relocate/rename/merge/split files for better maintainability.
- Prefix files with the package name for convenient searching.
- We are at pre-beta stage. Do not add any backward-compatibility measures nor bump document format versions upon change.
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.

