Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions e2e/testdata/shared_tasks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
version: "2"

agents:
root:
model: openai/gpt-5-mini
description: Coordinator that delegates to specialized agents
instruction: |
You coordinate work using a shared task list.
Use transfer_task to delegate work to sub-agents.
sub_agents:
- backend
- frontend
toolsets:
- type: tasks
shared: true
- type: transfer_task

backend:
model: openai/gpt-5-mini
description: Backend developer
instruction: |
You handle backend tasks.
You share a task list with other agents.
toolsets:
- type: tasks
shared: true

frontend:
model: openai/gpt-5-mini
description: Frontend developer
instruction: |
You handle frontend tasks.
You share a task list with other agents.
toolsets:
- type: tasks
shared: true
16 changes: 16 additions & 0 deletions e2e/testdata/tasks_dependencies.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: "2"

agents:
root:
model: openai/gpt-5-mini
description: Test agent for tasks with dependencies
instruction: |
You are a helpful assistant that uses tasks tools with dependencies.

When creating tasks:
- Use blocked_by to specify dependencies
- Use owner to assign tasks

Always use the tasks tools to track work.
toolsets:
- type: tasks
2 changes: 1 addition & 1 deletion golang_developer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ agents:
toolsets:
- type: filesystem
- type: shell
- type: todo
- type: tasks
- type: fetch
sub_agents:
- librarian
Expand Down
8 changes: 8 additions & 0 deletions pkg/teamloader/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ func NewDefaultToolsetRegistry() *ToolsetRegistry {
r := NewToolsetRegistry()
// Register all built-in toolset creators
r.Register("todo", createTodoTool)
r.Register("tasks", createTasksTool)
r.Register("memory", createMemoryTool)
r.Register("think", createThinkTool)
r.Register("shell", createShellTool)
Expand All @@ -80,6 +81,13 @@ func createTodoTool(_ context.Context, toolset latest.Toolset, _ string, _ *conf
return builtin.NewTodoTool(), nil
}

func createTasksTool(_ context.Context, toolset latest.Toolset, _ string, _ *config.RuntimeConfig) (tools.ToolSet, error) {
if toolset.Shared {
return builtin.NewSharedTasksTool(), nil
}
return builtin.NewTasksTool(), nil
}

func createMemoryTool(_ context.Context, toolset latest.Toolset, parentDir string, runConfig *config.RuntimeConfig) (tools.ToolSet, error) {
var memoryPath string
if filepath.IsAbs(toolset.Path) {
Expand Down
Loading
Loading