@technomoron/agent-run 0.99.3 → 0.99.4
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/CHANGES +12 -1
- package/README.md +69 -29
- package/dist/agent-run.js +1486 -378
- package/package.json +6 -1
package/CHANGES
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
CHANGES
|
|
2
2
|
=======
|
|
3
3
|
|
|
4
|
-
Unreleased (2026-04-
|
|
4
|
+
Unreleased (2026-04-24)
|
|
5
5
|
-----------------------
|
|
6
6
|
|
|
7
|
+
Version 0.99.4 (2026-04-24)
|
|
8
|
+
---------------------------
|
|
9
|
+
* Refactor profile generation around `agent-run.jsonc` manifests, Nunjucks templates, generated Codex and Claude homes, and private per-profile runtime output.
|
|
10
|
+
* Add generated native skill files, Codex `config.toml`, Claude `settings.json`, guard command shims, and a config-root `.gitignore` for generated outputs.
|
|
11
|
+
* Add Codex runtime modes with `--danger`, `--sandboxed`, and `--network`, defaulting to a private `CODEX_HOME` plus explicit `-C` project root handling.
|
|
12
|
+
* Change the default config root to `~/.agent-config`, add `AGENT_CONFIG_DIR`, and preserve existing config-root overrides.
|
|
13
|
+
* Add `agent-run migrate-config` for converting legacy `AGENTS-MODS.md` config trees into the new manifest/template layout.
|
|
14
|
+
* Add `jsonc-parser` and `nunjucks` runtime dependencies for JSONC manifests and template rendering.
|
|
15
|
+
* Add `-h` and `--help` output for `agent-run` and its built-in commands, while keeping `agent-run codex --help` and `agent-run claude --help` as passthrough to the underlying tools.
|
|
16
|
+
* Make `agent-run check` compare `AGENTS.md` against the same expanded template output that `agent-run update` writes, so placeholder-based profiles no longer fail as stale immediately after update.
|
|
17
|
+
|
|
7
18
|
Version 0.99.3 (2026-04-08)
|
|
8
19
|
---------------------------
|
|
9
20
|
* Replace the GitHub release action with `gh` so the workflow avoids the remaining Node 20 action warning.
|
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Small wrapper for AI coding CLIs like Codex and Claude.
|
|
4
4
|
|
|
5
5
|
It keeps agent files out of normal repos and stores them in a separate
|
|
6
|
-
|
|
6
|
+
agent config tree. That tree can live anywhere; it does not need to sit
|
|
7
7
|
inside the source tree.
|
|
8
8
|
|
|
9
9
|
## Model
|
|
@@ -11,7 +11,7 @@ inside the source tree.
|
|
|
11
11
|
There are three things:
|
|
12
12
|
|
|
13
13
|
- the source tree
|
|
14
|
-
- the
|
|
14
|
+
- the agent config tree
|
|
15
15
|
- this `agent-run` wrapper
|
|
16
16
|
|
|
17
17
|
Example:
|
|
@@ -21,30 +21,40 @@ Example:
|
|
|
21
21
|
org/
|
|
22
22
|
my-api/
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
~/.agent-config/
|
|
25
25
|
org/
|
|
26
26
|
my-api/
|
|
27
|
-
|
|
27
|
+
agent-run.jsonc
|
|
28
|
+
local.md.njk
|
|
29
|
+
overrides/
|
|
28
30
|
AGENTS.md
|
|
29
31
|
CLAUDE.md
|
|
32
|
+
config.toml
|
|
33
|
+
.agents/
|
|
34
|
+
.claude/
|
|
35
|
+
bin/
|
|
30
36
|
```
|
|
31
37
|
|
|
32
38
|
If your source repo is `~/source/org/my-api`, `agent-run` can map it to:
|
|
33
39
|
|
|
34
40
|
```text
|
|
35
|
-
|
|
41
|
+
~/.agent-config/org/my-api
|
|
36
42
|
```
|
|
37
43
|
|
|
38
44
|
The source repo stays clean. The agent files live in the matching path under
|
|
39
|
-
|
|
45
|
+
the agent config tree.
|
|
40
46
|
|
|
41
47
|
## File Roles
|
|
42
48
|
|
|
43
|
-
- `
|
|
44
|
-
- `
|
|
45
|
-
- `
|
|
49
|
+
- `agent-run.jsonc`: profile manifest
|
|
50
|
+
- `local.md.njk`: source file you edit for project-specific instructions
|
|
51
|
+
- `overrides/`: optional per-profile template overrides
|
|
52
|
+
- `AGENTS.md`: generated Codex instructions
|
|
53
|
+
- `CLAUDE.md`: generated Claude instructions
|
|
54
|
+
- `config.toml`: generated Codex config
|
|
55
|
+
- `.agents/` and `.claude/`: generated native skill/config homes
|
|
46
56
|
|
|
47
|
-
Edit `
|
|
57
|
+
Edit `local.md.njk` and `agent-run.jsonc`. `agent-run` keeps generated files in sync.
|
|
48
58
|
|
|
49
59
|
## Profile Resolution
|
|
50
60
|
|
|
@@ -57,7 +67,8 @@ The mapped path is:
|
|
|
57
67
|
`profile` is resolved in this order:
|
|
58
68
|
|
|
59
69
|
1. `AGENT_RUN_PROFILE` in `.agent-run.env`
|
|
60
|
-
2. `
|
|
70
|
+
2. GitHub `origin` remote
|
|
71
|
+
3. `package.json.name`
|
|
61
72
|
|
|
62
73
|
Examples:
|
|
63
74
|
|
|
@@ -82,31 +93,47 @@ AGENT_RUN_PROFILE=org/my-api
|
|
|
82
93
|
|
|
83
94
|
Config root:
|
|
84
95
|
|
|
85
|
-
- default:
|
|
86
|
-
- default: `~/Documents/source/agent-configs` on Windows
|
|
96
|
+
- default: `~/.agent-config`
|
|
87
97
|
- override with `--config-root /path/to/agent-configs`
|
|
98
|
+
- override with `AGENT_CONFIG_DIR=/path/to/agent-configs`
|
|
88
99
|
- override with `AGENT_CONFIG_ROOT=/path/to/agent-configs`
|
|
89
|
-
- or set `AGENT_CONFIG_ROOT=/path/to/agent-configs` in `.agent-run.env`
|
|
100
|
+
- or set `AGENT_CONFIG_DIR=/path/to/agent-configs` or `AGENT_CONFIG_ROOT=/path/to/agent-configs` in `.agent-run.env`
|
|
90
101
|
|
|
91
102
|
## Commands
|
|
92
103
|
|
|
93
104
|
Global flag:
|
|
94
105
|
|
|
106
|
+
- `-h`, `--help`: show wrapper help for `agent-run` and the built-in commands
|
|
95
107
|
- `-v`, `--verbose`: print path resolution, file creation, include expansion,
|
|
96
108
|
generated file writes, and spawned commands
|
|
97
109
|
|
|
110
|
+
`agent-run codex --help` and `agent-run claude --help` still pass `--help`
|
|
111
|
+
through to the underlying tool.
|
|
112
|
+
|
|
113
|
+
Codex defaults to `--danger`, which launches Codex with `-a never -s danger-full-access`,
|
|
114
|
+
sets `CODEX_HOME` under the private agent directory, starts the Codex process
|
|
115
|
+
from that private directory, passes the project root with `-C`, and keeps
|
|
116
|
+
generated guard shims on `PATH`. Use `--sandboxed` to request Codex
|
|
117
|
+
`workspace-write`; add `--network` with `--sandboxed` to set
|
|
118
|
+
`sandbox_workspace_write.network_access=true`.
|
|
119
|
+
|
|
120
|
+
Claude Code currently has no `--cd` equivalent. `agent-run` keeps Claude's
|
|
121
|
+
process cwd at the project root, passes the generated `.claude/settings.json`
|
|
122
|
+
with `--settings`, and allows both the project root and private agent directory
|
|
123
|
+
with `--add-dir`.
|
|
124
|
+
|
|
98
125
|
Initialize mapped files for the current repo:
|
|
99
126
|
|
|
100
127
|
```sh
|
|
101
128
|
agent-run init
|
|
102
129
|
```
|
|
103
130
|
|
|
104
|
-
This creates the mapped profile directory if needed and ensures these
|
|
105
|
-
exist:
|
|
131
|
+
This creates the mapped profile directory if needed and ensures these source
|
|
132
|
+
files/directories exist:
|
|
106
133
|
|
|
107
|
-
- `
|
|
108
|
-
- `
|
|
109
|
-
- `
|
|
134
|
+
- `agent-run.jsonc`
|
|
135
|
+
- `local.md.njk`
|
|
136
|
+
- `overrides/`
|
|
110
137
|
|
|
111
138
|
Edit the source file for the current repo:
|
|
112
139
|
|
|
@@ -114,8 +141,8 @@ Edit the source file for the current repo:
|
|
|
114
141
|
agent-run edit
|
|
115
142
|
```
|
|
116
143
|
|
|
117
|
-
This creates missing files, syncs generated files, then opens
|
|
118
|
-
|
|
144
|
+
This creates missing files, syncs generated files, then opens `local.md.njk`
|
|
145
|
+
in your editor.
|
|
119
146
|
|
|
120
147
|
Regenerate the generated files for the current repo:
|
|
121
148
|
|
|
@@ -123,19 +150,20 @@ Regenerate the generated files for the current repo:
|
|
|
123
150
|
agent-run update
|
|
124
151
|
```
|
|
125
152
|
|
|
126
|
-
This reads `
|
|
153
|
+
This reads `agent-run.jsonc` and Nunjucks templates from the mapped profile
|
|
154
|
+
directory and rewrites generated files:
|
|
127
155
|
|
|
128
156
|
- `AGENTS.md`
|
|
129
157
|
- `CLAUDE.md`
|
|
158
|
+
- `config.toml`
|
|
159
|
+
- `.agents/skills/**`
|
|
160
|
+
- `.claude/**`
|
|
161
|
+
- `bin/**`
|
|
130
162
|
|
|
131
|
-
|
|
163
|
+
Per-profile override templates can be placed in:
|
|
132
164
|
|
|
133
|
-
- `
|
|
134
|
-
- `
|
|
135
|
-
- `{{AGENTS_PATH}}`: generated `AGENTS.md` path
|
|
136
|
-
- `{{CLAUDE_PATH}}`: generated `CLAUDE.md` path
|
|
137
|
-
- `{{CONFIG_ROOT}}`: resolved config root
|
|
138
|
-
- `{{PROFILE}}`: mapped profile such as `technomoron/apicore`
|
|
165
|
+
- `overrides/codex-config.toml.njk`
|
|
166
|
+
- `overrides/claude-settings.json.njk`
|
|
139
167
|
|
|
140
168
|
Check the current repo:
|
|
141
169
|
|
|
@@ -157,6 +185,18 @@ Check every repo under a source tree:
|
|
|
157
185
|
agent-run check --all ~/source
|
|
158
186
|
```
|
|
159
187
|
|
|
188
|
+
Migrate an existing config tree to the manifest/template layout:
|
|
189
|
+
|
|
190
|
+
```sh
|
|
191
|
+
agent-run migrate-config ~/.agent-config
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
This preserves `AGENTS-MODS.md`, creates `local.md.njk`, `agent-run.jsonc`, and
|
|
195
|
+
`overrides/` for legacy profiles, creates the `global/` templates, moves loose
|
|
196
|
+
review files into `reviews/`, moves loose `memory*.md` files into `memories/`,
|
|
197
|
+
and moves old Codex runtime files into `memories/codex-home` when doing so does
|
|
198
|
+
not overwrite existing files.
|
|
199
|
+
|
|
160
200
|
## Install
|
|
161
201
|
|
|
162
202
|
```sh
|