Skip to content

feat: Better AI documentation - #465

Merged
mihajlo-stojkovic merged 8 commits into
chore/remove-openassistant-depfrom
feat/agent-markdown-docs
Mar 18, 2026
Merged

mihajlo-stojkovic merged 8 commits into
chore/remove-openassistant-depfrom
feat/agent-markdown-docs

Conversation

@mihajlo-stojkovic

Copy link
Copy Markdown
Collaborator

Summary

Restructures AGENTS.md and CLAUDE.md to follow progressive disclosure principles, replacing the 270-line CLAUDE.md with a lean root file and a set of topic-specific docs loaded on demand.

Inspired by A Complete Guide To AGENTS.md.


What changed

AGENTS.md — rewritten as a minimal root file

The previous CLAUDE.md loaded ~270 lines of architecture docs, patterns, troubleshooting, and common tasks into every AI request regardless of relevance. The new AGENTS.md is ~41 lines covering only what every agent always needs: project description, requirements, key commands, and critical gotchas.

CLAUDE.md — replaced with a symlink

CLAUDE.md is now a symlink to AGENTS.md, so Claude Code and Cursor both read the same canonical file without drift.

contributing/ — progressive disclosure docs

A new contributing/ folder at the repo root (outside docs/, not picked up by VitePress or llms.txt) holds six topic-specific files agents load only when relevant:

File When to load
architecture.md Understanding slices, room, DuckDB layers, panel system, AI tools
patterns.md Writing code touching state, queries, or configs
adding-features.md Adding packages, visualizations, or modifying DuckDB schema
troubleshooting.md Build errors, type errors, DuckDB connection issues
python.md Working on Python packages (CLI, server, RAG)
cursor-cloud.md Working in a Cursor Cloud environment

Why

AI agents load AGENTS.md on every request regardless of what they're actually doing. A 270-line file that covers architecture, patterns, troubleshooting, and common tasks wastes that budget on content irrelevant to some, if not most tasks, and frontier models start dropping instructions around the 150–200 mark anyway.

The new structure gives agents a fast, focused entry point and lets them pull in deeper context only when the task calls for it.

ilyabo and others added 7 commits March 12, 2026 16:49
…ce (#425)

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: dmitriy-kostianetskiy <[email protected]>
)

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: dmitriy-kostianetskiy <[email protected]>
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: dmitriy-kostianetskiy <[email protected]>
Co-authored-by: Dmitriy Kostianetskiy <[email protected]>
@coderabbitai

coderabbitai Bot commented Mar 12, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 66c7a9ee-e0d3-4c9d-9469-2a06b6c77b35

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/agent-markdown-docs
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

…n-docs

# Conflicts:
#	CLAUDE.md
#	CLAUDE.md~chore_remove-openassistant-dep
#	packages/notebook/src/cellOperations/AddNewCellDropdown.tsx
@mihajlo-stojkovic
mihajlo-stojkovic merged commit 50d8ce6 into chore/remove-openassistant-dep Mar 18, 2026
3 checks passed
@mihajlo-stojkovic
mihajlo-stojkovic deleted the feat/agent-markdown-docs branch March 18, 2026 13:27
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