clew 0.1.0

A lightweight, local, git-native project tracker for humans and agents.
Documentation
# Clew — Project State

This directory holds Clew project state (increments, archive, path).

## Creating increments

Create a backlog item with a title heading:

```bash
clew new "Add OAuth routes"
```

Create an increment with a Markdown body by passing non-TTY stdin:

```bash
clew new "Add OAuth routes" <<'EOF'
## Context

Why this increment matters.

## Tasks

- [ ] First task
EOF
```

Attach tags at capture time with repeated singular `--tag` flags:

```bash
clew new "Verify Clew on WSL" --tag windows --tag distribution <<'EOF'
## Goal
Verify Clew works on WSL.
EOF
```

Clew writes frontmatter itself; stdin is body content only. Passing stdin replaces the default title-heading body. Tags must match `[a-z0-9][a-z0-9-]*`.

For existing increments, use:

```bash
clew tag 0019 windows p0
clew untag 0019 windows
```

## Reviewing archive moves

`clew done`, `clew abandon`, and `clew reopen` move increment files with normal filesystem renames. Clew does not run `git mv` or mutate the git index.

Before staging, `git status --short` may show a deleted file plus an untracked file or directory. After `git add -A`, git normally reports the move as a rename:

```text
R  .clew/increments/0001-example.md -> .clew/archive/0001-example.md
```