nobluff 0.0.0-stage → 0.3.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 +42 -2
- package/bin/nobluff-darwin-amd64 +0 -0
- package/bin/nobluff-darwin-arm64 +0 -0
- package/bin/nobluff-linux-amd64 +0 -0
- package/bin/nobluff-linux-arm64 +0 -0
- package/bin/nobluff-windows-amd64.exe +0 -0
- package/bin/nobluff-windows-arm64.exe +0 -0
- package/bin/nobluff.js +25 -0
- package/package.json +15 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ronald Nyami
|
|
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,43 @@
|
|
|
1
|
-
#
|
|
1
|
+
# nobluff
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Did your coding agent say "tests pass" without running them?** Find out in one command:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npx nobluff scan
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
NoBluff scanned 50 Claude Code sessions (412 turns, 230 final answers).
|
|
11
|
+
3 answers claimed something the transcript contradicts, in 2 sessions.
|
|
12
|
+
|
|
13
|
+
tests-not-run 2
|
|
14
|
+
tests-failed 1
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
It reads your local Claude Code transcripts (`~/.claude/projects`), turn by turn, and flags answers that claim something the session itself contradicts:
|
|
18
|
+
|
|
19
|
+
| Rule | The answer says… | …but the transcript shows |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| `tests-not-run` | tests pass | no test command after the last file change |
|
|
22
|
+
| `tests-failed` | tests pass / fixed / works | the last test run failed |
|
|
23
|
+
| `tests-skipped` | all tests pass | tests were skipped and the answer never says so |
|
|
24
|
+
| `unverified-claim` | verified / works / fixed | code was edited and nothing ran since |
|
|
25
|
+
|
|
26
|
+
Local only: no model, no network, nothing leaves your machine.
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npx nobluff last # latest session of the current folder
|
|
30
|
+
npx nobluff scan -n 200 # more history
|
|
31
|
+
npx nobluff check session.jsonl # one transcript, JSON output
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Stop the bluff before it reaches you
|
|
35
|
+
|
|
36
|
+
The same detector runs as a Claude Code Stop hook: when the agent tries to finish on a claim its own session contradicts, it is sent back to prove it or retract it.
|
|
37
|
+
|
|
38
|
+
```text
|
|
39
|
+
/plugin marketplace add provenwork/skills
|
|
40
|
+
/plugin install nobluff@provenwork
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Source, rules, tests and limitations: https://github.com/provenwork/nobluff
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/bin/nobluff.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Runs the NoBluff detector binary that matches this machine. No network, no install script.
|
|
3
|
+
"use strict";
|
|
4
|
+
const { spawnSync } = require("child_process");
|
|
5
|
+
const path = require("path");
|
|
6
|
+
const fs = require("fs");
|
|
7
|
+
|
|
8
|
+
const os = { win32: "windows", darwin: "darwin", linux: "linux" }[process.platform];
|
|
9
|
+
const arch = { x64: "amd64", arm64: "arm64" }[process.arch];
|
|
10
|
+
if (!os || !arch) {
|
|
11
|
+
console.error(`nobluff: no binary for ${process.platform}/${process.arch}. Build it from https://github.com/provenwork/nobluff/tree/main/detector`);
|
|
12
|
+
process.exit(2);
|
|
13
|
+
}
|
|
14
|
+
const bin = path.join(__dirname, `nobluff-${os}-${arch}${os === "windows" ? ".exe" : ""}`);
|
|
15
|
+
if (!fs.existsSync(bin)) {
|
|
16
|
+
console.error(`nobluff: missing ${path.basename(bin)} in this package.`);
|
|
17
|
+
process.exit(2);
|
|
18
|
+
}
|
|
19
|
+
try { fs.chmodSync(bin, 0o755); } catch (_) { /* read-only install: fine if already executable */ }
|
|
20
|
+
const r = spawnSync(bin, process.argv.slice(2), { stdio: "inherit" });
|
|
21
|
+
if (r.error) {
|
|
22
|
+
console.error(`nobluff: ${r.error.message}`);
|
|
23
|
+
process.exit(2);
|
|
24
|
+
}
|
|
25
|
+
process.exit(r.status === null ? 2 : r.status);
|
package/package.json
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nobluff",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Audit your Claude Code sessions for claims the transcript contradicts: \"tests pass\" when no test ran, \"fixed\" when the last run failed. Local, no model, no network.",
|
|
5
|
+
"keywords": ["claude-code", "ai-agents", "coding-agent", "verification", "hooks", "agent-skills", "hallucination", "testing"],
|
|
6
|
+
"homepage": "https://github.com/provenwork/nobluff#readme",
|
|
7
|
+
"repository": { "type": "git", "url": "git+https://github.com/provenwork/nobluff.git", "directory": "npm" },
|
|
8
|
+
"bugs": "https://github.com/provenwork/nobluff/issues",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"bin": { "nobluff": "bin/nobluff.js" },
|
|
11
|
+
"files": ["bin/", "README.md", "LICENSE"],
|
|
12
|
+
"engines": { "node": ">=16" },
|
|
13
|
+
"scripts": {
|
|
14
|
+
"prepack": "node scripts/copy-binaries.js",
|
|
15
|
+
"test": "node scripts/smoke-test.js"
|
|
16
|
+
}
|
|
17
|
+
}
|