leos-agent 10.1.0 → 10.2.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/README.md +13 -13
- package/index.js +1 -1
- package/package.json +1 -1
- package/scripts/check.py +1 -1
- package/scripts/leo-install.py +1 -1
- package/commands/leo-doctor.md +0 -22
- package/commands/leo-install.md +0 -9
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# leos-agent
|
|
2
2
|
|
|
3
|
-
Leo's portable agent operating policy, version **10.
|
|
3
|
+
Leo's portable agent operating policy, version **10.2.0**, installable on Claude
|
|
4
4
|
Code, Codex, Cursor, Hermes, Pi, and OpenCode through each harness's own plugin
|
|
5
5
|
system.
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@ three GitHub skills. The GitHub ones need `gh`, authenticated.
|
|
|
22
22
|
|---|---|---|
|
|
23
23
|
| `review-pr` | Reviews a pull request and stages inline comments as a **pending** review — visible only to you until you submit or discard on GitHub. Never submits. Resolves the originating ticket (Linear, Jira, GitHub issue) from the PR's title, body, or branch when one is named, and adds a spec lens that checks the diff against it. | every skill-loading harness |
|
|
24
24
|
| `watch-review` | Arms a watcher that streams new direct review requests into the session, one notification per pull request, for `review-pr` to handle. Polling is a shell script (`scripts/watch_review.py`), not a model loop: an idle tick is one `gh` call and zero tokens. | **Claude Code only** — built on its Monitor tool |
|
|
25
|
-
| `doctor` | Diagnoses this harness's setup, read-only: whether the `<leos-agent>` block is injected and current, what else is loaded into every session (global instruction file, memories, settings, skills), and whether a local checkout passes `scripts/check.py`. Run it with `/
|
|
25
|
+
| `doctor` | Diagnoses this harness's setup, read-only: whether the `<leos-agent>` block is injected and current, what else is loaded into every session (global instruction file, memories, settings, skills), and whether a local checkout passes `scripts/check.py`. Run it with `/doctor`. | every skill-loading harness |
|
|
26
26
|
| `handoff` | Writes this session's context — goal, what landed, what is next, key files, decisions, gotchas — to a markdown document under `~/.leos-agent-local/handoffs/`, so a later session can pick the work up. Pointers, not contents: it names files rather than pasting them. Run it with `/handoff`. | every skill-loading harness |
|
|
27
27
|
| `handon` | Loads a handoff written earlier — in this harness or a different one — and resumes from it, reporting any drift first when the directory, branch, or HEAD has moved since. Loading never consumes a handoff. Run it with `/handon <name>`. | every skill-loading harness |
|
|
28
28
|
| `attach-pr` | Attaches the current desktop session to an existing pull request so the app shows its PR card. Creates nothing and pushes nothing. | **Claude Code only** — it drives that app's card |
|
|
@@ -49,7 +49,7 @@ gets it through its global instruction file, written by
|
|
|
49
49
|
[`scripts/leo-install.py`](scripts/leo-install.py) into a marker block:
|
|
50
50
|
|
|
51
51
|
```
|
|
52
|
-
<leos-agent version="10.
|
|
52
|
+
<leos-agent version="10.2.0">
|
|
53
53
|
...the payload...
|
|
54
54
|
</leos-agent>
|
|
55
55
|
```
|
|
@@ -96,7 +96,7 @@ claude plugin marketplace add foxhatleo/leos-agent
|
|
|
96
96
|
claude plugin install leos-agent@leos-agent --scope user
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
Then, in a Claude Code session, run `/
|
|
99
|
+
Then, in a Claude Code session, run `/install` (or ask it to use the `install`
|
|
100
100
|
skill). That writes the block into `~/.claude/CLAUDE.md`.
|
|
101
101
|
|
|
102
102
|
**Upgrade**
|
|
@@ -109,7 +109,7 @@ claude plugin marketplace update leos-agent
|
|
|
109
109
|
claude plugin install leos-agent@leos-agent --scope user
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
-
Re-run `/
|
|
112
|
+
Re-run `/install` afterwards to refresh the block, then start a new session.
|
|
113
113
|
Both commands are safe to repeat; installing an already-current version reports
|
|
114
114
|
that it is already installed and changes nothing.
|
|
115
115
|
|
|
@@ -118,7 +118,7 @@ that it is already installed and changes nothing.
|
|
|
118
118
|
Run the installer's uninstall first, while the script is still on disk:
|
|
119
119
|
|
|
120
120
|
```bash
|
|
121
|
-
python3 ~/.claude/plugins/cache/leos-agent/leos-agent/10.
|
|
121
|
+
python3 ~/.claude/plugins/cache/leos-agent/leos-agent/10.2.0/scripts/leo-install.py claude --uninstall
|
|
122
122
|
```
|
|
123
123
|
|
|
124
124
|
```bash
|
|
@@ -149,7 +149,7 @@ Then run the `install` skill in a Codex session (`$leos-agent`, then `install`),
|
|
|
149
149
|
run the script directly:
|
|
150
150
|
|
|
151
151
|
```bash
|
|
152
|
-
python3 ~/.codex/plugins/cache/leos-agent/leos-agent/10.
|
|
152
|
+
python3 ~/.codex/plugins/cache/leos-agent/leos-agent/10.2.0/scripts/leo-install.py codex
|
|
153
153
|
```
|
|
154
154
|
|
|
155
155
|
This writes `~/.codex/AGENTS.md` and installs two economical agents:
|
|
@@ -174,7 +174,7 @@ threads only. Re-adding an already-installed plugin is idempotent.
|
|
|
174
174
|
**Uninstall**
|
|
175
175
|
|
|
176
176
|
```bash
|
|
177
|
-
python3 ~/.codex/plugins/cache/leos-agent/leos-agent/10.
|
|
177
|
+
python3 ~/.codex/plugins/cache/leos-agent/leos-agent/10.2.0/scripts/leo-install.py codex --uninstall
|
|
178
178
|
```
|
|
179
179
|
|
|
180
180
|
```bash
|
|
@@ -322,7 +322,7 @@ Pinned refs are reconciled, never silently advanced — to move to a new tag,
|
|
|
322
322
|
install it explicitly:
|
|
323
323
|
|
|
324
324
|
```bash
|
|
325
|
-
pi install git:github.com/foxhatleo/leos-agent@v10.
|
|
325
|
+
pi install git:github.com/foxhatleo/leos-agent@v10.2.0
|
|
326
326
|
```
|
|
327
327
|
|
|
328
328
|
Re-run `/skill:install` afterwards.
|
|
@@ -359,9 +359,9 @@ first run has to come from the package itself:
|
|
|
359
359
|
python3 ~/.cache/opencode/packages/leos-agent@latest/node_modules/leos-agent/scripts/leo-install.py opencode
|
|
360
360
|
```
|
|
361
361
|
|
|
362
|
-
That writes `~/.config/opencode/AGENTS.md` and copies the
|
|
363
|
-
`~/.config/opencode/skills
|
|
364
|
-
|
|
362
|
+
That writes `~/.config/opencode/AGENTS.md` and copies the skills and commands into
|
|
363
|
+
`~/.config/opencode/skills/` and `~/.config/opencode/commands/`. From then on
|
|
364
|
+
`/leo-install` works inside OpenCode.
|
|
365
365
|
|
|
366
366
|
**Upgrade**
|
|
367
367
|
|
|
@@ -537,7 +537,7 @@ claude plugin uninstall leos-agent@leos-agent && claude plugin install leos-agen
|
|
|
537
537
|
```
|
|
538
538
|
|
|
539
539
|
or replace the cachebuster suffix in the Codex manifest with one in the form
|
|
540
|
-
`10.
|
|
540
|
+
`10.2.0+codex.local-YYYYMMDD-HHMMSS` and re-add. Either way, plugin changes only
|
|
541
541
|
reach a **new** session or thread.
|
|
542
542
|
|
|
543
543
|
`--check` exits non-zero when a file is out of date, and `--force` replaces a
|
package/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* and hooks, not skills or commands, and the payload is installed to disk on
|
|
6
6
|
* demand rather than written at session start. This export exists so that
|
|
7
7
|
* `opencode plugin leos-agent -g` resolves and loads cleanly; the real work
|
|
8
|
-
* happens in scripts/leo-install.py, which the installed
|
|
8
|
+
* happens in scripts/leo-install.py, which the installed `install` skill runs.
|
|
9
9
|
*/
|
|
10
10
|
export const LeosAgent = async () => ({});
|
|
11
11
|
|
package/package.json
CHANGED
package/scripts/check.py
CHANGED
|
@@ -149,7 +149,7 @@ def main():
|
|
|
149
149
|
# it will mistake its own installed copy for a stranger's file and refuse to
|
|
150
150
|
# upgrade or remove it. The list is derived from the installer's own copy sets,
|
|
151
151
|
# so a skill added there can never slip past this check.
|
|
152
|
-
copied = ["skills/install/SKILL.md"
|
|
152
|
+
copied = ["skills/install/SKILL.md"]
|
|
153
153
|
copied.extend(f"payload/codex-agents/{name}.toml" for name in installer.CODEX_AGENTS)
|
|
154
154
|
for name in installer.OPENCODE_SKILLS:
|
|
155
155
|
copied.append(f"skills/{name}/SKILL.md")
|
package/scripts/leo-install.py
CHANGED
|
@@ -40,7 +40,7 @@ PROVENANCE = "leos-agent"
|
|
|
40
40
|
# copied to disk instead. check.py asserts every file they name carries
|
|
41
41
|
# PROVENANCE, without which the installer would refuse to upgrade its own copy.
|
|
42
42
|
OPENCODE_SKILLS = ("doctor", "review-pr", "handoff", "handon")
|
|
43
|
-
OPENCODE_COMMANDS = ("
|
|
43
|
+
OPENCODE_COMMANDS = ("review-pr", "handoff", "handon")
|
|
44
44
|
|
|
45
45
|
# Codex plugins cannot package custom agent definitions directly, so these are
|
|
46
46
|
# copied into ~/.codex/agents. Keep this tuple authoritative: check.py and the
|
package/commands/leo-doctor.md
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Diagnose Leo's agent setup in this harness — injection, global context, and local checkout.
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Run the leos-agent diagnosis for **this harness only**. Read-only; change
|
|
6
|
-
nothing unless asked.
|
|
7
|
-
|
|
8
|
-
Determine which harness you are running in (`claude`, `codex`, `cursor`,
|
|
9
|
-
`hermes`, `pi`, or `opencode`), locate the plugin root — the directory
|
|
10
|
-
containing `rules/preferences.md`, available as `$LEOS_AGENT_ROOT`,
|
|
11
|
-
`$CLAUDE_PLUGIN_ROOT`, or `$PLUGIN_ROOT` on most harnesses — and follow the
|
|
12
|
-
`doctor` skill:
|
|
13
|
-
|
|
14
|
-
1. `python3 <plugin-root>/scripts/leo-install.py <harness> --check`, plus a read
|
|
15
|
-
of the harness's global file to confirm one current `<leos-agent>` block.
|
|
16
|
-
2. Audit the rest of this harness's always-loaded context: the global
|
|
17
|
-
instruction file outside the block, memory files and their index, global
|
|
18
|
-
settings, skills, commands, and plugins.
|
|
19
|
-
3. If the plugin root is a git checkout, `python3 <plugin-root>/scripts/check.py`.
|
|
20
|
-
|
|
21
|
-
Report findings grouped by section, worst first, one line each, then a one-line
|
|
22
|
-
verdict.
|
package/commands/leo-install.md
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Install or update Leo's global agent preferences in this harness's instruction file.
|
|
3
|
-
---
|
|
4
|
-
|
|
5
|
-
Use the leos-agent `install` skill.
|
|
6
|
-
|
|
7
|
-
Install **this harness only** — never the others. Pass `--dry-run` to preview the
|
|
8
|
-
change, or `--uninstall` to remove the block and any installed payload files.
|
|
9
|
-
Report the script's per-target status lines verbatim, including any warning.
|