Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

insitu — Markdown in its place.

/ɪn ˈsɪt.uː/ · in-SIT-oo

adverb, adjective — from Latin in situ, "in its original place."

  1. In the original, natural or intended position.
  2. Computing. Keeping computed views where people and agents read them: inside the files themselves.

Your files are the source of truth. Everything else is a view.

Insitu is Git-native reactive Markdown. Write knowledge once, as ordinary Markdown and front matter; query it with SQL, render it with templates or extensions, and Insitu writes the result back into your Markdown files, between comment markers. The comment-region idea comes from MagicMarkdown; Insitu adds a SQL index over every document, generated front matter, a drift check for CI, and extensions that run as separate processes.

The output is not a virtual view. It is Markdown that you commit, diff and review, and it reads the same on GitHub, in your editor, in Obsidian, or to an AI agent. No database to migrate, no plugin, no viewer.

The source stays human-editable. The view stays machine-maintained. Both live in Git.

See it in action

Hundreds of task files, each with front matter:

---
title: Build authentication
status: in-progress
---

A SQL model over every document's front matter (insitu init writes this one to insitu/models/open_items.sql):

select path, coalesce(title, name) as title, status
from documents
where status is not null and status != 'done'
order by path;

A region in your ROADMAP.md:

<!-- insitu:begin sql
id = "open-items"
model = "open_items"
template = "table.md.j2"
-->
<!-- insitu:end -->

Run insitu sync and the table appears between the markers, with links relative to the roadmap. Change a task's status and sync again, or leave insitu watch running and the roadmap follows your edits. In CI, insitu check fails when any view is stale.

This README maintains itself

The table below is an Insitu region. insitu/models/documentation.sql lists every guide in this repository and documentation.md.j2 renders it; add a Markdown file and the next insitu sync adds a row, or devenv up adds it as you save. A Git hook runs insitu check, so this list cannot fall behind the repository.

Guide File
Architecture ARCHITECTURE.md
Contributing CONTRIBUTING.md
Compatibility docs/compatibility.md
Distribution docs/distribution.md
Process protocol v1 docs/protocol.md
Python SDK docs/python-sdk.md
Insitu for Node.js packaging/npm/README.md

What it does

Capability What you get
SQL models over a SQLite index Query Markdown and front matter like a table; models compose with ref()
sql, include, tree, materialize Query results, reused snippets, directory trees, any resource rendered by any renderer
Jinja templates and @insitu/table, @insitu/list, @insitu/json Any layout, or a sensible default
Front-matter targets Generated values written under generated:, never over authored keys
sync, check, watch Update on demand, fail CI on drift, or follow edits live
Git-aware scanning .gitignore respected by default
Rust and Python extension SDKs New transforms, resources and validators as trusted processes
Staged, checked writes Each file is replaced atomically, and only if it has not changed since it was read

The engine is a native Rust binary; Python is needed only for Python extensions.

Built for humans, ready for agents

Coding agents already read and write Markdown. Plans, tasks, decisions and handoffs can live as ordinary files in the repository, and Insitu keeps the indexes and dashboards over them current, so every agent and every person reads the same state.

Insitu is not an agent framework, a memory store or a vector index. It is the materialization layer underneath them: whatever writes the source files, Insitu keeps the views of them in the repository.

Let your coding agent set it up

Paste this into Claude Code, Codex, OpenCode or any agent that can work in your repository:

Set up Insitu (https://github.com/marcusinthesky/insitu) in this repository and
deliver one working, useful view, not a proposal.

1. Survey the Markdown, YAML front matter, docs, agent instructions and automation.
2. Pick the most valuable first view: a roadmap, task dashboard, docs index or similar.
3. Read Insitu's README and docs before editing. Use only directives, options and
   commands that the installed version supports; check `insitu --help`.
4. Install Insitu with a supported method, preferring the repository's pinned tooling.
5. Run `insitu init`, then write a SQL model, an optional template and one region.
6. Run `insitu sync`, confirm the result reads well without Insitu, then run
   `insitu check` and confirm it exits 0.
7. If the repository uses pre-commit or prek, add `insitu check` as a hook.
8. Summarize the files changed, the commands run, and how to add another view.

Keep authored content untouched outside Insitu regions, do not create a second
copy of data that already lives in Markdown, and do not commit or push unless asked.

Usage

insitu init                          # insitu.toml plus a starter model and template
insitu sync                          # converge every region once
insitu check                         # compute without writing: 0 current, 1 stale, 2 error
insitu watch                         # converge, then react to filesystem events
insitu extension add ./my-extension  # install a process extension

check uses an in-memory index and accepts --json. Installation channels (Cargo, PyPI, npm, Nix) are described in docs/distribution.md.

Status

Alpha. This Rust engine replaces the Python engine at 7f3a1b8327a3e14ac9ac2d8a4b25b19fcdab8daa. Existing insitu.toml, region markers, protocol v1 and the Python extension SDK are the compatibility target. On a real project of 1,146 sources and 112 regions, both engines produce byte-identical output in every tested scenario. That is a parity test, not a benchmark; the scenarios and known differences are in docs/compatibility.md.

Every run re-indexes and re-renders the whole project; there is no incremental cache yet. Writes are atomic per file, not across files. Extensions are trusted OS processes, not sandboxes.

Repository

Each crate describes itself in its README's front matter, and this table, like the one in ARCHITECTURE.md, is generated from it:

Crate Responsibility Start reading
insitu The command line, its reports and the filesystem watch loop; it computes nothing itself. src/main.rs
insitu-core The engine — scan, SQLite index, plan, render, then a checked, staged commit of every changed file. src/project.rs
insitu-protocol Version 1 wire format for extensions — validated models and a bidirectional JSON-RPC peer over framed stdio. src/peer.rs
insitu-sdk Typed registration for Rust extensions — resources, transforms, renderers and validators as async handlers. src/lib.rs

python/insitu is the Python extension SDK (there is no Python engine), packaging/npm a launcher for the native binaries, and flake.nix the Nix package. ARCHITECTURE.md explains how the pieces fit, and protocol describes the extension wire format.

Development

devenv pins every tool through devenv.lock. Install the pinned CLI with bash nix/install-devenv.sh, then run direnv allow or devenv shell. Entering the shell syncs the Python SDK's dependencies from uv.lock and installs the prek Git hooks; devenv up then runs insitu watch, so generated regions follow your edits.

The Markdown gates divide the work: rumdl owns formatting and local links, lychee external links (on push), schematter document shape (schemas/guide.document-schema.yaml), codespell spelling, and insitu check generated content. Harper is the editor's grammar checker through harper-ls, with just prose as an advisory pass.

just check        # every gate in .pre-commit-config.yaml, as the hooks run them
just test         # nextest and doctests
just lint         # Clippy, warnings denied
just parity ~/Git/pricing-perspective   # read-only `check` on a real project
just fmt          # format Rust, Nix, TOML, Markdown, Python and justfiles
just prose        # advisory Harper grammar pass over tracked Markdown
just site         # build the documentation site into site/

rust-toolchain.toml is the minimum supported Rust version, which CI tests on Linux, macOS and Windows; the devenv shell uses a newer pinned toolchain.


Your knowledge belongs in your repository. Keep it in situ.

Metadata

Release files for insitu-cli 0.2.0rc2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for insitu-cli 0.2.0rc2
File Size Uploaded Provenance Actions
insitu_cli-0.2.0rc2.tar.gz 81.2 kB With provenance Details for insitu_cli-0.2.0rc2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for insitu-cli 0.2.0rc2
File Actions
insitu_cli-0.2.0rc2-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for insitu_cli-0.2.0rc2-py3-none-win_amd64.whl
insitu_cli-0.2.0rc2-py3-none-manylinux_2_39_x86_64.whl Python 3 none Linux glibc 2.39+ x86-64 Details for insitu_cli-0.2.0rc2-py3-none-manylinux_2_39_x86_64.whl
insitu_cli-0.2.0rc2-py3-none-manylinux_2_39_aarch64.whl Python 3 none Linux glibc 2.39+ ARM64 Details for insitu_cli-0.2.0rc2-py3-none-manylinux_2_39_aarch64.whl
insitu_cli-0.2.0rc2-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for insitu_cli-0.2.0rc2-py3-none-macosx_11_0_arm64.whl
insitu_cli-0.2.0rc2-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for insitu_cli-0.2.0rc2-py3-none-macosx_10_12_x86_64.whl

Total release size: 21.2 MB

Release files / insitu_cli-0.2.0rc2.tar.gz

Download URL insitu_cli-0.2.0rc2.tar.gz
Size 81.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ceefb2ab3a88f0c6a86d8ebc77c31ffc30e92adb31c67b5eee0c478888e0020f
BLAKE2b-256 checksum
How to use checksums
8c0567dac6b7ce4de3c5adf234a0f36732d6f372c74be024f73cf11bc0ee3b6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / insitu_cli-0.2.0rc2-py3-none-win_amd64.whl

Download URL insitu_cli-0.2.0rc2-py3-none-win_amd64.whl
Size 4.5 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
3f12aad43f08da8a29251b5a75b138f84bbf4221b1d10ca70b6bf56cf3d04d04
BLAKE2b-256 checksum
How to use checksums
f7ff59cf60bd6cfb8a22c17cb352b2f4067c0cce9ee8cfa87205ba91225c599b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / insitu_cli-0.2.0rc2-py3-none-manylinux_2_39_x86_64.whl

Download URL insitu_cli-0.2.0rc2-py3-none-manylinux_2_39_x86_64.whl
Size 4.4 MB
Tags Linux glibc 2.39+ x86-64 Python 3
SHA-256 checksum
How to use checksums
9cc40bae63c3d82503c9b9018ecfb4a68cff9b54f6e43f6935a18ff9be32c6b4
BLAKE2b-256 checksum
How to use checksums
85a21b3c1a6518a69b9c81e350ddac378bca38935293993e2bcd89a1c1b408fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / insitu_cli-0.2.0rc2-py3-none-manylinux_2_39_aarch64.whl

Download URL insitu_cli-0.2.0rc2-py3-none-manylinux_2_39_aarch64.whl
Size 4.2 MB
Tags Linux glibc 2.39+ ARM64 Python 3
SHA-256 checksum
How to use checksums
858e23fc49ec7f388f283e87984c2c835ab32bb95d306dafbec3af77a1e7ee4c
BLAKE2b-256 checksum
How to use checksums
723bb04eb21f577411497f901eb1829175957cccc0d3a2993ee99a4cef6bb569
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / insitu_cli-0.2.0rc2-py3-none-macosx_11_0_arm64.whl

Download URL insitu_cli-0.2.0rc2-py3-none-macosx_11_0_arm64.whl
Size 3.9 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
67a6d3a2a817f46ecf0eadc89ca7ebdef22fc732747021be59dd0880fd4d8f0f
BLAKE2b-256 checksum
How to use checksums
2e7809ee52625a3d3616d7783d229ebf003f09830b5c686531cd024ab2b888a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / insitu_cli-0.2.0rc2-py3-none-macosx_10_12_x86_64.whl

Download URL insitu_cli-0.2.0rc2-py3-none-macosx_10_12_x86_64.whl
Size 4.1 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
e85b237dc95af918e07bea6d8609bdcdef7815b4e940575cd1e0658453a108ec
BLAKE2b-256 checksum
How to use checksums
98280145fb625a8661069c67d685405f40d7143ee8f727d1fcd3b3ee8e468304
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Security for insitu-cli 0.2.0rc2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for insitu_cli-0.2.0rc2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page