Skip to main content

Waymark: leave a trail your agents can follow.

CI PyPI Python 3.11+ License: MIT

Waymark is spec-driven development for coding agents, built on living specs: plain markdown in your repository that says what your system does today. Every change starts as a written plan that edits those specs, and nothing is built until you approve it. Your agent then builds from the plan, the finished change is checked against it, and the specs are updated when you sign off. A small command-line tool, wm, keeps track of where everything stands.

The trail of a change

Explore, propose, accept, apply, review, archive, merge. You decide at accept, archive and merge; an agent works at the other steps.

How it works

Everything starts with /wm-propose. A typo fix and a new feature go through the same door, but they don't take the same amount of work:

Path When What gets written
Tiny The specs don't change: a typo, a docs fix, a bug, a refactor Nothing. You say yes, the agent fixes it, you review the pull request.
Short The specs change, but there's nothing to design A short plan: what's changing and why, the spec edits, and a task list.
Full The specs change and there are decisions to make The same plan plus a design, and you agree every decision before anything gets built.

Here's how a change goes:

  • Explore, if you're not sure yet. /wm-explore talks the idea through with you, using what the specs already say, and writes nothing unless you ask. It can save your thinking for later, or turn it into a change or a milestone.
  • Propose. /wm-propose looks at your specs and code to see what the work involves. If it's tiny, it tells you in one line what it'll change and does it once you say yes. Otherwise it asks what it needs to know, then writes the plan: why, the spec edits, a design if there is one, and a task list where every task says how you'll know it's done.
  • Accept. You read a short summary and run wm accept. Nothing is built before that.
  • Apply. /wm-apply builds the tasks one at a time and commits each one. Then it checks the whole change against the plan. For a risky change, a second agent that never saw the build does the check.
  • Archive. /wm-archive folds the spec edits into your specs and notes what was built. You run the command; it's your second sign-off.
  • Merge. /wm-pr opens a pull request with the code and the updated specs, once you say yes. You merge it.

Bigger goals that take several changes get a milestone (wm new milestone <name>): the goal, how you'll know it's reached, and a roadmap of the changes. As each change is archived its line is ticked, and wm status shows the progress until you close it.

At any point, wm status shows where things stand and what's waiting on you. Concepts covers the whole workflow.

Quick start

pipx install waymark-cli        # or: uv tool install waymark-cli
cd your-project && git init     # skip git init in an existing repository
wm init                         # adds the record, plus skills, agents and hooks for Claude Code

Then, in Claude Code:

  • /wm-kickoff interviews you for the project's charter, one section at a time.
  • /wm-onboard takes one real, small change on your own code through every step.

The package is waymark-cli; the command is wm. Commit waymark/ and .gitignore; the skills, agents and hooks are set up per machine.

Setting up a new or existing project, in one repository or several
One repository Several repositories
New project git init, then wm init. Run /wm-kickoff; your first change creates the first specs. Make an atlas: a repository of its own that holds the record, beside the others. Run wm init --atlas <name> in it, list the other repositories in waymark/config.toml, then run wm atlas register.
Existing project wm init in the repository; your code isn't touched. There's nothing to write up front: a spec starts the first time a change touches that part of the code. The same atlas setup, beside the repositories you already have. They don't need any Waymark files.
Joining a project that uses Waymark Install the version pinned in waymark/config.toml, then run wm init. It sets up your machine and changes nothing in the record. Clone the atlas and the repositories side by side, then run wm init and wm atlas register in the atlas.

A monorepo counts as one repository: one record, with a spec for each part of the system. List your packages in commit_scopes in waymark/config.toml.

Step by step: Getting started and the multi-repo guide.

Skills

You work through skills, as slash commands in Claude Code:

Skill Use it to
/wm-kickoff Write the project's charter with you, once per project
/wm-onboard Take a first change all the way through, explaining each step
/wm-explore Think a fuzzy idea through, without writing anything
/wm-propose Do any piece of work: a small fix after your yes, or the plan for a change
/wm-update Revise a plan, settle a decision, or fill a gap
/wm-apply Build an approved change, then check it
/wm-archive Finish a change and update the specs
/wm-pr Open the pull request, once you say yes

/wm-apply can also hand work to two agents of its own: an implementer that builds one task you marked to hand off, and a reviewer that checks a risky change. Skills and agents covers what each one reads, writes and shows you.

See it in action

Adding dark mode to an app, from the first question to the pull request. Lines starting with > are what you type to your agent, and lines starting with $ are commands you run. The output is real.

> /wm-explore People keep asking for dark mode. What would it take?

> /wm-propose Let's add it: follow the device's setting, with a choice in Settings.

$ wm status
── Changes in flight ───────────────────────────────────────────────────
  add-dark-mode            planned    ░░░░░░░░░░ 0/3    ◆ accept (you)

◆ 1 thing needs you: wm inbox

$ wm accept add-dark-mode
Accepted "add-dark-mode". Its items can now be applied.

> /wm-apply

$ wm status
── Changes in flight ───────────────────────────────────────────────────
  add-dark-mode            applied    ██████████ 3/3    ◆ archive (you)

◆ 1 thing needs you: wm inbox

> /wm-archive

$ wm archive add-dark-mode --built "A dark theme that follows the device, and a Theme choice in Settings."
Archived "add-dark-mode" as changes/archive/2026-01-15-add-dark-mode. Its deltas are now part of the specs.

> /wm-pr

After the archive, the record holds the new spec and the whole change, all plain markdown in your repository:

waymark/
  charter.md                                  what the project is, its goals and its rules
  config.toml                                 settings, and the pinned wm version
  changes/
    .gitkeep
    archive/
      .gitkeep
      2026-01-15-add-dark-mode/
        design.md                             how it's built, and the decisions
        proposal.md                           why, what changes, and the outcome
        tasks.md                              the tasks, and what wm recorded
        specs/
          appearance.md                       the change to the spec
  explorations/
    .gitkeep
  milestones/
    .gitkeep
    archive/
      .gitkeep
  resources/
    .gitkeep
  specs/
    .gitkeep
    appearance.md                             the living spec, now with dark mode
changes/archive/2026-01-15-add-dark-mode/proposal.md
# Add dark mode

- Owner: Alex Example

## Why

People use the app at night, and the bright white screen is hard on the eyes.
Dark mode is the most requested feature.

## What changes

The app gets a dark theme. It follows the device's setting by default, and a
Theme choice in Settings lets people pick light, dark or system.

## Non-goals

Custom colors, or themes beyond light and dark.

## Impact

- Specs: `appearance` (new)
- User-visible: a dark theme, and a Theme choice in Settings
- Code: the stylesheet and the settings page

## Outcome

- Built: A dark theme that follows the device, and a Theme choice in Settings.
- Differs: none
changes/archive/2026-01-15-add-dark-mode/design.md
# Design

## Context

Colors are written out across the stylesheet, and Settings has no appearance
section yet.

## Approach

Move every color into CSS variables, defined once for light and once for dark,
and pick the set from a `data-theme` attribute on the page. The Theme setting
stores light, dark or system.

## Decisions

### Decision: Default theme

- Status: decided
- Decided by: human
- Options:
  - follow the device's setting;
  - always start light.
- Choice: follow the device's setting.
- Why: people who run their device dark expect apps to match without asking.

## Open questions

None.

## Risks and trade-offs

Embedded widgets that set their own colors won't switch; they're left for a
later change.
changes/archive/2026-01-15-add-dark-mode/specs/appearance.md, the change to the spec
# Appearance

## Purpose

How the app looks, and the choices people have over it.

## ADDED Requirements

### Requirement: Dark theme
The app SHALL offer a light and a dark theme, and SHALL follow the device's
setting until the person picks one.

#### Scenario: Device set to dark
- GIVEN a device set to dark mode, and no theme picked in the app
- WHEN the app opens
- THEN it shows the dark theme

#### Scenario: Theme picked in Settings
- GIVEN a device set to dark mode
- WHEN the person picks Light under Settings, Theme
- THEN the app shows the light theme, and still does the next time it opens
changes/archive/2026-01-15-add-dark-mode/tasks.md, with what wm recorded
# Tasks

## 1. Dark mode

- [x] 1.1 Move the colors into theme variables
  - Criteria: every color in the stylesheet comes from a variable with a light and a dark value
  - Verify: a search of the stylesheet finds no colors written out
- [x] 1.2 Follow the device's setting
  - Criteria: with no theme picked, the app matches the device's light or dark mode
  - Verify: a test for the scenario "Device set to dark"
- [x] 1.3 Add the Theme choice to Settings
  - Criteria:
    - Settings offers light, dark and system
    - the choice is kept between visits
  - Verify: a test for the scenario "Theme picked in Settings"

## Log

- (accepted) 2026-01-15 fingerprint 01204aef70272f6b items 1.1 1.2 1.3 by Alex Example
- (self-review) 2026-01-15 covers 1.1 1.2 1.3 by Alex Example: every criterion holds, and both scenarios have a test
specs/appearance.md, the living spec after the archive
# Appearance

## Purpose

How the app looks, and the choices people have over it.

## Requirements

### Requirement: Dark theme
The app SHALL offer a light and a dark theme, and SHALL follow the device's
setting until the person picks one.

#### Scenario: Device set to dark
- GIVEN a device set to dark mode, and no theme picked in the app
- WHEN the app opens
- THEN it shows the dark theme

#### Scenario: Theme picked in Settings
- GIVEN a device set to dark mode
- WHEN the person picks Light under Settings, Theme
- THEN the app shows the light theme, and still does the next time it opens

Real output of this version of wm, generated by tools/docs.py.

The record explains each of these files, and everything else that can go in them.

Why Waymark

  • The plan comes before the code. Each change starts as a short written plan: what's changing, why, and how you'll know it works. Your agent builds from that. If something's missing, it asks or writes it down instead of guessing.
  • You sign off twice. Once on the plan, before anything is built, and once on the result, before the specs are updated.
  • Every change gets checked. When it's built, the whole change is checked against the plan, and what the check found stays with the change.
  • Pick up anywhere. Everything lives in files in your repository, so any session on any machine can see where things stand.
  • Light for small work, thorough for big work. A typo is just a commit. A risky change gets a design and a second agent to review it.
Who it's for
  • Solo developers building real projects with coding agents.
  • Small teams sharing one record across branches.
  • Projects split across repositories, such as a frontend and a backend, with one record in an atlas (guide).
  • New and existing codebases. Specs grow where the work happens; nothing is written up front.

It's not for handing an agent a goal and walking away, for throwaway scripts, or for organizations that need access control or approval chains.

What's enforced, and where

Everywhere, by wm itself and in CI:

  • Nothing is built until you accept the change.
  • A change can't be accepted while a design decision or question is still open.
  • A change can't be archived until every task is done and the change has been checked.
  • A check can't pass while it lists a critical problem.
  • Two changes that edit the same part of a spec are flagged before the second is archived.
  • wm check, run in CI, keeps every file in the record well formed.

In Claude Code, by its hooks:

  • Only you can accept a change, or archive one that skipped its check.
  • An agent building a handed-off task can edit only code for that task, in that task's repository, and leave notes.
  • The reviewer agent can't edit anything.
  • Agents started for one task or one review can't commit, push or edit the record.
  • Commit messages have to follow the conventional commits format.
  • What an agent reports is recorded in its own words.

These catch mistakes and shortcuts. They aren't a security boundary against someone set on getting around them.

Teams: each change has one owner and its own branch. If two changes edit the same requirement, the second has to be updated before it can be archived. This is caught once both are in the same branch, not before.

What it costs
  • Money: nothing extra. Agents run on your own agent tool and plan, and wm never calls a model or goes online.
  • Tokens: most of the work happens in your normal session, which already knows the change. A fresh agent, which has to read the plan from scratch, is only started for a task you mark to hand off or for checking a risky change.
  • Your time: answering the agent's questions while it writes the plan, approving each change twice, and settling what wm inbox lists, such as a gap in the plan or a blocked task.

Documentation

Start here

Reference

Contributing

  • Architecture: how wm is built, and how to add an agent tool
  • Smoke test: the manual walk-through before a release

Works with Claude Code. Version last verified: 2.1.327, on Windows.

License

MIT

Metadata

Release files for waymark-cli 0.4.0

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

Source distribution (sdist)

Source distribution for waymark-cli 0.4.0
File Size Uploaded Provenance Actions
waymark_cli-0.4.0.tar.gz 435.6 kB With provenance Details for waymark_cli-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for waymark-cli 0.4.0
File Interpreter ABI Platform Actions
waymark_cli-0.4.0-py3-none-any.whl Python 3 none any Details for waymark_cli-0.4.0-py3-none-any.whl

Total release size: 669.2 kB

Release files / waymark_cli-0.4.0.tar.gz

Download URL waymark_cli-0.4.0.tar.gz
Size 435.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6e4a2579348189bc077639c165fcf25d2af1b92dda4073cb5fb7746572b87f12
BLAKE2b-256 checksum
How to use checksums
2d31df32ec58a6af99f68f4bd36bec7a089bf3046fe0c8a185b72ce624440633
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 Nov 18, 2026.

Transparency log

Release files / waymark_cli-0.4.0-py3-none-any.whl

Download URL waymark_cli-0.4.0-py3-none-any.whl
Size 233.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06bcf8d9718c213a0f9c9e9d3ab5aaaf425e353a5c5059e7287a3c9b429ef272
BLAKE2b-256 checksum
How to use checksums
ca4371734bfc6de7605c65b5959586eec9355a1ec59d417194d163b30ed30dd1
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 Nov 18, 2026.

Transparency log

Security for waymark-cli 0.4.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for waymark_cli-0.4.0.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 Nov 18, 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.

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