@spearwolf/backe 0.0.0-stage โ 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +197 -2
- package/dist/cli.js +17896 -0
- package/package.json +57 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Wolfger Schramm
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,198 @@
|
|
|
1
|
-
#
|
|
1
|
+
# backe ๐
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> [!NOTE]
|
|
4
|
+
> **Early release (0.x).** Formats and commands may still change; the on-disk
|
|
5
|
+
> format is versioned (spec ยง2.15.3).
|
|
6
|
+
|
|
7
|
+
**A git-based backlog for ๐ง๐ปโ๐ฆฐ humans and ๐ค agents.** Issues live as plain Markdown files
|
|
8
|
+
in their own Git repository. Every change is a signed commit, attributable to
|
|
9
|
+
exactly one identity โ human or agent. Several agents can work the same backlog in
|
|
10
|
+
parallel without merge-conflict hell, and no issue can be claimed by two of them at
|
|
11
|
+
once.
|
|
12
|
+
|
|
13
|
+
## Why
|
|
14
|
+
|
|
15
|
+
Issues belong where code and agents already work: in files, in Git, editable by
|
|
16
|
+
hand, readable by machines, distributed with a plain `git push`. An agent that is
|
|
17
|
+
told "work through sprint X" should be able to figure out on its own which issue
|
|
18
|
+
comes next, who owns it, and where the matching repository lives on disk.
|
|
19
|
+
|
|
20
|
+
Tools in this space exist โ git-bug, Backlog.md and beads among them. backe sets
|
|
21
|
+
itself apart through the **combination** of:
|
|
22
|
+
|
|
23
|
+
- **a separate backlog repo** โ the backlog is its own Git repository, not a folder
|
|
24
|
+
inside your code repo; backe knows several backlogs and an active one, much like
|
|
25
|
+
`kubectl` contexts;
|
|
26
|
+
- **context resolution** โ backlog, user, project, sprint and repo are resolved from
|
|
27
|
+
flags, env, project config files and the current directory, so `backe next`
|
|
28
|
+
does the right thing wherever you (or your agent) stand;
|
|
29
|
+
- **signatures** โ every write is an SSH-signed Git commit, verified against a trust
|
|
30
|
+
anchor and the user registry as it stood at the parent commit;
|
|
31
|
+
- **claim semantics for multi-agent work** โ claiming an issue is a synchronous
|
|
32
|
+
write with exactly one winner per issue across all syncing clients.
|
|
33
|
+
|
|
34
|
+
## Design in a nutshell
|
|
35
|
+
|
|
36
|
+
- **One entity, one file.** Markdown with YAML frontmatter for issues, users,
|
|
37
|
+
projects, sprints, repos and comments; JSONC for configuration.
|
|
38
|
+
- **Minimal diffs.** Canonical serialization, no `updated` field, no counters โ
|
|
39
|
+
two agents changing different fields of the same issue don't collide.
|
|
40
|
+
- **Random IDs** like `bk-7f3k2` instead of sequential numbers, so offline creation
|
|
41
|
+
never clashes. Short prefixes work like Git short hashes.
|
|
42
|
+
- **Local-first writes, background sync.** Each command is one operation recorded
|
|
43
|
+
as intent; on sync, local operations are _replayed_ against the remote state with
|
|
44
|
+
full validation instead of rebased as text.
|
|
45
|
+
- **Token-frugal output.** Compact JSON, `--fields`, stable exit codes, comments
|
|
46
|
+
only on request โ "what's my next issue?" must not cost thousands of tokens.
|
|
47
|
+
- **Two doors, one service layer.** A CLI for humans and scripts, an MCP server
|
|
48
|
+
for agents.
|
|
49
|
+
|
|
50
|
+
An issue on disk:
|
|
51
|
+
|
|
52
|
+
```markdown
|
|
53
|
+
---
|
|
54
|
+
id: bk-7f3k2
|
|
55
|
+
title: SSO login breaks after token refresh
|
|
56
|
+
state: in_progress
|
|
57
|
+
creator: spw
|
|
58
|
+
assignee: claude-1
|
|
59
|
+
projects: [web/auth]
|
|
60
|
+
sprints: [2026-w47]
|
|
61
|
+
repos: [webapp@feat/sso]
|
|
62
|
+
created: 2026-11-18T10:04:00Z
|
|
63
|
+
---
|
|
64
|
+
After the access token refresh the user lands on `/login` again.
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Install
|
|
68
|
+
|
|
69
|
+
```sh
|
|
70
|
+
npm install -g @spearwolf/backe
|
|
71
|
+
backe doctor # checks the requirements below
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Requirements: Node.js โฅ 26, Git โฅ 2.38 with SSH signing support, `ssh-keygen`.
|
|
75
|
+
Optional: `git-lfs` (large attachments) and `gh` (`repo check --remote`).
|
|
76
|
+
|
|
77
|
+
## Quickstart
|
|
78
|
+
|
|
79
|
+
You need an SSH key (the default is `~/.ssh/id_ed25519.pub`; pass `--key` for
|
|
80
|
+
another one) and an empty Git remote for the backlog. `backe init` signs the
|
|
81
|
+
trust anchor with your key and pushes it. The default is a public key, so its
|
|
82
|
+
private key has to be loaded in a running `ssh-agent` (`ssh-add`); otherwise
|
|
83
|
+
pass `--key` with the path to the private key.
|
|
84
|
+
|
|
85
|
+
```sh
|
|
86
|
+
backe config set user alice # your handle (or BACKE_USER=alice, or --as alice per call)
|
|
87
|
+
backe init acme-backlog --name acme --prefix bk --remote git@github.com:acme/backlog.git
|
|
88
|
+
cd acme-backlog
|
|
89
|
+
|
|
90
|
+
backe project create web -t "Web"
|
|
91
|
+
backe project create web/auth -t "Authentication"
|
|
92
|
+
backe sprint create 2026-w47 -t "Week 47"
|
|
93
|
+
|
|
94
|
+
ID=$(backe new -t "SSO login breaks after token refresh" -p web/auth -s 2026-w47)
|
|
95
|
+
backe ls
|
|
96
|
+
backe show "$ID"
|
|
97
|
+
backe issue move "$ID" review --reason "PR is up" # short form: backe mv
|
|
98
|
+
backe sync # normally happens in the background
|
|
99
|
+
backe verify # signatures and rights since the anchor
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
An agent asks for work and owns it in one step:
|
|
103
|
+
|
|
104
|
+
```sh
|
|
105
|
+
backe next --sprint 2026-w47 --claim
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Claiming is synchronous with the remote: exactly one client wins each issue.
|
|
109
|
+
|
|
110
|
+
## For agents: MCP
|
|
111
|
+
|
|
112
|
+
`backe mcp` starts an MCP server over stdio. It is a thin adapter over the same
|
|
113
|
+
services as the CLI, and every tool returns the JSON of the matching
|
|
114
|
+
`--format json` command. It needs a resolvable identity (handle and key) and a
|
|
115
|
+
backlog, exactly like the CLI; otherwise it exits with code 2 and an explanation
|
|
116
|
+
on stderr.
|
|
117
|
+
|
|
118
|
+
Client entry (the generic `mcpServers` format):
|
|
119
|
+
|
|
120
|
+
```json
|
|
121
|
+
{
|
|
122
|
+
"mcpServers": {
|
|
123
|
+
"backe": { "command": "backe", "args": ["mcp"] }
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
With Claude Code: `claude mcp add backe -- backe mcp`. Pass `--as <handle>` or
|
|
129
|
+
`-B <backlog>` after `mcp` to pin identity or backlog; `--allow-delete`
|
|
130
|
+
additionally registers `issue_delete`. The tool list (`issue_list`,
|
|
131
|
+
`issue_claim`, `issue_next`, `sync_now`, โฆ) is in ยง2.19 of
|
|
132
|
+
[`docs/proposals/backe.md`](docs/proposals/backe.md).
|
|
133
|
+
|
|
134
|
+
## The name
|
|
135
|
+
|
|
136
|
+
**back-e** is the Germanized, personified short form of "backlog" โ the way German
|
|
137
|
+
turns a name into a nickname by clipping it and adding an _-e_. Say it like
|
|
138
|
+
_back-eh_. As a bonus, _Backe_ is German for "cheek", and _backe!_ means "bake!" ๐ฅ
|
|
139
|
+
|
|
140
|
+
## Where it comes from
|
|
141
|
+
|
|
142
|
+
I built backe because I needed it. My daily work is orchestrating coding agents
|
|
143
|
+
and myself on the same codebases, and I wanted one system in which humans and
|
|
144
|
+
agents coordinate through issues โ signed, versioned, offline-capable, without a
|
|
145
|
+
server in the middle. Nothing I found fit, so I made my own tool, which is about
|
|
146
|
+
the oldest reason there is to start an ๐โ๏ธโ๐ฅ open-source project.
|
|
147
|
+
|
|
148
|
+
backe is ๐พ **entirely vibe-coded**: AI agents write every line of code and test.
|
|
149
|
+
The technical direction is human โ the spec, the architecture, the milestone cuts,
|
|
150
|
+
the reviews and every decision come from a long-time engineer (that's me).
|
|
151
|
+
It is also a working experiment in how far that combination carries.
|
|
152
|
+
|
|
153
|
+
## For contributors (and curious humans)
|
|
154
|
+
|
|
155
|
+
- **The spec is binding:** [`docs/proposals/backe.md`](docs/proposals/backe.md).
|
|
156
|
+
When this README and the spec disagree, the spec wins.
|
|
157
|
+
- **Implementation plans** per milestone live in
|
|
158
|
+
[`docs/superpowers/plans/`](docs/superpowers/plans/); the overall plan is
|
|
159
|
+
`2026-11-18-backe-gesamtplan.md`.
|
|
160
|
+
- **Layers:** `core` โ `store` โ `context` / `git` โ `ops` โ `services` โ
|
|
161
|
+
`cli` / `mcp`. Dependencies point downward only.
|
|
162
|
+
- **Done means green:** `mise run check` (lint, build, tests with coverage gates)
|
|
163
|
+
passes on Linux and macOS.
|
|
164
|
+
- **Language:** spec, plans and commit messages are written in German.
|
|
165
|
+
|
|
166
|
+
## Development
|
|
167
|
+
|
|
168
|
+
Requirements: Node.js โฅ 26, pnpm, Git โฅ 2.38 with SSH signing support, `ssh-keygen`.
|
|
169
|
+
[mise](https://mise.jdx.dev) installs the pinned Node and pnpm versions.
|
|
170
|
+
|
|
171
|
+
```sh
|
|
172
|
+
git clone https://github.com/spearwolf/backe.git
|
|
173
|
+
cd backe
|
|
174
|
+
mise install
|
|
175
|
+
pnpm install
|
|
176
|
+
mise run check # lint + build + test
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
Single steps: `pnpm run lint`, `pnpm run build`, `pnpm run test`,
|
|
180
|
+
`pnpm run gen:schemas` (regenerates the JSON Schemas in `schemas/`).
|
|
181
|
+
|
|
182
|
+
## Releases
|
|
183
|
+
|
|
184
|
+
```sh
|
|
185
|
+
mise run release
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
That's it. Commits follow [Conventional Commits](https://www.conventionalcommits.org);
|
|
189
|
+
[release-please](https://github.com/googleapis/release-please) keeps one release PR
|
|
190
|
+
(version + changelog) up to date on its own whenever `main` has `feat`, `fix` or
|
|
191
|
+
`perf` commits since the last release. `mise run release` waits until that PR matches
|
|
192
|
+
the pushed `main` and turns on auto-merge: GitHub merges it once CI is green, and the
|
|
193
|
+
release workflow publishes to npm with provenance (trusted publishing, no token).
|
|
194
|
+
Pushing straight to `main` keeps working as before.
|
|
195
|
+
|
|
196
|
+
## License
|
|
197
|
+
|
|
198
|
+
[MIT](LICENSE) ยฉ 2026 Wolfger Schramm
|