dms-assistant
AGENTS.md2 starsChanged 4 days agoApache-2.0View on GitHub
An AntelopeJS DMS development assistant, published as @antelopejs/dms-assistant. It merges two former modules: the assistant (@antelopejs/dms-ai: an owner-only AI workspace in the dashboard, backed by a local sidecar supporting Claude Code and optional Codex) and the builder (@antelopejs/dms-builder: the engine that changes pages, tables and data sources as AST rewrites of the project sources, and the external database connect flow). @antelopejs/dms hosts the builder engine, implements @antelopejs/interface-dms-builder and serves the builder tools through its dms MCP server. This module keeps…
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,196 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.
- CLAUDE.mdCLAUDE.md
- formal-agent-file-accessSkill
- formal-change-setsSkill
- formal-chat-ownershipSkill
- formal-connection-analysisSkill
- formal-conversation-deletionSkill
- formal-stored-state-loadSkill
- technical-writingSkill
- unslopSkill
- verify-changesSkill
- dms-assistant-code-modeSkill
- dms-assistantSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 65
No tool checks these:
≈ “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
dms-assistant
An AntelopeJS DMS development assistant, published as @antelopejs/dms-assistant. It merges two former modules: the assistant (@antelopejs/dms-ai: an owner-only AI workspace in the dashboard, backed by a local sidecar supporting Claude Code and optional Codex) and the builder (@antelopejs/dms-builder: the engine that changes pages, tables and data sources as AST rewrites of the project sources, and the external database connect flow). @antelopejs/dms hosts the builder engine, implements @antelopejs/interface-dms-builder and serves the builder tools through its dms MCP server. This module keeps the external database connect routes, which run on the external-database operations of @antelopejs/dms.
Layout
| Path | What it is |
src | The DMS module (CommonJS, built to dist); construct, start and destroy in src/index.ts run both parts |
src/builder | The external database connect routes under /api/builder/database, which call the operations of @antelopejs/interface-dms-builder |
sidecar | The local agent process, an ESM workspace package with its own lockfile and tsconfig; ships as sidecar/dist. Its dms-assistant MCP server holds only the chat's tools. Every session also gets the dms MCP server of @antelopejs/dms |
frontend-vue | The dashboard layer, one frontend registration. ESLint and Prettier own it, not oxlint and oxfmt; Prettier skips frontend-vue/builder |
frontend-vue/builder | The client and types of the builder's /api/builder/database routes and the builder's message catalog, with its own vitest config. The builder has no editor UI: pages change through the AI and the mockup flow |
playground | A DMS project that loads the module; its own lockfile, outside the pnpm workspace |
e2e | The assistant's journeys suite: e2e/journeys.config.ts (its playground, prepare commands and smoke feature), the journeys, their helpers and their playground, run as a Playwright suite by pnpm e2e through @antelopejs/dms/e2e; e2e/builder holds the builder's suite, run by pnpm e2e:builder |
skills | The module's own agent skills, shipped through antelopeJs.skills. The chat loads the DMS workflow skills of @antelopejs/agent-skills before them |
The root package.json is the published CommonJS package, so it has no "type": "module". Node therefore warns that it reparses oxlint.config.ts as ESM; the warning is harmless.
Versioning
- The Codex CLI must be the
@openai/codexversion the sidecar's pin insidecar/package.jsonnames, or a later 0.x release: the sidecar ships the pinned version's app-server protocol types, generated intosidecar/src/providers/codex/protocolbypnpm --dir sidecar generate:codex-types. frontend-vue/package.jsonpins the supported@antelopejs/dms-frontendminor inengines.- See
sidecar/src/constants/providers.tsfor provider availability. An unavailable provider reports an error rather than falling back to another provider.
Tests
pnpm test, and so pnpm run checks, runs pnpm test:node: it builds dist once and runs every tests/*.test.cjs suite except sidecar-build.test.cjs and installed-module.test.cjs, and every tests/builder/*.test.cjs suite, against it. Run the tests on the Node version in .nvmrc: under Node 26, 51 frontend-vue tests fail.
checks does not run:
- The Vitest suites, which run in their own CI job:
pnpm --dir sidecar testandpnpm --dir frontend-vue test(the assistant and builder unit suites). pnpm test:sidecar-smoke, which builds the sidecar and checks its output.pnpm test:installed, which packs the module, installs the tarball as the AntelopeJS module cache does, starts the installed sidecar and checks that every package its built files import resolves. CI runs it in theinstalled-modulejob, whichverdictneeds, and the release runs it before it starts.- The Codex acceptance suite:
CODEX_ACCEPTANCE=1 pnpm --dir sidecar test:acceptance. CI runs it in thecodex-latestworkflow, nightly and on a manual run, on the latest@openai/codex0.x release, after it regenerates the protocol types from that release and typechecks the sidecar against them. The job reads the ChatGPT sign-in from theCODEX_ACCEPTANCE_AUTHsecret, and warns instead of failing when the secret is missing or its sign-in is spent. - The journeys that open no tab:
pnpm test:integrationrunstests/integration/*.journeys.test.mjs, the journeys a feature marksintegration: true, on one run per journeys suite through@antelopejs/dms/e2e/run. CI runs it in theintegrationjob in the merge queue, on a manual run and nightly.pnpm e2e:buildbuilds what every run needs (the module, the sidecar and both playgrounds); withDMS_E2E_PREBUILT=1a run skips that build. - The browser journeys:
pnpm e2e(andpnpm e2e:builder,pnpm e2e:dev) prepares and starts a run of its suite's playground, runs every journey of the suite on it and stops it;--grep @smokenarrows it to the smoke set. CI runs the smoke set in thee2ejob on a pull request, and every journey in shards in the merge queue, on a manual run and nightly, whose shardse2e-reportmerges into one report.tests/journey-coverage.test.cjschecks that thecoversglobs the journeys modules of both suites export cover every user-facing file. - The full frontend-vue typecheck:
pnpm --dir frontend-vue verify-sourcebuilds the DMS core layer with this one and runs vue-tsc.checkstypechecks only the chat (typecheck:chat).
CI
The org rulesets require ci / checks and verdict. In .github/workflows/ci.yml, ci calls the shared ci-node.yml, whose checks job reports ci / checks. ci / checks cannot see the jobs ci.yml declares, so verdict needs all of them and fails when ci, the vitest matrix, frontend-verify, installed-module, e2e or integration failed or was cancelled. Keep both names.
Releases
The release commit writes CHANGELOG.md. Upgrade notes for that version follow in a separate docs(changelog) pull request.
<!-- antelopejs-guardrails:start --><!-- Managed by @antelopejs/tooling-configs. `antelopejs-sync` rewrites everything between these markers; write repository-specific guidance outside them. -->Guardrails
CI runs pnpm run checks in full on every pull request and reports what failed. The commit hook formats and lints the staged files. Locally, check only what you touched, one test file and not the suite, as the verify-changes skill says.
Comments
Say it in code: a constraint in a type, a lint rule or a test, a public item's contract in TSDoc. Other comments are lint directives naming their rules, @ts-expect-error <reason>, SAFETY: <reason> above a type assertion, and license or tool directives. A reason states what the code does now.
Tests
Each test names the wrong implementation it fails on, or is deleted. Drive behaviour through the public interface. An invariant over many files is a lint rule.
Review
No tool checks these:
- A type guard checks the nested elements and values it claims.
- A no-upward import rule rejects same-tier peers; probe it with an import.
- A finding only an evasion or a patched internal can trigger goes under Attention and never blocks.
Suppressions
guardrails.suppressions.json caps lint directives, @ts-expect-error, SAFETY: comments and rules a lint config turns off. Over a cap, fix the code or remove another suppression of that kind; only the operator raises a number. After removing suppressions, run pnpm run suppressions:update and commit the file.
<!-- antelopejs-guardrails:end -->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.

