zaezd
AGENTS.md1 starsChanged 3 months agoMITView on GitHub
Trip engine that starts from a reason to travel. A person does not know where to go, they know why. The first vertical is IT conferences: the event catalogue (confcal MCP) says where and when, Tutu MCP supplies transport and lodging, and a deterministic composer turns both into at most three explainable packages on one screen. The product specification lives in specs/ and is authoritative. Read specs/README.md first; it indexes all ten documents and names the three things that are…
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 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 repository11 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .cursor/rules/architecture.mdcCursor rule
- .cursor/rules/bdd-specs.mdcCursor rule
- .cursor/rules/code-style.mdcCursor rule
- .cursor/rules/composer-core.mdcCursor rule
- .cursor/rules/data-sources.mdcCursor rule
- .cursor/rules/implementation-order.mdcCursor rule
- .cursor/rules/mcp-layer.mdcCursor rule
- .cursor/rules/testing.mdcCursor rule
- .cursor/rules/web-ui.mdcCursor rule
- .cursor/rules/workflow.mdcCursor rule
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
All five layers are written, specified and deployed: the pure core, the confcal and Tutu clients, the three optional enrichments, the …
- Very specific: line 49
write the Gherkin scenario in features/.
- Distinctive: line 50
add step definitions until it runs and fails for a real reason.
- Distinctive: line 51
add failing unit tests for the pure rules it depends on.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
Zaezd - agent brief
Trip engine that starts from a reason to travel. A person does not know where to go, they know why. The first vertical is IT conferences: the event catalogue (confcal MCP) says where and when, Tutu MCP supplies transport and lodging, and a deterministic composer turns both into at most three explainable packages on one screen.
The product specification lives in specs/ and is authoritative. Read
specs/README.md first; it indexes all ten documents and names the three
things that are never cut: the return leg, the deterministic date algorithm, and honest
checkout link labels.
State of the repository
All five layers are written, specified and deployed: the pure core, the confcal and Tutu
clients, the three optional enrichments, the orchestrator, the trip board and the three MCP
tools with the ui:// widget. It ships as a container and runs behind whatever reverse proxy
a deployment happens to have; npm run verify covers all of it offline against fixtures/.
ideas/ holds the reconnaissance the specs were built from. It ships with the public
repository as history, not as product code, and nothing under src/ may import from it.
research/ holds raw probes and review transcripts and stays out of git.
Commands
npm install # once
npm start # the server, ZAEZD_MODE=live or replay
npm run bdd # executable Gherkin specifications (features/)
npm test # unit tests (tests/)
npm run typecheck # tsc over the Node tree and the browser tree
npm run lint # eslint
npm run rules:sync # regenerate .cursor/rules from .claude/rules
npm run docs:check # every command the documentation names really exists
npm run build # compile to dist/ and copy static assets
npm run verify # all of the above except build, the gate before calling anything doneRuntime dependencies are added as the layer that needs them is built: zod with
src/sources/normalize.ts, @modelcontextprotocol/sdk with the clients,
@modelcontextprotocol/ext-apps with the ui:// resource. Leaflet and the Kite token
extract are vendored under src/web/public/vendor/ with their licences, not installed.
Unused dependencies are a scored defect here.
How work is delivered
Specification first, then tests, then code. For any new behavior:
- write the Gherkin scenario in
features/; - add step definitions until it runs and fails for a real reason;
- add failing unit tests for the pure rules it depends on;
- implement from the innermost layer outward;
npm run verify, update the docs in the same change, sync the rule trees.
Details in .cursor/rules/workflow.mdc and .claude/rules/workflow.md.
Layers
Dependencies point downward only.
| Layer | Location | Nature |
| L0 | src/composer/{types,dates,selection,feasibility,pricing,hotels,packages,checkout-labels}.ts | pure, deterministic, no I/O, no clock |
| L1 | src/sources/ | confcal and Tutu clients, normalization, cache, replay |
| L2 | src/enrich/ | production calendar, geocoding, weather, all optional |
| L3 | src/composer/{build-trip,build-checkout,trip-id}.ts | orchestration, budgets, live checkout, public link |
| L4 | src/web/, src/mcp/ | delivery adapters, no business logic |
Repository map
specs/ the product specification (authoritative)
features/ executable Gherkin specifications and step definitions
tests/ unit tests over the pure layer
src/ product code, by layer (see above)
fixtures/ recorded source payloads for specs, tests and replay mode
scripts/ record.ts and one-off tooling
docs/ user guide, architecture, decision log
ideas/ research, not part of the product
research/ raw probes and reviews, not part of the productNon-negotiables
- Nothing is invented. A field a source did not return is rendered as missing, never guessed. This is the product's promise, and it is also how Tutu's own instructions describe the biggest failure mode of travel agents.
- Dates, prices and feasibility are computed in code, never left to a model. Three identical live runs produced three different night counts and a 1.5x price spread.
- The hotel price is a whole-stay total and is never multiplied by nights.
- A checkout button is labelled from the
kindTutu actually returned. - Specifications and tests run offline against
fixtures/. The venue network is not a dependency. Inreplaythe reference date is the fixture'srecorded_at, so recorded events never turn into past events. - Walking time comes from an OSRM foot profile or it is not shown. A car route relabelled "N мин пешком" is the same class of lie as an invented field.
- The web page and the
ui://resource share one client renderer, never one finished document: the App receives its data from the host, not from us. - Tool names are identical in code, README, user guide and diagrams:
find_event_trips,get_trip_details,create_trip_checkout.
Rules
| Rule | Scope |
workflow | always |
bdd-specs | always |
architecture | always |
code-style | always |
testing | tests/**/*.ts |
implementation-order | src/**/*.ts |
composer-core | src/composer/**/*.ts |
data-sources | src/sources/**/*.ts, src/enrich/**/*.ts |
mcp-layer | src/mcp/**/*.ts |
web-ui | src/web/**/*.{ts,html,css} |
Each rule exists twice, as .claude/rules/<topic>.md and .cursor/rules/<topic>.mdc.
.claude/rules/ is the source of truth and the Cursor tree is generated from it by
npm run rules:sync; npm run rules:check runs inside npm run verify and fails the build
if the trees drift. Never hand-edit a file under .cursor/rules/. The Rules Sync section of
the workflow rule covers what the generator cannot do.
Codex reads the Cursor tree through the hook bridge in .codex/. Run /hooks in Codex once
per clone, and again after any edit to .codex/hooks.json or .codex/hooks/attach_rules.py,
otherwise the hook is silently skipped as untrusted.
Language
Code, comments, rule files and this brief are written in English. Product copy and chat replies are in Russian.
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.

