Skip to content

Overview

Ashlar is the rules for designing and building software with agents. It lints a TypeScript repository and reads its import graph, and it keeps a baseline of each file's breaks that may only shrink: old code stays as it is, and no file gets worse. Every rule comes from a correction a person made, and each tells the agent what to do instead. Ashlar also keeps the knowledge an agent needs before it changes a part of the code: who owns it, what people decided about it, and what nobody has written down yet.

An agent adds a comment to src/total.ts, and the check fails:

Terminal window
$ pnpm exec ashlar check
Ashlar checked 1 file in 0.1 s: 1 count rose.
no-comment in src/total.ts: 1, up from 0
src/total.ts:1:1
Comments go stale and nothing checks them. Rename it, or write a test. Git leads from any line to the item or task that wrote it.

The check exits with 1. The last line is the message the agent reads, and it says what to do instead.

Feature What it does
Rules Twelve rules, from no comments and short files to which folder may import which, each with the message an agent reads when it fires.
The ratchet A baseline of each file's breaks per rule, which ashlar check holds every change to and --shrink only ever lowers.
The ledger Each rule, the correction it came from, the test that holds its case, and the prose it replaced.
Affected tests ashlar affected lists the tests a change reaches, through imports, stylesheets, setup files and builds.
The feature map Each feature folder with its name, its reach script (the way a person gets to it in the app) and its tests.
Drive ashlar drive walks a feature's reach script through rehearse drive, or the project's own drive command, and stops at the first step that fails.
Rehearse ashlar dependents tells Rehearse what a change reaches, and each reach script becomes a flow Rehearse runs (from Rehearse 0.3.0).
Onboarding A guide written from the code, DECISIONS.md and folder rules, with every unknown turned into a question for its owner.
Briefs ashlar brief prints only what an agent needs before it changes some files: the rules there, the decisions and the open questions.
Snapshot ashlar snapshot prints where things stand today, and keeps nothing.
Agent skills Two skills for coding agents: check your own work in the running app, and read your brief and keep decisions.
JSON outputs Every command but skill prints one JSON value with --json, with a version and a JSON Schema.

Ashlar checks TypeScript. A repository can be any folder of TypeScript code. An app in it names its stack, and the stack says where its two sides live:

Stack Main side Renderer side Shared
electron electron-main/ electron-renderer/ shared/
tauri src-tauri/ src/ shared/
web server/ client/ shared/

Python comes in v2. Ashlar needs Node 22.18 or later and Git.

Ashlar is not published to npm: you build a tarball from its repository and install that. Get started shows how.

Kurvball, where a team agrees on what to build, runs Ashlar on its Tauri desktop app, its API and its worker. See Kurvball for its config and what each command printed there. Other tools, such as Rehearse, read Ashlar only through the commands that print JSON.

Ashlar is open source under the MIT licence, copyright 2026 Kurvball. Questions and ideas go to Discussions, and bugs to issues.