AdvancedBackground Tasks

Background Tasks

Kyber handles long-running tasks without blocking the conversation. Every incoming message is processed concurrently — you can keep chatting while the bot works on something complex.

How it works

  • Each message runs in its own async task
  • If a task takes longer than 30 seconds, the bot sends an acknowledgment and keeps working in the background
  • You can ask for status updates at any time
  • Subagents can be spawned explicitly for tasks the agent wants to run in parallel

Status tracking

All long-running tasks are tracked with:

  • Current step and total steps
  • Elapsed time
  • What tool is currently running
  • Recent completed actions

Ask the bot “what’s the status?” or “how’s that task going?” and it checks the tracker and responds immediately — no waiting for the background task to finish.

Spawning subagents

The agent can spawn subagents for complex parallel work. For example, if you ask it to “research these 5 topics,” it might spawn a subagent for each one.

Subagents:

  • Run in their own async context
  • Have access to the same tools
  • Report progress back to the main agent
  • Don’t create recursive loops (there’s a depth limit)

Concurrent channels

Messages from different channels (Discord, Telegram, etc.) are fully independent. A long task triggered from Discord doesn’t block Telegram messages. Even within a single channel, multiple conversations can run simultaneously.