turso: Instructions file for Codex

AGENTS.md

turso AGENTS.md is an instructions file for Codex, OpenCode from tursodatabase/turso. It costs 2,923 tokens per session, scanned A, original, MIT.

Project-wide instructions for developing Turso, a Rust rewrite of SQLite, the database engine used by many applications. They cover building, formatting, linting, running tests, and organizing test suites.

In plain words
What is it for?
Use them to build Turso, run Rust, compatibility, SQL, extension, or MVCC tests, compare behavior with SQLite, format code, and run workspace checks.
Why use it?
They provide the correct commands and test choices for a large multi-package codebase, reducing mistakes caused by using the wrong toolchain or test runner.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is tursodatabase/turso's own configuration. It tells Codex and OpenCode how to work on turso itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything turso configures →

About the project

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.

tursodatabase/turso · 25,079 stars · on GitHub

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/tursodatabase/turso/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/tursodatabase/turso

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for turso AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/tursodatabase/turso/agents-md/github.svg)](https://agentmods.dev/instructions/tursodatabase/turso/agents-md)
Your own site
<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.

agentmods 80×15 button for turso AGENTS.md

Your own site · 80×15
<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>
Per session 2,923 This file is loaded in full into every session.
When invoked 2,923 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.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

Measured yesterday against content hash 18ca1669c237, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

AGENTS.md · 202 lines

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 tests
  • make test - broad compatibility suite (TCL, sqlite3, extensions, MVCC)
  • make test-single TEST=foo.test - single legacy TCL test
  • make -C sqlite/conformance run-rust ARGS='--snapshot-filter __never__' - preferred .sqltest runner for new coverage
  • CI=1 make -C sqlite/conformance run-rust - only when snapshot tests are required
  • make -C postgres/conformance run - run the PostgreSQL .sqltest corpus against tursopg
  • make -C postgres/conformance run-postgres - run the PostgreSQL .sqltest corpus against a real PostgreSQL server (needs Docker, or a server at PG_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 .sqltest DSL.
  • 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/ - .sqltest coverage 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/ and testing/concurrent-simulator/ - deterministic concurrency, scheduling, and failure-injection coverage for state-machine and I/O correctness.
  • testing/differential-oracle/ and testing/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.

Read the full file on GitHub · 202 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 Changed · +16 lines · +178 tokens per session 18ca1669c237
  2. 3d ago Changed · +1 lines · +62 tokens per session 0655fda23a79
  3. 5d ago Changed · +3 lines · +192 tokens per session 9762f7bf886e
  4. 8d ago Changed · +2 lines · +105 tokens per session 07ef6eefece4
  5. 9d ago Changed · +7 lines · +56 tokens per session d60f51a394ce
  6. 13d ago Changed · +1 lines · -6 tokens per session 53dccbd862cd
  7. 19d ago Changed · +5 lines · +100 tokens per session fcd3541e79e4
  8. 22d ago Changed · +70 tokens per session 0249f915559c
  9. 1mo ago Changed · +8 tokens per session 2311fedebbeb
  10. 1mo ago First seen · 167 lines · 2,158 tokens per session scan A dd3aac711036

Subscribe to this mod's changes

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.

Related

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).

microsoft/vscode · 9,715 tokens

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.

vercel/next.js · 7,461 tokens

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).

microsoft/vscode · 5,262 tokens

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.

langchain-ai/langchain · 4,680 tokens

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).

microsoft/vscode · 2,731 tokens

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.

deepseek-ai/deepseek-harness · 4,261 tokens