Turso is an in-process SQL database written in Rust that is compatible with SQLite and also accepts PostgreSQL syntax through an experimental frontend. It is for applications and organizations that need an embeddable database engine with support for multiple languages, platforms, and database features. The catalogue entries are skills and instructions for working with Turso.
Borrowing it
Nothing to install: this file belongs to tursodatabase/turso. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/tursodatabase/turso/main/AGENTS.mdgit clone --depth 1 https://github.com/tursodatabase/tursoWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/tursodatabase/turso/agents-md)<a href="https://agentmods.dev/instructions/tursodatabase/turso/agents-md"><img src="https://agentmods.dev/badge/instructions/tursodatabase/turso/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/tursodatabase/turso/agents-md"><img src="https://agentmods.dev/badge/instructions/tursodatabase/turso/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.02923 | $0.02923 |
| Opus 5.5 | $0.01169 | $0.01169 |
| Sonnet 5.5 | $0.00585 | $0.00585 |
| Haiku 4.5 | $0.00292 | $0.00292 |
Grade A, and why
turso 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.
How it starts
The opening of the file, as written. The whole thing — 202 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Turso Agent Guidelines
SQLite rewrite in Rust. 40+ crate workspace.
Quick Reference
cargo build # build (debug; release builds are slow and double the target dir)
cargo check # type check. prefer to `cargo build`
cargo test # rust unit/integration tests
cargo fmt # format (required)
cargo clippy --workspace --all-features --all-targets -- --deny=warnings # lint
cargo run -q --bin tursodb -- -q # run the interactive cli (debug build)
make test # TCL compat + sqlite3 + extensions + MVCC
make test-single TEST=foo.test # single TCL test
make -C sqlite/conformance run-rust ARGS='--snapshot-filter __never__' # sqltest runner (preferred for new tests)
CI=1 make -C sqlite/conformance run-rust # use only if snapshot tests are required
scripts/diff.sh "SQL" [label] # compare sqlite3 vs tursodb output
Testing
Running Tests
cargo test- Rust unit and integration testsmake test- broad compatibility suite (TCL, sqlite3, extensions, MVCC)make test-single TEST=foo.test- single legacy TCL testmake -C sqlite/conformance run-rust ARGS='--snapshot-filter __never__'- preferred.sqltestrunner for new coverageCI=1 make -C sqlite/conformance run-rust- only when snapshot tests are requiredmake -C postgres/conformance run- run the PostgreSQL.sqltestcorpus against tursopgmake -C postgres/conformance run-postgres- run the PostgreSQL.sqltestcorpus against a real PostgreSQL server (needs Docker, or a server atPG_DSN)
Test Organization
Default: add coverage to the narrowest existing test harness that can express the bug. Prefer extending an existing test file or directory over creating a new one.
sqlite/conformance/sqlite-sqltests/- preferred for SQL conformance coverage. These tests run the same scenario against both Turso and SQLite, so use them first for parser, planner, executor, and SQL semantics work that fits the.sqltestDSL.tests/integration/- primary fallback when the behavior cannot be expressed cleanly in.sqltest. Put API-level regressions, multi-connection orchestration, storage assertions, injected failures, timeout behavior, and other Rust-driven scenarios here.sqlite/conformance/upstream/- imported upstream SQLite golden tests. They are fixed compatibility coverage, so a Turso behavior change should be fixed in Turso rather than by editing them; edits here are for upstream syncs or harness maintenance.postgres/conformance/pg-sqltests/-.sqltestcoverage for the PostgreSQL frontend. Tests are meant to pass on both tursopg (run) and real PostgreSQL (run-postgres).testing/cli_tests/- CLI-focused Python coverage for shell behavior and end-to-end command workflows.tests/fuzz/- minimized fuzz regressions and targeted edge cases that are easier to keep as Rust tests.testing/simulator/andtesting/concurrent-simulator/- deterministic concurrency, scheduling, and failure-injection coverage for state-machine and I/O correctness.testing/differential-oracle/andtesting/stress/- differential and long-running stress tooling. Use these for deeper investigation or specialized validation, not as the first stop for a focused regression test.
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.
- yesterday Changed · +16 lines · +178 tokens per session 18ca1669c237
- 3d ago Changed · +1 lines · +62 tokens per session 0655fda23a79
- 5d ago Changed · +3 lines · +192 tokens per session 9762f7bf886e
- 8d ago Changed · +2 lines · +105 tokens per session 07ef6eefece4
- 9d ago Changed · +7 lines · +56 tokens per session d60f51a394ce
- 13d ago Changed · +1 lines · -6 tokens per session 53dccbd862cd
- 19d ago Changed · +5 lines · +100 tokens per session fcd3541e79e4
- 22d ago Changed · +70 tokens per session 0249f915559c
- 1mo ago Changed · +8 tokens per session 2311fedebbeb
- 1mo ago First seen · 167 lines · 2,158 tokens per session scan A dd3aac711036
turso AGENTS.md is an instructions file published in the GitHub repository tursodatabase/turso (25,079 stars, last pushed today), licensed MIT. It adds 2,923 tokens to every session, about $0.0117 per session on Opus 5.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.
Other instructions, from other repositories
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deepseek-harness AGENTS.md
AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.