Skip to content

Agent

Tsumugi is an AI assistant integrated into the Boltbase Web UI for workflow management.

Accessing the Agent

Click the Agent button at the bottom-right corner of any page. The button shows a yellow pulsing indicator when Tsumugi is processing.

Enabling the Agent

Configuration Storage

Configuration is stored in {BOLTBASE_HOME}/data/agent/config.json:

json
{
  "enabled": true,
  "llm": {
    "provider": "anthropic",
    "model": "claude-sonnet-4-5",
    "apiKey": "sk-...",
    "baseUrl": ""
  }
}

Environment Variables

Environment variables override JSON configuration:

VariableTypeDescription
BOLTBASE_AGENT_ENABLEDbooleanEnable or disable the agent
BOLTBASE_AGENT_LLM_PROVIDERstringLLM provider name
BOLTBASE_AGENT_LLM_MODELstringModel identifier
BOLTBASE_AGENT_LLM_API_KEYstringAPI key
BOLTBASE_AGENT_LLM_BASE_URLstringCustom API endpoint

Web UI Configuration

Navigate to /settings/agent (requires admin role) to configure via the UI.

Supported Providers

Providerprovider valueNotes
AnthropicanthropicClaude models
OpenAIopenaiGPT models
GooglegeminiGemini models
OpenRouteropenrouterMultiple providers
LocallocalOllama, vLLM, LM Studio (OpenAI-compatible)

For local provider, set baseUrl to your local endpoint (e.g., http://localhost:11434/v1).

Chat Interface

Sessions

  • Each session is persisted per user
  • Select previous sessions from the dropdown in the header
  • Click + to start a new session

DAG Context

Provide DAG context to Tsumugi by:

  1. Automatic: When viewing a DAG or run page, that DAG is automatically included
  2. Manual: Click the paperclip icon to select additional DAGs

DAG context includes:

  • File path
  • DAG name
  • Run ID and status (when viewing a specific run)

Sending Messages

  • Type in the input area at the bottom
  • Press Enter to send (Shift+Enter for new line)
  • Click the send button (arrow icon)

Stopping

Click the Stop button (square icon) to cancel processing.

Command Approval

Commands matching these patterns require explicit approval before execution:

  • rm - File/directory removal
  • chmod - Permission changes
  • boltbase start - DAG execution

When approval is required:

  1. A prompt appears showing the command and working directory
  2. Click Approve to execute or Reject to cancel
  3. Approval times out after 5 minutes

Available Tools

ToolDescription
bashExecute shell commands
readRead file contents
patchCreate, edit, or delete files
thinkRecord reasoning
navigateOpen UI pages
ask_userInteractive prompts
read_schemaLook up DAG YAML schema
web_searchSearch the internet

See Tools Reference for parameters and examples.

See Also

Released under the MIT License.