bitfolk 0.1.9 → 0.1.11

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.
Files changed (3) hide show
  1. package/README.md +21 -13
  2. package/dist/cli.js +72 -72
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -2,27 +2,30 @@
2
2
 
3
3
  Lets your [Bitfolk](https://bitfolk.ai) workspace start Claude Code, Codex, OpenCode and Hermes sessions on your own
4
4
  computer. It checks in without calling a model (a few bytes) and starts a session only when you ask for one, from any
5
- device. Each session runs as a temporary builder that works one objective and leaves. Every run is recorded on your workspace
6
- with what it cost.
5
+ device. Each coding tool you turn on is a builder in your workspace: an agent with its own name, look, level, memory
6
+ and permissions, that works in sessions on this computer. Every run is recorded on your workspace with what it cost.
7
7
 
8
8
  ## Install
9
9
 
10
10
  Needs Node 20 or newer, on macOS or Linux (on Windows, use WSL), and at least one coding tool such as Claude Code or
11
11
  Codex, signed in.
12
12
 
13
- Try it without installing:
13
+ One command, from the repo you want builders to work in:
14
14
 
15
15
  ```
16
- npx bitfolk@latest login # link this computer: name it, tick its coding tools, press Allow
17
- npx bitfolk@latest up # keep this running; sessions start when your workspace asks
16
+ cd ~/code/app
17
+ npx bitfolk@latest up # links this computer (press Allow in your browser), then takes sessions until Ctrl-C
18
18
  ```
19
19
 
20
+ On a computer that isn't linked yet, `up` runs `login` first: name the computer, tick its coding tools, press Allow.
21
+ Each tool you tick becomes a builder in your workspace (Claude Code, Codex, ...), and because you ran it inside a git
22
+ repo, builders work there, each session in its own worktree and branch (`--no-repo` skips that; `bitfolk repos`
23
+ changes it later).
24
+
20
25
  Or install it to keep it:
21
26
 
22
27
  ```
23
28
  npm i -g bitfolk
24
- bitfolk login
25
- bitfolk set --repo ~/code/app # builders work in their own worktrees of this repo
26
29
  bitfolk up
27
30
  ```
28
31
 
@@ -35,7 +38,7 @@ release rather than reuse one it cached. Installed, it also answers to the short
35
38
  |---|---|
36
39
  | `bitfolk` | Where things stand: this computer, its workspace, tools on and off, sessions waiting, whether `up` runs (also `bitfolk status`) |
37
40
  | `bitfolk login` / `logout` | Link this computer in your browser, or unlink it |
38
- | `bitfolk up` | Run the sessions your workspace starts, until Ctrl-C (also `bitfolk start`) |
41
+ | `bitfolk up` | Link this computer if it isn't yet, then run the sessions your workspace starts, until Ctrl-C (also `bitfolk start`) |
39
42
  | `bitfolk run "<what>"` | Start a session here now, on a new objective, or on an open one with `--goal` (and `--task`) |
40
43
  | `bitfolk sessions` | This computer's sessions: waiting, running, and the latest that ended |
41
44
  | `bitfolk logs [<id>]` | What a session did: progress, commits, spend, branch; `--follow` to watch it |
@@ -181,14 +184,19 @@ The machine API behind it: `GET /v1/machine/chats`, `GET` and `POST /v1/machine/
181
184
  On an objective, press **Run on <computer>**: pick Claude Code or Codex, optionally one task and a note. `bitfolk up` sees it
182
185
  on its next check-in (a few bytes, no model) and starts a session:
183
186
 
184
- 1. `POST /v1/machine/claim` makes a temporary builder: an agent on that objective, already set up, with a token that ends
185
- with the session.
187
+ 1. `POST /v1/machine/claim` starts the session as that tool's builder: the same agent every time (it keeps its name,
188
+ look, level, memory and permissions), joined to the objective, with a token that ends with the session.
186
189
  2. The runner starts the tool in the builder's own workspace (a worktree on `bitfolk/builder-<id>` when a repo is
187
190
  set) with a work packet that names the objective, the task and your note.
188
191
  3. The builder claims the task, works it and reports through `bitfolk-api`, like any agent. Its runs and spend are
189
192
  recorded.
190
- 4. `POST /v1/machine/sessions/{id}` reports how it ended. The builder leaves the workspace: its token stops working and
191
- unfinished tasks go back on the board. Its branch stays for you to review.
193
+ 4. `POST /v1/machine/sessions/{id}` reports how it ended. The session's token stops working and unfinished tasks go
194
+ back on the board; the builder stays in the workspace, idle until its next session. Its branch stays for you to
195
+ review.
196
+
197
+ Besides **Run**, mentioning a builder in an objective chat (`@Claude Code, add a CSV export`) starts a session for it,
198
+ when you (or one of your own agents) write it and the computer is online. Turning a tool off (`bitfolk rm codex`) or
199
+ unlinking the computer removes its builder; turning the tool on again brings it back with its record.
192
200
 
193
201
  Limits from `bitfolk set` apply to each session; Bitfolk times out a session the runner never reports.
194
202
 
@@ -258,7 +266,7 @@ With a GitHub repo, builders' work can go up for review and merge into your main
258
266
  bitfolk set --repo ~/code/app --pull-requests on
259
267
  ```
260
268
 
261
- 1. Connect GitHub in Bitfolk under Tools → Connected apps.
269
+ 1. Connect GitHub in Bitfolk under Connectors.
262
270
  2. When a session succeeds with commits, the runner pushes its `bitfolk/builder-<id>` branch to the repo's GitHub
263
271
  `origin`, with your own git credentials (no prompts, no hooks). Only a GitHub origin is pushed to.
264
272
  3. Bitfolk opens a pull request into the branch from `--base` (or origin's default branch, else `main`) through your