Skip to content

feat: add experimental background subagents#27084

Merged
nexxeln merged 7 commits into
devfrom
nxl/background-agents
May 14, 2026
Merged

feat: add experimental background subagents#27084
nexxeln merged 7 commits into
devfrom
nxl/background-agents

Conversation

@nexxeln
Copy link
Copy Markdown
Member

@nexxeln nexxeln commented May 12, 2026

summary

  • add task(background=true) and task_status behind OPENCODE_EXPERIMENTAL_BACKGROUND_AGENTS
  • run background subagents through the background job service with parent result injection
  • cancel background agents on parent/child session deletion and parent interruption
  • label background task cards in TUI/web UI

testing

  • bun typecheck from packages/opencode
  • bun test test/tool/task.test.ts test/tool/task_status.test.ts test/tool/registry.test.ts test/tool/parameters.test.ts from packages/opencode
  • pre-push bun turbo typecheck

@nexxeln nexxeln changed the title Add experimental background agents feat: add experimental background agents May 14, 2026
# Conflicts:
#	packages/core/src/flag/flag.ts
#	packages/opencode/src/session/prompt.ts
#	packages/opencode/src/session/session.ts
#	packages/opencode/src/tool/registry.ts
#	packages/opencode/test/tool/registry.test.ts
@nexxeln nexxeln changed the title feat: add experimental background agents feat: add experimental background subagents May 14, 2026
@nexxeln nexxeln merged commit 22de34c into dev May 14, 2026
11 checks passed
@nexxeln nexxeln deleted the nxl/background-agents branch May 14, 2026 16:40
sdeonvacation added a commit to sdeonvacation/opencode-x that referenced this pull request May 15, 2026
- Add BackgroundJob service (src/background/job.ts) for tracking async tasks
- Add task_status tool for polling background task state
- Add background param to task tool schema
- Add cancelBackgroundJobs to SessionRunState.cancel
- Add Flag.OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS
- Add experimentalBackgroundSubagents to RuntimeFlags
- Gate task_status tool on OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS flag
- Add TaskPromptOps interface export from task.ts
- Add BackgroundJob.defaultLayer to SessionRunState and ToolRegistry defaultLayers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant