atavi 0.1.0 → 0.1.1
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/CHANGELOG.md +9 -0
- package/HOSTS.md +62 -0
- package/README.md +65 -0
- package/package.json +2 -1
- package/prompts/claude.md +60 -0
- package/prompts/codex.md +63 -0
- package/prompts/gemini.md +59 -0
- package/src/cli.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -18,3 +18,12 @@
|
|
|
18
18
|
- add `migrate` command for safe workspace schema upgrades
|
|
19
19
|
- add memory import/export helpers for `.atavi/memory`
|
|
20
20
|
- add release-surface verification and npm-based CI coverage
|
|
21
|
+
- add starter prompt files for Codex, Claude, and Gemini
|
|
22
|
+
|
|
23
|
+
## 0.1.1
|
|
24
|
+
|
|
25
|
+
- strengthened host guidance and starter prompts so Codex, Claude, and Gemini
|
|
26
|
+
are expected to ask clarifying questions, present explicit options when the
|
|
27
|
+
run shape is ambiguous, and keep visible progress updates flowing during ATAVI
|
|
28
|
+
startup and execution
|
|
29
|
+
- document the reliable global upgrade command as `npm install -g atavi@latest`
|
package/HOSTS.md
CHANGED
|
@@ -51,6 +51,26 @@ Recommended order:
|
|
|
51
51
|
|
|
52
52
|
Use the existing workspace when `.atavi/` already exists and passes validation.
|
|
53
53
|
|
|
54
|
+
## Interactive Startup Contract
|
|
55
|
+
|
|
56
|
+
Before deep repo scanning or pass execution, the host should visibly engage the
|
|
57
|
+
researcher in the terminal or chat surface.
|
|
58
|
+
|
|
59
|
+
Hosts should:
|
|
60
|
+
|
|
61
|
+
- announce that ATAVI was detected and that workspace bootstrap is starting
|
|
62
|
+
- state the immediate next step before reading large parts of the repo
|
|
63
|
+
- ask clarifying questions when the brief, objective, or success criteria are
|
|
64
|
+
ambiguous
|
|
65
|
+
- present explicit option sets when multiple viable scopes, modes, or agent
|
|
66
|
+
mixes are plausible
|
|
67
|
+
- wait for the researcher when those choices materially change the run
|
|
68
|
+
- emit short progress updates while scanning, validating, and writing artifacts
|
|
69
|
+
- summarize what was learned from the scan before entering pass execution
|
|
70
|
+
|
|
71
|
+
Hosts should not silently disappear into repository analysis for a long period
|
|
72
|
+
with no visible output.
|
|
73
|
+
|
|
54
74
|
## Research Brief Confirmation
|
|
55
75
|
|
|
56
76
|
Before pass execution begins, confirm `.atavi/brief.md` contains:
|
|
@@ -64,6 +84,17 @@ Before pass execution begins, confirm `.atavi/brief.md` contains:
|
|
|
64
84
|
|
|
65
85
|
If these are incomplete or contradictory, stop and ask the researcher.
|
|
66
86
|
|
|
87
|
+
Recommended clarifying topics:
|
|
88
|
+
|
|
89
|
+
- the concrete research question or product decision to optimize for
|
|
90
|
+
- hard constraints such as time, budget, infra, safety, or launch deadlines
|
|
91
|
+
- whether the run should optimize for novelty search, implementation speed,
|
|
92
|
+
evidence quality, or risk reduction
|
|
93
|
+
- whether Critic and Synthesist should be enabled for this run
|
|
94
|
+
|
|
95
|
+
If there are multiple reasonable interpretations, present them as numbered
|
|
96
|
+
options and let the researcher pick instead of choosing silently.
|
|
97
|
+
|
|
67
98
|
## Agent Selection Rules
|
|
68
99
|
|
|
69
100
|
Always include:
|
|
@@ -101,6 +132,16 @@ Hosts should also maintain:
|
|
|
101
132
|
- `.atavi/kill-log.md`
|
|
102
133
|
- `.atavi/run-log.md`
|
|
103
134
|
|
|
135
|
+
Hosts should keep the user-facing surface alive during execution with short
|
|
136
|
+
status updates such as:
|
|
137
|
+
|
|
138
|
+
- scanning and summarizing repository context
|
|
139
|
+
- validating `.atavi/` state
|
|
140
|
+
- selecting the active pass and agents
|
|
141
|
+
- finishing POD drafting
|
|
142
|
+
- finishing cross-pollination
|
|
143
|
+
- entering synthesis or decision gating
|
|
144
|
+
|
|
104
145
|
## Registry Ownership And Synthesis
|
|
105
146
|
|
|
106
147
|
Agents propose changes in PODs and CPRs. The host applies accepted changes to
|
|
@@ -142,6 +183,13 @@ Recommended load order:
|
|
|
142
183
|
Codex should keep orchestration file-first and write durable artifacts into
|
|
143
184
|
`.atavi/` rather than relying on hidden memory.
|
|
144
185
|
|
|
186
|
+
Codex should also provide concise commentary updates before major scans,
|
|
187
|
+
artifact writes, and pass transitions so the user sees visible progress.
|
|
188
|
+
|
|
189
|
+
Starter prompt:
|
|
190
|
+
|
|
191
|
+
- `prompts/codex.md`
|
|
192
|
+
|
|
145
193
|
## Claude
|
|
146
194
|
|
|
147
195
|
Recommended load order:
|
|
@@ -154,6 +202,13 @@ Recommended load order:
|
|
|
154
202
|
|
|
155
203
|
Claude should treat `.atavi/` as the source of truth for resumability and audit.
|
|
156
204
|
|
|
205
|
+
Claude should ask targeted clarifying questions up front and provide explicit
|
|
206
|
+
choice sets when scope, mode, or agent selection is ambiguous.
|
|
207
|
+
|
|
208
|
+
Starter prompt:
|
|
209
|
+
|
|
210
|
+
- `prompts/claude.md`
|
|
211
|
+
|
|
157
212
|
## Gemini
|
|
158
213
|
|
|
159
214
|
Recommended load order:
|
|
@@ -166,6 +221,13 @@ Recommended load order:
|
|
|
166
221
|
|
|
167
222
|
Gemini should preserve the same file contract as every other host.
|
|
168
223
|
|
|
224
|
+
Gemini should keep the session visibly interactive with startup confirmation,
|
|
225
|
+
clarifying questions, and brief progress updates during long scans.
|
|
226
|
+
|
|
227
|
+
Starter prompt:
|
|
228
|
+
|
|
229
|
+
- `prompts/gemini.md`
|
|
230
|
+
|
|
169
231
|
## Failure Modes And Escalation
|
|
170
232
|
|
|
171
233
|
Hosts should stop and ask the researcher when:
|
package/README.md
CHANGED
|
@@ -14,12 +14,21 @@ ATAVI is intentionally thin. The package does not run the research loop for
|
|
|
14
14
|
you. It ships the protocol, role files, templates, and CLI helpers that a host
|
|
15
15
|
AI can load and execute.
|
|
16
16
|
|
|
17
|
+
Even though the package is thin, the expected host experience is interactive:
|
|
18
|
+
the host should acknowledge startup, ask clarifying questions when the brief is
|
|
19
|
+
underspecified, present options when there are multiple viable run shapes, and
|
|
20
|
+
keep visible progress updates flowing while it scans and writes `.atavi/`
|
|
21
|
+
artifacts.
|
|
22
|
+
|
|
23
|
+
ATAVI is published on npm as [`atavi`](https://www.npmjs.com/package/atavi).
|
|
24
|
+
|
|
17
25
|
## What You Get
|
|
18
26
|
|
|
19
27
|
The package ships:
|
|
20
28
|
|
|
21
29
|
- `protocol/ATAVI.md` as the canonical protocol
|
|
22
30
|
- `protocol/agents/*` for Theorist, Experimentalist, Scout, Critic, and Synthesist
|
|
31
|
+
- `prompts/*` for Codex, Claude, and Gemini starter prompts
|
|
23
32
|
- `templates/*` for briefs, PODs, CPRs, and final reports
|
|
24
33
|
- `bin/atavi.js` as the CLI entrypoint
|
|
25
34
|
- `HOSTS.md` for Codex, Claude, and Gemini loading guidance
|
|
@@ -41,6 +50,20 @@ Without web search, Scout mode and full novelty gating are not valid.
|
|
|
41
50
|
npm install -g atavi
|
|
42
51
|
```
|
|
43
52
|
|
|
53
|
+
### Verify the install
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
atavi --version
|
|
57
|
+
atavi --help
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Update an existing global install
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
npm install -g atavi@latest
|
|
64
|
+
atavi --version
|
|
65
|
+
```
|
|
66
|
+
|
|
44
67
|
### Run with `npx`
|
|
45
68
|
|
|
46
69
|
```bash
|
|
@@ -80,6 +103,7 @@ The returned path contains:
|
|
|
80
103
|
|
|
81
104
|
- `protocol/ATAVI.md`
|
|
82
105
|
- `protocol/agents/*`
|
|
106
|
+
- `prompts/*`
|
|
83
107
|
- `templates/*`
|
|
84
108
|
|
|
85
109
|
Your host should load those files plus `.atavi/brief.md`, `.atavi/config.json`,
|
|
@@ -95,6 +119,13 @@ Typical flow:
|
|
|
95
119
|
4. The host writes PODs, CPRs, synthesis records, decision records, registry updates, and memory artifacts into `.atavi/`.
|
|
96
120
|
5. Review `.atavi/ATAVI-REPORT.md` when the run finishes.
|
|
97
121
|
|
|
122
|
+
Expected host behavior during the run:
|
|
123
|
+
|
|
124
|
+
- acknowledge that ATAVI was detected
|
|
125
|
+
- ask clarifying questions before long repo scans when the brief is ambiguous
|
|
126
|
+
- present numbered options when mode, scope, or agent mix is unclear
|
|
127
|
+
- provide short progress updates while scanning and writing artifacts
|
|
128
|
+
|
|
98
129
|
### 4. Resume or repair later
|
|
99
130
|
|
|
100
131
|
```bash
|
|
@@ -206,6 +237,12 @@ Then have the host:
|
|
|
206
237
|
|
|
207
238
|
See [HOSTS.md](./HOSTS.md) for Codex, Claude, and Gemini-specific loading guidance.
|
|
208
239
|
|
|
240
|
+
Starter prompts are also shipped under:
|
|
241
|
+
|
|
242
|
+
- `prompts/codex.md`
|
|
243
|
+
- `prompts/claude.md`
|
|
244
|
+
- `prompts/gemini.md`
|
|
245
|
+
|
|
209
246
|
## Development
|
|
210
247
|
|
|
211
248
|
From a repo checkout:
|
|
@@ -224,9 +261,37 @@ node scripts/check-release-surface.js
|
|
|
224
261
|
node test/run-all.js
|
|
225
262
|
```
|
|
226
263
|
|
|
264
|
+
## npm Package
|
|
265
|
+
|
|
266
|
+
Registry page:
|
|
267
|
+
|
|
268
|
+
- `https://www.npmjs.com/package/atavi`
|
|
269
|
+
|
|
270
|
+
Install:
|
|
271
|
+
|
|
272
|
+
```bash
|
|
273
|
+
npm install -g atavi
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
Update:
|
|
277
|
+
|
|
278
|
+
```bash
|
|
279
|
+
npm install -g atavi@latest
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
Run:
|
|
283
|
+
|
|
284
|
+
```bash
|
|
285
|
+
atavi --help
|
|
286
|
+
atavi init .
|
|
287
|
+
```
|
|
288
|
+
|
|
227
289
|
## Related Docs
|
|
228
290
|
|
|
229
291
|
- [HOSTS.md](./HOSTS.md)
|
|
292
|
+
- `prompts/codex.md`
|
|
293
|
+
- `prompts/claude.md`
|
|
294
|
+
- `prompts/gemini.md`
|
|
230
295
|
- [ARCHITECTURE.md](./ARCHITECTURE.md)
|
|
231
296
|
- [TESTING.md](./TESTING.md)
|
|
232
297
|
- [CONTRIBUTING.md](./CONTRIBUTING.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atavi",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Host-agnostic multi-agent iterative research refinement protocol.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"bin/",
|
|
17
17
|
"src/",
|
|
18
18
|
"protocol/",
|
|
19
|
+
"prompts/",
|
|
19
20
|
"templates/",
|
|
20
21
|
"README.md",
|
|
21
22
|
"HOSTS.md",
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Claude Starter Prompt
|
|
2
|
+
|
|
3
|
+
Run the ATAVI protocol for the current project using the local file workspace.
|
|
4
|
+
|
|
5
|
+
Treat ATAVI as a protocol package, not an application runtime.
|
|
6
|
+
|
|
7
|
+
## Load Order
|
|
8
|
+
|
|
9
|
+
1. Run `atavi --path`.
|
|
10
|
+
2. Load `protocol/ATAVI.md`.
|
|
11
|
+
3. Load the relevant role files from `protocol/agents/`.
|
|
12
|
+
4. Load `.atavi/brief.md`, `.atavi/config.json`, and `.atavi/status.md`.
|
|
13
|
+
5. Load `.atavi/registries/claims.md`, `.atavi/registries/experiments.md`,
|
|
14
|
+
`.atavi/registries/prior-art.md`, `.atavi/conflicts.md`, `.atavi/run-log.md`,
|
|
15
|
+
and the latest `pass-N/` artifacts if present.
|
|
16
|
+
6. Run `atavi validate .` before a fresh run or `atavi resume-check .` before a
|
|
17
|
+
resumed run.
|
|
18
|
+
|
|
19
|
+
## Session Behavior
|
|
20
|
+
|
|
21
|
+
Before deep scanning:
|
|
22
|
+
|
|
23
|
+
- confirm that ATAVI is being invoked for this project
|
|
24
|
+
- explain the first files or directories you will inspect
|
|
25
|
+
- ask clarifying questions if the brief, objective, constraints, or decision
|
|
26
|
+
target are underspecified
|
|
27
|
+
- offer numbered choices when multiple plausible scopes, modes, or agent sets
|
|
28
|
+
exist
|
|
29
|
+
- wait for the user when those choices materially change the run
|
|
30
|
+
|
|
31
|
+
During execution:
|
|
32
|
+
|
|
33
|
+
- provide brief visible progress updates while reading the repo and updating
|
|
34
|
+
`.atavi/`
|
|
35
|
+
- summarize what the initial scan changed in your understanding
|
|
36
|
+
- do not remain silent for long stretches while analyzing the workspace
|
|
37
|
+
|
|
38
|
+
## Operating Rules
|
|
39
|
+
|
|
40
|
+
- Always include Theorist, Experimentalist, and Scout.
|
|
41
|
+
- Add Critic only when risk or irreversibility is high.
|
|
42
|
+
- Add Synthesist only when adjacent domains are likely to help.
|
|
43
|
+
- Keep `.atavi/` as the source of truth for resumability and audit.
|
|
44
|
+
- Do not store canonical registry state only in chat.
|
|
45
|
+
- Do not skip Scout novelty checks for surviving experiments.
|
|
46
|
+
|
|
47
|
+
## File Contract
|
|
48
|
+
|
|
49
|
+
- PODs: `.atavi/pass-N/[agent]-pod.md`
|
|
50
|
+
- CPRs: `.atavi/pass-N/cross-pollination/[agent]-cpr.md`
|
|
51
|
+
- Synthesis: `.atavi/pass-N/synthesis.md`
|
|
52
|
+
- Decision gate: `.atavi/pass-N/decision.md`
|
|
53
|
+
- Registries and logs: `.atavi/registries/`, `.atavi/conflicts.md`,
|
|
54
|
+
`.atavi/kill-log.md`, `.atavi/run-log.md`
|
|
55
|
+
- Memory exports: `.atavi/memory/`
|
|
56
|
+
|
|
57
|
+
## Expected Outcome
|
|
58
|
+
|
|
59
|
+
Produce a complete `.atavi/` paper trail that a later host can resume or audit
|
|
60
|
+
without reconstructing hidden context.
|
package/prompts/codex.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Codex Starter Prompt
|
|
2
|
+
|
|
3
|
+
You are running ATAVI in the current project.
|
|
4
|
+
|
|
5
|
+
Use the local workspace and package files directly. Do not invent hidden state
|
|
6
|
+
or an external orchestration service.
|
|
7
|
+
|
|
8
|
+
## Load Order
|
|
9
|
+
|
|
10
|
+
1. Run `atavi --path`.
|
|
11
|
+
2. Read `protocol/ATAVI.md`.
|
|
12
|
+
3. Read the required files in `protocol/agents/`.
|
|
13
|
+
4. Read `.atavi/brief.md`, `.atavi/config.json`, and `.atavi/status.md`.
|
|
14
|
+
5. Read `.atavi/registries/claims.md`, `.atavi/registries/experiments.md`,
|
|
15
|
+
`.atavi/registries/prior-art.md`, `.atavi/conflicts.md`, `.atavi/run-log.md`,
|
|
16
|
+
and the latest `pass-N/` artifacts if they exist.
|
|
17
|
+
6. Run `atavi validate .` before a fresh run or `atavi resume-check .` before a
|
|
18
|
+
resumed run.
|
|
19
|
+
|
|
20
|
+
## Session Behavior
|
|
21
|
+
|
|
22
|
+
Before deep scanning:
|
|
23
|
+
|
|
24
|
+
- acknowledge that you are starting an ATAVI run
|
|
25
|
+
- say what you are going to inspect first
|
|
26
|
+
- ask clarifying questions if the brief, goal, constraints, or success metric
|
|
27
|
+
are ambiguous
|
|
28
|
+
- present numbered options when there are multiple viable run modes, scopes, or
|
|
29
|
+
agent mixes
|
|
30
|
+
- wait for the user when those choices materially affect the run
|
|
31
|
+
|
|
32
|
+
During execution:
|
|
33
|
+
|
|
34
|
+
- keep visible commentary updates flowing while scanning, validating, and
|
|
35
|
+
writing artifacts
|
|
36
|
+
- summarize scan findings before entering pass execution
|
|
37
|
+
- do not disappear into long silent repository analysis
|
|
38
|
+
|
|
39
|
+
## Operating Rules
|
|
40
|
+
|
|
41
|
+
- The host AI is the orchestrator.
|
|
42
|
+
- Always include Theorist, Experimentalist, and Scout.
|
|
43
|
+
- Add Critic when failure cost is high, the work is irreversible, or the
|
|
44
|
+
novelty landscape is crowded.
|
|
45
|
+
- Add Synthesist when cross-domain methods are likely to matter.
|
|
46
|
+
- Agents propose changes in PODs and CPRs; you apply accepted changes to the
|
|
47
|
+
canonical registries during synthesis.
|
|
48
|
+
- Novelty verification is mandatory before an experiment survives.
|
|
49
|
+
- Write every durable artifact into `.atavi/`.
|
|
50
|
+
|
|
51
|
+
## File Contract
|
|
52
|
+
|
|
53
|
+
- PODs: `.atavi/pass-N/[agent]-pod.md`
|
|
54
|
+
- CPRs: `.atavi/pass-N/cross-pollination/[agent]-cpr.md`
|
|
55
|
+
- Synthesis: `.atavi/pass-N/synthesis.md`
|
|
56
|
+
- Decision gate: `.atavi/pass-N/decision.md`
|
|
57
|
+
- Final report: `.atavi/ATAVI-REPORT.md`
|
|
58
|
+
- Reusable memory exports: `.atavi/memory/`
|
|
59
|
+
|
|
60
|
+
## Expected Outcome
|
|
61
|
+
|
|
62
|
+
Leave the workspace in a resumable, inspectable state with updated registries,
|
|
63
|
+
logs, pass artifacts, and a final report if the run completes.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Gemini Starter Prompt
|
|
2
|
+
|
|
3
|
+
Use the ATAVI protocol package in this repository to run a file-first
|
|
4
|
+
multi-agent research refinement workflow.
|
|
5
|
+
|
|
6
|
+
Do not assume hidden orchestration state outside `.atavi/`.
|
|
7
|
+
|
|
8
|
+
## Load Order
|
|
9
|
+
|
|
10
|
+
1. Run `atavi --path`.
|
|
11
|
+
2. Read `protocol/ATAVI.md`.
|
|
12
|
+
3. Read the relevant role files in `protocol/agents/`.
|
|
13
|
+
4. Read `.atavi/brief.md`, `.atavi/config.json`, and `.atavi/status.md`.
|
|
14
|
+
5. Read the canonical registries, logs, and most recent `pass-N/` artifacts.
|
|
15
|
+
6. Run `atavi validate .` before a fresh run or `atavi resume-check .` before a
|
|
16
|
+
resumed run.
|
|
17
|
+
|
|
18
|
+
## Session Behavior
|
|
19
|
+
|
|
20
|
+
Before deep scanning:
|
|
21
|
+
|
|
22
|
+
- confirm that you are starting an ATAVI run
|
|
23
|
+
- tell the user what you will inspect first
|
|
24
|
+
- ask clarifying questions when the brief, objective, constraints, or success
|
|
25
|
+
criteria are unclear
|
|
26
|
+
- present numbered options when more than one run mode, scope, or agent mix is
|
|
27
|
+
reasonable
|
|
28
|
+
- wait for the user when those decisions materially affect the run
|
|
29
|
+
|
|
30
|
+
During execution:
|
|
31
|
+
|
|
32
|
+
- keep visible progress updates on screen while scanning, validating, and
|
|
33
|
+
writing artifacts
|
|
34
|
+
- summarize the initial scan before moving into pass execution
|
|
35
|
+
- do not disappear into silent analysis for long periods
|
|
36
|
+
|
|
37
|
+
## Operating Rules
|
|
38
|
+
|
|
39
|
+
- The host AI owns orchestration and synthesis.
|
|
40
|
+
- Always include Theorist, Experimentalist, and Scout.
|
|
41
|
+
- Add Critic for high-risk or crowded novelty landscapes.
|
|
42
|
+
- Add Synthesist for cross-domain transfer.
|
|
43
|
+
- Novelty verification is mandatory.
|
|
44
|
+
- Apply accepted changes to the canonical registries during synthesis.
|
|
45
|
+
- Keep the workspace resumable after every pass.
|
|
46
|
+
|
|
47
|
+
## File Contract
|
|
48
|
+
|
|
49
|
+
- PODs: `.atavi/pass-N/[agent]-pod.md`
|
|
50
|
+
- CPRs: `.atavi/pass-N/cross-pollination/[agent]-cpr.md`
|
|
51
|
+
- Synthesis: `.atavi/pass-N/synthesis.md`
|
|
52
|
+
- Decision gate: `.atavi/pass-N/decision.md`
|
|
53
|
+
- Final report: `.atavi/ATAVI-REPORT.md`
|
|
54
|
+
- Memory exports: `.atavi/memory/`
|
|
55
|
+
|
|
56
|
+
## Expected Outcome
|
|
57
|
+
|
|
58
|
+
Write all durable ATAVI outputs back into `.atavi/` so the process remains
|
|
59
|
+
inspectable, resumable, and host-agnostic.
|
package/src/cli.js
CHANGED
|
@@ -7,7 +7,7 @@ import { commandPath } from "./commands/path.js";
|
|
|
7
7
|
import { commandResumeCheck } from "./commands/resume-check.js";
|
|
8
8
|
import { commandValidate } from "./commands/validate.js";
|
|
9
9
|
|
|
10
|
-
const VERSION = "0.1.
|
|
10
|
+
const VERSION = "0.1.1";
|
|
11
11
|
|
|
12
12
|
function helpText() {
|
|
13
13
|
return `atavi
|