-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhank.json
More file actions
146 lines (146 loc) · 5.25 KB
/
hank.json
File metadata and controls
146 lines (146 loc) · 5.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"$schema": "https://unpkg.com/hankweave@latest/schemas/hank.schema.json",
"meta": {
"name": "Comic Creator",
"version": "1.0.0",
"description": "Takes creative ideas and inspiration → produces a finished comic book PDF. Automated end-to-end: character design, story writing, image generation, post-processing."
},
"requirements": {
"env": ["GOOGLE_API_KEY"]
},
"globalSystemPromptFile": "./prompts/system-final.md",
"hank": [
{
"id": "read-and-explore",
"name": "Read, Explore & Generate Candidates",
"model": "opus",
"continuationMode": "fresh",
"promptFile": "./prompts/read-and-explore.md",
"description": "Opus reads ALL raw input deeply. Maintains a reading journal. Generates 3 character + 3 story candidates.",
"rigSetup": [
{
"type": "copy",
"copy": { "from": "./scripts", "to": "scripts" }
},
{
"type": "command",
"command": {
"run": "cd scripts && bun run check-deps.ts --install",
"workingDirectory": "project"
}
}
],
"sentinels": [
{ "sentinelConfig": "./sentinels/narrator.json" }
]
},
{
"id": "story-diversity",
"name": "Story Diversity Reviews",
"model": "haiku",
"continuationMode": "fresh",
"promptFile": "./prompts/story-diversity.md",
"description": "Reviews stories as a child and as an adult. Wild card suggestion."
},
{
"id": "visualize-candidates",
"name": "Visualize Character Candidates",
"model": "opus",
"continuationMode": "fresh",
"promptFile": "./prompts/visualize-candidates.md",
"rigSetup": [
{
"type": "command",
"command": {
"run": "cd scripts && bun run generate-samples.ts --descriptions-dir ../workspace/candidates/characters --output-dir ../workspace/candidates/characters/samples --samples-per-candidate 2 --size 1K --aspect-ratio 1:1",
"workingDirectory": "project"
}
}
],
"description": "Opus reviews generated character samples against inspiration images."
},
{
"id": "select-merge-spec",
"name": "Select, Merge & Write Spec",
"model": "opus",
"continuationMode": "fresh",
"promptFile": "./prompts/select-merge-spec.md",
"description": "Picks best character+story, writes production spec with dialogue, writes generation prompts.",
"sentinels": [
{ "sentinelConfig": "./sentinels/narrator.json" }
]
},
{
"id": "story-review",
"name": "Story Review & Emotional Blueprint",
"model": "opus",
"continuationMode": "fresh",
"promptFile": "./prompts/story-review.md",
"description": "Fresh-eyes story review. Cuts weak strips. Writes emotional blueprint. Updates prompts."
},
{
"type": "loop",
"id": "generation-loop",
"name": "Panel Generation & Art Review Loop",
"terminateOn": { "type": "iterationLimit", "limit": 3 },
"codons": [
{
"id": "generate-and-review",
"name": "Generate Panels & Art Review",
"model": "opus",
"continuationMode": "fresh",
"promptFile": "./prompts/generate-and-review.md",
"rigSetup": [
{
"type": "command",
"command": {
"run": "cd scripts && bun run generate-all-panels.ts --prompts-dir ../workspace/generation/prompts --output-dir ../workspace/generation --size 2K --aspect-ratio 3:2 --use-cover-as-ref",
"workingDirectory": "project"
},
"allowFailure": true
}
],
"description": "Rig generates panels via multi-turn chat. Opus reviews against spec and emotional blueprint.",
"sentinels": [
{ "sentinelConfig": "./sentinels/narrator.json" }
]
}
]
},
{
"id": "comic-review",
"name": "Comic Review (Fresh Reader)",
"model": "opus",
"continuationMode": "fresh",
"promptFile": "./prompts/comic-review.md",
"rigSetup": [
{
"type": "command",
"command": {
"run": "cd scripts && bun run create-proxies.ts --input ../workspace/approved --max-width 2000",
"workingDirectory": "project"
}
}
],
"description": "Reads finished comic cold. Catches text problems, story gaps, visual issues."
},
{
"id": "post-processing",
"name": "Post-Processing & PDF Assembly",
"model": "sonnet",
"continuationMode": "fresh",
"promptFile": "./prompts/post-processing.md",
"rigSetup": [
{
"type": "command",
"command": {
"run": "mkdir -p workspace/post-processed output/panels output/rerun && cd scripts && bun run post-process-pipeline.ts --input ../workspace/approved --output ../workspace/post-processed --scripts-dir . --logo ../read_only_data_source/assets/logo.png 2>&1 || echo 'Pipeline completed'",
"workingDirectory": "project"
}
}
],
"description": "Rig runs full post-processing pipeline. Agent verifies, assembles PDF, creates rerun package.",
"outputFiles": [{ "copy": ["output/**/*"] }]
}
]
}