apocalypse-mascots 0.0.0-stage → 0.4.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 +44 -0
- package/README.md +44 -2
- package/dist/apocalypse-mascots.mjs +1746 -0
- package/package.json +51 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
Apocalypse Mascots and the other objects in this repository are an art project
|
|
2
|
+
by Joseph Bianchi (Accidental Intelligence), Amsterdam.
|
|
3
|
+
|
|
4
|
+
Two licenses apply:
|
|
5
|
+
|
|
6
|
+
1. CODE — everything under plugins/apocalypse-mascots/hooks/,
|
|
7
|
+
plugins/apocalypse-mascots/types/, and companion/src/, the test files,
|
|
8
|
+
preview.py, the manifests and the build configuration, except what clause 2
|
|
9
|
+
names — is released under the MIT License (below).
|
|
10
|
+
|
|
11
|
+
2. ART AND COPY — the creature designs, the color schemes, the toasts, the spinner words, the manifesto, the READMEs and
|
|
12
|
+
PROCESS logs, and any images — are released under the Creative Commons
|
|
13
|
+
Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0),
|
|
14
|
+
https://creativecommons.org/licenses/by-nc/4.0/ . You may share and adapt
|
|
15
|
+
them with attribution to Accidental Intelligence / Joseph Bianchi; you may
|
|
16
|
+
not use them for commercial purposes.
|
|
17
|
+
|
|
18
|
+
Quotations from H. P. Lovecraft are public domain. The shoggoth-with-a-smiley
|
|
19
|
+
meme and the drawings it descends from belong to their authors and are not
|
|
20
|
+
reproduced here.
|
|
21
|
+
|
|
22
|
+
----------------------------------------------------------------------------
|
|
23
|
+
|
|
24
|
+
MIT License
|
|
25
|
+
|
|
26
|
+
Copyright (c) 2026 Joseph Bianchi
|
|
27
|
+
|
|
28
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
29
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
30
|
+
in the Software without restriction, including without limitation the rights
|
|
31
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
32
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
33
|
+
furnished to do so, subject to the following conditions:
|
|
34
|
+
|
|
35
|
+
The above copyright notice and this permission notice shall be included in all
|
|
36
|
+
copies or substantial portions of the Software.
|
|
37
|
+
|
|
38
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
39
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
40
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
41
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
42
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
43
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
44
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,45 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Apocalypse Mascots, beside any agent
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Code with AI as it really is.** Now in Codex, Gemini CLI, Cursor, Copilot, OpenCode, Windsurf and the rest.
|
|
4
|
+
|
|
5
|
+
In Claude Code the creature lives above your prompt: that is the [plugin](https://github.com/jabianch/apocalypse-mascots/tree/main/plugins/apocalypse-mascots). Every other agent keeps its own screen to itself, so here the creature takes a pane of its own beside it, and grows from the agent's hooks: one stage for each kind of thing you let the agent do.
|
|
6
|
+
|
|
7
|
+
## Install, for Codex
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
npm install -g apocalypse-mascots
|
|
11
|
+
apocalypse-mascots setup codex --write
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Then start Codex, open `/hooks`, and trust the four apocalypse-mascots hooks: Codex runs no hook until you do. Then, in a terminal beside it:
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
apocalypse-mascots
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
For any other agent below, put its name where `codex` is. The pane goes in a split beside the agent: a tmux or WezTerm pane, a second tab, or the terminal panel of your editor. `q` closes it; `f`, `s` and `t` change the form, the scheme and the theme.
|
|
21
|
+
|
|
22
|
+
## The agents
|
|
23
|
+
|
|
24
|
+
| Agent | `setup <agent> --write` adds | Then |
|
|
25
|
+
|-------|------------------------------|------|
|
|
26
|
+
| Codex CLI | four hooks to `~/.codex/hooks.json` | open `/hooks` in Codex and trust them; Codex runs no hook it has not been told to trust |
|
|
27
|
+
| Cursor, the editor and `cursor-agent` | four hooks to `~/.cursor/hooks.json` | |
|
|
28
|
+
| Gemini CLI | four hooks to `~/.gemini/settings.json` | |
|
|
29
|
+
| GitHub Copilot CLI | `~/.copilot/hooks/apocalypse-mascots.json` | |
|
|
30
|
+
| OpenCode | a small plugin, `~/.config/opencode/plugins/apocalypse-mascots.js` | restart OpenCode |
|
|
31
|
+
| Windsurf (Devin Desktop) | six hooks to `~/.codeium/windsurf/hooks.json` | |
|
|
32
|
+
| Qwen Code | four hooks to `~/.qwen/settings.json` | |
|
|
33
|
+
| Factory Droid | four hooks to `~/.factory/hooks.json` | |
|
|
34
|
+
|
|
35
|
+
Without `--write`, `setup <agent>` prints what it would add and where, and touches nothing. With it, the file as it was is kept beside it as `<file>.before-mascots`; a file that is not plain JSON is left alone. `apocalypse-mascots setup` lists the rest, Cline and Kiro among them, with what to add by hand.
|
|
36
|
+
|
|
37
|
+
## What it never does
|
|
38
|
+
|
|
39
|
+
It never stops your agent: it reads each tool call after the tool has run, says nothing, and exits cleanly whatever it is handed. No network calls. A hook writes one line per event, holding the event, the agent and the tool's name (never your prompt, never the model's answer), to a log in `~/.apocalypse-mascots/`, and a log a week old is deleted. Your agent's config changes only when you pass `--write`.
|
|
40
|
+
|
|
41
|
+
## How it is built
|
|
42
|
+
|
|
43
|
+
The same drawing code as the plugin and the site ([`mascot.ts`](https://github.com/jabianch/apocalypse-mascots/blob/main/plugins/apocalypse-mascots/hooks/mascot.ts) and [`figures.ts`](https://github.com/jabianch/apocalypse-mascots/blob/main/plugins/apocalypse-mascots/hooks/figures.ts)), bundled into one file with no dependencies. Truecolor where the terminal has it, the 256-colour cube where it does not. Tests: `npm test`.
|
|
44
|
+
|
|
45
|
+
Site: https://accidentalintelligence.org/mascots/ · Source: https://github.com/jabianch/apocalypse-mascots
|