Skip to main content

Overview

Tool Name

Purpose

The system_manager_tools group centralizes platform administration plus prior-conversation search, thread file retrieval, thread export/import, agent and mission export/import workflows, thread cost analysis, and thread memory recovery. Generate chat titles automatically, search prior conversations, read thread history, fetch files produced in another thread, analyze cache-aware thread costs, export thread packages and reusable ZIP bundles, restore exported thread ZIPs, re-import agent and mission bundles when needed, compress long-running threads, recover compressed artifacts, check overall health, toggle maintenance mode, adjust configuration, perform safe cleanups, and restart components when required. Most administrative actions are routed through a single entrypoint for predictable governance.

Key Features & Functions

Auto-Title Conversations

Generate concise chat titles that reflect conversation context.

Search Prior Conversations

Search prior threads across one or more bots and read clean thread history by default, or include tool requests and outputs when execution details matter.

Import and Export Threads, Agents, and Missions

Save thread, agent, and mission packages into bot_git repos with download-ready links for handoff or backup, and restore exported thread, agent, and mission ZIP bundles later.

Thread Cost Analysis

Calculate cache-aware thread token and cost breakdowns, including optional child-thread rollups and pricing overrides.

Thread Compression & Recovery

Compress long-running threads and recover summarized tool results or logically hidden messages without rerunning prior tools.

Health & Status

Retrieve real-time system status with optional connectivity checks.

Maintenance Control

Enable or disable maintenance mode with messages and timing.

Configuration Management

Get, set, update, or reset system configuration keys safely.

Cleanup Operations

Remove temporary files, old logs, or expired sessions with dry-run support.

Targeted Restarts

Restart the platform or specific components with explicit confirmation.

Audit & Logging

Keep an administrative trail of system actions and outcomes.

Organization Health Audit

Start a background, read-only review of the deployment’s skills, blueprints, and live agent activations through the GenesisAuditor.
Check SYSTEM_STATUS before toggling maintenance or performing a restart. It helps confirm health, dependencies, and connectivity.

Input Parameters for Each Function

Most administrative operations use manage_system with an action value. Prior-conversation search uses dedicated find_threads and read_thread functions. Cost analysis uses the dedicated thread_cost function. Export workflows use the dedicated export_thread, export_agent, and export_mission functions. Thread ZIP restore uses import_thread; agent and mission re-import use import_agent and import_mission. Thread memory management (compression, recovery, status) is handled by manage_thread_memory in context_tools (always available to agents). Poll-and-check pacing uses wait in context_tools (always available to agents). The internal compress_thread function remains available for support workflows but is not exposed as an agent tool. audit_organization_health starts the hidden GenesisAuditor worker. See GenesisAuditor tools for its focus parameter and the read-only audit tools available to the spawned agent.

AUTO_TITLE_CHAT

Parameters
When OpenAI is the active provider, auto-titling uses the saved fast_model assignment from Config → AI Providers → Change Models (falling back to supervisor or default_chat when fast is unset). The call routes through the LiteLLM engine with per-call OpenAI credentials from AI Providers — not a raw OpenAI client. Genesis applies the assignment on the next title generation without a server restart. For Databricks, auto-titling likewise uses fast_model, falling back to supervisor and then default_chat when the fast assignment is unset. See Databricks provider setup for the model defaults and authentication details.

SYSTEM_STATUS

Parameters

MAINTENANCE_MODE

Parameters

SYSTEM_CONFIG

Parameters

CLEANUP_TASKS

Parameters

SYSTEM_RESTART

Parameters
Restarts interrupt running jobs and sessions. Use SYSTEM_STATUS first, schedule a window, then set confirmation = true only when ready.

find_threads

Search prior conversations across one or more bots using hybrid semantic plus lexical matching. Results are ranked by relevance and can be returned as formatted text or structured data. Exact thread titles such as agent_review and a thread’s own title can be searched directly; injected message headers are not treated as the thread title or message content.
For Slack links in search results, see search_threads.
Parameters
bot_id, thread_id, and user_id are injected from the current tool context. A caller identity is required: if user_id does not reach find_threads, it returns an access-denied error with no results rather than searching without an identity filter. For caller access and visibility filtering, including how limit is counted, which bot_ids the user may name, and the exclusion of agent rooms, follow the search_threads contract; find_threads excludes the current thread automatically. When you pass bot_ids, use the exact, case-sensitive values from GET /api/bots or _list_all_bots. Cross-bot search enumerates active agents registered in the database, not storage directories without a matching bot row. Structured results include bot_id for each thread; pass that value to read_thread as thread_bot_id when opening a hit owned by a different bot.
For wake addresses, hive privacy, and the summary caveat returned with thread results, see list_threads. Example

read_thread

Read the content of a specific thread after find_threads or search_threads. Threads are stored per bot; when the hit belongs to another bot, pass that bot’s ID in thread_bot_id using the bot_id from the search result. By default Genesis returns a clean user/assistant transcript and omits tool banners, tool-call payloads, and internal metadata. Set include_tool_calls=true when you need prior SQL, tool outputs, artifact links, reports, or other execution details.
For a Slack-origin conversation, the response text and optional slack object provide a permalink to the source thread.
Parameters
bot_id and user_id are injected from the current tool context. Naming another bot in thread_bot_id does not widen access — Genesis still enforces normal thread visibility on every read. When a thread cannot be read under the requested bot, Genesis returns an error that suggests trying thread_bot_id if another bot may own the thread. If the tool trims the output, the response includes a summary line showing how many messages were returned out of the total message count for the selected mode.
Reader-specific run-notice visibility is described in the chat guide.
Tool-call visibility also follows admission to any Prover runs named in the thread; run-less tool outputs are owner-only. See the thread message visibility rules for the complete behavior and tool_calls_redacted response flag.
Example

thread_files

List or copy files from another conversation’s private Python scratch folder or its uploads folder. Use find_threads or read_thread to identify the source conversation, list its files, then copy the files needed into the current thread’s scratch folder for execute_python_code or attaching to a reply. You must be signed in and allowed to read the source thread’s tool outputs unredacted; a thread visible only with redacted tool outputs does not share its files. The tool checks this access on each call. list returns files with paths and sizes plus a count, up to 500 entries, and sets truncated when more exist. copy returns copied_to and size_bytes after writing a file of up to 100 MB under BOT_SCRATCH_PATH/from_threads/<source_thread_id>/...; the returned path can be used by execute_python_code or a reply tool. The implicit bot_id, thread_id, and user_id come from the current tool context. Each call performs a thread-metadata lookup and permission query; naming a different thread_bot_id also checks the bot registry. list walks the source folders; copy reads and writes one file, up to 100 MB. Examples

export_thread

Export the current thread or a specified thread into a bot_git repo as Markdown, PDF, or a ZIP package for backup, import, or support workflows. Support-oriented ZIP exports can bundle bug_report.md, server.log, and any selected file attachments. The destination must stay inside the repository named by repo_id. Use a single repository name, a plain filename, and a relative folder path; .., absolute paths, and paths that pass through a symbolic link are refused before the export is built. Genesis also refuses a symbolic link at the destination filename rather than replacing it.
When format="pdf", Genesis renders each message header with an ISO-8601 timestamp including timezone offset when timestamp metadata is available. ZIP exports use the same timestamped transcript for thread.pdf, while thread.md remains the clean Markdown transcript.
For PDF availability in Databricks App deployments and ZIP fallback behavior, see Chat and Threads.
In container-based deployments, Genesis prepares the mounted bot_git workspace on startup so export bundles can be written to shared repos even when /app/bot_git is backed by a reused persistent volume.
Parameters
bot_id, thread_id, and user_id are injected from the current tool context. user_id is used to enforce thread access, so callers can export only threads they are allowed to access.
When bug_report is provided, Genesis includes server.log in the ZIP by default. Workspace admins can disable server-log inclusion in support bundles with support.include_server_log_in_bug_reports (default: true).
ZIP exports also include scrub_manifest.json. Ordinary export_thread calls keep original thread content intact and record manifest status: disabled so the bundle remains suitable for import. Support-bundle workflows opt into scrubbing separately, which redacts supported text artifacts such as thread.md, thread.json, message_log.csv, bug_report.md, and server.log, while binary attachments remain passthrough.
Export metadata includes message_log_row_count, the number of source rows used to render message_log.csv. When a legacy pre-rendered CSV is reused and its source-row count is unavailable, the value is null; Genesis does not guess a count from rendered CSV lines.
Export metadata also includes message_log_source; see the Thread Export API reference for its values and how to interpret synthesized rows.
Example
Successful export_thread, export_agent, and export_mission responses return root-relative Genesis links in download_url; export_thread also returns view_url. Expect /api/git/... in standalone and local deployments, and /git/... in SPCS.

import_thread

Restore a ZIP package created by export_thread or the GUI export flow. The current user must be able to view the source repository and the target agent; each attached file is restored to its exported repository path and requires edit access to that destination repository. For attachments in uploads, Genesis also checks access to the attachment’s conversation. The imported thread is private and owned by the current user. ZIP member and total decompressed-size limits apply; see Thread archive import limits. The tool reads and decompresses the archive, then writes the thread, messages, and attachments before it returns; larger archives take longer. Parameters bot_id, thread_id, and user_id come from the tool context. update is not available through this tool. The result includes the imported thread_id, original_thread_id, renamed, messages_imported, warnings, and a thread link. Example

export_agent

Export an agent configuration as a ZIP package into a bot_git repo so it can be downloaded or re-imported later. Parameters Example

export_mission

Export a complete mission as a ZIP package into a bot_git repo, including project metadata, thread and replay data, and optional repo, query-result, and agent content. When sign-in is enabled, the current person must be able to open the Mission; repositories they cannot view are omitted, and the destination repository must allow edits. If the shared uploads repository is included, the archive contains only this Mission thread’s uploads folder, not other conversations’ files. Parameters Example
export_agent and export_mission write binary ZIP files to the target bot_git repo. Storage-only repos such as uploads persist the ZIP on disk without creating a git commit; git-backed repos also stage and commit the export. If the ZIP write fails, the tool returns success: false with an error describing the target path. The API export reference describes how these binary tool-generated bundles handle repository directory content.
Agent and mission ZIP packages can be imported directly from the source repo, including ZIP files uploaded there.

import_agent

Import an agent ZIP package that was previously exported with export_agent. Genesis assigns a new bot_id for the imported agent so it does not collide with the original. Parameters
bot_id, thread_id, and user_id are injected from the current tool context. For managed remote repos, Genesis reads the ZIP from the current remote file state instead of a shared local clone. If managed-remote status cannot be verified, the tool returns error_code="MANAGED_REMOTE_STATUS_UNKNOWN".
Example

import_mission

Import a mission ZIP package that was previously exported with export_mission. Genesis assigns new IDs for imported entities so the imported mission can coexist safely with the source mission. Parameters When sign-in is enabled, the current person must be signed in, may import only from a repository they can view, and must be able to access the target agent. Repositories the import writes to must allow edits. These checks use the person’s identity from the tool context; callers cannot supply another user ID.
bot_id, thread_id, and user_id are injected from the current tool context. For managed remote repos, Genesis reads the ZIP from the current remote file state instead of a shared local clone. If managed-remote status cannot be verified, the tool returns error_code="MANAGED_REMOTE_STATUS_UNKNOWN".
Example

export_work_bundle

Save a selected work bundle ZIP in a bot_git repository. For the selection rules and REST API option, see Work Bundles. Parameters Example
The result includes the saved path and download link, a section summary, and warnings for items left out.

import_work_bundle

Preview or import a work bundle ZIP stored in a bot_git repository. See the Work Bundles guide for the import workflow and report details. Parameters Example
Connection sections are handled through the admin API, not these tools.

thread_cost

Calculate token usage and cache-aware LLM costs for the current thread or any specified thread, with optional recursive child-thread aggregation. Parameters
thread_cost returns separate input, output, cache_read, and cache_write totals. In summary.total_tokens, Genesis reports billable_input as prompt input minus both cache_read and cache_creation, floored at 0.
Example

compress_thread (Internal / Support Only)

compress_thread is an internal function used by support workflows. Agents should use manage_thread_memory (part of context_tools, always available) for thread compression, status, and recovery.
See manage_thread_memory for the supported compression versions and fallback behavior. Thread memory management — compression, status checks, and recovery of compressed artifacts — is handled by manage_thread_memory in the context_tools group. Key actions: Examples
Compression artifacts include recoverable, recovery_kind, and recovery_hint metadata. For V6 history, use LIST_RECOVERABLE_BLOCKS and SEARCH_MESSAGES to find numeric start_message_num / end_message_num handles, then recover exact text with GET_HIDDEN_MESSAGES. Older summaries may still expose recovery_id as a legacy fallback. When GET_STATUS includes compression_history, each event can expose event_sequence (monotonic pass number) and compact raw diagnostics such as chat_model, thread_model_tier, thread_model_provider, summary_llm_model, summary_llm_engine, summary_rollup_fallback_used, and llm_summary_used_delta so you can see which models and summary paths were active for that pass.

Use Cases

  1. Generate descriptive chat titles for better search and navigation.
  2. Monitor platform health, component readiness, and external connectivity.
  3. Schedule maintenance windows with user-facing messages and durations.
  4. Adjust configuration keys safely and audit the changes.
  5. Reclaim space by cleaning temporary files, old logs, or expired sessions.
  6. Restart a misbehaving component after validating dependencies.
  7. Maintain an administrative trail of system actions for compliance.
  8. Recover a compressed tool result or a logically hidden message group without rerunning earlier work.

Workflow/How It Works

  1. Assess current health with SYSTEM_STATUS and decide on next steps.
  2. Communicate by enabling MAINTENANCE_MODE with a clear message and duration.
  3. Change settings via SYSTEM_CONFIG to apply the desired configuration.
  4. Clean using CLEANUP_TASKS with dry_run = true, then execute for real.
  5. Restart selected components using SYSTEM_RESTART with explicit confirmation.
  6. Verify recovery with SYSTEM_STATUS and disable maintenance mode.
Prefer dry_run for cleanups and staged config updates to reduce risk in production.

Integration Relevance

  • genesis_job_tools to coordinate or pause background jobs during maintenance.
  • system_stats_tools for performance verification before and after changes.
  • make_baby_bot to manage data agent availability during platform updates.
  • harvester_tools to align metadata crawls with maintenance windows.
  • All tools that rely on system configuration or uptime benefit from predictable scheduling.

Configuration Details

  • Use precise config_key names and document them in your runbook.
  • Maintenance messages should be concise and include a contact or status page.
  • Choose conservative retention_days to avoid premature log or session removal.
  • Component names for restarts should match deployed service identifiers.
  • Auto-title works best with a short, representative conversation_content when available.

Limitations or Notes

  1. Administrative privileges are required for manage_system actions. export_thread instead follows the caller’s thread access permissions.
  2. Maintenance mode affects all users, so schedule during low activity periods.
  3. Some configuration changes may require a restart to take effect.
  4. Cleanups are destructive unless you have separate backups.
  5. Status checks can have overhead during peak load.
  6. Cross-component dependencies may delay restarts or require ordering.

Output

  • Auto-Title: Proposed title, relevance score, and suggested alternatives.
  • Status: Overall health plus component details and connectivity results.
  • Maintenance: Mode status, banner message, and timing confirmation.
  • Configuration: Current values, change confirmations, and diffs where applicable.
  • Cleanup: Dry-run preview or executed results with counts and recovered space.
  • Restart: Acknowledgment, component recovery status, and timing.
  • Exports & Imports: export_thread, export_agent, and export_mission return the saved repo location plus download_url; export_thread also returns view_url and the selected export format. import_agent returns bot_id, bot_name, and warnings. import_mission returns project_id, project_name, thread_id, bot_id, repos_imported, query_results_imported, todos_imported, assets_imported, and warnings.
  • Thread Compression & Recovery: Agent-facing recovery uses manage_thread_memory, which returns panel-aligned status, before and after compression stats, searchable thread-history results, chunked value_chunk recovery with has_more and next_offset, and paginated hidden messages keyed primarily by durable message numbers/ranges for V6. The internal compress_thread helper backs those recovery flows for support workflows.
  • Errors: Actionable messages for permission issues, invalid keys, or failed operations.