agentleFS
AntelopeJSAntelopeJS/dms-assistant/AGENTS.md

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…

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
  1. Distinctive:

    No tool checks these:

    line 65

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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

PathWhat it is
srcThe DMS module (CommonJS, built to dist); construct, start and destroy in src/index.ts run both parts
src/builderThe external database connect routes under /api/builder/database, which call the operations of @antelopejs/interface-dms-builder
sidecarThe 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-vueThe dashboard layer, one frontend registration. ESLint and Prettier own it, not oxlint and oxfmt; Prettier skips frontend-vue/builder
frontend-vue/builderThe 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
playgroundA DMS project that loads the module; its own lockfile, outside the pnpm workspace
e2eThe 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
skillsThe 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/codex version the sidecar's pin in sidecar/package.json names, or a later 0.x release: the sidecar ships the pinned version's app-server protocol types, generated into sidecar/src/providers/codex/protocol by pnpm --dir sidecar generate:codex-types.
  • frontend-vue/package.json pins the supported @antelopejs/dms-frontend minor in engines.
  • See sidecar/src/constants/providers.ts for 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 test and pnpm --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 the installed-module job, which verdict needs, and the release runs it before it starts.
  • The Codex acceptance suite: CODEX_ACCEPTANCE=1 pnpm --dir sidecar test:acceptance. CI runs it in the codex-latest workflow, nightly and on a manual run, on the latest @openai/codex 0.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 the CODEX_ACCEPTANCE_AUTH secret, and warns instead of failing when the secret is missing or its sign-in is spent.
  • The journeys that open no tab: pnpm test:integration runs tests/integration/*.journeys.test.mjs, the journeys a feature marks integration: true, on one run per journeys suite through @antelopejs/dms/e2e/run. CI runs it in the integration job in the merge queue, on a manual run and nightly. pnpm e2e:build builds what every run needs (the module, the sidecar and both playgrounds); with DMS_E2E_PREBUILT=1 a run skips that build.
  • The browser journeys: pnpm e2e (and pnpm 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 @smoke narrows it to the smoke set. CI runs the smoke set in the e2e job on a pull request, and every journey in shards in the merge queue, on a manual run and nightly, whose shards e2e-report merges into one report. tests/journey-coverage.test.cjs checks that the covers globs the journeys modules of both suites export cover every user-facing file.
  • The full frontend-vue typecheck: pnpm --dir frontend-vue verify-source builds the DMS core layer with this one and runs vue-tsc. checks typechecks 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 -->

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.