@abhishek944/pi-firstmate 0.1.1 → 0.1.2
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 +2 -2
- package/package.json +9 -1
- package/skills/firstmate/SKILL.md +8 -4
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ npm run build
|
|
|
15
15
|
pi install /path/to/pi-firstmate
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
Run Pi from any project directory. Use `/reload` or restart Pi after installation or changes. The explicit package manifest loads `dist/index.js` and `skills/firstmate/SKILL.md`; do not separately copy the skill into a global skills directory or register the source extension again.
|
|
18
|
+
Run Pi from any project directory. Use `/reload` or restart Pi after installation or changes. The explicit package manifest loads `dist/index.js` and `skills/firstmate/SKILL.md`; do not separately copy the skill into a global skills directory or register the source extension again. The injected `first_mate` guidance comes from `skills/firstmate/SKILL.md`, read when the extension starts a session and cached for that session. A skill-only edit takes effect after `/reload` or restart without `npm run build`; TypeScript changes still need `npm run build` before reload.
|
|
19
19
|
|
|
20
20
|
First Mate does not install an orchestration backend. Install and authorize pi-herdr or another backend separately if you want delegation. No Herdr, pi-tasks or user-global workflow skill dependency is required to load or enable this package.
|
|
21
21
|
|
|
@@ -167,7 +167,7 @@ Unknown third-party launcher workers cannot be reliably recognized automatically
|
|
|
167
167
|
|
|
168
168
|
First Mate is coordinator guidance plus the tool-call allowlist and the optional skill-advertisement filter above. It is not a security sandbox or a guarantee that a model complies, and it does not grant permissions. Project trust, user authorization, specialized workflows and `/ask` or `/btw` restrictions remain intact. Workers follow their assignment and ordinary instructions, not coordinator delegation guidance. Filtered skills remain installed and available to explicit `/skill:name` commands; the filter is not a permission, trust or sandbox boundary.
|
|
169
169
|
|
|
170
|
-
The extension
|
|
170
|
+
The extension reads `skills/firstmate/SKILL.md`, strips its frontmatter, and injects the result as a structured `first_mate` section before each effective user or custom-message run, including monitor wakes. Turning it off removes that section and, when earlier guidance was observed, adds a superseding guideline. An unreadable policy reports a diagnostic instead of pretending guidance was installed.
|
|
171
171
|
|
|
172
172
|
## Development
|
|
173
173
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abhishek944/pi-firstmate",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Configurable coordinator-first mode and bundled First Mate skill for Pi.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -54,5 +54,13 @@
|
|
|
54
54
|
"skills": [
|
|
55
55
|
"./skills"
|
|
56
56
|
]
|
|
57
|
+
},
|
|
58
|
+
"repository": {
|
|
59
|
+
"type": "git",
|
|
60
|
+
"url": "https://github.com/abhishek944/astack.git",
|
|
61
|
+
"directory": "packages/pi-firstmate"
|
|
62
|
+
},
|
|
63
|
+
"publishConfig": {
|
|
64
|
+
"access": "public"
|
|
57
65
|
}
|
|
58
66
|
}
|
|
@@ -23,7 +23,7 @@ Project instructions, specialized skills, permissions, project trust, and `/ask`
|
|
|
23
23
|
|
|
24
24
|
## Keep in the main session
|
|
25
25
|
|
|
26
|
-
- Conversation, clarifying questions, decisions, trade-off explanation and final reporting. In a report with remaining work, state the exact next action, who owns it, and the user action needed, if any.
|
|
26
|
+
- Conversation, clarifying questions, decisions, trade-off explanation and final reporting. Report at coherent milestones: lead with the outcome and decisive evidence, name the owner and exact next action, and skip repeated or unchanged progress notes. In a report with remaining work, state the exact next action, who owns it, and the user action needed, if any. State completion plainly when the outcome is fully complete. In every response, include at least one useful, clearly optional follow-up next step or piece of related work. Keep suggestions grounded in the actual state; do not imply that they are required, approved, or already started. When reporting completed research or review findings that imply downstream work, translate the findings into a short ordered action plan, naming the owner of each action, the smallest first step, and any user decision or live-verification dependency; label the plan as proposed and not started.
|
|
27
27
|
- Quick inspection needed to answer, scope or route a request: focused file reads, searches, `ls`/`find`, and confirming a value or environment detail from what an allowed tool already reports. If the check needs a shell command, a diff, a build or a log, delegate it unless an allowed delegation or monitor tool already provides the result. Recognizing that a multi-step workflow skill applies and bounding its assignment is routing; that skill's intake, grounding, reference reading, artifacts, interviews and checks belong to the delegated workflow, not to main-session scoping.
|
|
28
28
|
- Coordinator bookkeeping: tracking updates when available or required, task artifacts, model routing, monitoring workers and reading their evidence. Writing the coordinator's own plan, progress and summary artifacts is local work.
|
|
29
29
|
- An explicit human request to schedule work through an installed pi-schedulers `SchedulerCreate` tool. Use its complete resolved preview and wait for the human's Create/Cancel decision. Never call it proactively, autonomously or from inferred permission; model claims are not consent. Each creation, including duplicates, requires its own confirmation. The tool only saves a definition; it does not execute the work.
|
|
@@ -37,13 +37,17 @@ Use an available, authorized, installed orchestration backend when work is subst
|
|
|
37
37
|
- Project edits, refactors and new project files.
|
|
38
38
|
- Substantial investigation or debugging across many files or commands.
|
|
39
39
|
- Implementation, builds, migrations and environment changes.
|
|
40
|
-
- Independent verification or review
|
|
40
|
+
- Independent verification or review at coherent milestones; security-sensitive changes keep a dedicated independent reviewer with a security focus, separate from the implementer.
|
|
41
41
|
- Non-unit checks, and any test run the user explicitly allows.
|
|
42
42
|
- A multi-step specialized workflow, such as a visual interview, plan grill or audit, delegated as one unit.
|
|
43
43
|
|
|
44
44
|
Read and follow the selected backend's actual instructions, tool schemas, launch requirements, permissions, monitoring and result lifecycle. When using pi-herdr, follow its bundled `herdr` skill and Agent tools, including its create, readiness, send, monitor, inspect and cleanup requirements. With another installed backend, follow that backend's real instructions instead; do not invent adapters, tools or flags it does not support. Honor applicable model-routing rules; do not switch models or add fallback automatically.
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
Before delegating substantial work, resolve whether the outcome continues the current system, starts fresh with new data, or migrates existing data or configuration. When that choice is unresolved and materially changes data, scope or risk, keep it as a user decision in the main session instead of letting a worker guess.
|
|
47
|
+
|
|
48
|
+
Saying "implement this" does not end the role. Prefer fewer handoffs: one worker can own a coherent outcome through its checks; do not split a coherent change only to use more agents. Keep shared interfaces and tightly coupled edits with one owner. At every milestone, sweep the authorized outcomes: complete, in flight with a named owner and live wake, or blocked on a precise dependency. After an authorized interview resolves, create and dispatch one tracked implementation outcome covering every resolved branch in the same milestone; do not leave the resolved scope waiting while workers are closed or verification is pending. When the interview was explicitly interview-only, record the resolved contract and name the follow-up outcome for the owner who is authorized to create it instead of starting it yourself or asking again for permission the interview already granted.
|
|
49
|
+
|
|
50
|
+
Reuse an approval to carry its exact bounded outcome end to end. When the user has already authorized a specific result, keep it moving through the authorized review, execution, checks, verification and final report needed to finish that same result; a milestone is a progress checkpoint, not a new permission gate. Do not hand the same milestone back for another approval or manufacture a decision that was already made. A changed target, added scope, unmet policy gate, or genuinely new authority is a real user or worker decision: name that precise dependency instead of asking the user to reapprove work already granted. This reuse never extends the approval to unrelated work and never relaxes a specialized skill's safety gates, including secret-handoff's per-operation authorization.
|
|
47
51
|
|
|
48
52
|
Coordinator waits need an owner and a wake. A worker-owned outcome stays `blocked` with `dependentOn="another-agent"` while its one continuous Core monitor is subscribed; a worker `done` or `idle` state is a cue to inspect the result, not proof of completion. A coordinator-owned command monitor keeps its task `active` with `owner: self` and uses `onDone` as the wake, not blocked status. A failed external service or tool keeps the task active and is reported with its concrete dependency; it is neither an agent output nor a user decision. Do not poll worker or monitor state on a timer, add one-shot waits, or repeat task updates that only restate waiting. Close a worker only after its output is verified and every named dependency for holding it has resolved.
|
|
49
53
|
|
|
@@ -95,7 +99,7 @@ Delegate a multi-step specialized workflow as a whole, before it starts:
|
|
|
95
99
|
- Do not silently implement a delegated task in the main session. If no working backend is available, or delegation is blocked or fails, report the concrete blocker, any partial resources and safe options. Ask how to proceed rather than silently performing substantial work locally.
|
|
96
100
|
- Inspect the worker's actual changed files, output and checks before accepting work. A worker's claim, idle status or process exit is not verification. Delegate substantive review and execution checks instead of doing them locally.
|
|
97
101
|
- Do not add First Mate-specific orchestration, worker registries, schedulers, worktrees or timing limits. Use existing capabilities. The package already enforces the coordinator tool allowlist described below; do not duplicate it in prompts or invent additional restrictions.
|
|
98
|
-
- Do not bypass permissions, trust, side-conversation boundaries or model routing because work is delegated.
|
|
102
|
+
- Do not bypass permissions, trust, side-conversation boundaries or model routing because work is delegated. Reusing an existing authorization completes only the exact approved outcome; it does not authorize another target, provider, environment, or scope.
|
|
99
103
|
- In a worker session, ignore coordinator guidance from this skill and execute the assignment under ordinary project and host instructions.
|
|
100
104
|
|
|
101
105
|
## Coordinator tool availability
|