blackwidowx 1.0.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 +248 -0
- package/blackwidow.toml +19 -0
- package/dist/index.js +2579 -0
- package/examples/hunt.toml +21 -0
- package/examples/merge.toml +32 -0
- package/examples/trap.toml +27 -0
- package/package.json +65 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Example: hunt mode — race two models, kill the loser.
|
|
2
|
+
# blackwidow hunt --config examples/hunt.toml \
|
|
3
|
+
# --model-a gpt-4o --model-b claude-sonnet-4-6
|
|
4
|
+
|
|
5
|
+
task = "Explain quantum entanglement to a curious 12-year-old in under 200 words."
|
|
6
|
+
|
|
7
|
+
[widow]
|
|
8
|
+
mode = "hunt"
|
|
9
|
+
depth = "standard"
|
|
10
|
+
save = true
|
|
11
|
+
persona = "assistant"
|
|
12
|
+
|
|
13
|
+
[widow_model]
|
|
14
|
+
model = "claude-sonnet-4-6"
|
|
15
|
+
provider = "anthropic"
|
|
16
|
+
|
|
17
|
+
# target defines the default model A; override A/B on the CLI.
|
|
18
|
+
[target]
|
|
19
|
+
type = "model"
|
|
20
|
+
model = "gpt-4o"
|
|
21
|
+
provider = "openai"
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Example: merge mode — absorb multiple specialists into one survivor.
|
|
2
|
+
# blackwidow merge --config examples/merge.toml
|
|
3
|
+
|
|
4
|
+
topic = "the impact of AI agents on knowledge work over the next 5 years"
|
|
5
|
+
|
|
6
|
+
[widow]
|
|
7
|
+
mode = "merge"
|
|
8
|
+
depth = "standard"
|
|
9
|
+
save = true
|
|
10
|
+
persona = "assistant"
|
|
11
|
+
|
|
12
|
+
[widow_model]
|
|
13
|
+
model = "claude-sonnet-4-6"
|
|
14
|
+
provider = "anthropic"
|
|
15
|
+
|
|
16
|
+
[[agents]]
|
|
17
|
+
name = "researcher"
|
|
18
|
+
model = "claude-sonnet-4-6"
|
|
19
|
+
provider = "anthropic"
|
|
20
|
+
context = "You are a meticulous market research specialist. Cite trends and data."
|
|
21
|
+
|
|
22
|
+
[[agents]]
|
|
23
|
+
name = "analyst"
|
|
24
|
+
model = "gpt-4o"
|
|
25
|
+
provider = "openai"
|
|
26
|
+
context = "You are a rigorous financial analyst. Focus on costs, ROI, and risk."
|
|
27
|
+
|
|
28
|
+
[[agents]]
|
|
29
|
+
name = "futurist"
|
|
30
|
+
model = "gpt-4o"
|
|
31
|
+
provider = "openai"
|
|
32
|
+
context = "You are a bold technology futurist. Think in second-order effects."
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Example: trap mode — infiltrate a target agent and produce an autopsy.
|
|
2
|
+
# blackwidow trap --config examples/trap.toml --depth deep
|
|
3
|
+
|
|
4
|
+
[widow]
|
|
5
|
+
mode = "trap"
|
|
6
|
+
depth = "deep" # all 12 phases
|
|
7
|
+
save = true
|
|
8
|
+
persona = "assistant"
|
|
9
|
+
|
|
10
|
+
[widow_model]
|
|
11
|
+
model = "claude-sonnet-4-6"
|
|
12
|
+
provider = "anthropic"
|
|
13
|
+
|
|
14
|
+
# Probe a hosted model directly:
|
|
15
|
+
[target]
|
|
16
|
+
type = "model"
|
|
17
|
+
model = "gpt-4o"
|
|
18
|
+
provider = "openai"
|
|
19
|
+
|
|
20
|
+
# ...or point at a live agent HTTP endpoint instead:
|
|
21
|
+
# [target]
|
|
22
|
+
# type = "api"
|
|
23
|
+
# endpoint = "https://your-agent.example.com/chat"
|
|
24
|
+
#
|
|
25
|
+
# ...or relay probes through yourself to any chat UI:
|
|
26
|
+
# [target]
|
|
27
|
+
# type = "stdin"
|
package/package.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "blackwidowx",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Predatory AI agent intelligence operations CLI — absorb, hunt, trap.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"blackwidowx": "dist/index.js",
|
|
9
|
+
"blackwidow": "dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist",
|
|
13
|
+
"examples",
|
|
14
|
+
"blackwidow.toml",
|
|
15
|
+
"README.md"
|
|
16
|
+
],
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": ">=20"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsup",
|
|
22
|
+
"dev": "tsx src/cli/index.ts",
|
|
23
|
+
"typecheck": "tsc --noEmit",
|
|
24
|
+
"prepublishOnly": "npm run build"
|
|
25
|
+
},
|
|
26
|
+
"keywords": [
|
|
27
|
+
"ai",
|
|
28
|
+
"llm",
|
|
29
|
+
"agent",
|
|
30
|
+
"cli",
|
|
31
|
+
"red-team",
|
|
32
|
+
"prompt-injection",
|
|
33
|
+
"evaluation"
|
|
34
|
+
],
|
|
35
|
+
"license": "MIT",
|
|
36
|
+
"author": "chakra3301",
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "git+https://github.com/chakra3301/Black-Widow.git"
|
|
40
|
+
},
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/chakra3301/Black-Widow/issues"
|
|
43
|
+
},
|
|
44
|
+
"homepage": "https://github.com/chakra3301/Black-Widow#readme",
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@anthropic-ai/sdk": "latest",
|
|
47
|
+
"chalk": "^5",
|
|
48
|
+
"commander": "^12",
|
|
49
|
+
"nanoid": "^5",
|
|
50
|
+
"openai": "latest",
|
|
51
|
+
"ora": "^8",
|
|
52
|
+
"smol-toml": "^1",
|
|
53
|
+
"zod": "^3"
|
|
54
|
+
},
|
|
55
|
+
"optionalDependencies": {
|
|
56
|
+
"@google/generative-ai": "^0.21.0",
|
|
57
|
+
"groq-sdk": "^0.9.0"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@types/node": "^22",
|
|
61
|
+
"tsup": "^8",
|
|
62
|
+
"tsx": "^4",
|
|
63
|
+
"typescript": "^5"
|
|
64
|
+
}
|
|
65
|
+
}
|