Skip to content

docs: add AGENTS.md and CLAUDE.md#112

Open
Alex-Arsys wants to merge 1 commit into
mainfrom
docs/add-claude-md
Open

docs: add AGENTS.md and CLAUDE.md#112
Alex-Arsys wants to merge 1 commit into
mainfrom
docs/add-claude-md

Conversation

@Alex-Arsys

Copy link
Copy Markdown

AGENTS.md is the canonical guidance file for AI agents working in this repository — covering architecture constraints, conventions, and rules. CLAUDE.md contains only @AGENTS.md, making Claude Code load this file automatically alongside other AI tools.

Assisted-by: ClaudeCode:claude-sonnet-4-6

@Alex-Arsys Alex-Arsys self-assigned this Jun 25, 2026
@Alex-Arsys Alex-Arsys requested a review from a team as a code owner June 25, 2026 10:29
@Alex-Arsys Alex-Arsys requested review from DmySyz and chrip and removed request for a team June 25, 2026 10:29
Comment thread AGENTS.md
## What this repo is
A monolithic C++ library implementing document format conversion (X2T CLI: DOC/DOCX ↔ ODF/PDF/HTML/EPUB/XPS/DjVu/…), font metrics generation (AllFontsGen), headless rendering (DocRenderer), document scripting (doctrenderer), and WASM modules (fonts, spell, zlib, hash, drawingfile). Lowest layer of the stack — everything else depends on its output. Fork of `ONLYOFFICE/core`. Licensed **AGPL-3.0**.

## Build Architecture & Critical Dependencies

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would make sense to document build steps for the binaries and modules in some way so agents can pick up and verify passing build and changes locally.

Comment thread AGENTS.md Outdated
## Rules
- **Never** hand-edit vendored third-party sources in `Common/3dParty/` or `DesktopEditor/agg-2.4/`. For vcpkg-managed dependencies (ICU, Boost, OpenSSL, HarfBuzz, hunspell), bump `vcpkg.json` instead of patching.
- **Never** commit the `build/` output directory or compiled binaries.
- **Never** run CI without `NUGET_CACHE` — cold build takes ~5 hours.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see no sense in adding that. There is no obvious way to trigger a ci run without the cache.

@juliusknorr juliusknorr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rikled @Aiiaiiio I would appreciate input from you here. Anything worth to add or adjust?

@Aiiaiiio

Copy link
Copy Markdown
Member

I don't have much experience with agent files. The info outlined looks sane to me. We can extend as it goes.

@Alex-Arsys Alex-Arsys force-pushed the docs/add-claude-md branch from f4199cc to 677295a Compare June 29, 2026 15:00

@chrip chrip left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes — the build-steps section (addressing Julius's note) and the #51 removal are good improvements. Two factual issues I hit while verifying against the tree, plus one leftover:

1. The vcpkg dependency list is inaccurate.

"For vcpkg-managed dependencies (ICU, Boost, OpenSSL, HarfBuzz, hunspell), bump vcpkg.json instead of patching."

The root vcpkg.json only declares hunspell. ICU, OpenSSL and HarfBuzz are vendored sources under Common/3dParty/ (built via build_3rdparty.py) and aren't in any vcpkg.json; Boost is vcpkg-managed but through a nested Common/3dParty/boost/vcpkg.json. As written this contradicts the bullet directly above it ("Never hand-edit vendored sources in Common/3dParty/"). Suggest narrowing the vcpkg example to what's actually manifest-managed (hunspell, Boost) and treating ICU/OpenSSL/HarfBuzz as vendored.

2. DocRenderer doesn't exist in this repo. I think you mean DocxRenderer (the headless renderer at the repo root). AllFontsGen and doctrenderer check out (both under DesktopEditor/).

3. Leftover from the CI-cache discussion: the Rules bullet was dropped 👍, but the "vcpkg binary cache" bullet still says "CRITICAL FAIL MODE: Running CI without it wastes hours and risks timeouts." Per Julius's point that there's no obvious way to trigger CI without the cache, I'd keep the useful ~5h cold-build fact but drop the "running CI without it" framing.

Non-blocking: couldn't verify make core/* from this repo (no Makefile here — they live at the workspace level per ../AGENTS.md); just confirm make core/allfontsgen is a real target. Once 1–2 are fixed this is good to merge.

Assisted-by: Claude Code (Opus 4.8)

AGENTS.md is the canonical guidance file for AI agents working in this
repository — covering architecture constraints, conventions, and rules.
CLAUDE.md contains only `@AGENTS.md`, making Claude Code load this file
automatically alongside other AI tools.

Assisted-by: ClaudeCode:claude-sonnet-4-6
Signed-off-by: Alex Hernández <ahmartin@arsys.es>
@Alex-Arsys Alex-Arsys force-pushed the docs/add-claude-md branch from 677295a to ee7fc4b Compare June 30, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants