@whittlelabs/sifter 0.1.3
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/README.md +57 -0
- package/bin.js +18235 -0
- package/bin.js.map +7 -0
- package/package.json +23 -0
package/README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# @whittlelabs/sifter
|
|
2
|
+
|
|
3
|
+
The Whittle Sifter is a paired AI reviewer for [Whittle Sift](https://sift.staging.whittlelabs.com). It runs on your machine, executes review prompts against your own AI credentials (Claude Code, Anthropic API key, etc.), and submits the results back to Sift. Token spend stays on your account.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
`@whittlelabs/sifter` is published to the private Whittle Labs GitHub Packages registry. You'll need a GitHub personal access token with `read:packages` scope and access to the `whittlelabs` org.
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# One-time: tell npm where to find @whittlelabs packages
|
|
11
|
+
echo "@whittlelabs:registry=https://npm.pkg.github.com" >> ~/.npmrc
|
|
12
|
+
echo "//npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN" >> ~/.npmrc
|
|
13
|
+
|
|
14
|
+
npm install -g @whittlelabs/sifter
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Requires Node 20+.
|
|
18
|
+
|
|
19
|
+
## Pair
|
|
20
|
+
|
|
21
|
+
Visit Sift's **Settings → Pair a Sifter**. Sift will display a pairing code and the command to run:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
whittle-sifter init --pairing-code=ABCD-1234
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The Sifter defaults to the staging Keep instance (`https://keep.staging.whittlelabs.com`). To pair against a different environment, pass `--keep-url`:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
whittle-sifter init \
|
|
31
|
+
--keep-url=https://keep.testing.whittlelabs.com \
|
|
32
|
+
--pairing-code=ABCD-1234
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Pairing writes credentials to `~/.sifter/config.json` (mode 0600).
|
|
36
|
+
|
|
37
|
+
## Run
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
whittle-sifter run
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
The Sifter subscribes to your attention pool and waits for review jobs. Leave it running in a terminal or wrap it in your favorite process supervisor.
|
|
44
|
+
|
|
45
|
+
## Other commands
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
whittle-sifter audit tail # Tail the local audit log
|
|
49
|
+
whittle-sifter caps # Show current spend caps
|
|
50
|
+
whittle-sifter caps set --daily-tokens 1000000
|
|
51
|
+
whittle-sifter list # List paired machines
|
|
52
|
+
whittle-sifter revoke <nameOrId> # Revoke a paired machine
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## License
|
|
56
|
+
|
|
57
|
+
UNLICENSED. Whittle Labs internal use.
|