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.
npx skills add benbjohnson/litestream-skills --skill litestreamgit clone --depth 1 https://github.com/benbjohnson/litestream-skillsWrote 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/skills/benbjohnson/litestream-skills/litestream)<a href="https://agentmods.dev/skills/benbjohnson/litestream-skills/litestream"><img src="https://agentmods.dev/badge/skills/benbjohnson/litestream-skills/litestream/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/skills/benbjohnson/litestream-skills/litestream"><img src="https://agentmods.dev/badge/skills/benbjohnson/litestream-skills/litestream.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.00059 | $0.01393 |
| Opus 5.5 | $0.00024 | $0.00557 |
| Sonnet 5.5 | $0.00012 | $0.00279 |
| Haiku 4.5 | $0.00006 | $0.00139 |
Grade B, and why
litestream scanned grade B with 2 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 3mo ago.
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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
sudo dpkg -i litestream-v0.5.5-linux-amd64.deb Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
wget https://github.com/benbjohnson/litestream/releases/download/v0.5.5/litestream-v0.5.5-linux-amd64.deb How it starts
The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Litestream
Litestream is a disaster recovery tool for SQLite that runs as a background process, continuously replicating database changes to cloud storage. It monitors the SQLite Write-Ahead Log (WAL), converts changes to immutable LTX files, and uploads them to your chosen storage backend.
Key Concepts
- WAL Monitoring: Watches SQLite Write-Ahead Log for changes at configurable intervals (default 1s)
- LTX Files: Immutable files containing database page changes, never modified after creation
- Level-Based Compaction: Multi-level system (L0-L9) that merges LTX files to reduce storage overhead
- Point-in-Time Recovery: Restore to any transaction using TXID or timestamp
- VFS Support: Read replicas directly from cloud storage without local database copy
- MCP Server: AI tool integration for automated database management
Quick Start
Installation
# macOS
brew install litestream
# Linux (Debian/Ubuntu)
wget https://github.com/benbjohnson/litestream/releases/download/v0.5.5/litestream-v0.5.5-linux-amd64.deb
sudo dpkg -i litestream-v0.5.5-linux-amd64.deb
# Docker
docker pull litestream/litestream:0.5
Basic Replication
# Command line (single database)
litestream replicate /path/to/db.sqlite s3://bucket/db
# With config file
litestream replicate -config /etc/litestream.yml
Restore Database
# Restore latest backup
litestream restore -o /path/to/restored.db s3://bucket/db
# Point-in-time recovery
litestream restore -timestamp 2024-01-15T10:30:00Z -o /tmp/db s3://bucket/db
# Restore to specific transaction
litestream restore -txid 1000 -o /tmp/db s3://bucket/db
Check Status
# View all databases and their replication status
litestream status
# List available LTX files
litestream ltx /path/to/db.sqlite
Critical Rules
These rules are essential for correct Litestream operation:
- Lock Page at 1GB: SQLite reserves the page at offset 0x40000000 (1GB). This page must always be skipped during replication and compaction. The page number varies by page size:
- 4KB pages: page 262145
- 8KB pages: page 131073
- 16KB pages: page 65537
What ships with it
33 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- commands/databases.md 2.5 KB
- commands/ltx.md 3.6 KB
- commands/replicate.md 3.9 KB
- commands/restore.md 4.2 KB
- commands/status.md 3.3 KB
- concepts/architecture.md 4.8 KB
- concepts/compaction.md 4.8 KB
- concepts/ltx-format.md 4.8 KB
- concepts/replication.md 4.4 KB
- concepts/sqlite-wal.md 4.6 KB
- concepts/vfs.md 5.4 KB
- configuration/abs.md 3.7 KB
- configuration/example-litestream.yml 7.0 KB
- configuration/file.md 3.6 KB
- configuration/gcs.md 3.1 KB
- configuration/nats.md 4.8 KB
- configuration/oss.md 3.1 KB
- configuration/overview.md 5.7 KB
- configuration/s3.md 6.0 KB
- configuration/sftp.md 4.3 KB
- configuration/webdav.md 3.6 KB
- deployment/docker.md 4.9 KB
- deployment/fly-io.md 5.3 KB
- deployment/kubernetes.md 7.8 KB
- deployment/systemd.md 5.8 KB
- integrations/mcp-server.md 5.0 KB
- operations/heartbeat.md 5.0 KB
- operations/monitoring.md 5.6 KB
- operations/recovery.md 5.9 KB
- operations/troubleshooting.md 5.9 KB
- scripts/check-replication.sh 3.9 KB runs code
- scripts/diagnose-issues.sh 6.7 KB runs code
- scripts/validate-config.sh 5.1 KB runs code
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.
- 3mo ago First seen · 155 lines · 59 tokens per session scan B 4d67db56147b
litestream is a skill published in the GitHub repository benbjohnson/litestream-skills (5 stars, last pushed 10mo ago), licensed Apache-2.0. It adds 59 tokens to every session and 1,393 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
litestream compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| litestreambenbjohnson/litestream-skills | Skill | 5 | 10mo ago | Apache-2.0 | B | 59 | Codex |
| bigquery-migration-metadata-extractorgoogle/skills | Skill | 25k | today | Apache-2.0 | A | 188 | Claude Code, Codex |
| cloud-databases-onboardinggoogle/skills | Skill | 25k | today | Apache-2.0 | A | 83 | Claude Code, Codex |
| atlas-lakebaseariga/atlas | Skill | 8.9k | today | Apache-2.0 | A | 140 | Claude Code |
| azure-mgmt-mongodbatlas-dotnetmicrosoft/skills | Skill | 3.3k | today | MIT | A | 64 | Claude Code |
| azure-resource-manager-mysql-dotnetmicrosoft/skills | Skill | 3.3k | today | MIT | A | 87 | Claude Code |
| azure-resource-manager-redis-dotnetmicrosoft/skills | Skill | 3.3k | today | MIT | A | 114 | Claude Code |