Skip to content

feat(j5): add attachment and worktree options to spawn_agent after upstream integration #133

Closed

Description

@Jacksondr5

spawn_agent is J5-owned. Useful capabilities from upstream t3_thread_launch should be evaluated and implemented separately from the current upstream merge so the merge stays focused on compatibility and preserving existing behavior.

Start with these enhancements:

  • Initial attachments in the spawn brief, using J5's attachment and delivery paths.
  • Workspace/worktree choices supported by upstream, where compatible with the selected Squadron's project and owning environment.

Inspect upstream preparation logic and reuse appropriate existing services instead of copying a parallel launch pipeline. Preserve durable participant registration, Squadron home, placement/provenance, retry identity, and the existing spawn-brief/reply contract. Cover observable launch outcomes and failure/retry behavior with focused tests, including environment ownership and attachment handling.

Deferred-start/no-initial-message agents and unrestricted cross-project launch are possible later work, not requirements for this issue. Add them only with a concrete use case and an explicit scope decision.

This issue is not a prerequisite for the upstream merge. During that merge, retain existing spawn_agent behavior with necessary compatibility adaptations; do not expose raw t3_thread_launch as a bypass around Squadron registration. Fork integration remains in the merge: adapt upstream t3_thread_fork with J5 registration and provenance, without adding a separate fork_agent tool.

Maintainer direction: defer these J5-owned enhancements to make the upstream merge smaller and likelier to succeed.

Activity

  1. Jacksondr5 commented on Oct 25, 2026

    @Jacksondr5
    OwnerAuthor

    Done in #557: j5_spawn_agent now takes attachments, another project or none, a permission choice capped at the caller's, and a project-root workspace, following the #519 decision record. The raw t3_thread_launch stays hidden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions