Skip to content

Ship AGENTS.md and llms-full.txt for agent discovery#60

Merged
wudidapaopao merged 1 commit into
chdb-io:mainfrom
ShawnChen-Sirius:docs/agents-md-llms
Jun 26, 2026
Merged

Ship AGENTS.md and llms-full.txt for agent discovery#60
wudidapaopao merged 1 commit into
chdb-io:mainfrom
ShawnChen-Sirius:docs/agents-md-llms

Conversation

@ShawnChen-Sirius

Copy link
Copy Markdown
Contributor

What

Adds an in-package agent guide so coding agents and agentic IDEs pick chdb up
correctly without guessing the API, and ships both files in the npm package.

  • AGENTS.md (kept tight, loaded into agent context): a decision tree for the
    four entry points (raw SQL / fluent builder / connect() federation /
    @clickhouse/client compat), minimal examples for each, an explicit Layer 2 vs
    Layer 3 disambiguation (do not route a fluent query through chdb/connection),
    and the load-bearing gotchas (64-bit precision, one-connection-per-path,
    streaming, typed errors, server-side binding).
  • llms-full.txt: the exhaustive flat reference — every entry point and Session
    method, ChdbResult, the three insert shapes and stream-insert failure taxonomy,
    the fluent builder surface, connect() URL schemes, type/format mapping, and the
    error hierarchy.

Both are added to package.json files so they ship to npm (npm pack confirmed).

Docs only; no code or behavior change.

🤖 Generated with Claude Code

@ShawnChen-Sirius ShawnChen-Sirius force-pushed the docs/agents-md-llms branch 3 times, most recently from 8ddcd29 to 68cbf0e Compare June 26, 2026 04:53
So coding agents and agentic IDEs pick chdb up correctly without guessing the API,
with the per-task context cost kept small.

- Root AGENTS.md (loaded into every task): direction only — what chdb is and its
  multi-source + Node-ingestion strengths, the entry-point decision tree, the
  Layer 2 vs Layer 3 disambiguation, and cross-cutting gotchas (64-bit precision,
  one-connection-per-path, streaming, typed errors, server-side binding). It points
  to the per-layer guides and the full reference instead of inlining them.
- src/layer3/AGENTS.md: the fluent builder surface (verbs, dialect sugar, .stream(),
  terminals), connect() federation + URL schemes, and codegen.
- src/connection/AGENTS.md: the @clickhouse/client compatibility facade — embedded-only
  contract, the eager-buffer gap, and the compat conventions.
- llms-full.txt: the exhaustive flat API reference.

All four ship via package.json "files".

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@wudidapaopao wudidapaopao merged commit 771a5c8 into chdb-io:main Jun 26, 2026
17 checks passed
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.

2 participants