@benzotti/jedi 0.1.42 → 0.1.43

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/dist/index.js CHANGED
@@ -12791,7 +12791,7 @@ var stateCommand = defineCommand({
12791
12791
  // package.json
12792
12792
  var package_default = {
12793
12793
  name: "@benzotti/jedi",
12794
- version: "0.1.42",
12794
+ version: "0.1.43",
12795
12795
  description: "JDI - Context-efficient AI development framework for Claude Code",
12796
12796
  type: "module",
12797
12797
  bin: {
@@ -24,6 +24,7 @@ Execute a PLAN.md with complexity-based routing.
24
24
  9. Execute:
25
25
  - **Single agent:** Spawn with `subagent_type: {plan.primary_agent}` (NOT `general-purpose`). Pass `PLAN: {index-path}`. For split plans, the agent reads task files one at a time via `file:` field in state.yaml.
26
26
  - **Agent Teams:** For split plans, spawn ONE Task tool call per task with `subagent_type: {task.agent}` (the pin from the task file frontmatter), passing `TASK_FILE: {task-file-path}` so it loads only its assigned task. For legacy plans, pass `PLAN: {plan-path}` and use `primary_agent`.
27
+ - **Prompt scoping** — one task = one spawn. Never bundle multiple tasks into one prompt. Give exact file paths, cap exploration ("read only your TASK_FILE + its named targets"), and request short reports (<400 words). Agents can be truncated mid-task; scoped prompts survive the budget ceiling.
27
28
  10. Collect and execute deferred ops (files, commits)
28
29
  11. Run verification (tests, lint, typecheck)
29
30
  12. **Update state via CLI** — do NOT manually edit state.yaml. Run `npx jdi state executing` before execution and `npx jdi state complete` after. Use `npx jdi state advance-task {task-id}` after each task completes.
@@ -11,6 +11,19 @@ Standards inherited by all JDI agents via `<JDI:AgentBase />`. Default loads Cor
11
11
  - Batch file reads: issue all Read calls in a single turn rather than sequentially.
12
12
  - Batch git operations: combine related commands into a single Bash call where possible.
13
13
 
14
+ ## Budget Discipline
15
+
16
+ You have a finite per-invocation budget (tokens, tool calls, wall time). Long runs can be terminated mid-task before you produce your final report. To survive:
17
+
18
+ 1. **Batch reads in parallel** — one turn with all Read calls, not sequential.
19
+ 2. **Cap exploration** — read only the files your spawn prompt names. If more are needed, report what you need and stop rather than wandering.
20
+ 3. **Write fixes before verifying** — Edit calls persist even if you are later truncated. Save the report for last.
21
+ 4. **Short reports (<400 words)** — terse file list + one sentence per change. Long formal reports are where truncation bites.
22
+ 5. **One concern per invocation** — address what was asked, do not expand scope.
23
+ 6. **Don't re-read files you just edited** — the harness tracks state.
24
+
25
+ If your work exceeds one invocation, complete what you can, return a progress report naming exactly what remains, and let the orchestrator re-spawn you.
26
+
14
27
  ## Component Resolution
15
28
 
16
29
  When a spec contains `<JDI:*>` tags:
@@ -11,7 +11,7 @@ description: Agent Teams orchestration quick-reference
11
11
  1. **Pre-flight** — Read command spec, `<JDI:CodebaseContext />`, read state.yaml, set status to "executing". Read each task file's `agent:` frontmatter field so you know which specialist to spawn per task (see `.jdi/framework/components/meta/AgentRouter.md`).
12
12
  2. **Create Team** — `TeamCreate(team_name: "{team-name}")`
13
13
  3. **Create Tasks** — TaskCreate per work unit, set `addBlockedBy` dependencies
14
- 4. **Spawn Teammates** — Task tool with `subagent_type: "{task.agent}"` (the pin from the task file frontmatter — e.g. `unity-ui-specialist`, `gameplay-programmer`). Never hardcode `general-purpose` when a pin exists. Verify the pinned agent is installed before spawning; if not, downgrade to `general-purpose` and record `agent_downgrade:` in the summary. Include in prompt: agent spec path, team context, task assignments.
14
+ 4. **Spawn Teammates** — Task tool with `subagent_type: "{task.agent}"` (the pin from the task file frontmatter — e.g. `unity-ui-specialist`, `gameplay-programmer`). Never hardcode `general-purpose` when a pin exists. Verify the pinned agent is installed before spawning; if not, downgrade to `general-purpose` and record `agent_downgrade:` in the summary. Include in prompt: agent spec path, team context, task assignments. **Scope tightly** — one task per spawn, exact file targets, capped exploration, short reports (<400 words). See `AgentBase.md` § Budget Discipline.
15
15
  5. **Coordinate** — Automatic message delivery for results, TaskList to monitor, SendMessage to guide/unblock
16
16
  6. **Cleanup** — shutdown_request to all → TeamDelete → set status "complete" → report (include which specialist ran which task and any downgrade events)
17
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@benzotti/jedi",
3
- "version": "0.1.42",
3
+ "version": "0.1.43",
4
4
  "description": "JDI - Context-efficient AI development framework for Claude Code",
5
5
  "type": "module",
6
6
  "bin": {