Overview
Tool Name
Purpose
The system_manager_tools group centralizes platform administration plus prior-conversation search, thread export, agent and mission export/import workflows, thread cost analysis, and thread memory recovery. Generate chat titles automatically, search prior conversations, read thread history, analyze cache-aware thread costs, export thread packages and reusable ZIP bundles, 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.
Export Threads, Agents, and Missions
Save thread, agent, and mission packages into
bot_git repos with download-ready links for handoff or backup, then re-import 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.
Input Parameters for Each Function
Most administrative operations usemanage_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. Agent and mission re-import use the dedicated import_agent and import_mission functions. 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
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.
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. find_threads excludes the current thread automatically and still enforces normal visibility and permission checks on returned threads. 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.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.
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.With
include_tool_calls=true, Genesis returns unredacted tool calls only to the thread owner or explicitly invited users. Other permitted readers receive redacted tool content and tool_calls_redacted=true in the response.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.
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.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.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.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.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.
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.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".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
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".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.compress_thread (Internal / Support Only)
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
- Generate descriptive chat titles for better search and navigation.
- Monitor platform health, component readiness, and external connectivity.
- Schedule maintenance windows with user-facing messages and durations.
- Adjust configuration keys safely and audit the changes.
- Reclaim space by cleaning temporary files, old logs, or expired sessions.
- Restart a misbehaving component after validating dependencies.
- Maintain an administrative trail of system actions for compliance.
- Recover a compressed tool result or a logically hidden message group without rerunning earlier work.
Workflow/How It Works
- Assess current health with
SYSTEM_STATUSand decide on next steps. - Communicate by enabling
MAINTENANCE_MODEwith a clear message and duration. - Change settings via
SYSTEM_CONFIGto apply the desired configuration. - Clean using
CLEANUP_TASKSwithdry_run = true, then execute for real. - Restart selected components using
SYSTEM_RESTARTwith explicit confirmation. - Verify recovery with
SYSTEM_STATUSand 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_keynames and document them in your runbook. - Maintenance messages should be concise and include a contact or status page.
- Choose conservative
retention_daysto avoid premature log or session removal. - Component names for restarts should match deployed service identifiers.
- Auto-title works best with a short, representative
conversation_contentwhen available.
Limitations or Notes
- Administrative privileges are required for
manage_systemactions.export_threadinstead follows the caller’s thread access permissions. - Maintenance mode affects all users, so schedule during low activity periods.
- Some configuration changes may require a restart to take effect.
- Cleanups are destructive unless you have separate backups.
- Status checks can have overhead during peak load.
- 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, andexport_missionreturn the saved repo location plusdownload_url;export_threadalso returnsview_urland the selected exportformat.import_agentreturnsbot_id,bot_name, andwarnings.import_missionreturnsproject_id,project_name,thread_id,bot_id,repos_imported,query_results_imported,todos_imported,assets_imported, andwarnings. - Thread Compression & Recovery: Agent-facing recovery uses
manage_thread_memory, which returns panel-aligned status, before and after compression stats, searchable thread-history results, chunkedvalue_chunkrecovery withhas_moreandnext_offset, and paginated hiddenmessageskeyed primarily by durable message numbers/ranges for V6. The internalcompress_threadhelper backs those recovery flows for support workflows. - Errors: Actionable messages for permission issues, invalid keys, or failed operations.

