adeu
AGENTS.md165 starsChanged 3 months agoMITView on GitHub
Adeu is a DOCX ↔ LLM translation engine and redlining Virtual DOM. It maintains parallel Python and Node.js implementations plus a LangChain integration. Run commands from the respective package directory:
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,736 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 repositoryOne other file it gives its agents.
- adeu-redliningSkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Run commands from the respective package directory:
- Very specific: line 44
Monorepo Version Bumping: Run python scripts/bump.py [minor|major|patch|X.Y.Z] from repo root to sync version numbers and lockfiles across …
- Very specific: line 45
n8n Codex Exception: Do NOT bump nodeVersion or codexVersion in node/packages/n8n-nodes-adeu/nodes/Adeu/Adeu.node.json during release bumps.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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
Adeu Agent Instructions
Adeu is a DOCX ↔ LLM translation engine and redlining Virtual DOM. It maintains parallel Python and Node.js implementations plus a LangChain integration.
Repository Structure & Packages
python/: Core Python engine (adeu), FastMCP server (adeu-server), and CLI (adeu). Managed viauv(requires Python ≥ 3.12).node/: Node.js workspace (requires Node ≥ 22.0.0).node/packages/core:@adeu/core(TypeScript SDK & engine)node/packages/mcp-server:@adeu/mcp-server(MCP server binary; builds extension bundle todesktop-extension/index.js)node/packages/n8n-nodes-adeu:n8n-nodes-adeu(n8n community node)
langchain/:langchain-adeuintegration package. Editable-links topython/viatool.uv.sources.desktop-extension/: Claude Desktop extension packaging (manifest.json+index.js).scripts/: Monorepo automation (bump.py,check_release_consistency.mjs).
Commands & Verification Workflow
Run commands from the respective package directory:
Python (python/)
- Lint & Format Check:
uv run ruff check . && uv run ruff format --check . - Type Check:
uv run mypy src - Run Tests:
uv run pytest- Single test:
uv run pytest tests/test_engine.py -k "test_name" - Property tests (extended):
uv run pytest --hypothesis-profile=hunt - Debug serial run:
uv run pytest -n 0
- Single test:
Node.js (node/)
- Install:
npm ci(notnpm install: the split TypeScript pin below only holds if the tree matches the lockfile) - Build All Packages:
npm run build(MUST build before testing; compiles tsup outputs for all packages and verifies MCP bundle) - Run Tests:
npm run test- Single test:
cd packages/core && npm run test -- -t "test_name"
- Single test:
- Lint:
npm run lint(all workspaces), orcd packages/n8n-nodes-adeu && npm run lint
LangChain (langchain/)
- Lint & Format Check:
uv run ruff check . && uv run ruff format --check . - Type Check:
uv run mypy langchain_adeu - Run Tests:
uv run pytest(single test:uv run pytest tests/unit_tests/test_apply_changes.py)
Operational Quirks & Invariants
- Build Dependency: Node workspace requires
npm run buildbeforenpm testso compiled dist files exist for@adeu/mcp-serverandn8n-nodes-adeu. - Dual-Engine Parity: Python (
adeu) and TypeScript (@adeu/core) share identical Virtual Text, CriticMarkup, and redlining algorithms. Changes to parsing, diffing, or redlining logic MUST be mirrored in both engines. - Monorepo Version Bumping: Run
python scripts/bump.py [minor|major|patch|X.Y.Z]from repo root to sync version numbers and lockfiles across subprojects, then verify withnode scripts/check_release_consistency.mjs.- n8n Codex Exception: Do NOT bump
nodeVersionorcodexVersioninnode/packages/n8n-nodes-adeu/nodes/Adeu/Adeu.node.jsonduring release bumps.nodeVersionmirrorsAdeu.node.tsruntimeversion(e.g."1.0"), andcodexVersionis the fixed schema version ("1.0"). Syncing them to package versions breaks n8n Cloud verification.
- n8n Codex Exception: Do NOT bump
- Split TypeScript Pin (node/): The workspace root pins
typescriptto~6.0.3andpackages/core+packages/mcp-serverpin^7.0.2nested. This is deliberate, not drift. TypeScript 7 is the native port:require("typescript")exports only{ version, versionMajorMinor }, sots-api-utilsthrows at module load and eslint dies before parsing a file — and npm hoiststs-api-utilsto the workspace root, which is why the JS-API TypeScript has to live there.tsc --emitDeclarationOnlyruns the compiler binary and tsup compiles with esbuild, so builds keep TS 7. Do NOT collapse this to a single root^7.0.2untiltypescript-eslintsupports TypeScript 7 (@typescript-eslint/parser@8.67.0still declares peertypescript >=4.8.4 <6.1.0). SeeBUG_cli_test_encoding_and_n8n_lint_toolchain.md. - Test Subprocesses Decode Explicitly (python/):
subprocess.run(..., text=True)with noencoding=decodes with the host ANSI code page (cp1252 on Windows) while the CLI writes UTF-8 — and the resultingUnicodeDecodeErrordies in a reader thread, silently leaving.stdout/.stderrasNone. Usetests.utils.run_cli();tests/test_cli_encoding.pyfails the build if any test call site skips it. - Tool Schemas Publish No
$schema(node/):ProtocolAdapter.transformOutgoingMessagestrips$schemafrom everytools[].inputSchema/outputSchemaon the way out. This is load-bearing, not cosmetic: the MCP SDK converts Zod schemas with a hardcoded draft-07 target (mapMiniTargetinsdk/server/zod-json-schema-compat.jsdefaults to'draft-7'when no target is passed, andmcp.jsnever passes one), so Zod v4 stamps$schema: "http://json-schema.org/draft-07/schema#"on each schema — and Claude Desktop validates with an Ajv built for 2020-12 only, rejecting the tool with "declares an unsupported dialect". Do NOT "fix" this upstream by handing the SDK a plain JSON Schema dict instead of a Zod schema:normalizeObjectSchemareturnsundefinedfor plain dicts, somcp.js'sif (obj)guard silently dropsoutputSchemaentirely and MCP Apps stops forwardingstructuredContent. Stripping is lossless only while the emitted schemas avoid keywords whose meaning changed between drafts (tuple-formitems,additionalItems,definitions);spec_2026_07_28.test.tsfails the build if any appear. This also restores parity with the Python engine, which publishes plain dicts with no$schema. - Sequential Edit Evaluation:
process_document_batchapplies edits sequentially. Dependent edits in one batch evaluate against the document state produced by preceding edits. - OPC Part Boundaries: Header, body, footer, footnote, and endnote parts are separated by hard walls. Edits (including context widening) cannot cross OPC part boundaries.
- Windows Live Word COM (win32): Windows-only (
pywin32). STA COM tests intentionally omitpythoncom.CoUninitialize()andapp.Quit()during teardown to avoid Windows RPC Access Violations (0x800706be). Live Word COM tests are serialized viapytest.mark.xdist_group("live_word")+--dist loadgroupso they run sequentially on a single xdist worker. - Prerequisites: System tests and XML checks require
xmllint(libxml2-utils).
Key Reference Documents
AI_CONTEXT.md: Architectural invariants (Virtual Text contract, boundary whitespace rules, block-level table parsing, OPC part boundaries, content-control projection dialect, XML surgical mode).GEMINI.md: Tool specification and parameters (read_docx,process_document_batch,accept_all_changes).CONTRIBUTING.md: Dev environment setup, git hooks (.githooks), and PR guidelines.
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.

