CHouseUI
Using CHouse UIAI agents

AI feature catalog

Every AI feature with its permission, tool contexts, template variables and built-in agent — generated from the server.

Source
Generated from packages/server/src/services/ai (feature contracts and seeds), so it always matches the code.

Every AI feature in CHouse UI, where it appears, what it needs, the template variables it hands its agent, and the agent it runs on after a fresh install. Rebind a feature or edit its agent in Agents › Assistant — see AI agents.

Needs is the permission a user must hold to use the feature; the route checks it before any agent runs. Tools may use is the run context the feature gives its agent's tools — an agent bound to a feature can only use tools whose context the feature provides:

ContextWhat the tools can do
ClickHouse sessionRuns on the signed-in user's ClickHouse connection, with their data access rules.
Fleet nodesRead-only system.* queries on the nodes the feature resolved.
Your CHouse accessCalls CHouse's own API as the chatting user — they see only what their permissions allow.

Features marked Evidence only gather their evidence in code and hand it over as ctx.evidence; their agents work from that and call no tools.

All features

FeatureWhereNeedsTools may useBuilt-in agent
ChatChatai:chatClickHouse session, Your CHouse accessClickHouse Data
Optimize querySQL editorai:optimizeClickHouse sessionSQL Optimizer
Debug querySQL editorai:optimizeClickHouse sessionSQL Debugger
Optimization pre-screenSQL editorai:optimizeClickHouse sessionQuery Evaluator
Fleet Doctor scanDoctordoctor:runFleet nodesFleet Doctor
Optimize a heavy queryDiagnosticsai:optimizeFleet nodesHeavy Query Optimizer
Diagnose a server errorDiagnosticsai:optimizeFleet nodesError Diagnostician
Diagnose part healthDiagnosticsai:optimizeFleet nodesParts Diagnostician
Diagnose a schema findingDiagnosticsai:optimizeFleet nodesSchema Diagnostician
Draft a scheduled queryDataOpsai:optimizeClickHouse sessionScheduled Query Drafter
Scheduled query preflightDataOpsai:optimizeClickHouse sessionScheduled Query Reviewer
Scheduled query briefDataOpsai:optimizeEvidence onlyScheduled Query Briefer
Diagnose a scheduled runDataOpsai:optimizeEvidence onlyScheduled Run Investigator
Assess a recovery planDataOpsai:optimizeEvidence onlyRecovery Planner
Recommend health checksDataOpsai:optimizeClickHouse sessionHealth Promise Advisor
Data health briefDataOpsai:optimizeEvidence onlyData Health Briefer
Diagnose a data health incidentDataOpsai:optimizeEvidence onlyHealth Incident Investigator
Tune health checksDataOpsai:optimizeEvidence onlyHealth Promise Tuner
Correlate incidentsDataOpsai:optimizeEvidence onlyIncident Correlator
Explain an incidentObservabilityai:optimizeEvidence onlyIncident Explainer
Compile a watcherObservabilityai:optimizeEvidence onlyWatcher Compiler
Draft table contextObservabilityai:optimizeEvidence onlyTable Context Drafter

Chat features

Chat

ID chat · needs ai:chat · free-form chat answer

The chat bubble. The bound agent answers when a thread has no agent picked; users can pick any top-level chat agent they may use.

Tools may use: ClickHouse session, Your CHouse access. Built-in agent: ClickHouse Data.

No template variables — chat agents render without any.

SQL editor features

Optimize query

ID optimize-query · needs ai:optimize · structured answer (JSON contract)

SQL editor › Optimize: rewrites a SELECT for speed and memory, proven with a before→after EXPLAIN estimate.

Tools may use: ClickHouse session. Built-in agent: SQL Optimizer.

VariableTypeValue
ctx.querystringThe SELECT to optimize (trimmed).
ctx.additionalPromptstringExtra instructions from the user (trimmed; empty when none).

Debug query

ID debug-query · needs ai:optimize · structured answer (JSON contract)

SQL editor › Debug: explains why a query failed and returns a validated fix.

Tools may use: ClickHouse session. Built-in agent: SQL Debugger.

VariableTypeValue
ctx.querystringThe failed query (trimmed).
ctx.errorstringThe ClickHouse error message (trimmed).
ctx.additionalPromptstringExtra instructions from the user (trimmed; empty when none).

Optimization pre-screen

ID check-optimize · needs ai:optimize · structured answer (JSON contract)

SQL editor: silently decides whether a query is worth optimizing before offering Optimize.

Tools may use: ClickHouse session. Built-in agent: Query Evaluator.

VariableTypeValue
ctx.querystringThe query to evaluate (trimmed).

Doctor features

Fleet Doctor scan

ID fleet-scan · needs doctor:run · structured answer (JSON contract) · also runs in the background

Doctor › Scan (manual, scheduled or alert-triggered): reviews every node and deep-dives heavy queries into a health report.

Tools may use: Fleet nodes. Built-in agent: Fleet Doctor.

VariableTypeValue
ctx.hoursnumberInvestigation window in hours.
ctx.nodeCountnumberNumber of nodes scanned.
ctx.overviewjsonPer-node overview (pretty-printed JSON).
ctx.needsPlaybookbooleanTrue when the scan found a heavy or top-memory query worth optimizing.

Diagnostics features

Optimize a heavy query

ID optimize-log · needs ai:optimize · structured answer (JSON contract)

Query Logs › Optimize: rewrites one heavy query from the log, proven with a before→after EXPLAIN estimate.

Tools may use: Fleet nodes. Built-in agent: Heavy Query Optimizer.

VariableTypeValue
ctx.node.idstringConnection id of the node the query ran on.
ctx.node.namestringConnection name of that node.
ctx.peakMemorystringObserved peak memory, or "unknown".
ctx.querystringThe cleaned query text (first 8000 characters).

Diagnose a server error

ID diagnose-error · needs ai:optimize · structured answer (JSON contract)

Errors › Diagnose: explains one server error from system.errors and gives a concrete fix.

Tools may use: Fleet nodes. Built-in agent: Error Diagnostician.

VariableTypeValue
ctx.node.idstringConnection id of the node under investigation.
ctx.node.namestringConnection name of that node.
ctx.error.codestringError code, or "?".
ctx.error.namestringError name, e.g. TOO_MANY_PARTS.
ctx.error.messagestringLast error message, or "(none)".

Diagnose part health

ID diagnose-parts · needs ai:optimize · structured answer (JSON contract)

Parts › Diagnose: explains part and partition health of one MergeTree table.

Tools may use: Fleet nodes. Built-in agent: Parts Diagnostician.

VariableTypeValue
ctx.node.idstringConnection id of the node under investigation.
ctx.node.namestringConnection name of that node.
ctx.databasestringDatabase of the table.
ctx.tablestringTable name.

Diagnose a schema finding

ID diagnose-schema · needs ai:optimize · structured answer (JSON contract)

Schema Advisor › Diagnose: turns one column-level finding into a concrete ALTER TABLE fix.

Tools may use: Fleet nodes. Built-in agent: Schema Diagnostician.

VariableTypeValue
ctx.node.idstringConnection id of the node under investigation.
ctx.node.namestringConnection name of that node.
ctx.databasestringDatabase of the table.
ctx.tablestringTable name.
ctx.columnstringColumn name.
ctx.columnTypestringCurrent column type.
ctx.categorystringFinding category: nullable, oversized or compression.
ctx.sizeLinestringOne line with rows / on-disk / uncompressed bytes, or empty.

DataOps features

Draft a scheduled query

ID draft-scheduled-query · needs ai:optimize · structured answer (JSON contract)

Scheduled Queries › New with AI: turns intent into an editable draft.

Tools may use: ClickHouse session. Built-in agent: Scheduled Query Drafter.

VariableTypeValue
ctx.evidencejsonThe evidence object the feature assembled (JSON).

Scheduled query preflight

ID assess-scheduled-query · needs ai:optimize · structured answer (JSON contract)

Scheduled Queries › Editor › AI preflight: risks and improvements before saving.

Tools may use: ClickHouse session. Built-in agent: Scheduled Query Reviewer.

VariableTypeValue
ctx.evidencejsonThe evidence object the feature assembled (JSON).

Scheduled query brief

ID summarize-scheduled-query · needs ai:optimize · structured answer (JSON contract)

Scheduled Queries › AI brief: purpose, health, meaningful change and whether action is needed.

Tools may use: Evidence only. Built-in agent: Scheduled Query Briefer.

VariableTypeValue
ctx.evidencejsonThe evidence object the feature assembled (JSON).

Diagnose a scheduled run

ID diagnose-scheduled-run · needs ai:optimize · structured answer (JSON contract)

Scheduled Queries › Run › Diagnose: ranks causes of one failed or slow run.

Tools may use: Evidence only. Built-in agent: Scheduled Run Investigator.

VariableTypeValue
ctx.evidencejsonThe evidence object the feature assembled (JSON).

Assess a recovery plan

ID plan-scheduled-recovery · needs ai:optimize · structured answer (JSON contract)

Scheduled Queries › Recover: assesses a bounded backfill before it runs.

Tools may use: Evidence only. Built-in agent: Recovery Planner.

VariableTypeValue
ctx.evidencejsonThe evidence object the feature assembled (JSON).

Recommend health checks

ID recommend-health-promise · needs ai:optimize · structured answer (JSON contract)

Data Health › New with AI: recommends checks for one table from bounded aggregates.

Tools may use: ClickHouse session. Built-in agent: Health Promise Advisor.

VariableTypeValue
ctx.evidencejsonThe evidence object the feature assembled (JSON).

Data health brief

ID summarize-data-health · needs ai:optimize · structured answer (JSON contract)

Data Health › AI brief for one protected dataset.

Tools may use: Evidence only. Built-in agent: Data Health Briefer.

VariableTypeValue
ctx.evidencejsonThe evidence object the feature assembled (JSON).

Diagnose a data health incident

ID diagnose-health-incident · needs ai:optimize · structured answer (JSON contract)

Data Health › Incident › Diagnose: monitor failure or bad data, likely impact, safe next actions.

Tools may use: Evidence only. Built-in agent: Health Incident Investigator.

VariableTypeValue
ctx.evidencejsonThe evidence object the feature assembled (JSON).

Tune health checks

ID tune-health-promise · needs ai:optimize · structured answer (JSON contract)

Data Health › Tune: recommends threshold and cadence changes from history.

Tools may use: Evidence only. Built-in agent: Health Promise Tuner.

VariableTypeValue
ctx.evidencejsonThe evidence object the feature assembled (JSON).

Correlate incidents

ID correlate-health-incidents · needs ai:optimize · structured answer (JSON contract)

Data Health › Correlate: groups incidents that share a credible cause.

Tools may use: Evidence only. Built-in agent: Incident Correlator.

VariableTypeValue
ctx.evidencejsonThe evidence object the feature assembled (JSON).

Observability features

Explain an incident

ID explain-incident · needs ai:optimize · structured answer (JSON contract)

Observe › Incident › Explain: narrates the stored root-cause chain and drafts catalog fixes.

Tools may use: Evidence only. Built-in agent: Incident Explainer.

VariableTypeValue
ctx.evidencejsonThe evidence object the feature assembled (JSON).

Compile a watcher

ID compile-watcher · needs ai:optimize · structured answer (JSON contract)

Observe › Watch with AI: compiles a sentence into one Data Health check.

Tools may use: Evidence only. Built-in agent: Watcher Compiler.

VariableTypeValue
ctx.evidencejsonThe evidence object the feature assembled (JSON).

Draft table context

ID draft-table-context · needs ai:optimize · structured answer (JSON contract)

Context › Draft with AI: drafts a table's curated context from metadata and an aggregate-only profile.

Tools may use: Evidence only. Built-in agent: Table Context Drafter.

VariableTypeValue
ctx.evidencejsonThe evidence object the feature assembled (JSON).

Built-in agents

The 27 agents CHouse installs. Steps are the agent's step budget; its recursion limit defaults to four times that, and at least 24. Without a timeout of its own, a run stops after 4 minutes for a feature and 2 minutes in the chat. See Editing agents.

SQL Optimizer

Rewrites a SELECT for speed and memory from its DDL and EXPLAIN plan (SQL editor › Optimize).

SettingValue
Slugsql-optimizer
KindFeature agent
Used byOptimize query
HarnessFocused
Tuning10 steps
Toolslist_databases, list_tables, get_table_schema, get_table_ddl, get_table_size, get_table_sample, run_select_query, explain_query, get_database_info, get_running_queries, get_server_info, search_columns, analyze_query, validate_sql, export_query_result, get_slow_queries
Skillsall built-in skills on demand

SQL Debugger

Explains why a query failed and returns a validated fix (SQL editor › Debug).

SettingValue
Slugsql-debugger
KindFeature agent
Used byDebug query
HarnessFocused
Tuning10 steps
Toolslist_databases, list_tables, get_table_schema, get_table_ddl, get_table_size, get_table_sample, run_select_query, explain_query, get_database_info, get_running_queries, get_server_info, search_columns, analyze_query, validate_sql, export_query_result, get_slow_queries
Skillsall built-in skills on demand

Query Evaluator

Quick, silent pre-screen: is this query worth optimizing? (SQL editor).

SettingValue
Slugquery-evaluator
KindFeature agent
Used byOptimization pre-screen
HarnessFocused
Tuning4 steps
Toolsanalyze_query, get_table_ddl, get_table_schema
Skillsall built-in skills on demand

Heavy Query Optimizer

Optimizes one heavy query picked from the Query Logs, proven with a before→after EXPLAIN estimate.

SettingValue
Sluglog-query-optimizer
KindFeature agent
Used byOptimize a heavy query
HarnessFocused
Tuning8 steps · 16,000 output tokens
Toolsquery_node
Skillsall built-in skills on demand; pinned clickhouse-playbook (reference.md)

Error Diagnostician

Explains one server error from system.errors and gives a concrete fix.

SettingValue
Slugerror-diagnostician
KindFeature agent
Used byDiagnose a server error
HarnessFocused
Tuning8 steps · 8,000 output tokens
Toolsquery_node
Skillsall built-in skills on demand; pinned clickhouse-playbook (reference.md)

Parts Diagnostician

Diagnoses part and partition health of one MergeTree table.

SettingValue
Slugparts-diagnostician
KindFeature agent
Used byDiagnose part health
HarnessFocused
Tuning8 steps · 8,000 output tokens
Toolsquery_node
Skillsall built-in skills on demand; pinned clickhouse-playbook (reference.md)

Schema Diagnostician

Turns one Schema Advisor finding into a concrete ALTER TABLE fix.

SettingValue
Slugschema-diagnostician
KindFeature agent
Used byDiagnose a schema finding
HarnessFocused
Tuning8 steps · 8,000 output tokens
Toolsquery_node
Skillsall built-in skills on demand; pinned clickhouse-playbook (reference.md)

Fleet Doctor

Reviews every node's health, deep-dives heavy queries and writes the Doctor report.

SettingValue
Slugfleet-doctor
KindFeature agent
Used byFleet Doctor scan
HarnessFocused
Tuning12 steps · 16,000 output tokens
Toolsquery_node
Skillsall built-in skills on demand

Scheduled Query Drafter

Turns an operator's intent into an editable scheduled query draft.

SettingValue
Slugscheduled-query-drafter
KindFeature agent
Used byDraft a scheduled query
HarnessFocused
Tuning7 steps · 4,500 output tokens
Toolslist_databases, list_tables, get_table_schema, get_table_ddl, analyze_query
Skillsall built-in skills on demand

Scheduled Query Reviewer

Preflight risk review of a scheduled query before it is saved.

SettingValue
Slugscheduled-query-reviewer
KindFeature agent
Used byScheduled query preflight
HarnessFocused
Tuning6 steps · 3,000 output tokens
Toolsanalyze_query, validate_sql, get_table_schema, get_table_ddl, explain_query
Skillsall built-in skills on demand

Scheduled Query Briefer

Operational brief for one scheduled query.

SettingValue
Slugscheduled-query-briefer
KindFeature agent
Used byScheduled query brief
HarnessFocused
Tuning3 steps · 2,500 output tokens
Toolsnone
Skillsall built-in skills on demand

Scheduled Run Investigator

Ranks the likely causes of one failed or slow scheduled run.

SettingValue
Slugscheduled-run-investigator
KindFeature agent
Used byDiagnose a scheduled run
HarnessFocused
Tuning5 steps · 4,000 output tokens
Toolsnone
Skillsall built-in skills on demand

Recovery Planner

Assesses a bounded backfill / recovery plan before it runs.

SettingValue
Slugrecovery-planner
KindFeature agent
Used byAssess a recovery plan
HarnessFocused
Tuning3 steps · 2,500 output tokens
Toolsnone
Skillsall built-in skills on demand

Health Promise Advisor

Recommends Data Health checks for one table from bounded aggregates.

SettingValue
Slughealth-promise-advisor
KindFeature agent
Used byRecommend health checks
HarnessFocused
Tuning8 steps · 5,000 output tokens
Toolsget_table_schema, get_table_ddl, run_bounded_aggregate
Skillsall built-in skills on demand

Data Health Briefer

Operational brief for one protected dataset.

SettingValue
Slugdata-health-briefer
KindFeature agent
Used byData health brief
HarnessFocused
Tuning3 steps · 2,500 output tokens
Toolsnone
Skillsall built-in skills on demand

Health Incident Investigator

Diagnoses a Data Health incident: monitor failure or bad data.

SettingValue
Slughealth-incident-investigator
KindFeature agent
Used byDiagnose a data health incident
HarnessFocused
Tuning5 steps · 4,000 output tokens
Toolsnone
Skillsall built-in skills on demand

Health Promise Tuner

Tunes noisy or insensitive Data Health checks from their history.

SettingValue
Slughealth-promise-tuner
KindFeature agent
Used byTune health checks
HarnessFocused
Tuning4 steps · 3,500 output tokens
Toolsnone
Skillsall built-in skills on demand

Incident Correlator

Groups Data Health incidents that share a credible cause.

SettingValue
Slugincident-correlator
KindFeature agent
Used byCorrelate incidents
HarnessFocused
Tuning4 steps · 3,000 output tokens
Toolsnone
Skillsall built-in skills on demand

Incident Explainer

Narrates an incident's stored root-cause chain and drafts catalog fixes.

SettingValue
Slugincident-explainer
KindFeature agent
Used byExplain an incident
HarnessFocused
Tuning3 steps · 3,000 output tokens
Toolsnone
Skillsall built-in skills on demand

Watcher Compiler

Compiles a sentence into one Data Health check.

SettingValue
Slugwatcher-compiler
KindFeature agent
Used byCompile a watcher
HarnessFocused
Tuning3 steps · 2,500 output tokens
Toolsnone
Skillsall built-in skills on demand

Table Context Drafter

Drafts a table's curated context from metadata and an aggregate-only profile.

SettingValue
Slugtable-context-drafter
KindFeature agent
Used byDraft table context
HarnessFocused
Tuning3 steps · 2,500 output tokens
Toolsnone
Skillsall built-in skills on demand

ClickHouse Data

Answers questions about ClickHouse data: databases, tables, columns, SQL, query performance, server state and charts.

SettingValue
Slugclickhouse-data
KindChat agent
Used byChat, subagent of CHouse Assistant
HarnessFocused
Tuning12 steps
Toolslist_databases, list_tables, get_table_schema, get_table_ddl, get_table_size, get_table_sample, run_select_query, explain_query, get_database_info, get_running_queries, get_server_info, search_columns, analyze_query, validate_sql, export_query_result, get_slow_queries, render_chart, generate_query, optimize_query
Skillsall built-in skills on demand

CHouse Admin

Answers read-only questions about CHouse itself: users, roles, permissions, data access, connections, scheduled jobs, data health, alerts, incidents, Doctor reports, AI models, external agents and the audit log.

SettingValue
Slugchouse-admin
KindChat agent
Used bysubagent of CHouse Assistant
HarnessDelegating
Tuning10 steps
Toolswhoami
Skillsnone
SubagentsAccess Auditor, Operations Analyst, Platform Auditor

Access Auditor

Users, roles, permissions, data access policies, personal access tokens, SSO, and ClickHouse users and roles.

SettingValue
Slugaccess-auditor
KindChat agent
Used bysubagent of CHouse Admin
HarnessFocused
Tuning8 steps
Toolswhoami, list_users, get_user, list_roles, get_role, list_permissions, list_data_access_policies, list_my_access_tokens, list_clickhouse_users, list_clickhouse_roles, get_sso_settings
Skillsnone

Operations Analyst

Scheduled jobs and runs, Data Health promises and incidents, alerting, observability incidents, Doctor reports and fleet health.

SettingValue
Slugoperations-analyst
KindChat agent
Used bysubagent of CHouse Admin
HarnessFocused
Tuning8 steps
Toolslist_scheduled_jobs, get_scheduled_job, list_scheduled_runs, list_health_checks, get_health_check, list_health_incidents, list_alerting, list_observe_incidents, list_doctor_reports, fleet_snapshots
Skillsnone

Platform Auditor

Connections, AI models, external agents and MCP settings, and the audit log.

SettingValue
Slugplatform-auditor
KindChat agent
Used bysubagent of CHouse Admin
HarnessFocused
Tuning8 steps
Toolswhoami, list_connections, list_ai_models, list_agent_sessions, get_agent_governance, audit_log
Skillsnone

CHouse Assistant

Routes each chat request to ClickHouse Data or CHouse Admin, and combines their answers for questions that span both.

SettingValue
Slugchouse-assistant
KindRouter
Used by—
HarnessRouter
Tuning10 steps · 180 s timeout
Toolsnone
Skillsnone
SubagentsClickHouse Data, CHouse Admin