Bioflow AI

Built-in Coding Assistant

Write and refine reusable Bash, Python, and R CODE nodes with the system Coding model

Administrators can open the built-in coding assistant from the top-right chat button on any CODE node Create or Edit page. It automatically uses the model assigned to the Coding role under Settings → LLM Management → Role Assignment—no extra account or per-chat model picker is needed. Changes to the role assignment take effect on the next turn, and token usage is attributed to the configured model and current user.

Workflow

  1. Open CODE Nodes and create a Bash, Python, or R node, or open an existing one to edit.
  2. Open the coding assistant sidebar (drag its left border to resize).
  3. Describe the expected behavior, CLI arguments, inputs, and outputs. Every message automatically includes the current source code and dependency list in the editor, including both manual edits and previously accepted proposals.
  4. Follow the assistant's progress and expand tool entries to inspect commands and outputs. Reply inline if the assistant asks for clarification.
  5. When the assistant proposes edits, review the source and dependency diffs in the editor. Click Accept changes to apply them to the form, or Discard changes to keep the original content. The assistant sees your decision on the next turn.
  6. Click Save code and complete the catalog metadata to save the node.

Clicking Accept changes updates only the unsaved form. It does not write to the CODE catalog or alter workflows that already hold copies of the node.

While a turn is queued, running, or waiting for review, the editor's source, dependencies, and save button are temporarily locked to prevent conflicts. Questions that only need an explanation finish normally without generating a proposal.

Stop, close, and reconnect

  • Stop: Cancels a queued turn or asks a running task to stop. Cancellations, errors, and timeouts leave your editor content intact so you can immediately send another message.
  • Close sidebar / leave page: Ends the temporary conversation and cancels active work. Edits you already accepted remain in the form until you save or navigate away.
  • Auto-reconnect: Brief event-stream interruptions reconnect automatically and restore the active state and any pending proposal.

Runtime configuration

The coding assistant shares the agent task queue and API-cache Redis instance, and idle sessions do not occupy workers. You can tune its timeouts in config.toml:

[code_editing]
session_ttl_seconds = 1800
turn_timeout_seconds = 900
worker_stale_seconds = 60
KeyDefaultDescription
session_ttl_seconds1800 (30 min)Lifetime of a temporary session after the last action (heartbeats do not extend it)
turn_timeout_seconds900 (15 min)Maximum combined queue and execution time per turn
worker_stale_seconds60 (60 s)Time without a worker heartbeat before a turn is marked failed

Each turn builds a fresh isolated temporary workspace from the current editor state and removes it once finished. Directories left behind by disconnected workers are automatically reclaimed after their lease expires (30 minutes by default).

On this page