@yemi33/minions 0.1.2302 → 0.1.2303
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/engine.js +9 -0
- package/package.json +1 -1
- package/playbooks/shared-rules.md +2 -0
- package/prompts/cc-system.md +1 -1
package/engine.js
CHANGED
|
@@ -4168,6 +4168,12 @@ async function spawnAgent(dispatchItem, config) {
|
|
|
4168
4168
|
// re-attached on next start via PID file + live-output.log. We do NOT call
|
|
4169
4169
|
// proc.unref(): the engine still tracks exit while it's alive; detached
|
|
4170
4170
|
// only kicks in when the engine itself goes away.
|
|
4171
|
+
// Expose the engine-resolved working directory so playbooks (setup, qa-*,
|
|
4172
|
+
// shared-rules) can read $MINIONS_AGENT_CWD as the authoritative worktree /
|
|
4173
|
+
// live-checkout root instead of guessing from pwd. Mirrors the spawn `cwd`
|
|
4174
|
+
// exactly — the agent's process already starts here, but cd-ing around or
|
|
4175
|
+
// sub-shells can drift, so the env var is the stable anchor.
|
|
4176
|
+
childEnv.MINIONS_AGENT_CWD = cwd;
|
|
4171
4177
|
proc = runFile(process.execPath, spawnArgs, {
|
|
4172
4178
|
cwd,
|
|
4173
4179
|
stdio: ['pipe', 'pipe', 'pipe'],
|
|
@@ -4499,6 +4505,9 @@ async function spawnAgent(dispatchItem, config) {
|
|
|
4499
4505
|
|| dispatchItem.meta?.keep_processes_skip_workdir_check) {
|
|
4500
4506
|
childEnv.MINIONS_KEEP_PROCESSES_SKIP_WORKDIR_CHECK = '1';
|
|
4501
4507
|
}
|
|
4508
|
+
// Re-expose the engine-resolved cwd on steering resume (matches the
|
|
4509
|
+
// initial spawn path) so $MINIONS_AGENT_CWD stays valid across resumes.
|
|
4510
|
+
childEnv.MINIONS_AGENT_CWD = cwd;
|
|
4502
4511
|
let resumeProc;
|
|
4503
4512
|
try {
|
|
4504
4513
|
// detached so the resumed steering session also survives engine death (matches initial spawn)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yemi33/minions",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2303",
|
|
4
4
|
"description": "Multi-agent AI dev team that runs from ~/.minions/ — five autonomous agents share a single engine, dashboard, and knowledge base",
|
|
5
5
|
"bin": {
|
|
6
6
|
"minions": "bin/minions.js"
|
|
@@ -83,6 +83,8 @@ This task is part of a **shared-branch plan** — every plan item shares the bra
|
|
|
83
83
|
|
|
84
84
|
**Context compaction:** Your context window may be compacted mid-task by Claude's infrastructure. If you notice your earlier conversation history appears truncated or summarized, this is normal and expected. Do not interpret compaction as a signal to stop early or wrap up. Continue working toward your task objective — all relevant instructions and state remain available.
|
|
85
85
|
|
|
86
|
+
**Working directory (`$MINIONS_AGENT_CWD`).** The engine spawns you with your process working directory already set to the correct location for this task — the pre-created worktree for code-mutating work, or the project's live checkout for in-place/validation work. That same path is also exported as the `MINIONS_AGENT_CWD` environment variable, which is the **authoritative** anchor: prefer it over `pwd`/`Get-Location`, because sub-shells, `cd`, or tool calls can drift your shell elsewhere. If you ever need to be sure you're in the right tree (before `git add`/`commit`/`push`, builds, or path-sensitive commands), run `cd "$MINIONS_AGENT_CWD"` (PowerShell: `Set-Location $env:MINIONS_AGENT_CWD`) first. Do **not** `cd` into a sibling worktree, the operator's main checkout, or `MINIONS_DIR` to do task work.
|
|
87
|
+
|
|
86
88
|
- Do NOT write to `agents/*/status.json` — the engine manages your status automatically.
|
|
87
89
|
- Do NOT remove worktrees — the engine handles cleanup automatically.
|
|
88
90
|
- Do NOT checkout branches in the main working tree — use worktrees or `git diff`/`git show`.
|
package/prompts/cc-system.md
CHANGED
|
@@ -185,7 +185,7 @@ Link an external PR for tracking:
|
|
|
185
185
|
curl -s -X POST http://localhost:{{dashboard_port}}/api/pull-requests/link \
|
|
186
186
|
-H 'Content-Type: application/json' \
|
|
187
187
|
-H 'X-CC-Turn-Id: {{cc_turn_id}}' \
|
|
188
|
-
-d '{"url":"https://...","title":"...","
|
|
188
|
+
-d '{"url":"https://...","title":"...","contextOnly":true}'
|
|
189
189
|
```
|
|
190
190
|
|
|
191
191
|
Read-only inline answers (no header needed):
|