valent-pipeline 0.2.7 → 0.2.8
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/package.json
CHANGED
package/pipeline/prompts/lead.md
CHANGED
|
@@ -389,9 +389,11 @@ From the manifest `reads_from` / `writes_to`, build the execution order for this
|
|
|
389
389
|
|
|
390
390
|
### Step 5: Spawn Teammates
|
|
391
391
|
|
|
392
|
-
|
|
392
|
+
**Do NOT read agent prompt files or step files yourself.** Use the spawn template — substitute variables and pass it to the Agent tool. Each teammate reads its own prompt and steps after spawning. This keeps your context lean.
|
|
393
|
+
|
|
394
|
+
For each agent in the roster, spawn a teammate with the filled spawn template containing:
|
|
393
395
|
- Role assignment from manifest
|
|
394
|
-
- Prompt
|
|
396
|
+
- Prompt path from manifest `prompt_template` (the teammate reads it, not you)
|
|
395
397
|
- Shared context references: story_id, story_output_dir, tech stack values, correction directives
|
|
396
398
|
- Task assignment with dependency information
|
|
397
399
|
|
|
@@ -75,7 +75,15 @@ This file is appended to incrementally during monitoring as agents complete phas
|
|
|
75
75
|
|
|
76
76
|
**IMPORTANT: Use the Agent tool to spawn teammates onto the team — NOT subagents.** Every pipeline agent must be a named teammate so it can send and receive inbox messages with other teammates. Use the `name` parameter on the Agent tool to set the teammate's addressable name (e.g., `name: "REQS"`).
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
**DO NOT read the agent's prompt files, step files, or templates yourself.** The spawn template tells the teammate to read its own prompt and steps. Your job is ONLY to:
|
|
79
|
+
1. Read the spawn template (a short 15-line template)
|
|
80
|
+
2. Substitute `{{variables}}` with resolved values from config and the task graph
|
|
81
|
+
3. Pass the filled template as the Agent tool's `prompt` parameter
|
|
82
|
+
4. The teammate reads its own prompt, step files, and inputs after it starts
|
|
83
|
+
|
|
84
|
+
This keeps the main thread lightweight. If you read every agent's prompt and steps before spawning, you waste context window on content that only the teammate needs.
|
|
85
|
+
|
|
86
|
+
Read the spawn templates (these are short variable templates, NOT the agent prompts):
|
|
79
87
|
- `.valent-pipeline/spawn-templates/knowledge-spawn.template.md` -- for the Knowledge Agent
|
|
80
88
|
- `.valent-pipeline/spawn-templates/agent-spawn.template.md` -- for all other agents
|
|
81
89
|
|