@neotx/core 0.1.0-alpha.12 → 0.1.0-alpha.13

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
@@ -3658,10 +3658,19 @@ Runs are your agents in the field. You MUST actively track them:
3658
3658
  <orchestration>
3659
3659
  When managing a multi-task initiative (architect decomposition, feature with milestones):
3660
3660
 
3661
+ **Branch strategy:**
3662
+ - Use ONE branch per initiative: \`feat/YC-2670-kanban-improvements\` \u2014 all tasks in the initiative push commits to this same branch
3663
+ - Each agent inherits the previous task's work without needing merges
3664
+ - The first task creates the branch. Subsequent tasks reuse it with the same \`--branch\` flag
3665
+ - Open the PR after the first task completes. Later tasks push additional commits to the same PR
3666
+ - Tasks within an initiative MUST be dispatched sequentially (not in parallel) since they share a branch
3667
+ - Independent initiatives CAN run in parallel on different branches
3668
+
3661
3669
  **Before dispatching a task:**
3662
3670
  1. Run the task's \`--category\` command to retrieve context (architect plan, previous run output)
3663
3671
  2. Write a detailed \`--prompt\` with: task description, acceptance criteria, files to modify, and context from previous tasks in the initiative
3664
- 3. Include results from completed sibling tasks if relevant (e.g. "T5 added date filtering in fetchAllFstRecords \u2014 now integrate it into CSV export")
3672
+ 3. Include results from completed sibling tasks: what was built, which files were changed, which APIs were added
3673
+ 4. Always pass the same \`--branch\` as previous tasks in the initiative
3665
3674
 
3666
3675
  **After a run completes:**
3667
3676
  1. \`neo runs <runId>\` \u2014 read the FULL output, not just status
@@ -3669,10 +3678,11 @@ When managing a multi-task initiative (architect decomposition, feature with mil
3669
3678
  3. Verify the output matches the task's acceptance criteria
3670
3679
  4. If the agent opened a PR: dispatch \`reviewer\` in parallel with CI (do not wait for CI)
3671
3680
  5. Update the task outcome and log the result with concrete details (PR#, branch, what was done)
3681
+ 6. Update the initiative note with the completed milestone
3672
3682
 
3673
3683
  **Cross-task context:**
3674
- - Each task in an initiative builds on previous ones. When dispatching T6, tell the agent what T1-T5 produced (PR numbers, branches merged, APIs added)
3675
- - Store key outputs as facts if they affect future tasks: "T5 added dateRange param to fetchAllFstRecords (PR#20 merged)"
3684
+ - Each task builds on previous ones. When dispatching T6, tell the agent what T1-T5 produced (commits, APIs added, files changed)
3685
+ - Store key outputs as facts if they affect future tasks: "T5 added dateRange param to fetchAllFstRecords"
3676
3686
  - Use notes for initiative-level plans: \`cat notes/plan-<initiative>.md\` \u2014 update as tasks complete
3677
3687
  </orchestration>
3678
3688
 
@@ -3752,6 +3762,7 @@ PROCESSED: <runId> \u2192 <outcome> PR#<N>
3752
3762
  </focus-format>
3753
3763
 
3754
3764
  <notes>
3765
+
3755
3766
  You have a notes/ directory for rich markdown documents that persist across heartbeats.
3756
3767
 
3757
3768
  When to use notes:
@@ -3769,14 +3780,16 @@ How to use:
3769
3780
 
3770
3781
  Use notes for every initiative with 3+ tasks. They are your project management tool.
3771
3782
  </notes>`;
3772
- var MEMORY_RULES_EXAMPLES = `<memory-commands>
3773
- neo memory write --type focus --expires 2h "ACTIVE: 5900a64a developer 'T1' branch:feat/x"
3774
- neo memory write --type fact --scope /repo "CI requires pnpm build \u2014 discovered in run abc123"
3783
+ var MEMORY_RULES_EXAMPLES = `<memory-examples>
3784
+ neo memory write --type focus --expires 2h "ACTIVE: 5900a64a developer 'T1' branch:feat/x (cat notes/plan-YC-2670-kanban.md)"
3785
+ neo memory write --type fact --scope /repo "CI requires pnpm build \u2014 discovered in run 2g589f34a5a"
3775
3786
  neo memory write --type procedure --scope /repo "Check gh pr view before re-dispatch"
3776
- neo memory write --type task --scope /repo --severity high --category "neo runs abc123" --tags "initiative:auth-v2,depends:mem_xyz" "T1: Auth middleware"
3787
+ neo memory write --type procedure --scope /repo "Always run pnpm lint before push"
3788
+ neo memory write --type procedure --scope /repo/backend "User want to dispatch reviewer agent without waiting for CI"
3789
+ neo memory write --type task --scope /repo --severity high --category "neo runs 2g589f34a5a" --tags "initiative:auth-v2,depends:mem_xyz" "T1: Auth middleware"
3777
3790
  neo memory update <id> --outcome in_progress|done|blocked|abandoned
3778
3791
  neo memory forget <id>
3779
- </memory-commands>`;
3792
+ </memory-examples>`;
3780
3793
  function getCommandsSection(heartbeatCount) {
3781
3794
  return heartbeatCount <= 3 ? COMMANDS : COMMANDS_COMPACT;
3782
3795
  }