greptimedb
AGENTS.md6.7k starsChanged 4 months agoApache-2.0View on GitHub
Guidance for coding agents (Claude Code, Codex, ...) and contributors working in this repository. CLAUDE.md is a symlink to this file. If .local/AGENTS.md or .local/CLAUDE.md is present, you MUST read it as well — it holds personal or machine-local overrides (gitignored, not shared). To record a personal or machine-local override, write it to .local/AGENTS.md (create .local/ and the file if absent), not to this shared file. GreptimeDB is an open-source, cloud-native observability database for unified collection and analysis of metrics,…
- Installs packages
Trending
Quiet since September.about the whole repository
Who's talking about GreptimeTeam/greptimedb
- yihong0618/gitblog“从给 Greptime 贡献代码的过程中,我都学到了什么”GitHub · Jul 22, 2025 · 40 reactions
- yihong0618/gitblog“2025 年我提了 500 个 Pull Requests”GitHub · Dec 26, 2025 · 32 reactions
- yihong0618/gitblog“最近给开源项目贡献的记录”GitHub · Jan 27, 2025 · 27 reactions
- A Hacker News story“GreptimeDB – A distributed, cloud-native, time-series database written in Rust”Hacker News · Nov 15, 2022 · 7 points
- databendlabs/jsonb“User Story: GreptimeDB uses jsonb for it's JSON support”GitHub · Sep 19, 2024 · 5 reactions
The biggest 5 of 56 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 56
Talked about on GitHub, Bluesky and Hacker News (56 times).
On GitHub · 36
- Jul 22, 2025从给 Greptime 贡献代码的过程中,我都学到了什么 — yihong0618/gitblog40 reactions · 12 comments
- Dec 26, 20252025 年我提了 500 个 Pull Requests — yihong0618/gitblog32 reactions · 9 comments
- Jan 27, 2025最近给开源项目贡献的记录 — yihong0618/gitblog27 reactions · 4 comments
- Sep 19, 2024User Story: GreptimeDB uses jsonb for it's JSON support — databendlabs/jsonb5 reactions · 1 comment
- Feb 5, 2025fix: rewrite fetch, skip of the Limit node in correct order — apache/datafusion4 reactions · 1 comment
31 more on GitHub
- Aug 6, 2023Tracking issues of preparing breaking change for OpenDAL v0.40 — apache/opendal4 reactions · 2 comments
- Sep 10, 2025Add GreptimeDB icon — simple-icons/simple-icons2 reactions
- Aug 22, 2025Repacment API for capabilities such as `list_has_content_length` etc. — apache/opendal2 reactions · 1 comment
- Feb 11, 2025using static check to ignore memory bug and darling pointer — foyer-rs/foyer2 reactions · 8 comments
- Apr 13, 2024feat(promql): add lookback parameter — GreptimeTeam/greptime-proto2 reactions · 1 comment
- Feb 2, 2024feat: region procedure service — GreptimeTeam/greptime-proto2 reactions
- Dec 10, 2023RFC-3734: Buffered reader — apache/opendal2 reactions · 8 comments
- Dec 1, 2023docs: add range query `align to` docs — GreptimeTeam/docs2 reactions · 1 comment
- Aug 28, 2023Add documentation about Profile-Guided Optimization (PGO) — GreptimeTeam/docs2 reactions
- Jun 20, 2023Support `Like` and other familiar exprs in substrait — apache/datafusion2 reactions · 2 comments
- Mar 20, 2023[Task] <support using greptimedb store history metrics data> — apache/hertzbeat2 reactions
- Mar 8, 2023`all_schema()` will skip ExtensionPlan's own schema and fetches schemas from children plans — apache/datafusion2 reactions
- Sep 28, 2026Update docs for feat: add HDFS object storage backend — GreptimeTeam/docs1 reaction
- Sep 15, 2026Update docs for feat: allow re-enabling WAL after disabling — GreptimeTeam/docs1 reaction
- Sep 10, 2026Update docs for feat: support request-level insert WAL skipping — GreptimeTeam/docs1 reaction
- Sep 9, 2026feat(proto): add request-level skip_wal to region inserts — GreptimeTeam/greptime-proto1 reaction · 1 comment
- Sep 9, 2026Update docs for feat: add repartition partition count hint — GreptimeTeam/docs1 reaction
- Sep 4, 2026Update docs for fix(wal): bound Kafka requests and extend latency buckets — GreptimeTeam/docs1 reaction
- Sep 1, 2026Update docs for feat(telemetry): add log directory size retention — GreptimeTeam/docs1 reaction
- Aug 31, 2026new feature: add capability-rooted secure filesystem access — apache/opendal1 reaction
- Aug 10, 2026Document v1.2 breaking changes in the upgrade guide — GreptimeTeam/docs1 reaction
- Aug 10, 2026Fix sparse primary key encoding documentation for v1.2 — GreptimeTeam/docs1 reaction
- Aug 5, 2026Update docs for docs: align wal.sync_period documented default with actual fallback (5s) — GreptimeTeam/docs1 reaction
- Aug 3, 2026Update docs for feat: support enabling skip_wal with ALTER TABLE — GreptimeTeam/docs1 reaction
- Aug 3, 2026Update docs for feat(function): add json_object_keys scalar function — GreptimeTeam/docs1 reaction
- Jul 31, 2026Update docs for fix: sandbox SQL local filesystem access — GreptimeTeam/docs1 reaction
- Jul 14, 2026Update docs for feat: enlarge file meta cache — GreptimeTeam/docs1 reaction
- Jul 6, 2026Update docs for feat: report region query stats in heartbeat — GreptimeTeam/docs1 reaction
- Jun 24, 2026docs: add export import v2 guide — GreptimeTeam/docs1 reaction · 18 comments
- Apr 26, 2026#40910 Add GreptimeDB driver support — dbeaver/dbeaver1 reaction · 15 comments
- Apr 23, 2026Update docs for fix: align gRPC CLI option names with config naming — GreptimeTeam/docs1 reaction
On Bluesky · 14
- Dec 20, 2024GreptimeTeam / greptimedb: An open-source, cloud-native, unified time series database for metrics, logs and events with SQL/PromQL… — @rusttrending.bsky.social4 likes and reposts
- Sep 4, 2026GreptimeTeam / greptimedb: The open-source observability database. One columnar engine for metrics, logs, and traces, on object storage.… — @rusttrending.bsky.social2 likes and reposts
- Aug 13, 2025GreptimeTeam / greptimedb: Open-source, cloud-native, unified observability database for metrics, logs and traces, supporting… — @rusttrending.bsky.social2 likes and reposts
- Jun 7, 2025GreptimeTeam / greptimedb: Open-source, cloud-native, unified observability database for metrics, logs and traces, supporting… — @rusttrending.bsky.social2 likes and reposts · 1 reply
- Apr 13, 2025GreptimeTeam / greptimedb: An open-source, cloud-native, unified observerability database for metrics, logs and events, supporting… — @rusttrending.bsky.social2 likes and reposts
9 more on Bluesky
- Jun 27, 2026GreptimeTeam / greptimedb: The open-source Observability 2.0 database. One engine for metrics, logs, and traces — replacing Prometheus,… — @rusttrending.bsky.social1 likes and repost
- May 5, 2025GreptimeTeam/greptimedb: Open-source, cloud-native, unified observability database for metrics, logs and traces, supporting… — @fluid.sublimer.me1 likes and repost
- May 3, 2025metrics, logs, tracesを格納するためのDB。クエリーはSQLやPromQLなどで書ける。Rust実装。Webベースのdashboardもある。Grafana連携もok。オープンソースのほかクラウドサービスも用意。 — @matsuu.bsky.social1 likes and repost
- Apr 27, 2025GreptimeTeam / greptimedb: Open-source, cloud-native, unified observability database for metrics, logs and traces, supporting… — @rusttrending.bsky.social1 likes and repost
- Feb 21, 2025GreptimeTeam / greptimedb: An open-source, cloud-native, unified time series database for metrics, logs and events, supporting… — @rusttrending.bsky.social1 likes and repost
- Jun 2, 2024GreptimeTeam / greptimedb: An open-source, cloud-native, distributed time-series database with PromQL/SQL/Python supported. Available on… — @rusttrending.bsky.social1 likes and repost
- Apr 1, 2024GreptimeTeam / greptimedb: An open-source, cloud-native, distributed time-series database with PromQL/SQL/Python supported. Available on… — @rusttrending.bsky.social1 likes and repost
- Jul 29, 2023GreptimeTeam / greptimedb: An open-source, cloud-native, distributed time-series database with PromQL/SQL/Python supported. ★2899… — @rusttrending.bsky.social1 likes and repost
- Dec 28, 2025Connaissez-vous greptimedb ? Ce projet m'intrigue beaucoup ! github.com/GreptimeTeam... — @bool.fr0 likes and reposts · 2 replies
On Hacker News · 6
- Nov 15, 2022GreptimeDB – A distributed, cloud-native, time-series database written in Rust7 points
- Apr 7, 2024GreptimeDB: A fast and cost-effective alternative to InfluxDB3 points
- Feb 12, 2024Another distributed time-series database written in Rust3 points
- Jan 14, 2025GreptimeDB: Unified Storage for Logs, Metrics, and Traces with OpenTelemetry2 points
- Jul 27, 2024Unified time series database for metrics, logs, and events written in Rust1 point
1 more on Hacker News
- Feb 6, 2024Another distributed time-series database written in Rust1 point
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,773 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 repository6 other files it gives its agents.
- tests-integration/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- greptimedb-development-docker-imageSkill
- greptimedb-fuzz-ci-failure-investigationSkill
- greptimedb-release-noteSkill
- greptimedb-releaseSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
13 rules. About 0 are common, 6 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 47
Before editing a path, read every AGENTS.md from the repository root down to that path.
- Very specific: line 75
Follow docs/style-guide.md for Rust style, module design, naming, and reuse guidance.
- Distinctive: line 99
Check git status --short before editing.
- Distinctive: line 101
Do not rewrite history, force-push, or remove files in bulk unless the user explicitly requests it.
- Very specific: line 103
Update generated artifacts only through the generators documented in .agents/generated-files.md.
- Distinctive: line 108
Use the narrowest command that covers the change, then expand only when its blast radius requires it.
- Very specific: line 127
If you added a .rs, .py, or .ts file, apply and verify its license header with hawkeye format followed by hawkeye check.
- Distinctive: line 134
If you added or changed a public configuration option, update the applicable example TOMLs, configuration-loading and serialized-config …
- Very specific: line 138
If you changed a persisted or wire format, add a compatibility test case (see .agents/architecture-invariants.md).
- Very specific: line 140
If you added or gated an enterprise-only file, give it the enterprise license header, list it in licenserc-enterprise.toml (includes) and …
- Distinctive: line 143
Use a conventional-commit title, sign off commits (git commit -s), and sign the CLA.
- Very specific: line 145
When creating or updating a pull request, follow .github/pull_request_template.md: include the CLA statement, fill the change-intention …
- Very specific: line 154
If the change must also land on release branches, add the matching backport-<target> labels (e.g.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
AGENTS.md
Guidance for coding agents (Claude Code, Codex, ...) and contributors working in
this repository. CLAUDE.md is a symlink to this file. If .local/AGENTS.md or
.local/CLAUDE.md is present, you MUST read it as well — it holds personal
or machine-local overrides (gitignored, not shared). To record a personal or
machine-local override, write it to .local/AGENTS.md (create .local/ and the
file if absent), not to this shared file.
GreptimeDB is an open-source, cloud-native observability database for unified collection and analysis of metrics, logs, and traces. It is written in Rust and provides sub-second querying at PB scale with high cost efficiency.
Core commands
| Task | Command |
| Build (debug) | make build |
| Build (release) | make build RELEASE=true |
| Run standalone | cargo run -- standalone start |
| Targeted Rust tests | cargo nextest run -p <package> (preferred over cargo test) |
| Full local Rust suite | make test |
| SQL tests | cargo sqlness bare (single case: cargo sqlness bare -t <name>) |
| Format | make fmt (and make fmt-toml for TOML) |
| Lint | make clippy (= cargo clippy --workspace --all-targets --all-features -- -D warnings) |
| Type check | make check |
Toolchain: Rust (stable, pinned by rust-toolchain.toml), Protobuf compiler (>= 3.15), C/C++ build essentials.
Install the test runner with cargo install cargo-nextest --locked.
Repo map
GreptimeDB is a Cargo workspace rooted at the repository; most crates live under
src/ (plus tests-fuzz, tests-integration, tests/runner). Key areas:
- Frontend / protocol:
src/frontend/(request orchestration),src/servers/(wire protocols),src/sql/(SQL parsing) - Storage engines:
src/mito2/(main time-series engine),src/metric-engine/(metrics),src/file-engine/ - Coordination:
src/meta-srv/(metadata & cluster control),src/meta-client/ - Execution / statements:
src/operator/(DDL/DML, request conversion, procedures) - Stream / transform:
src/flow/(continuous aggregation),src/pipeline/ - Query / index:
src/query/,src/promql/,src/index/ - Shared:
src/common/,src/datatypes/,src/store-api/(engine contract),src/catalog/,src/table/
Before editing a path, read every AGENTS.md from the repository root down to
that path. The root guide always applies; a nested guide adds or overrides rules
for its subtree. Changes spanning multiple subtrees must follow every applicable
guide.
AGENTS.md files are maps, not manuals. Keep them short and stable: record
where code lives, important boundaries or change-coupling, high-cost gotchas,
and the validation entry point. Implementation details belong in code. Do not
copy exhaustive test lists or workflow logic; link to the source of truth.
High-change areas and specialized test suites carry their own AGENTS.md with
a module map, read/write paths, change-coupling points, and gotchas:
src/common/meta/AGENTS.mdsrc/query/AGENTS.mdsrc/servers/AGENTS.mdsrc/operator/AGENTS.mdsrc/mito2/AGENTS.mdsrc/metric-engine/AGENTS.mdsrc/flow/AGENTS.mdsrc/frontend/AGENTS.mdsrc/meta-srv/AGENTS.mdtests-integration/AGENTS.mdtests/compatibility/AGENTS.mdtests/perf/AGENTS.md
Rust style
Follow docs/style-guide.md for Rust style, module
design, naming, and reuse guidance.
Read before changing code
.agents/architecture-invariants.md— repo-wide rules that are easy to violate and expensive to get wrong (persisted/ wire format compatibility, crate layering, async runtimes, error handling, feature gating, the DataFusion fork)..agents/generated-files.md— tool-generated artifacts that must not be hand-edited (sqlness.result,config/config.md, Grafana dashboards, proto).docs/style-guide.md— code style.CONTRIBUTING.md— contribution flow and CLA.
High-signal entry points
- Main binary:
src/cmd/src/bin/greptime.rs - Configuration:
src/common/config/, example TOMLs inconfig/ - Error handling:
src/common/error/(ErrorExt,StatusCode) - Protocol implementations:
src/servers/src/
Worktree safety
- Check
git status --shortbefore editing. Preserve unrelated tracked changes and untracked files; re-read files changed by another process. - Do not rewrite history, force-push, or remove files in bulk unless the user explicitly requests it.
- Update generated artifacts only through the generators documented in
.agents/generated-files.md.
Validation by change type
Use the narrowest command that covers the change, then expand only when its blast radius requires it.
| Change | Minimum validation |
| One Rust crate | cargo nextest run -p <package> |
| Cross-workspace Rust behavior | make test; inspect .github/workflows/rust.yml when CI parity matters |
| SQL parsing, planning, execution, or output | cargo sqlness bare -t <case>; inspect regenerated .result files |
| Persisted metadata or wire format | Add/run a case under tests/compatibility/; follow its README.md and AGENTS.md |
| Public configuration | Update example TOMLs, loading/serialization snapshots, and docs; run make config-docs |
| Query regression harness or DSL | Follow tests/perf/AGENTS.md |
| Enterprise-gated code | Build/test with --features enterprise where applicable and run make check-enterprise-license |
For import/export, COPY, or snapshot-storage changes, follow the Windows
portability and validation guidance in
tests-integration/AGENTS.md.
Before opening a PR
- If you added a
.rs,.py, or.tsfile, apply and verify its license header withhawkeye formatfollowed byhawkeye check. Use the inception year fromlicenserc.toml, not the current year. make fmtmake clippymake testmake check-udeps(runmake fix-udepsif it reports unused dependencies).- If you added or changed a public configuration option, update the applicable
example TOMLs, configuration-loading and serialized-config snapshot tests,
and related user-facing documentation. Run
make config-docs(needs Docker) and commit the regeneratedconfig/config.md. - If you changed a persisted or wire format, add a compatibility test case (see
.agents/architecture-invariants.md). - If you added or gated an enterprise-only file, give it the enterprise license
header, list it in
licenserc-enterprise.toml(includes) andlicenserc.toml(excludes), and runmake check-enterprise-license. - Use a conventional-commit title, sign off commits (
git commit -s), and sign the CLA. - When creating or updating a pull request, follow
.github/pull_request_template.md: include the CLA statement, fill the change-intention section with enough detail, and update checklist items accurately. "This PR requires documentation updates" refers to the official docs site repository (GreptimeTeam/docs), not to rustdoc or comments in this repo. Check it only when that site would be wrong or incomplete without a matching change; a change users cannot observe does not need it. - If the change must also land on release branches, add the matching
backport-<target>labels (e.g.backport-v1.3targetsrelease/v1.3). The Backport workflow (.github/workflows/backport.yml) cherry-picks a merged PR onto each target branch and opens a backport PR automatically; on conflicts it aborts and files an issue for a manual backport.
More
- Agent skills and resources:
.agents/(see.agents/README.md) - Architecture decisions:
docs/rfcs/ - How-to guides:
docs/how-to/
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.

