@xl0/pi-lovely-agents 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/CHANGELOG.md +17 -0
- package/LICENSE +21 -0
- package/README.md +184 -0
- package/extensions/lovely-agents/agent.ts +1374 -0
- package/extensions/lovely-agents/bash.ts +599 -0
- package/extensions/lovely-agents/child-session.ts +296 -0
- package/extensions/lovely-agents/config.ts +221 -0
- package/extensions/lovely-agents/coordinator.ts +506 -0
- package/extensions/lovely-agents/definitions.ts +380 -0
- package/extensions/lovely-agents/index.ts +400 -0
- package/extensions/lovely-agents/lifecycle.ts +251 -0
- package/extensions/lovely-agents/management.ts +638 -0
- package/extensions/lovely-agents/notifications.ts +220 -0
- package/extensions/lovely-agents/provider-limits.ts +13 -0
- package/extensions/lovely-agents/rendering.ts +90 -0
- package/extensions/lovely-agents/state.ts +1179 -0
- package/extensions/lovely-agents/task-panel.ts +192 -0
- package/extensions/lovely-agents/tools.ts +635 -0
- package/extensions/lovely-agents/updates.ts +45 -0
- package/node_modules/@xl0/pi-lovely-config/CHANGELOG.md +79 -0
- package/node_modules/@xl0/pi-lovely-config/LICENSE +21 -0
- package/node_modules/@xl0/pi-lovely-config/README.md +200 -0
- package/node_modules/@xl0/pi-lovely-config/package.json +59 -0
- package/node_modules/@xl0/pi-lovely-config/src/config.ts +399 -0
- package/node_modules/@xl0/pi-lovely-config/src/index.ts +3 -0
- package/node_modules/@xl0/pi-lovely-config/src/ui.ts +786 -0
- package/package.json +68 -0
- package/skills/agent/SKILL.md +21 -0
- package/skills/agent-creator/SKILL.md +35 -0
package/package.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@xl0/pi-lovely-agents",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Agent orchestration for Pi",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"pi-package",
|
|
7
|
+
"agents"
|
|
8
|
+
],
|
|
9
|
+
"type": "module",
|
|
10
|
+
"publisher": "xl0",
|
|
11
|
+
"author": {
|
|
12
|
+
"name": "xl0",
|
|
13
|
+
"url": "https://github.com/xl0"
|
|
14
|
+
},
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"homepage": "https://github.com/xl0/pi-lovely-agents#readme",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/xl0/pi-lovely-agents/issues"
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://github.com/xl0/pi-lovely-agents.git"
|
|
23
|
+
},
|
|
24
|
+
"packageManager": "bun@1.3.13",
|
|
25
|
+
"files": [
|
|
26
|
+
"extensions/",
|
|
27
|
+
"skills/",
|
|
28
|
+
"README.md",
|
|
29
|
+
"CHANGELOG.md",
|
|
30
|
+
"LICENSE"
|
|
31
|
+
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"test": "bun test",
|
|
34
|
+
"typecheck": "tsgo --noEmit",
|
|
35
|
+
"check": "bun run typecheck && bun run test && bun run biome:check",
|
|
36
|
+
"prepublishOnly": "bun run check",
|
|
37
|
+
"release": "bun run scripts/release.ts",
|
|
38
|
+
"lint": "biome lint .",
|
|
39
|
+
"format": "biome format --write .",
|
|
40
|
+
"format:check": "biome format .",
|
|
41
|
+
"biome:check": "biome check ."
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@biomejs/biome": "^2.4.14",
|
|
45
|
+
"@typescript/native-preview": "^7.0.0-dev.20260502.1",
|
|
46
|
+
"bun-types": "^1.3.13",
|
|
47
|
+
"typescript": "^6.0.3"
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"@earendil-works/pi-coding-agent": "*",
|
|
51
|
+
"@earendil-works/pi-tui": "*",
|
|
52
|
+
"typebox": "*"
|
|
53
|
+
},
|
|
54
|
+
"pi": {
|
|
55
|
+
"extensions": [
|
|
56
|
+
"./extensions"
|
|
57
|
+
],
|
|
58
|
+
"skills": [
|
|
59
|
+
"./skills"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"@xl0/pi-lovely-config": "^0.1.3"
|
|
64
|
+
},
|
|
65
|
+
"bundledDependencies": [
|
|
66
|
+
"@xl0/pi-lovely-config"
|
|
67
|
+
]
|
|
68
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agent
|
|
3
|
+
description: Use when deciding whether and how to delegate work to subagents.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Delegation
|
|
7
|
+
|
|
8
|
+
Delegate to reduce total work, not to maximize parallelism.
|
|
9
|
+
|
|
10
|
+
- Best fit: research, exploration, API/doc lookup, and independent review.
|
|
11
|
+
- Coding fits when isolated: bounded files, stable interfaces, independently
|
|
12
|
+
testable output. Unless it's a clear win, prefer to do the coding yourself.
|
|
13
|
+
- Keep architecture, shared types, and integration with the parent. Splitting
|
|
14
|
+
coupled code often costs more coordination and review than it saves.
|
|
15
|
+
- Give the goal, relevant context, constraints, ownership, and acceptance criteria.
|
|
16
|
+
Request findings with evidence or changes with test results—not transcripts.
|
|
17
|
+
- Parallelize independent questions or modules. Keep useful work for yourself;
|
|
18
|
+
don't duplicate the delegate's task.
|
|
19
|
+
- Verify findings and integrate changes. Delegation transfers work, not responsibility.
|
|
20
|
+
|
|
21
|
+
If briefing, waiting, and integration outweigh doing it yourself, don't delegate.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agent-creator
|
|
3
|
+
description: Create or edit Lovely Agents definitions when the user wants a reusable agent role.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Create an agent definition
|
|
7
|
+
|
|
8
|
+
- Call `agent_roster` first. Reuse or edit an existing role when it fits;
|
|
9
|
+
don't silently overwrite or shadow one.
|
|
10
|
+
- Default to the project's active `.pi/agents/` directory (nearest ancestor).
|
|
11
|
+
Create one if absent. Use `~/.pi/agent/agents/` for explicitly user-wide roles.
|
|
12
|
+
Save as `<name>.md`.
|
|
13
|
+
- Start with YAML between `---` lines. These are the only allowed fields:
|
|
14
|
+
- `name` (required): match `[a-z0-9][a-z0-9_-]{0,63}`; unique within its scope.
|
|
15
|
+
- `description` (required): nonblank, at most 500 UTF-8 bytes.
|
|
16
|
+
- `model`: `provider/model-id`, an unambiguous model ID, or a configured
|
|
17
|
+
`fast`/`smart`/`workhorse` alias. Omitted → starting session's model.
|
|
18
|
+
- `thinking`: `off`, `minimal`, `low`, `medium`, `high`, `xhigh`, or `max`.
|
|
19
|
+
Omitted → alias preset, otherwise starting session's level. Pi clamps
|
|
20
|
+
unsupported levels.
|
|
21
|
+
- `tools`: YAML list or comma-separated names, without duplicates. Omitted →
|
|
22
|
+
normal tools/extensions; `[]` → no tools.
|
|
23
|
+
- `exclude_agents_md`: boolean, default `false`. `true` omits discovered
|
|
24
|
+
`AGENTS.md`/`CLAUDE.md` instructions.
|
|
25
|
+
- Make the description explain when to choose this agent. A nonempty Markdown
|
|
26
|
+
body after the closing `---` is required. Keep it concise:
|
|
27
|
+
purpose, boundaries, what to inspect or change, and expected results.
|
|
28
|
+
Keep one-off assignments out of the reusable definition.
|
|
29
|
+
- Use known tool names and an explicit allowlist when restricting the role.
|
|
30
|
+
Bash access is not read-only. Keep AGENTS/CLAUDE instructions enabled unless
|
|
31
|
+
the user asks otherwise.
|
|
32
|
+
- Leave model/thinking inherited unless requested. If selecting them, verify
|
|
33
|
+
the model or enabled alias rather than inventing an ID.
|
|
34
|
+
- Call `agent_roster` again and fix diagnostics for the edited definition.
|
|
35
|
+
Report its path and role. Don't launch an agent merely to test the definition.
|