Config Manager Tool
The agent can read, update, validate, and restore its own configuration file.
Tool Name
manage_config
Actions
read
Returns the full config.toml content with sensitive fields redacted:
toml
api_key = "***REDACTED***"
bot_token = "***REDACTED***"
password = "***REDACTED***"get
Read a specific TOML key path:
text
action: "get"
key: "provider.models.primary"
# Returns: "gemini-3-flash-preview"set
Update a specific key with a new value (TOML literal format):
text
action: "set"
key: "state.working_memory_cap"
value: "100"Before writing:
- Creates backup (3-deep ring rotation:
.bakโ.bak.1โ.bak.2) - Validates the new config (TOML syntax + full deserialization)
- Sets file permissions to 0600 (owner-only) on Unix
restore
Rollback to the most recent backup file.
Last Known Good
After every successful LLM call, the current config is stamped as
.toml.lastgood. This is the first file tried during recovery.Backup Priority
config.toml.lastgoodโ proven working configconfig.toml.bakโ most recent backupconfig.toml.bak.1config.toml.bak.2