chdb AGENTS.md

Repository instructions for chDB, a data-processing system that uses table-like data and SQL. They describe lazy execution, where work is postponed until results are needed, plus testing and contribution rules.

In plain words
What is it for?
Use them when changing the DataStore layer to return lazy data objects, avoid forcing execution too early, preserve compatible pandas-style and SQL-like APIs, and follow the project’s build and test process.
Why use it?
They help preserve the project’s design by keeping data operations lazy and allowing the final engine to choose how computation runs.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/chdb-io/chdb/agents-md
Clone the repo
git clone --depth 1 https://github.com/chdb-io/chdb

Made for: Codex, OpenCode.

Per session 1,774 This file is loaded in full into every session.
When invoked 1,774 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01774 $0.01774
Opus 5 $0.00887 $0.00887
Sonnet 5 $0.00355 $0.00355
Haiku 4.5 $0.00177 $0.00177

Measured yesterday against content hash 161524ddccb9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

chdb AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 199 lines

How it starts

The opening of the file, as written. The whole thing — 199 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md — chDB

This file captures the design and testing principles of the chdb-ds (DataStore) layer for AI coding agents working on this repository and follows the agents.md open standard.

For setup, build commands, the modify-then-test workflow, PR conventions, CI matrix, security, and other contributor mechanics, see CONTRIBUTING.md.


1. Fully lazy execution architecture

  • All methods returning DataFrame or Series should return Lazy objects (such as DataStore, LazySeries).
  • Defer execution until results are actually needed.
  • Preserve the ability to select the optimal execution engine (pandas vs chDB / SQL) at execution stage.
  • API style does not determine execution engine — pandas-style, Pythonic, SQL terminology should all compile to the same optimised backend execution.
  • Final execute stage selects pandas or chDB ExecutionEngine based on the config system.

2. Natural execution triggering (explicit calls prohibited)

  • Prohibit explicit calls to _execute().
  • Avoid explicit conversions like to_df(), to_list(), to_pandas() as much as possible.
  • Execution is triggered through natural means:
    • .columns — get column names
    • len() — get length
    • .index — get index
    • repr() / print() — display results
    • __iter__ — iteration
    • .equals() — comparison

3. Unified architecture, simplicity first

  • Do not consider backward compatibility — first priority is architectural simplicity and elegance.
  • Don't create split class hierarchies for different execution engines.
  • ColumnExpr uniformly wraps all expression types.
  • Handle lazy execution through unified LazySeries, LazyGroupBy, etc.
  • LazyOp uniformly manages all lazy operations.
  • Avoid duplicate definitions; keep code structure clear with single responsibility.

4. Testing principles

Philosophy:

  • Discovered problems are opportunities to improve the library.
  • Analyse problems from an architectural perspective — don't easily modify tests just to pass them.
  • Using reset_index() in tests to mask problems = DataStore bug, not correct test writing.
  • Don't obsess over container type differences between DataFrame and DataStore.

Read the full file on GitHub · 199 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 199 lines · 1,774 tokens per session scan A 161524ddccb9

Subscribe to this mod's changes

chdb AGENTS.md is an instructions file published in the GitHub repository chdb-io/chdb (2,885 stars, last pushed 4d ago), licensed Apache-2.0. It adds 1,774 tokens to every session, about $0.0089 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.