@golproductions/check 3.0.1 → 3.0.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.
Files changed (3) hide show
  1. package/README.md +75 -9
  2. package/package.json +23 -7
  3. package/src/index.js +21 -2
package/README.md CHANGED
@@ -1,6 +1,10 @@
1
- # Check — The Anti-Hallucination Layer for AI Agents
1
+ # Check — The Anti-Hallucination Firewall for AI Coding Agents
2
2
 
3
- Your AI says "done" when it isn't. Check stops that.
3
+ **Your AI hallucinates commands, imports, and function calls. Check catches them before execution.**
4
+
5
+ Check sits between your AI and your project. Every command is verified before it runs. Every import is checked against your actual dependencies. Every function call is matched against your real source files. What doesn't exist gets blocked.
6
+
7
+ No AI inside. Deterministic. Same input, same output. Every time.
4
8
 
5
9
  ## Install
6
10
 
@@ -10,22 +14,84 @@ One command. Every IDE.
10
14
  npx @golproductions/check --install your_key
11
15
  ```
12
16
 
13
- Auto-detects Claude Code, Gemini CLI, Antigravity, and Cursor. Writes the hook config, sets your key, done. Restart your IDE to activate.
17
+ Auto-detects **Claude Code**, **Cursor**, and **Antigravity**. Writes the hook config, sets your key, done. Restart your IDE to activate.
18
+
19
+ Get your free API key (120 free checks) at [golproductions.com](https://www.golproductions.com/check.html)
14
20
 
15
- Get your free API key at [golproductions.com/check.html](https://www.golproductions.com/check.html)
21
+ ## What it catches
16
22
 
17
- ## What it does
23
+ | Type | What happens |
24
+ |------|-------------|
25
+ | **Phantom commands** | AI runs `git stash apply 3` — stash doesn't exist. **Blocked.** |
26
+ | **Hallucinated imports** | AI writes `import cache from "express-session"` — not installed. **Blocked.** |
27
+ | **Invented functions** | AI calls `db.findUserByEmail()` — doesn't exist in your project. **Blocked.** |
28
+ | **Broken syntax** | AI writes a file with mismatched brackets. **Flagged.** |
29
+ | **Post-write integrity** | After the AI writes a file, imports and function calls are re-verified. **Two checkpoints.** |
18
30
 
19
- Check sits between your AI and the shell. Every command is verified before execution. If something is wrong, the AI knows before it speaks. No more hallucinated success, no more blind retries.
31
+ ## How it works
32
+
33
+ ```
34
+ AI writes code
35
+ ↓
36
+ Check intercepts (pre-execution hook)
37
+ ↓
38
+ Verifies against your actual project
39
+ ↓
40
+ Real → allowed | Not real → blocked
41
+ ↓
42
+ After file write → second verification pass
43
+ ```
44
+
45
+ Check runs as a **PreToolUse** and **PostToolUse** hook. Your AI never knows it's there. Sub-100ms response time.
46
+
47
+ ## Why not just use another guardrail?
48
+
49
+ | | Check | Security firewalls (AEGIS, Pipelock) | LLM guardrails (Guardrails AI, Lakera) | Eval platforms (Galileo, Braintrust) |
50
+ |---|---|---|---|---|
51
+ | **Checks code correctness** | Yes | No — checks safety | No — checks format | No — scores after |
52
+ | **Knows your project** | Yes | No | No | No |
53
+ | **Pre-execution** | Yes | Yes | Varies | No |
54
+ | **Post-write verification** | Yes | No | No | No |
55
+ | **No AI inside** | Yes | Varies | Uses LLMs | Uses LLMs |
56
+ | **Per-check pricing** | $0.0068 AUD | Free (self-hosted) | Enterprise pricing | SaaS pricing |
57
+
58
+ Every other tool checks the AI. **Check checks the code.**
20
59
 
21
60
  ## Pricing
22
61
 
23
- $0.0068 AUD per check. 120 free checks on signup. Credits never expire.
62
+ **$0.0068 AUD per check.** 120 free checks on signup. Prepaid wallet — no subscription, no monthly fee. Credits never expire.
63
+
64
+ | Tier | Checks | Cost per check |
65
+ |------|--------|---------------|
66
+ | Free | 120 | $0.00 |
67
+ | $5 | ~735 | $0.0068 |
68
+ | $10 | ~1,470 | $0.0068 |
69
+ | $25 | ~3,676 | $0.0068 |
70
+ | $50 | ~7,352 | $0.0068 |
71
+
72
+ ## MCP Server
73
+
74
+ Check also runs as an MCP (Model Context Protocol) server for direct integration:
75
+
76
+ ```
77
+ check-mcp
78
+ ```
24
79
 
25
80
  ## Links
26
81
 
27
- - [Documentation](https://www.golproductions.com/docs-triage-gate.html)
82
+ - [Product page](https://www.golproductions.com/check.html)
28
83
  - [Pricing](https://www.golproductions.com/pricing.html)
29
- - [VS Code extension](https://open-vsx.org/extension/golproductions/gol-check)
84
+ - [Documentation](https://www.golproductions.com/docs-triage-gate.html)
85
+ - [Blog](https://www.golproductions.com/blog/)
86
+
87
+ ## Supported IDEs
88
+
89
+ - Claude Code
90
+ - Cursor
91
+ - Antigravity
92
+
93
+ More coming: Windsurf, Cline, Continue, Zed, Aider, JetBrains, GitHub Copilot.
94
+
95
+ ## License
30
96
 
31
97
  Copyright (c) 2026 GOL Productions. All rights reserved.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golproductions/check",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "description": "The anti-hallucination layer for AI agents. Supports Claude Code, Antigravity, and Cursor.",
5
5
  "bin": {
6
6
  "check": "src/index.js",
@@ -16,15 +16,31 @@
16
16
  "README.md"
17
17
  ],
18
18
  "keywords": [
19
- "claude-code",
20
- "antigravity",
21
- "cursor",
22
- "command-validation",
23
19
  "anti-hallucination",
24
- "firewall",
20
+ "ai-hallucination",
21
+ "hallucination-detection",
22
+ "ai-firewall",
25
23
  "ai-agents",
24
+ "ai-code-validation",
25
+ "command-validation",
26
+ "import-validation",
27
+ "function-verification",
28
+ "code-integrity",
29
+ "pre-execution",
30
+ "deterministic-verification",
31
+ "claude-code",
32
+ "cursor",
33
+ "antigravity",
34
+ "windsurf",
35
+ "ai-guardrails",
36
+ "llm-validation",
26
37
  "mcp",
27
- "model-context-protocol"
38
+ "model-context-protocol",
39
+ "ai-coding-agent",
40
+ "code-verification",
41
+ "ai-safety",
42
+ "developer-tools",
43
+ "devtools"
28
44
  ],
29
45
  "dependencies": {
30
46
  "@modelcontextprotocol/sdk": "^1.12.0",
package/src/index.js CHANGED
@@ -5,7 +5,8 @@ import { homedir, platform, arch } from "node:os";
5
5
  import { pipeline } from "node:stream/promises";
6
6
  import { Readable } from "node:stream";
7
7
 
8
- const VERSION = "3.0.1";
8
+ const VERSION = "3.0.2";
9
+ const BINARY_VERSION = "3.0.0";
9
10
  const API = "https://triage.golproductions.com/preflight";
10
11
  const CDN = "https://pub-e55366a7f5994be9be04f0e205179f4a.r2.dev/releases";
11
12
  const CLIENT_ID = process.env.GOL_CLIENT_ID || "";
@@ -14,7 +15,7 @@ async function downloadBinary(dest) {
14
15
  const os = platform() === "win32" ? "win" : platform() === "darwin" ? "macos" : "linux";
15
16
  const cpu = arch() === "arm64" ? "arm64" : "x64";
16
17
  const ext = os === "win" ? ".exe" : "";
17
- const url = `${CDN}/truth-gate-v${VERSION}-${os}-${cpu}${ext}`;
18
+ const url = `${CDN}/truth-gate-v${BINARY_VERSION}-${os}-${cpu}${ext}`;
18
19
  const res = await fetch(url);
19
20
  if (!res.ok) throw new Error(`Download failed: ${res.status}`);
20
21
  await pipeline(Readable.fromWeb(res.body), createWriteStream(dest));
@@ -83,6 +84,24 @@ async function install() {
83
84
  }];
84
85
  return existing;
85
86
  }
87
+ },
88
+ {
89
+ name: "Homebase",
90
+ dir: join(home, ".homebase"),
91
+ file: "hooks.json",
92
+ config: (existing) => {
93
+ existing.hooks = existing.hooks || {};
94
+ existing.hooks.PreToolUse = [{
95
+ matcher: "Bash|PowerShell",
96
+ hooks: [{ type: "command", command: "node", args: [scriptPath] }]
97
+ }];
98
+ existing.hooks.PostToolUse = [
99
+ { matcher: "Bash|PowerShell", hooks: [{ type: "command", command: binaryPath }] }
100
+ ];
101
+ existing.env = existing.env || {};
102
+ existing.env.GOL_CLIENT_ID = key;
103
+ return existing;
104
+ }
86
105
  }
87
106
  ];
88
107