agentpeeps 0.0.0-stage → 0.1.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/.agents/plugins/marketplace.json +11 -0
- package/.claude-plugin/marketplace.json +12 -0
- package/.claude-plugin/plugin.json +9 -0
- package/.codex-plugin/plugin.json +39 -0
- package/LICENSE +21 -0
- package/README.md +251 -2
- package/avatars/free/capybaras/capybara-bee-animated.webp +0 -0
- package/avatars/free/capybaras/capybara-bee.webp +0 -0
- package/avatars/free/capybaras/capybara-duck-animated.webp +0 -0
- package/avatars/free/capybaras/capybara-duck.webp +0 -0
- package/avatars/free/capybaras/capybara-friends-animated.webp +0 -0
- package/avatars/free/capybaras/capybara-friends.webp +0 -0
- package/avatars/free/capybaras/capybara-glasses-animated.webp +0 -0
- package/avatars/free/capybaras/capybara-glasses.webp +0 -0
- package/avatars/free/capybaras/capybara-hair-rollers-animated.webp +0 -0
- package/avatars/free/capybaras/capybara-hair-rollers.webp +0 -0
- package/avatars/free/capybaras/capybara-harness-animated.webp +0 -0
- package/avatars/free/capybaras/capybara-harness.webp +0 -0
- package/avatars/free/capybaras/capybara-in-a-dress-animated.webp +0 -0
- package/avatars/free/capybaras/capybara-in-a-dress.webp +0 -0
- package/avatars/free/capybaras/capybara-rose-animated.webp +0 -0
- package/avatars/free/capybaras/capybara-rose.webp +0 -0
- package/avatars/free/cats/cat-big-eyes-animated.webp +0 -0
- package/avatars/free/cats/cat-big-eyes.webp +0 -0
- package/avatars/free/cats/cat-big-yawn-animated.webp +0 -0
- package/avatars/free/cats/cat-big-yawn.webp +0 -0
- package/avatars/free/cats/cat-curious-kitten-animated.webp +0 -0
- package/avatars/free/cats/cat-curious-kitten.webp +0 -0
- package/avatars/free/cats/cat-fluffy-round-animated.webp +0 -0
- package/avatars/free/cats/cat-fluffy-round.webp +0 -0
- package/avatars/free/cats/cat-french-fries-animated.webp +0 -0
- package/avatars/free/cats/cat-french-fries.webp +0 -0
- package/avatars/free/cats/cat-grumpy-animated.webp +0 -0
- package/avatars/free/cats/cat-grumpy.webp +0 -0
- package/avatars/free/cats/cat-in-a-banana-animated.webp +0 -0
- package/avatars/free/cats/cat-in-a-banana.webp +0 -0
- package/avatars/free/cats/cat-long-neck-animated.webp +0 -0
- package/avatars/free/cats/cat-long-neck.webp +0 -0
- package/avatars/free/cats/cat-lying-down-animated.webp +0 -0
- package/avatars/free/cats/cat-lying-down.webp +0 -0
- package/avatars/free/cats/cat-on-its-back-animated.webp +0 -0
- package/avatars/free/cats/cat-on-its-back.webp +0 -0
- package/avatars/free/cats/cat-open-mouth-animated.webp +0 -0
- package/avatars/free/cats/cat-open-mouth.webp +0 -0
- package/avatars/free/cats/cat-orange-costume-animated.webp +0 -0
- package/avatars/free/cats/cat-orange-costume.webp +0 -0
- package/avatars/free/cats/cat-orange-kitten-animated.webp +0 -0
- package/avatars/free/cats/cat-orange-kitten.webp +0 -0
- package/avatars/free/cats/cat-pizza-animated.webp +0 -0
- package/avatars/free/cats/cat-pizza.webp +0 -0
- package/avatars/free/cats/cat-pointy-ears-animated.webp +0 -0
- package/avatars/free/cats/cat-pointy-ears.webp +0 -0
- package/avatars/free/cats/cat-round-face-animated.webp +0 -0
- package/avatars/free/cats/cat-round-face.webp +0 -0
- package/avatars/free/cats/cat-round-profile-animated.webp +0 -0
- package/avatars/free/cats/cat-round-profile.webp +0 -0
- package/avatars/free/cats/cat-smirk-animated.webp +0 -0
- package/avatars/free/cats/cat-smirk.webp +0 -0
- package/avatars/free/cats/cat-squinting-animated.webp +0 -0
- package/avatars/free/cats/cat-squinting.webp +0 -0
- package/avatars/free/cats/cat-standing-kitten-animated.webp +0 -0
- package/avatars/free/cats/cat-standing-kitten.webp +0 -0
- package/avatars/free/cats/cat-standing-up-animated.webp +0 -0
- package/avatars/free/cats/cat-standing-up.webp +0 -0
- package/avatars/free/cats/cat-sunglasses-animated.webp +0 -0
- package/avatars/free/cats/cat-sunglasses.webp +0 -0
- package/avatars/free/cats/cat-tabby-animated.webp +0 -0
- package/avatars/free/cats/cat-tabby-pile-animated.webp +0 -0
- package/avatars/free/cats/cat-tabby-pile.webp +0 -0
- package/avatars/free/cats/cat-tabby-stare-animated.webp +0 -0
- package/avatars/free/cats/cat-tabby-stare.webp +0 -0
- package/avatars/free/cats/cat-tabby.webp +0 -0
- package/avatars/free/cats/cat-white-side-eye-animated.webp +0 -0
- package/avatars/free/cats/cat-white-side-eye.webp +0 -0
- package/avatars/free/color-blobs/blob-black-orb.webp +0 -0
- package/avatars/free/color-blobs/blob-blue-triangle.webp +0 -0
- package/avatars/free/color-blobs/blob-brown-clover.webp +0 -0
- package/avatars/free/color-blobs/blob-gray-pebble.webp +0 -0
- package/avatars/free/color-blobs/blob-green-capsule.webp +0 -0
- package/avatars/free/color-blobs/blob-orange-cloud.webp +0 -0
- package/avatars/free/costume-cats/banana-cat.webp +0 -0
- package/avatars/free/costume-cats/blanket-cat.webp +0 -0
- package/avatars/free/costume-cats/blueberry-cat.webp +0 -0
- package/avatars/free/costume-cats/fish-snack-cat.webp +0 -0
- package/avatars/free/costume-cats/frog-hood-cat.webp +0 -0
- package/avatars/free/costume-cats/headphone-cat.webp +0 -0
- package/avatars/free/costume-cats/shark-hood-cat.webp +0 -0
- package/avatars/free/critters/hamster-paws-animated.webp +0 -0
- package/avatars/free/critters/hamster-paws.webp +0 -0
- package/avatars/free/critters/pigeon-hop-animated.webp +0 -0
- package/avatars/free/critters/t-rex-guitar-animated.webp +0 -0
- package/avatars/free/critters/t-rex-guitar.webp +0 -0
- package/avatars/free/critters/teary-pink-blob.webp +0 -0
- package/avatars/free/flame-expressions/flame-angry.webp +0 -0
- package/avatars/free/flame-expressions/flame-confusion.webp +0 -0
- package/avatars/free/flame-expressions/flame-friendly.webp +0 -0
- package/avatars/free/flame-expressions/flame-gusto.webp +0 -0
- package/avatars/free/flame-expressions/flame-joy.webp +0 -0
- package/avatars/free/flame-expressions/flame-sly.webp +0 -0
- package/avatars/free/flame-expressions/flame-upset.webp +0 -0
- package/avatars/free/flame-expressions/flame-walk.webp +0 -0
- package/avatars/free/flame-expressions/flame-watching.webp +0 -0
- package/avatars/free/fruit-cats/cherry-cat.webp +0 -0
- package/avatars/free/fruit-cats/kiwi-cat.webp +0 -0
- package/avatars/free/fruit-cats/orange-cat.webp +0 -0
- package/avatars/free/fruit-cats/pineapple-cat.webp +0 -0
- package/avatars/free/fruit-cats/strawberry-cat.webp +0 -0
- package/avatars/free/fruit-cats/watermelon-cat.webp +0 -0
- package/avatars/free/gradient-icons/gradient-cat-skull.webp +0 -0
- package/avatars/free/gradient-icons/gradient-chef.webp +0 -0
- package/avatars/free/gradient-icons/gradient-eyed-shadow.webp +0 -0
- package/avatars/free/gradient-icons/gradient-flame.webp +0 -0
- package/avatars/free/gradient-icons/gradient-rabbit-shadow.webp +0 -0
- package/avatars/free/gradient-icons/gradient-sleepy-ghost.webp +0 -0
- package/avatars/free/manga-faces/manga-bangs-smile.webp +0 -0
- package/avatars/free/manga-faces/manga-bob-side-eye.webp +0 -0
- package/avatars/free/manga-faces/manga-closed-eyes-frown.webp +0 -0
- package/avatars/free/manga-faces/manga-glasses-headset.webp +0 -0
- package/avatars/free/manga-faces/manga-glasses-wink.webp +0 -0
- package/avatars/free/manga-faces/manga-short-hair-smile.webp +0 -0
- package/avatars/free/manga-faces/manga-side-part-wink.webp +0 -0
- package/avatars/free/manga-faces/manga-side-swept-smile.webp +0 -0
- package/avatars/free/manga-faces/manga-tousled-grin.webp +0 -0
- package/avatars/free/monster-icons/monster-amber-chick.webp +0 -0
- package/avatars/free/monster-icons/monster-aqua-frog.webp +0 -0
- package/avatars/free/monster-icons/monster-coral-alien.webp +0 -0
- package/avatars/free/monster-icons/monster-indigo-boar.webp +0 -0
- package/avatars/free/monster-icons/monster-lavender-bunny.webp +0 -0
- package/avatars/free/monster-icons/monster-navy-cyclops.webp +0 -0
- package/avatars/free/monster-icons/monster-orange-fish.webp +0 -0
- package/avatars/free/monster-icons/monster-pink-sleepy-cat.webp +0 -0
- package/avatars/free/monster-icons/monster-purple-octopus.webp +0 -0
- package/avatars/free/monster-icons/monster-red-stalk-eyes.webp +0 -0
- package/avatars/free/monster-icons/monster-rose-bat.webp +0 -0
- package/avatars/free/monster-icons/monster-teal-crocodile.webp +0 -0
- package/avatars/free/pixel-food/pixel-astronaut.webp +0 -0
- package/avatars/free/pixel-food/pixel-block-sprout.webp +0 -0
- package/avatars/free/pixel-food/pixel-blue-hair.webp +0 -0
- package/avatars/free/pixel-food/pixel-blue-horned.webp +0 -0
- package/avatars/free/pixel-food/pixel-cat-glasses.webp +0 -0
- package/avatars/free/pixel-food/pixel-cone-hat.webp +0 -0
- package/avatars/free/pixel-food/pixel-maroon-creature.webp +0 -0
- package/avatars/free/pixel-food/pixel-orange-creature.webp +0 -0
- package/avatars/free/pixel-food/pixel-orange-sprout.webp +0 -0
- package/avatars/free/pixel-food/pixel-red-hood.webp +0 -0
- package/avatars/free/pixel-food/pixel-watermelon.webp +0 -0
- package/avatars/free/pixel-food/pixel-white-bunny.webp +0 -0
- package/avatars/free/plush-blobs/plush-blue-alarmed.webp +0 -0
- package/avatars/free/plush-blobs/plush-green-surprised.webp +0 -0
- package/avatars/free/plush-blobs/plush-pink-smile.webp +0 -0
- package/avatars/free/plush-blobs/plush-red-angry.webp +0 -0
- package/avatars/free/plush-blobs/plush-yellow-frustrated.webp +0 -0
- package/avatars/free/retro-windows/retro-arrow-cursor.webp +0 -0
- package/avatars/free/retro-windows/retro-blank-window.webp +0 -0
- package/avatars/free/retro-windows/retro-cyan-notepad.webp +0 -0
- package/avatars/free/retro-windows/retro-desktop-computer.webp +0 -0
- package/avatars/free/retro-windows/retro-dialog-stack.webp +0 -0
- package/avatars/free/retro-windows/retro-eye-warning.webp +0 -0
- package/avatars/free/retro-windows/retro-gear-document.webp +0 -0
- package/avatars/free/retro-windows/retro-hand-cursor.webp +0 -0
- package/avatars/free/retro-windows/retro-heart-pet.webp +0 -0
- package/avatars/free/retro-windows/retro-music-cd.webp +0 -0
- package/avatars/free/retro-windows/retro-paint-palette.webp +0 -0
- package/avatars/free/retro-windows/retro-pen-notepad.webp +0 -0
- package/avatars/free/retro-windows/retro-pixel-tree.webp +0 -0
- package/avatars/free/retro-windows/retro-recycle-bin.webp +0 -0
- package/avatars/free/retro-windows/retro-warning-triangle.webp +0 -0
- package/avatars/free/retro-windows/retro-yellow-folder.webp +0 -0
- package/avatars/free/seals-and-sea-lions/otter-tongue-out-animated.webp +0 -0
- package/avatars/free/seals-and-sea-lions/otter-tongue-out.webp +0 -0
- package/avatars/free/seals-and-sea-lions/sea-lion-curious-face-animated.webp +0 -0
- package/avatars/free/seals-and-sea-lions/sea-lion-curious-face.webp +0 -0
- package/avatars/free/seals-and-sea-lions/sea-lion-gliding-animated.webp +0 -0
- package/avatars/free/seals-and-sea-lions/sea-lion-gliding.webp +0 -0
- package/avatars/free/seals-and-sea-lions/sea-lion-green-hood-animated.webp +0 -0
- package/avatars/free/seals-and-sea-lions/sea-lion-green-hood.webp +0 -0
- package/avatars/free/seals-and-sea-lions/sea-lion-mid-flip-animated.webp +0 -0
- package/avatars/free/seals-and-sea-lions/sea-lion-mid-flip.webp +0 -0
- package/avatars/free/seals-and-sea-lions/sea-lion-nose-boop-animated.webp +0 -0
- package/avatars/free/seals-and-sea-lions/sea-lion-nose-boop.webp +0 -0
- package/avatars/free/seals-and-sea-lions/sea-lion-on-a-rock-animated.webp +0 -0
- package/avatars/free/seals-and-sea-lions/sea-lion-on-a-rock.webp +0 -0
- package/avatars/free/seals-and-sea-lions/sea-lion-raised-flipper-animated.webp +0 -0
- package/avatars/free/seals-and-sea-lions/sea-lion-raised-flipper.webp +0 -0
- package/avatars/free/seals-and-sea-lions/sea-lion-sitting-profile-animated.webp +0 -0
- package/avatars/free/seals-and-sea-lions/sea-lion-sitting-profile.webp +0 -0
- package/avatars/free/seals-and-sea-lions/seal-big-whiskers-animated.webp +0 -0
- package/avatars/free/seals-and-sea-lions/seal-big-whiskers.webp +0 -0
- package/avatars/free/seals-and-sea-lions/seal-blinking-pup-animated.webp +0 -0
- package/avatars/free/seals-and-sea-lions/seal-blinking-pup.webp +0 -0
- package/avatars/free/seals-and-sea-lions/seal-blue-flipper-animated.webp +0 -0
- package/avatars/free/seals-and-sea-lions/seal-blue-flipper.webp +0 -0
- package/avatars/free/seals-and-sea-lions/seal-bunny-ears-animated.webp +0 -0
- package/avatars/free/seals-and-sea-lions/seal-bunny-ears.webp +0 -0
- package/avatars/free/seals-and-sea-lions/seal-heart-sunglasses-animated.webp +0 -0
- package/avatars/free/seals-and-sea-lions/seal-heart-sunglasses.webp +0 -0
- package/avatars/free/seals-and-sea-lions/seal-looking-back-animated.webp +0 -0
- package/avatars/free/seals-and-sea-lions/seal-looking-back.webp +0 -0
- package/avatars/free/seals-and-sea-lions/seal-side-eye-animated.webp +0 -0
- package/avatars/free/seals-and-sea-lions/seal-side-eye.webp +0 -0
- package/avatars/free/seals-and-sea-lions/seal-smiling-pup-animated.webp +0 -0
- package/avatars/free/seals-and-sea-lions/seal-smiling-pup.webp +0 -0
- package/avatars/free/seals-and-sea-lions/seal-upside-down-animated.webp +0 -0
- package/avatars/free/seals-and-sea-lions/seal-upside-down.webp +0 -0
- package/avatars/free/veggie-doodles/veggie-bok-choy.webp +0 -0
- package/avatars/free/veggie-doodles/veggie-broccoli.webp +0 -0
- package/avatars/free/veggie-doodles/veggie-cabbage.webp +0 -0
- package/avatars/free/veggie-doodles/veggie-eggplant.webp +0 -0
- package/avatars/free/veggie-doodles/veggie-garlic.webp +0 -0
- package/avatars/free/veggie-doodles/veggie-ginger.webp +0 -0
- package/avatars/free/veggie-doodles/veggie-leek.webp +0 -0
- package/avatars/free/veggie-doodles/veggie-potato.webp +0 -0
- package/avatars/free/veggie-doodles/veggie-purple-tomato.webp +0 -0
- package/avatars/free/veggie-doodles/veggie-scallion.webp +0 -0
- package/avatars/free/veggie-doodles/veggie-squash.webp +0 -0
- package/avatars/free/veggie-doodles/veggie-tomato.webp +0 -0
- package/avatars/terminal.json +1 -0
- package/cli.js +529 -0
- package/hooks/claude.json +14 -0
- package/logo.png +0 -0
- package/logo.svg +8 -0
- package/overlay/agents/antigravity.svg +1 -0
- package/overlay/agents/claude.svg +1 -0
- package/overlay/agents/codex.svg +1 -0
- package/overlay/agents/copilot.svg +1 -0
- package/overlay/control.html +528 -0
- package/overlay/index.html +365 -0
- package/overlay/main.js +361 -0
- package/overlay/preload.js +21 -0
- package/package.json +50 -4
- package/skills/agent-presence/SKILL.md +33 -0
package/cli.js
ADDED
|
@@ -0,0 +1,529 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// agentpeeps: hook receiver + installer + terminal view.
|
|
3
|
+
// Hooks pipe their JSON into `agentpeeps emit <agent>`; we append one line to
|
|
4
|
+
// ~/.agent-presence/events.jsonl. The overlay (and `watch`) tail that file.
|
|
5
|
+
const fs = require('fs');
|
|
6
|
+
const path = require('path');
|
|
7
|
+
const os = require('os');
|
|
8
|
+
|
|
9
|
+
const HOME = process.env.AGENT_PRESENCE_HOME || path.join(os.homedir(), '.agent-presence');
|
|
10
|
+
const EVENTS = path.join(HOME, 'events.jsonl');
|
|
11
|
+
const CONFIG = path.join(HOME, 'config.json');
|
|
12
|
+
const CLI = __filename;
|
|
13
|
+
const MAX_LOG = 5 * 1024 * 1024;
|
|
14
|
+
|
|
15
|
+
const STATE_BY_TOOL = {
|
|
16
|
+
Edit: 'writing', Write: 'writing', MultiEdit: 'writing', NotebookEdit: 'writing', apply_patch: 'writing',
|
|
17
|
+
Read: 'reading', Grep: 'reading', Glob: 'reading', LS: 'reading',
|
|
18
|
+
Bash: 'running', PowerShell: 'running', exec_command: 'running', shell: 'running',
|
|
19
|
+
Agent: 'delegating', Task: 'delegating', spawn_agent: 'delegating',
|
|
20
|
+
WebFetch: 'browsing', WebSearch: 'browsing', TodoWrite: 'thinking',
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
// Copilot, Antigravity and future agents use other tool names (view_file, run_command, str_replace_editor...):
|
|
24
|
+
// guess from the name. ponytail: keyword heuristic, add exact names to STATE_BY_TOOL when one guesses wrong.
|
|
25
|
+
function toolState(tool) {
|
|
26
|
+
if (!tool) return 'working';
|
|
27
|
+
if (STATE_BY_TOOL[tool]) return STATE_BY_TOOL[tool];
|
|
28
|
+
if (tool.startsWith('mcp__')) return 'browsing';
|
|
29
|
+
const t = tool.toLowerCase();
|
|
30
|
+
if (/web|url|browser|fetch/.test(t)) return 'browsing';
|
|
31
|
+
if (/agent|task/.test(t)) return 'delegating';
|
|
32
|
+
if (/edit|write|create|replace|patch/.test(t)) return 'writing';
|
|
33
|
+
if (/terminal|bash|shell|command|powershell|run/.test(t)) return 'running';
|
|
34
|
+
if (/read|view|grep|search|find|glob|list/.test(t)) return 'reading';
|
|
35
|
+
return 'working';
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Codex apply_patch puts paths inside the patch text: "*** Update File: src/a.ts"
|
|
39
|
+
function patchFiles(text) {
|
|
40
|
+
return [...String(text).matchAll(/^\*\*\* (?:Add|Update|Delete) File: (.+)$/gm)].map(m => m[1].trim());
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const modelOf = m => (m && typeof m === 'object' ? m.id || m.display_name || m.name : m) || null;
|
|
44
|
+
const asObject = v => { if (typeof v !== 'string') return v; try { return JSON.parse(v); } catch { return null; } };
|
|
45
|
+
// Copilot's camelCase events; the rest map by capitalizing (preToolUse -> PreToolUse).
|
|
46
|
+
const EVENT_ALIAS = { userPromptSubmitted: 'UserPromptSubmit', agentStop: 'Stop' };
|
|
47
|
+
|
|
48
|
+
// Accepts Claude/Codex (snake_case), Copilot (camelCase, toolArgs as a JSON string) and Antigravity
|
|
49
|
+
// (conversationId, toolCall {name,args}) payloads. Copilot and Antigravity don't always say which event
|
|
50
|
+
// fired, so their hooks pass it as an argument.
|
|
51
|
+
function normalize(agent, h, argEvent) {
|
|
52
|
+
const raw = argEvent || h.hook_event_name || h.hookEventName;
|
|
53
|
+
if (!raw) return null;
|
|
54
|
+
const ev = EVENT_ALIAS[raw] || raw[0].toUpperCase() + raw.slice(1);
|
|
55
|
+
const call = h.toolCall || {};
|
|
56
|
+
const ti = asObject(h.tool_input) || asObject(h.toolArgs) || asObject(call.args) || {};
|
|
57
|
+
const tool = h.tool_name || h.toolName || call.name || null;
|
|
58
|
+
const ts = toolState(tool);
|
|
59
|
+
let file = ti.file_path || ti.notebook_path || ti.path || ti.filePath || ti.AbsolutePath || ti.TargetFile || null;
|
|
60
|
+
if (!file && /patch/i.test(tool || '')) file = patchFiles(ti.command || ti.patch || ti.input || '')[0] || null;
|
|
61
|
+
let detail = null;
|
|
62
|
+
if (ts === 'running') detail = [].concat(ti.command || ti.CommandLine || '').join(' ').slice(0, 80);
|
|
63
|
+
else if (ts === 'reading') detail = ti.pattern || ti.query || ti.Query || null;
|
|
64
|
+
else if (ts === 'browsing') detail = ti.url || ti.Url || ti.query || null;
|
|
65
|
+
else if (ts === 'delegating') detail = ti.description || ti.subagent_type || null;
|
|
66
|
+
|
|
67
|
+
let state;
|
|
68
|
+
switch (ev) {
|
|
69
|
+
case 'PreToolUse': case 'ToolUse': state = ts; break; // ToolUse: Antigravity's PostToolUse, its only tool event we hook
|
|
70
|
+
case 'PostToolUse': case 'PostToolUseFailure': case 'UserPromptSubmit': state = 'thinking'; break;
|
|
71
|
+
case 'SessionStart': state = 'idle'; break;
|
|
72
|
+
case 'Notification': state = 'waiting'; detail = h.message || 'needs you'; break;
|
|
73
|
+
case 'PermissionRequest': state = 'waiting'; detail = 'permission: ' + (tool || ''); break;
|
|
74
|
+
case 'SubagentStart': state = 'thinking'; break;
|
|
75
|
+
case 'SubagentStop': state = 'gone'; break;
|
|
76
|
+
case 'Stop': state = 'done'; break;
|
|
77
|
+
case 'SessionEnd': state = 'gone'; break;
|
|
78
|
+
default: return null;
|
|
79
|
+
}
|
|
80
|
+
return {
|
|
81
|
+
t: Date.now(),
|
|
82
|
+
agent,
|
|
83
|
+
session: h.session_id || h.sessionId || h.conversationId || 'unknown',
|
|
84
|
+
sub: h.agent_id || h.agentId || null,
|
|
85
|
+
subType: h.agent_type || h.agentType || h.agentName || null,
|
|
86
|
+
event: ev,
|
|
87
|
+
state,
|
|
88
|
+
tool,
|
|
89
|
+
file,
|
|
90
|
+
detail,
|
|
91
|
+
cwd: h.cwd || (h.workspacePaths || [])[0] || null,
|
|
92
|
+
// Claude Code sends the model on SessionStart, Antigravity sends modelName; the overlay remembers it per session.
|
|
93
|
+
model: modelOf(h.model || h.modelName || h.model_name),
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function readConfig() {
|
|
98
|
+
try { return JSON.parse(fs.readFileSync(CONFIG, 'utf8')); } catch { return {}; }
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function overlayRunning() {
|
|
102
|
+
try { process.kill(Number(fs.readFileSync(path.join(HOME, 'overlay.pid'), 'utf8')), 0); return true; } catch { return false; }
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// Don't require('electron'): newer versions download the binary on first require, which would stall a hook.
|
|
106
|
+
function electronBin() {
|
|
107
|
+
try {
|
|
108
|
+
const dir = path.dirname(require.resolve('electron/package.json'));
|
|
109
|
+
const bin = path.join(dir, 'dist', fs.readFileSync(path.join(dir, 'path.txt'), 'utf8').trim());
|
|
110
|
+
return fs.existsSync(bin) ? bin : null;
|
|
111
|
+
} catch { return null; }
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function startOverlay(...args) {
|
|
115
|
+
const bin = electronBin();
|
|
116
|
+
if (!bin) return false;
|
|
117
|
+
require('child_process').spawn(bin, [path.join(__dirname, 'overlay', 'main.js'), ...args], { detached: true, stdio: 'ignore', windowsHide: true }).unref();
|
|
118
|
+
return true;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Must never break or slow the agent: swallow everything, always exit 0.
|
|
122
|
+
function emit(agent, argEvent) {
|
|
123
|
+
let raw = '';
|
|
124
|
+
process.stdin.setEncoding('utf8');
|
|
125
|
+
process.stdin.on('data', c => (raw += c));
|
|
126
|
+
process.stdin.on('end', () => {
|
|
127
|
+
try {
|
|
128
|
+
const e = normalize(agent, JSON.parse(raw.replace(/^/, '') || '{}'), argEvent); // PowerShell pipes a BOM
|
|
129
|
+
if (e) {
|
|
130
|
+
fs.mkdirSync(HOME, { recursive: true });
|
|
131
|
+
try { if (fs.statSync(EVENTS).size > MAX_LOG) fs.renameSync(EVENTS, EVENTS + '.old'); } catch {}
|
|
132
|
+
fs.appendFileSync(EVENTS, JSON.stringify(e) + '\n');
|
|
133
|
+
if (e.event === 'SessionStart' && readConfig().autostart !== false && !overlayRunning()) startOverlay();
|
|
134
|
+
}
|
|
135
|
+
} catch (err) { if (process.env.AGENT_PRESENCE_DEBUG) console.error(err); }
|
|
136
|
+
// Copilot and Antigravity read stdout as a JSON decision; {} means "no opinion".
|
|
137
|
+
if (agent === 'copilot' || agent === 'antigravity') try { fs.writeSync(1, '{}\n'); } catch {}
|
|
138
|
+
process.exit(0);
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// ---- install / uninstall hooks ----
|
|
143
|
+
const CLAUDE_EVENTS = ['SessionStart', 'UserPromptSubmit', 'PreToolUse', 'PostToolUse', 'Notification', 'SubagentStart', 'SubagentStop', 'Stop', 'SessionEnd'];
|
|
144
|
+
const CODEX_EVENTS = ['SessionStart', 'UserPromptSubmit', 'PreToolUse', 'PostToolUse', 'PermissionRequest', 'SubagentStart', 'SubagentStop', 'Stop', 'SessionEnd'];
|
|
145
|
+
// Copilot and Antigravity run hooks synchronously and treat a failed pre-tool hook as "deny", so they only get
|
|
146
|
+
// events that can't block anything: tool calls are reported after they finish ("ToolUse"), not before.
|
|
147
|
+
const COPILOT_EVENTS = { sessionStart: 'sessionStart', userPromptSubmitted: 'userPromptSubmitted', postToolUse: 'ToolUse', notification: 'notification', subagentStart: 'subagentStart', subagentStop: 'subagentStop', agentStop: 'agentStop', sessionEnd: 'sessionEnd' };
|
|
148
|
+
const ANTIGRAVITY_EVENTS = { SessionStart: 'SessionStart', PostToolUse: 'ToolUse', Stop: 'Stop' };
|
|
149
|
+
const isOurs = h => /agent-presence|agentpeeps/.test(JSON.stringify(h)) && JSON.stringify(h).includes('emit');
|
|
150
|
+
|
|
151
|
+
function editHooksFile(file, events, makeHook, remove) {
|
|
152
|
+
let json = {};
|
|
153
|
+
if (fs.existsSync(file)) {
|
|
154
|
+
json = JSON.parse(fs.readFileSync(file, 'utf8')); // throw on bad JSON rather than clobber it
|
|
155
|
+
fs.copyFileSync(file, file + '.bak-agent-presence');
|
|
156
|
+
}
|
|
157
|
+
json.hooks = json.hooks || {};
|
|
158
|
+
for (const ev of events) {
|
|
159
|
+
const groups = (json.hooks[ev] || []).map(g => ({ ...g, hooks: (g.hooks || []).filter(h => !isOurs(h)) })).filter(g => g.hooks.length);
|
|
160
|
+
if (!remove) groups.push({ matcher: '*', hooks: [makeHook()] });
|
|
161
|
+
if (groups.length) json.hooks[ev] = groups; else delete json.hooks[ev];
|
|
162
|
+
}
|
|
163
|
+
fs.mkdirSync(path.dirname(file), { recursive: true });
|
|
164
|
+
fs.writeFileSync(file, JSON.stringify(json, null, 2) + '\n');
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// npx / pnpm dlx / bunx run us from a cache folder the package manager can delete at any time.
|
|
168
|
+
// Hooks written from there would silently break later, so init installs a permanent copy first.
|
|
169
|
+
const isEphemeral = dir => /[\\/](_npx|dlx[^\\/]*|bunx-[^\\/]*)[\\/]/i.test(dir);
|
|
170
|
+
const APP = path.join(HOME, 'app');
|
|
171
|
+
|
|
172
|
+
function permanentCli() {
|
|
173
|
+
if (!isEphemeral(__dirname)) return CLI;
|
|
174
|
+
const { execSync } = require('child_process');
|
|
175
|
+
const { version } = require('./package.json');
|
|
176
|
+
console.log(`Installing agentpeeps ${version} into ${APP} so the hooks keep working after npx clears its cache...`);
|
|
177
|
+
try {
|
|
178
|
+
fs.mkdirSync(APP, { recursive: true });
|
|
179
|
+
fs.writeFileSync(path.join(APP, 'package.json'), JSON.stringify({ private: true }) + '\n');
|
|
180
|
+
// Pack the copy that is running right now (same files, no registry lookup for it), then install that.
|
|
181
|
+
const tgz = execSync(`npm pack "${__dirname}" --pack-destination "${APP}" --silent`, { encoding: 'utf8' }).trim().split(/\r?\n/).pop();
|
|
182
|
+
execSync(`npm install "./${tgz}" --omit=dev --no-audit --no-fund --loglevel=error`, { cwd: APP, stdio: 'inherit' });
|
|
183
|
+
fs.rmSync(path.join(APP, tgz), { force: true });
|
|
184
|
+
} catch (err) {
|
|
185
|
+
console.error(`\nCould not install a permanent copy (${String(err.message).split('\n')[0]}).\nInstall it globally instead: npm i -g agentpeeps && agentpeeps init`);
|
|
186
|
+
process.exit(1);
|
|
187
|
+
}
|
|
188
|
+
return path.join(APP, 'node_modules', require('./package.json').name, 'cli.js');
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// Copilot (VS Code agent mode and Copilot CLI): we own the whole file ~/.copilot/hooks/agent-presence.json.
|
|
192
|
+
function copilotHooks(file, cli, remove) {
|
|
193
|
+
if (remove) return fs.rmSync(file, { force: true });
|
|
194
|
+
const hooks = {};
|
|
195
|
+
for (const [ev, arg] of Object.entries(COPILOT_EVENTS)) hooks[ev] = [{ type: 'command', command: `node "${cli}" emit copilot ${arg}`, timeoutSec: 5 }];
|
|
196
|
+
fs.mkdirSync(path.dirname(file), { recursive: true });
|
|
197
|
+
fs.writeFileSync(file, JSON.stringify({ version: 1, hooks }, null, 2) + '\n');
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// Antigravity: ~/.gemini/config/hooks.json holds named hook groups; ours is the "agent-presence" key.
|
|
201
|
+
function antigravityHooks(file, cli, remove) {
|
|
202
|
+
let json = {};
|
|
203
|
+
if (fs.existsSync(file)) {
|
|
204
|
+
json = JSON.parse(fs.readFileSync(file, 'utf8')); // throw on bad JSON rather than clobber it
|
|
205
|
+
fs.copyFileSync(file, file + '.bak-agent-presence');
|
|
206
|
+
}
|
|
207
|
+
delete json['agent-presence'];
|
|
208
|
+
if (!remove) {
|
|
209
|
+
const h = arg => ({ type: 'command', command: `node "${cli}" emit antigravity ${arg}`, timeout: 5 });
|
|
210
|
+
const group = {};
|
|
211
|
+
for (const [ev, arg] of Object.entries(ANTIGRAVITY_EVENTS)) group[ev] = ev.endsWith('ToolUse') ? [{ matcher: '*', hooks: [h(arg)] }] : [h(arg)];
|
|
212
|
+
json['agent-presence'] = group;
|
|
213
|
+
}
|
|
214
|
+
fs.mkdirSync(path.dirname(file), { recursive: true });
|
|
215
|
+
fs.writeFileSync(file, JSON.stringify(json, null, 2) + '\n');
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
function install(remove) {
|
|
219
|
+
const which = process.argv.slice(3).filter(a => !a.startsWith('-'));
|
|
220
|
+
const home = os.homedir();
|
|
221
|
+
const copilotHome = process.env.COPILOT_HOME || path.join(home, '.copilot');
|
|
222
|
+
// [name, folder that means "this agent is installed", label, (cli, remove) => edit its hooks]
|
|
223
|
+
const targets = [
|
|
224
|
+
['claude', path.join(home, '.claude'), 'Claude Code (~/.claude/settings.json)', (cli, rm) => editHooksFile(path.join(home, '.claude', 'settings.json'), CLAUDE_EVENTS,
|
|
225
|
+
// exec form: no shell quoting problems with spaces in paths
|
|
226
|
+
() => ({ type: 'command', command: 'node', args: [cli, 'emit', 'claude'], async: true }), rm)],
|
|
227
|
+
['codex', path.join(home, '.codex'), 'Codex (~/.codex/hooks.json)', (cli, rm) => editHooksFile(path.join(home, '.codex', 'hooks.json'), CODEX_EVENTS,
|
|
228
|
+
() => ({ type: 'command', command: `node "${cli}" emit codex`, async: true, timeout: 5 }), rm)],
|
|
229
|
+
['copilot', copilotHome, 'Copilot (~/.copilot/hooks/agent-presence.json)', (cli, rm) => copilotHooks(path.join(copilotHome, 'hooks', 'agent-presence.json'), cli, rm)],
|
|
230
|
+
['antigravity', path.join(home, '.gemini', 'antigravity'), 'Antigravity (~/.gemini/config/hooks.json)', (cli, rm) => antigravityHooks(path.join(home, '.gemini', 'config', 'hooks.json'), cli, rm)],
|
|
231
|
+
].filter(([name, dir]) => (which.length ? which.includes(name) : fs.existsSync(dir)));
|
|
232
|
+
if (!targets.length) return console.log('No supported agent found. Name one explicitly: agentpeeps init claude|codex|copilot|antigravity');
|
|
233
|
+
|
|
234
|
+
const cli = remove ? CLI : permanentCli();
|
|
235
|
+
for (const [, , , apply] of targets) apply(cli, remove);
|
|
236
|
+
const names = targets.map(t => t[2]);
|
|
237
|
+
console.log((remove ? 'Removed hooks from: ' : 'Installed hooks for: ') + names.join(', '));
|
|
238
|
+
if (remove) return;
|
|
239
|
+
if (names.some(d => d.startsWith('Codex'))) console.log('Codex: open /hooks in Codex once and trust the Agent Peeps hooks.');
|
|
240
|
+
if (names.some(d => /^(Copilot|Antigravity)/.test(d))) console.log('Copilot / Antigravity: stickers show each tool call as it finishes (their hooks can\'t run in the background). Restart them to load the hooks.');
|
|
241
|
+
const run = isEphemeral(__dirname) ? 'npx agentpeeps' : 'agentpeeps';
|
|
242
|
+
console.log(`The stickers appear on your next agent session. To start them now: ${run} overlay`);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
// ---- terminal stickers: a hand-picked set of clean stickers as small color pixel art, baked by
|
|
246
|
+
// scripts/terminal-stickers.py into avatars/terminal.json (20x20 RGBA pixels each, drawn two per character cell) ----
|
|
247
|
+
let ART;
|
|
248
|
+
const art = () => (ART ??= (() => { try { return JSON.parse(fs.readFileSync(path.join(__dirname, 'avatars', 'terminal.json'), 'utf8')); } catch { return { w: 20, h: 20, art: {} }; } })());
|
|
249
|
+
const artKey = file => path.relative(path.join(__dirname, 'avatars'), file).split(path.sep).join('/');
|
|
250
|
+
// Terminal art for an image file, or null when it isn't in the terminal set (your own images, busy stickers).
|
|
251
|
+
const termArt = file => { const a = art().art, k = artKey(file); return a[k] || a[k.replace(/-animated(\.\w+)$/, '$1')] || null; };
|
|
252
|
+
const logoArt = agent => art().art[`stickers/model-logos/${agent}-logo.webp`] || null;
|
|
253
|
+
// Same pick as the overlay: config sticker set (one per session, from its id), else the agent's logo.
|
|
254
|
+
const hash = s => [...String(s)].reduce((h, c) => (h * 31 + c.charCodeAt(0)) >>> 0, 7);
|
|
255
|
+
function stickerFor(e, cfg, all) {
|
|
256
|
+
const av = cfg.avatars || {}, m = String(e.model || '').toLowerCase();
|
|
257
|
+
const mk = m && Object.keys(av).filter(k => k.startsWith('model:') && m.includes(k.slice(6).toLowerCase())).sort((x, y) => y.length - x.length)[0];
|
|
258
|
+
const files = stickerFiles(e.sub ? av[e.subType] || av[e.agent + '-subagent'] || av.subagent : (mk && av[mk]) || av[e.agent], all);
|
|
259
|
+
const f = files.length ? files[hash(e.session + (e.sub || '')) % files.length] : null;
|
|
260
|
+
return (f && termArt(f)) || logoArt(e.agent);
|
|
261
|
+
}
|
|
262
|
+
const HOP = [2, 1, 0, 1]; // pixels from the top: sits at 2, hops up while working
|
|
263
|
+
// One sticker at time t: h/2 + 1 lines, each w cells wide. Each cell is a half block: top pixel as the glyph color,
|
|
264
|
+
// bottom pixel as the background. Color codes are only written when they change, which keeps frames small.
|
|
265
|
+
// motion: 'still' (idle, done), 'move' (working), 'shake' (needs you)
|
|
266
|
+
function stickerLines(st, t, motion = 'move') {
|
|
267
|
+
const { w, h } = art(), rows = h / 2 + 1;
|
|
268
|
+
if (!st) return Array(rows).fill(' '.repeat(w));
|
|
269
|
+
st.px ??= st.f.map(b => Buffer.from(b, 'base64'));
|
|
270
|
+
const buf = st.px[motion === 'still' ? 0 : Math.floor(t / (st.ms || 150)) % st.px.length];
|
|
271
|
+
const oy = motion === 'move' && st.px.length === 1 ? HOP[Math.floor(t / 160) % 4] : 2;
|
|
272
|
+
const dx = motion === 'shake' ? [0, 1, 0, -1][Math.floor(t / 90) % 4] : 0;
|
|
273
|
+
const px = (x, y) => { y -= oy; x -= dx; if (x < 0 || x >= w || y < 0 || y >= h) return null; const i = (y * w + x) * 4; return buf[i + 3] ? `${buf[i]};${buf[i + 1]};${buf[i + 2]}` : null; };
|
|
274
|
+
return Array.from({ length: rows }, (_, r) => {
|
|
275
|
+
let line = '', prev = '';
|
|
276
|
+
for (let x = 0; x < w; x++) {
|
|
277
|
+
const tp = px(x, 2 * r), bt = px(x, 2 * r + 1), key = tp + '|' + bt;
|
|
278
|
+
if (key !== prev) line += !tp && !bt ? '\x1b[0m' : !tp ? `\x1b[0;38;2;${bt}m` : !bt ? `\x1b[0;38;2;${tp}m` : `\x1b[38;2;${tp};48;2;${bt}m`;
|
|
279
|
+
line += !tp && !bt ? ' ' : !tp ? '▄' : '▀';
|
|
280
|
+
prev = key;
|
|
281
|
+
}
|
|
282
|
+
return line + '\x1b[0m';
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
// Cards side by side, wrapped to the terminal width. card = { st, motion, caption: [lines] }
|
|
286
|
+
function cardRows(cards, t, cols) {
|
|
287
|
+
const cw = art().w + 4, per = Math.max(1, Math.floor((cols - 2) / cw)), out = [];
|
|
288
|
+
for (let i = 0; i < cards.length; i += per) {
|
|
289
|
+
const row = cards.slice(i, i + per).map(c => [...stickerLines(c.st, t, c.motion).map(l => ' ' + l + ' '), ...c.caption.map(s => (' ' + s).slice(0, cw - 1).padEnd(cw))]);
|
|
290
|
+
for (let y = 0; y < Math.max(...row.map(r => r.length)); y++) out.push(' ' + row.map(r => r[y] || ' '.repeat(cw)).join('').trimEnd());
|
|
291
|
+
out.push('');
|
|
292
|
+
}
|
|
293
|
+
return out;
|
|
294
|
+
}
|
|
295
|
+
// Cut a line to n visible characters, keeping its color codes whole.
|
|
296
|
+
const clip = (l, n) => { let v = 0, o = ''; for (const [s] of l.matchAll(/\x1b\[[0-9;]*m|[^\x1b]/gu)) { if (s[0] !== '\x1b' && ++v > n) break; o += s; } return o + '\x1b[0m'; };
|
|
297
|
+
// Redraws in place under the cursor instead of clearing the screen, so it only takes the lines it needs.
|
|
298
|
+
// frame(t, cols) -> lines.
|
|
299
|
+
function liveView(frame, ms = 80) {
|
|
300
|
+
const out = process.stdout;
|
|
301
|
+
if (!out.isTTY) return console.log(frame(0, out.columns || 100).join('\n'));
|
|
302
|
+
let drawn = 0, last = '', size = '';
|
|
303
|
+
const draw = () => {
|
|
304
|
+
// Ask for the size every time: on Windows the 'resize' event only fires while stdin is being read.
|
|
305
|
+
const [cols, rows] = out.getWindowSize ? out.getWindowSize() : [out.columns || 100, out.rows || 40];
|
|
306
|
+
// A resize rewraps what's on screen, so counting lines back up no longer lands on our first line: start clean.
|
|
307
|
+
if (size && size !== cols + 'x' + rows) { out.write('\x1b[2J\x1b[H'); drawn = 0; last = ''; }
|
|
308
|
+
size = cols + 'x' + rows;
|
|
309
|
+
const lines = frame(Date.now(), cols).slice(0, rows - 1).map(l => clip(l, cols - 1));
|
|
310
|
+
const s = lines.join('\n');
|
|
311
|
+
if (s === last) return; // nothing moved: don't repaint
|
|
312
|
+
out.write((drawn ? `\x1b[${drawn}F` : '') + '\x1b[0J' + s + '\n');
|
|
313
|
+
drawn = lines.length; last = s;
|
|
314
|
+
};
|
|
315
|
+
out.write('\x1b[?25l');
|
|
316
|
+
process.on('SIGINT', () => { out.write('\x1b[?25h'); process.exit(0); });
|
|
317
|
+
process.on('exit', () => out.write('\x1b[?25h'));
|
|
318
|
+
draw(); setInterval(draw, ms);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
// ---- terminal view: a sticker per agent and helper, then the files each one touched ----
|
|
322
|
+
const VERB = { idle: 'waiting for a prompt', thinking: 'thinking', reading: 'reading', writing: 'writing', running: 'running',
|
|
323
|
+
delegating: 'handing off', browsing: 'browsing', waiting: 'needs you', done: 'done', working: 'working' };
|
|
324
|
+
function watch() {
|
|
325
|
+
const agents = new Map(); // key -> last event + files: Map(path -> { t, state })
|
|
326
|
+
let offset = 0, cfg = readConfig(), all = packs();
|
|
327
|
+
setInterval(() => { cfg = readConfig(); all = packs(); }, 5000); // pick up `agentpeeps set` while running
|
|
328
|
+
const icon = { idle: '·', thinking: '…', reading: '»', writing: '✎', running: '▶', delegating: '⇢', browsing: '◎', waiting: '!', done: '✓', working: '*' };
|
|
329
|
+
const ago = t => { const s = Math.round((Date.now() - t) / 1000); return s < 60 ? s + 's' : Math.round(s / 60) + 'm'; };
|
|
330
|
+
const show = (a, f) => { const r = path.relative(a.cwd || '', f); return r && !r.startsWith('..') && !path.isAbsolute(r) ? r : f; };
|
|
331
|
+
const doing = a => (a.detail && ['running', 'browsing', 'delegating', 'waiting'].includes(a.state) ? a.detail : a.file ? show(a, a.file) : a.detail || '');
|
|
332
|
+
const row = (a, pad, out) => {
|
|
333
|
+
const who = a.sub ? `${pad}└ ${a.subType || 'subagent'}` : `${a.agent} ${a.session.slice(0, 6)}`;
|
|
334
|
+
out.push(` ${icon[a.state] || '?'} ${who.padEnd(24)} ${a.state.padEnd(10)} ${doing(a)} (${ago(a.t)})`);
|
|
335
|
+
for (const [f, x] of [...a.files].sort((p, q) => q[1].t - p[1].t).slice(0, 4))
|
|
336
|
+
out.push(` ${' '.repeat(pad.length + 6)}${(icon[x.state] || '·')} ${show(a, f)} ${ago(x.t)}`);
|
|
337
|
+
};
|
|
338
|
+
const frame = (t, cols = 100) => {
|
|
339
|
+
const out = ['Agent Peeps (Ctrl+C to exit)', ''];
|
|
340
|
+
const mains = [...agents.values()].filter(a => !a.sub).sort((p, q) => q.t - p.t);
|
|
341
|
+
if (!agents.size) return [...out, ' no agents active'];
|
|
342
|
+
const list = mains.flatMap(m => [m, ...[...agents.values()].filter(s => s.sub && s.main === m.key)]);
|
|
343
|
+
out.push(...cardRows(list.map(a => ({
|
|
344
|
+
st: stickerFor(a, cfg, all),
|
|
345
|
+
motion: a.state === 'waiting' ? 'shake' : a.state === 'idle' || a.state === 'done' ? 'still' : 'move',
|
|
346
|
+
caption: [a.sub ? `└ ${a.subType || 'helper'}` : `${a.agent}${a.cwd ? ' · ' + path.basename(a.cwd) : ''}`, `${icon[a.state] || '?'} ${VERB[a.state] || a.state} ${a.state === 'idle' || a.state === 'done' ? '' : doing(a) ? path.basename(doing(a)) : ''}`],
|
|
347
|
+
})), t, cols));
|
|
348
|
+
for (const m of mains) {
|
|
349
|
+
row(m, '', out);
|
|
350
|
+
for (const s of agents.values()) if (s.sub && s.main === m.key) row(s, ' ', out);
|
|
351
|
+
out.push('');
|
|
352
|
+
}
|
|
353
|
+
return out;
|
|
354
|
+
};
|
|
355
|
+
const pump = () => {
|
|
356
|
+
let size; try { size = fs.statSync(EVENTS).size; } catch { return; }
|
|
357
|
+
if (size < offset) offset = 0;
|
|
358
|
+
if (size > offset) {
|
|
359
|
+
const fd = fs.openSync(EVENTS, 'r'); const buf = Buffer.alloc(size - offset);
|
|
360
|
+
fs.readSync(fd, buf, 0, buf.length, offset); fs.closeSync(fd); offset = size;
|
|
361
|
+
for (const line of buf.toString('utf8').split('\n')) {
|
|
362
|
+
let e; try { e = JSON.parse(line); } catch { continue; }
|
|
363
|
+
const main = e.agent + ':' + e.session, key = main + (e.sub ? ':' + e.sub : '');
|
|
364
|
+
if (e.state === 'gone') { for (const k of agents.keys()) if (k === key || (!e.sub && k.startsWith(main + ':'))) agents.delete(k); continue; }
|
|
365
|
+
if (!agents.has(main)) agents.set(main, { ...e, sub: null, subType: null, key: main, files: new Map() }); // helper seen before its parent
|
|
366
|
+
const prev = agents.get(key) || { files: new Map() };
|
|
367
|
+
const a = { ...e, key, main, cwd: e.cwd || prev.cwd, model: e.model || prev.model, files: prev.files };
|
|
368
|
+
if (e.file) a.files.set(path.resolve(a.cwd || '', e.file), { t: e.t, state: e.state });
|
|
369
|
+
agents.set(key, a);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
for (const [k, a] of agents) if (Date.now() - a.t > 15 * 60e3) agents.delete(k);
|
|
373
|
+
};
|
|
374
|
+
try { offset = Math.max(0, fs.statSync(EVENTS).size - 64 * 1024); } catch {}
|
|
375
|
+
pump(); setInterval(pump, 500);
|
|
376
|
+
liveView(frame);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
// agentpeeps show [pack|sticker|agent|all...] [--once]: preview terminal stickers. No name: the model logos.
|
|
380
|
+
function showStickers(args) {
|
|
381
|
+
const a = art().art, name = k => path.basename(k).replace(/\.\w+$/, '');
|
|
382
|
+
const termPacks = new Map();
|
|
383
|
+
for (const k of Object.keys(a)) { const p = k.split('/').slice(-2)[0]; termPacks.set(p, [...(termPacks.get(p) || []), k]); }
|
|
384
|
+
const names = args.filter(x => !x.startsWith('-'));
|
|
385
|
+
const keys = (names.length ? names : ['model-logos']).flatMap(x => {
|
|
386
|
+
if (/^all$/i.test(x)) return Object.keys(a);
|
|
387
|
+
const p = findPack(termPacks, x);
|
|
388
|
+
if (p) return termPacks.get(p);
|
|
389
|
+
const k = Object.keys(a).find(k => name(k) === slug(x) || name(k) === slug(x) + '-logo');
|
|
390
|
+
return k ? [k] : [];
|
|
391
|
+
});
|
|
392
|
+
if (!keys.length) return console.log(`No terminal sticker called "${names.join(' ')}". Try: ${['all', ...termPacks.keys()].join(', ')}, or an agent (claude, codex...)`);
|
|
393
|
+
const cards = keys.map(k => ({ st: a[k], motion: 'move', caption: [name(k).replace(/-logo$/, '')] }));
|
|
394
|
+
const frame = (t, cols = process.stdout.columns || 100) => cardRows(cards, t, cols);
|
|
395
|
+
if (args.includes('--once')) return console.log(frame(0).join('\n'));
|
|
396
|
+
liveView(frame);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
function overlay() {
|
|
400
|
+
if (process.argv.includes('--quit')) {
|
|
401
|
+
try { process.kill(Number(fs.readFileSync(path.join(HOME, 'overlay.pid'), 'utf8'))); console.log('Overlay stopped.'); } catch { console.log('Overlay is not running.'); }
|
|
402
|
+
return;
|
|
403
|
+
}
|
|
404
|
+
if (overlayRunning()) return console.log('Overlay already running.');
|
|
405
|
+
if (!electronBin()) { console.log('First run: fetching Electron (one time)...'); try { require('electron'); } catch {} }
|
|
406
|
+
console.log(startOverlay() ? 'Overlay started. Stop it with: agentpeeps overlay --quit' : 'Electron not found. Install with: npm i -g agentpeeps');
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
// ---- sticker packs: any folder of images in ~/.agent-presence/stickers/ (or the bundled avatars/free/ and avatars/stickers/) ----
|
|
410
|
+
const IMG = /\.(png|gif|svg|webp|jpe?g)$/i;
|
|
411
|
+
const slug = s => String(s).toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-|-$/g, '');
|
|
412
|
+
const expandPath = s => path.resolve(String(s).replace(/^~(?=$|[\/])/, os.homedir()));
|
|
413
|
+
|
|
414
|
+
// slug -> { name, dir, files, mine }. A pack is named after its folder; the user's own folders win over bundled ones.
|
|
415
|
+
function packs() {
|
|
416
|
+
const out = new Map();
|
|
417
|
+
const walk = (dir, top, mine) => {
|
|
418
|
+
let entries; try { entries = fs.readdirSync(dir, { withFileTypes: true }); } catch { return; }
|
|
419
|
+
const files = entries.filter(d => d.isFile() && IMG.test(d.name)).map(d => path.join(dir, d.name));
|
|
420
|
+
if (files.length && !top && !out.has(slug(path.basename(dir)))) out.set(slug(path.basename(dir)), { name: path.basename(dir), dir, files, mine });
|
|
421
|
+
for (const d of entries) if (d.isDirectory()) walk(path.join(dir, d.name), false, mine);
|
|
422
|
+
};
|
|
423
|
+
walk(path.join(HOME, 'stickers'), true, true);
|
|
424
|
+
walk(path.join(__dirname, 'avatars', 'free'), true, false); // free packs shipped on npm
|
|
425
|
+
walk(path.join(__dirname, 'avatars', 'stickers'), true, false);
|
|
426
|
+
return out;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
// "dinosaur" finds the dinosaurs pack and the other way round
|
|
430
|
+
const findPack = (all, name) => { const s = slug(name); return [s, s + 's', s.replace(/s$/, '')].find(k => all.has(k)); };
|
|
431
|
+
|
|
432
|
+
// A config value ("pack:dinosaur", an image path, or a list of both) -> existing image files.
|
|
433
|
+
function stickerFiles(value, all = packs()) {
|
|
434
|
+
return [].concat(value || []).flatMap(v => {
|
|
435
|
+
const s = String(v);
|
|
436
|
+
if (s.startsWith('pack:')) { const p = all.get(findPack(all, s.slice(5))); return p ? p.files : []; }
|
|
437
|
+
const f = expandPath(s);
|
|
438
|
+
return fs.existsSync(f) ? [f] : [];
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
// What people type -> config key: claude, helpers -> subagent, claude-helpers -> claude-subagent, model:opus, or a helper type.
|
|
443
|
+
const AGENT_NAMES = ['claude', 'codex', 'copilot', 'antigravity'];
|
|
444
|
+
function targetKey(t) {
|
|
445
|
+
const s = String(t || '');
|
|
446
|
+
const low = s.toLowerCase();
|
|
447
|
+
if (AGENT_NAMES.includes(low)) return low;
|
|
448
|
+
if (low === 'helpers' || low === 'subagents' || low === 'subagent') return 'subagent';
|
|
449
|
+
const m = low.match(/^(\w+)-(helpers|subagents?)$/);
|
|
450
|
+
if (m && AGENT_NAMES.includes(m[1])) return m[1] + '-subagent';
|
|
451
|
+
if (low.startsWith('model:')) return 'model:' + s.slice(6).trim();
|
|
452
|
+
return s; // a helper type such as Explore
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
function listPacks() {
|
|
456
|
+
const all = [...packs().values()];
|
|
457
|
+
if (!all.length) return console.log(`No packs yet. A pack is a folder of images: put some in ${path.join(HOME, 'stickers', '<pack name>')}`);
|
|
458
|
+
console.log('Sticker packs (use one with: agentpeeps set <target> <pack>)\n');
|
|
459
|
+
for (const p of all.sort((a, b) => a.name.localeCompare(b.name))) console.log(` ${slug(p.name).padEnd(26)} ${String(p.files.length).padStart(3)} stickers${p.mine ? '' : ' (bundled)'}`);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
// agentpeeps set <target> <pack|image|default> [more packs or images...]
|
|
463
|
+
function setStickers(target, values) {
|
|
464
|
+
if (!target || !values.length) return console.log(SET_HELP);
|
|
465
|
+
const key = targetKey(target);
|
|
466
|
+
const cfg = readConfig();
|
|
467
|
+
const avatars = { ...(cfg.avatars || {}) };
|
|
468
|
+
const all = packs();
|
|
469
|
+
if (/^(default|none|reset)$/i.test(values[0])) delete avatars[key];
|
|
470
|
+
else {
|
|
471
|
+
const picked = [];
|
|
472
|
+
for (const v of values) {
|
|
473
|
+
if (findPack(all, v)) picked.push('pack:' + findPack(all, v));
|
|
474
|
+
else if (fs.existsSync(expandPath(v))) picked.push(expandPath(v));
|
|
475
|
+
else return console.log(`No pack or image called "${v}". See your packs with: agentpeeps packs`);
|
|
476
|
+
}
|
|
477
|
+
avatars[key] = picked.length === 1 ? picked[0] : picked;
|
|
478
|
+
}
|
|
479
|
+
fs.mkdirSync(HOME, { recursive: true });
|
|
480
|
+
fs.writeFileSync(CONFIG, JSON.stringify({ ...cfg, avatars }, null, 2) + '\n');
|
|
481
|
+
const n = stickerFiles(avatars[key], all).length;
|
|
482
|
+
console.log(avatars[key] ? `${key} -> ${[].concat(avatars[key]).map(v => String(v).replace(/^pack:/, '') + (String(v).startsWith('pack:') ? ' pack' : '')).join(', ')} (${n} sticker${n === 1 ? '' : 's'})` : `${key} -> default`);
|
|
483
|
+
if (n > 1) console.log('Each session gets its own sticker from the set. The overlay updates live.');
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
const SET_HELP = `agentpeeps set <target> <pack|image|default> [more...]
|
|
487
|
+
|
|
488
|
+
targets: claude codex copilot antigravity
|
|
489
|
+
helpers every subagent
|
|
490
|
+
claude-helpers one agent's subagents (codex-helpers, ...)
|
|
491
|
+
Explore one subagent type
|
|
492
|
+
model:opus sessions whose model contains "opus" (e.g. model:fable, model:opus-5-5)
|
|
493
|
+
|
|
494
|
+
examples: agentpeeps set claude dinosaur
|
|
495
|
+
agentpeeps set codex anime
|
|
496
|
+
agentpeeps set model:fable cats
|
|
497
|
+
agentpeeps set helpers robots
|
|
498
|
+
agentpeeps set Explore ~/stickers/detective.png
|
|
499
|
+
agentpeeps set claude default`;
|
|
500
|
+
|
|
501
|
+
const HELP = `Agent Peeps — stickers for your AI coding agents
|
|
502
|
+
|
|
503
|
+
agentpeeps init [agent...] install hooks (claude, codex, copilot, antigravity; default: every one found)
|
|
504
|
+
agentpeeps uninstall [agent...] remove hooks
|
|
505
|
+
agentpeeps overlay [--quit] start/stop the floating stickers
|
|
506
|
+
agentpeeps control [claude|...] open the control room (optionally on one agent's stickers)
|
|
507
|
+
agentpeeps packs list sticker packs
|
|
508
|
+
agentpeeps set <target> <pack> e.g. set claude dinosaur, set model:opus cats, set helpers robots
|
|
509
|
+
agentpeeps watch live view in the terminal, with a sticker per agent
|
|
510
|
+
agentpeeps show [pack|agent|all] preview terminal stickers (show, show claude, show pixel-food, show all)
|
|
511
|
+
agentpeeps emit <agent> [event] (used by hooks; reads hook JSON on stdin)
|
|
512
|
+
|
|
513
|
+
Packs are folders of images in ~/.agent-presence/stickers/<pack>. Settings live in ~/.agent-presence/config.json.`;
|
|
514
|
+
|
|
515
|
+
if (require.main === module) {
|
|
516
|
+
const cmd = process.argv[2];
|
|
517
|
+
if (cmd === 'emit') emit(process.argv[3] || 'agent', process.argv[4]);
|
|
518
|
+
else if (cmd === 'init') install(false);
|
|
519
|
+
else if (cmd === 'uninstall') install(true);
|
|
520
|
+
else if (cmd === 'watch') watch();
|
|
521
|
+
else if (cmd === 'overlay') overlay();
|
|
522
|
+
else if (cmd === 'packs') listPacks();
|
|
523
|
+
else if (cmd === 'show') showStickers(process.argv.slice(3));
|
|
524
|
+
else if (cmd === 'set') setStickers(process.argv[3], process.argv.slice(4));
|
|
525
|
+
else if (cmd === 'control' || cmd === 'stickers' || cmd === 'settings') console.log(startOverlay('--control' + (process.argv[3] ? '=' + targetKey(process.argv[3]) : '')) ? 'Opening the control room...' : 'Electron not found. Install with: npm i -g agentpeeps');
|
|
526
|
+
else console.log(HELP);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
module.exports = { normalize, patchFiles, termArt, stickerLines, stickerFor, editHooksFile, copilotHooks, antigravityHooks, isEphemeral, packs, stickerFiles, targetKey, slug, HOME, EVENTS, CONFIG };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Forward agent activity to the Agent Peeps overlay",
|
|
3
|
+
"hooks": {
|
|
4
|
+
"SessionStart": [{ "hooks": [{ "type": "command", "command": "node", "args": ["${CLAUDE_PLUGIN_ROOT}/cli.js", "emit", "claude"], "async": true }] }],
|
|
5
|
+
"UserPromptSubmit": [{ "hooks": [{ "type": "command", "command": "node", "args": ["${CLAUDE_PLUGIN_ROOT}/cli.js", "emit", "claude"], "async": true }] }],
|
|
6
|
+
"PreToolUse": [{ "matcher": "*", "hooks": [{ "type": "command", "command": "node", "args": ["${CLAUDE_PLUGIN_ROOT}/cli.js", "emit", "claude"], "async": true }] }],
|
|
7
|
+
"PostToolUse": [{ "matcher": "*", "hooks": [{ "type": "command", "command": "node", "args": ["${CLAUDE_PLUGIN_ROOT}/cli.js", "emit", "claude"], "async": true }] }],
|
|
8
|
+
"Notification": [{ "hooks": [{ "type": "command", "command": "node", "args": ["${CLAUDE_PLUGIN_ROOT}/cli.js", "emit", "claude"], "async": true }] }],
|
|
9
|
+
"SubagentStart": [{ "hooks": [{ "type": "command", "command": "node", "args": ["${CLAUDE_PLUGIN_ROOT}/cli.js", "emit", "claude"], "async": true }] }],
|
|
10
|
+
"SubagentStop": [{ "hooks": [{ "type": "command", "command": "node", "args": ["${CLAUDE_PLUGIN_ROOT}/cli.js", "emit", "claude"], "async": true }] }],
|
|
11
|
+
"Stop": [{ "hooks": [{ "type": "command", "command": "node", "args": ["${CLAUDE_PLUGIN_ROOT}/cli.js", "emit", "claude"], "async": true }] }],
|
|
12
|
+
"SessionEnd": [{ "hooks": [{ "type": "command", "command": "node", "args": ["${CLAUDE_PLUGIN_ROOT}/cli.js", "emit", "claude"], "async": true }] }]
|
|
13
|
+
}
|
|
14
|
+
}
|
package/logo.png
ADDED
|
Binary file
|
package/logo.svg
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
2
|
+
<!-- Agent Presence: one disc per agent, each in its color. -->
|
|
3
|
+
<g stroke="#fff" stroke-width="3.5">
|
|
4
|
+
<circle cx="22" cy="40" r="14" fill="#8fdcc6"/>
|
|
5
|
+
<circle cx="44" cy="42" r="12" fill="#8cc8f5"/>
|
|
6
|
+
<circle cx="32" cy="22" r="15" fill="#f6a983"/>
|
|
7
|
+
</g>
|
|
8
|
+
</svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Antigravity</title><mask height="23" id="lobe-icons-antigravity-0-_R_0_" maskUnits="userSpaceOnUse" width="24" x="0" y="1"><path d="M21.751 22.607c1.34 1.005 3.35.335 1.508-1.508C17.73 15.74 18.904 1 12.037 1 5.17 1 6.342 15.74.815 21.1c-2.01 2.009.167 2.511 1.507 1.506 5.192-3.517 4.857-9.714 9.715-9.714 4.857 0 4.522 6.197 9.714 9.715z" fill="#fff"></path></mask><g mask="url(#lobe-icons-antigravity-0-_R_0_)"><g filter="url(#lobe-icons-antigravity-1-_R_0_)"><path d="M-1.018-3.992c-.408 3.591 2.686 6.89 6.91 7.37 4.225.48 7.98-2.043 8.387-5.633.408-3.59-2.686-6.89-6.91-7.37-4.225-.479-7.98 2.043-8.387 5.633z" fill="#FFE432"></path></g><g filter="url(#lobe-icons-antigravity-2-_R_0_)"><path d="M15.269 7.747c1.058 4.557 5.691 7.374 10.348 6.293 4.657-1.082 7.575-5.653 6.516-10.21-1.058-4.556-5.691-7.374-10.348-6.292-4.657 1.082-7.575 5.653-6.516 10.21z" fill="#FC413D"></path></g><g filter="url(#lobe-icons-antigravity-3-_R_0_)"><path d="M-12.443 10.804c1.338 4.703 7.36 7.11 13.453 5.378 6.092-1.733 9.947-6.95 8.61-11.652C8.282-.173 2.26-2.58-3.833-.848-9.925.884-13.78 6.1-12.443 10.804z" fill="#00B95C"></path></g><g filter="url(#lobe-icons-antigravity-4-_R_0_)"><path d="M-12.443 10.804c1.338 4.703 7.36 7.11 13.453 5.378 6.092-1.733 9.947-6.95 8.61-11.652C8.282-.173 2.26-2.58-3.833-.848-9.925.884-13.78 6.1-12.443 10.804z" fill="#00B95C"></path></g><g filter="url(#lobe-icons-antigravity-5-_R_0_)"><path d="M-7.608 14.703c3.352 3.424 9.126 3.208 12.896-.483 3.77-3.69 4.108-9.459.756-12.883C2.69-2.087-3.083-1.871-6.853 1.82c-3.77 3.69-4.108 9.458-.755 12.883z" fill="#00B95C"></path></g><g filter="url(#lobe-icons-antigravity-6-_R_0_)"><path d="M9.932 27.617c1.04 4.482 5.384 7.303 9.7 6.3 4.316-1.002 6.971-5.448 5.93-9.93-1.04-4.483-5.384-7.304-9.7-6.301-4.316 1.002-6.971 5.448-5.93 9.93z" fill="#3186FF"></path></g><g filter="url(#lobe-icons-antigravity-7-_R_0_)"><path d="M2.572-8.185C.392-3.329 2.778 2.472 7.9 4.771c5.122 2.3 11.042.227 13.222-4.63 2.18-4.855-.205-10.656-5.327-12.955-5.122-2.3-11.042-.227-13.222 4.63z" fill="#FBBC04"></path></g><g filter="url(#lobe-icons-antigravity-8-_R_0_)"><path d="M-3.267 38.686c-5.277-2.072 3.742-19.117 5.984-24.83 2.243-5.712 8.34-8.664 13.616-6.592 5.278 2.071 11.533 13.482 9.29 19.195-2.242 5.713-23.613 14.298-28.89 12.227z" fill="#3186FF"></path></g><g filter="url(#lobe-icons-antigravity-9-_R_0_)"><path d="M28.71 17.471c-1.413 1.649-5.1.808-8.236-1.878-3.135-2.687-4.531-6.201-3.118-7.85 1.412-1.649 5.1-.808 8.235 1.878s4.532 6.2 3.119 7.85z" fill="#749BFF"></path></g><g filter="url(#lobe-icons-antigravity-10-_R_0_)"><path d="M18.163 9.077c5.81 3.93 12.502 4.19 14.946.577 2.443-3.612-.287-9.727-6.098-13.658-5.81-3.931-12.502-4.19-14.946-.577-2.443 3.612.287 9.727 6.098 13.658z" fill="#FC413D"></path></g><g filter="url(#lobe-icons-antigravity-11-_R_0_)"><path d="M-.915 2.684c-1.44 3.473-.97 6.967 1.05 7.804 2.02.837 4.824-1.3 6.264-4.772 1.44-3.473.97-6.967-1.05-7.804-2.02-.837-4.824 1.3-6.264 4.772z" fill="#FFEE48"></path></g></g><defs><filter color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse" height="17.587" id="lobe-icons-antigravity-1-_R_0_" width="19.838" x="-3.288" y="-11.917"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur result="effect1_foregroundBlur_977_115" stdDeviation="1.117"></feGaussianBlur></filter><filter color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse" height="38.565" id="lobe-icons-antigravity-2-_R_0_" width="38.9" x="4.251" y="-13.493"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur result="effect1_foregroundBlur_977_115" stdDeviation="5.4"></feGaussianBlur></filter><filter color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse" height="36.517" id="lobe-icons-antigravity-3-_R_0_" width="40.955" x="-21.889" y="-10.592"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur result="effect1_foregroundBlur_977_115" stdDeviation="4.591"></feGaussianBlur></filter><filter color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse" height="36.517" id="lobe-icons-antigravity-4-_R_0_" width="40.955" x="-21.889" y="-10.592"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur result="effect1_foregroundBlur_977_115" stdDeviation="4.591"></feGaussianBlur></filter><filter color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse" height="36.595" id="lobe-icons-antigravity-5-_R_0_" width="36.632" x="-19.099" y="-10.278"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur result="effect1_foregroundBlur_977_115" stdDeviation="4.591"></feGaussianBlur></filter><filter color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse" height="34.087" id="lobe-icons-antigravity-6-_R_0_" width="33.533" x=".981" y="8.758"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur result="effect1_foregroundBlur_977_115" stdDeviation="4.363"></feGaussianBlur></filter><filter color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse" height="35.276" id="lobe-icons-antigravity-7-_R_0_" width="35.978" x="-6.143" y="-21.659"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur result="effect1_foregroundBlur_977_115" stdDeviation="3.954"></feGaussianBlur></filter><filter color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse" height="46.523" id="lobe-icons-antigravity-8-_R_0_" width="45.114" x="-11.96" y="-.46"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur result="effect1_foregroundBlur_977_115" stdDeviation="3.531"></feGaussianBlur></filter><filter color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse" height="24.054" id="lobe-icons-antigravity-9-_R_0_" width="25.094" x="10.485" y=".58"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur result="effect1_foregroundBlur_977_115" stdDeviation="3.159"></feGaussianBlur></filter><filter color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse" height="30.007" id="lobe-icons-antigravity-10-_R_0_" width="33.508" x="5.833" y="-12.467"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur result="effect1_foregroundBlur_977_115" stdDeviation="2.669"></feGaussianBlur></filter><filter color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse" height="26.151" id="lobe-icons-antigravity-11-_R_0_" width="22.194" x="-8.355" y="-8.876"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur result="effect1_foregroundBlur_977_115" stdDeviation="3.303"></feGaussianBlur></filter></defs></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Claude</title><path d="M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z" fill="#D97757" fill-rule="nonzero"></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Codex</title><path d="M19.503 0H4.496A4.496 4.496 0 000 4.496v15.007A4.496 4.496 0 004.496 24h15.007A4.496 4.496 0 0024 19.503V4.496A4.496 4.496 0 0019.503 0z" fill="#fff"></path><path d="M9.064 3.344a4.578 4.578 0 012.285-.312c1 .115 1.891.54 2.673 1.275.01.01.024.017.037.021a.09.09 0 00.043 0 4.55 4.55 0 013.046.275l.047.022.116.057a4.581 4.581 0 012.188 2.399c.209.51.313 1.041.315 1.595a4.24 4.24 0 01-.134 1.223.123.123 0 00.03.115c.594.607.988 1.33 1.183 2.17.289 1.425-.007 2.71-.887 3.854l-.136.166a4.548 4.548 0 01-2.201 1.388.123.123 0 00-.081.076c-.191.551-.383 1.023-.74 1.494-.9 1.187-2.222 1.846-3.711 1.838-1.187-.006-2.239-.44-3.157-1.302a.107.107 0 00-.105-.024c-.388.125-.78.143-1.204.138a4.441 4.441 0 01-1.945-.466 4.544 4.544 0 01-1.61-1.335c-.152-.202-.303-.392-.414-.617a5.81 5.81 0 01-.37-.961 4.582 4.582 0 01-.014-2.298.124.124 0 00.006-.056.085.085 0 00-.027-.048 4.467 4.467 0 01-1.034-1.651 3.896 3.896 0 01-.251-1.192 5.189 5.189 0 01.141-1.6c.337-1.112.982-1.985 1.933-2.618.212-.141.413-.251.601-.33.215-.089.43-.164.646-.227a.098.098 0 00.065-.066 4.51 4.51 0 01.829-1.615 4.535 4.535 0 011.837-1.388zm3.482 10.565a.637.637 0 000 1.272h3.636a.637.637 0 100-1.272h-3.636zM8.462 9.23a.637.637 0 00-1.106.631l1.272 2.224-1.266 2.136a.636.636 0 101.095.649l1.454-2.455a.636.636 0 00.005-.64L8.462 9.23z" fill="url(#lobe-icons-codex-_R_0_)"></path><defs><linearGradient gradientUnits="userSpaceOnUse" id="lobe-icons-codex-_R_0_" x1="12" x2="12" y1="3" y2="21"><stop stop-color="#B1A7FF"></stop><stop offset=".5" stop-color="#7A9DFF"></stop><stop offset="1" stop-color="#3941FF"></stop></linearGradient></defs></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="#111" fill-rule="evenodd" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GithubCopilot</title><path d="M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z"></path></svg>
|