Skip to content

Let the agent spawn tasks from chat via TaskCreationSaga #2763

@charlesvien

Description

@charlesvien

Description

The agent should be able to spawn real tasks from a chat prompt. Example:

Spawn a task to do the charts work, the terraform work and the implementation using worktrees in the correct repos.

You would get real tasks in the sidebar that you can keep prompting, exactly as if you had made them yourself. The tasks must go through the existing TaskCreationSaga so they behave like normal tasks, not a side channel.

Raised by @haacked, who is happy to implement but wants to align on the approach first since it overlaps with work others are already circling.

Proposed solution

Give the agent a tool (e.g. spawn_tasks) that routes through TaskCreationSaga, so spawned tasks are indistinguishable from human-created ones.

Open questions

Related

  • Spawn task from PR #1633 (Spawn task from PR) is adjacent but different: a human-initiated spawn from a PR view, not an agent-initiated spawn from chat.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions