supervisor-api-background-mode

Manage long-running agent tasks with Supervisor API background mode.

6|10|Updated Mar 23, 2026
One-click install
npx skills add https://github.com/AnanyaDBJ/databricks-ai-workshops --skill supervisor-api-background-mode-ananyadbj
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supervisor-api-background-mode
Source: https://github.com/AnanyaDBJ/databricks-ai-workshops/tree/main/medium/.claude/skills/supervisor-api-background-mode
Command: npx skills add https://github.com/AnanyaDBJ/databricks-ai-workshops --skill supervisor-api-background-mode-ananyadbj

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires databricks.sdk, databricks_openai, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows agents to run tasks longer than HTTP timeout limits, providing resilience to connection drops during execution.

Core Features & Use Cases

  • Long-Running Tasks: Execute tasks that exceed HTTP timeout limits.
  • Background Mode: Asynchronously submit requests, poll for completion, and stream results back to the frontend.
  • Use Case: Ideal for complex multi-tool workflows, large data analysis, or tasks that require resilience to connection drops.

Quick Start

Set up the Supervisor API with background mode support by running uv run quickstart, setting up the Supervisor API with hosted tools and permissions, and configuring the poll interval in agent_server/utils.py.

Frequently Asked Questions about supervisor-api-background-mode

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run long-running agent tasks that exceed HTTP timeout limits?

To run long-running agent tasks that exceed HTTP timeout limits, use Supervisor API background mode to asynchronously submit requests, poll for completion, and stream results back to the frontend. This provides resilience against connection drops during execution.

How does background mode handle asynchronous requests and streaming results?

Background mode handles asynchronous requests by submitting them to the Supervisor API, polling for completion at configured intervals, and streaming results back to the frontend. This mechanism ensures complex multi-tool workflows complete successfully beyond HTTP timeout limits.

Do I need the AsyncDatabricksOpenAI client to use Supervisor API background mode?

Yes, you need the AsyncDatabricksOpenAI client to use Supervisor API background mode. It is required to manage asynchronous requests, handle multi-turn approval flow for MCP tools, and maintain resilience to connection drops during long-running agent tasks.

What is the best way to set up the Supervisor API with hosted tools and permissions?

The best way to set up the Supervisor API with hosted tools and permissions is by running `uv run quickstart`. You can then configure the poll interval in `agent_server/utils.py` to manage how frequently the system checks for task completion.

Why do my agent tasks fail during connection drops?

Agent tasks fail during connection drops because standard HTTP requests are limited by timeout constraints and cannot maintain state. Supervisor API background mode solves this by asynchronously submitting requests and polling for completion, ensuring resilience to connection drops.