Skip to main content

Module config

Module config 

Source
Expand description

Layered configuration.

Later layers win, field by field:

  1. built-in defaults
  2. ~/.mecha/config.toml
  3. ./mecha.toml in the working directory (project-local)
  4. environment variables
  5. CLI flags (applied by the caller, not here)

Structs§

AgentConfig
CapabilityOverride
Capabilities to force on a server’s tools. Absent flags leave the server’s own declaration alone; there is deliberately no way to switch one off.
Config
HookConfig
One hook: a command run at a lifecycle point, with the event payload as JSON on stdin.
McpServerConfig
MessagesConfig
Messaging between this machine’s own mecha sessions.
OutboxConfig
Which tools are outbox-routed, and where staged items live.
ProviderConfig
SearchBackendConfig
SecurityConfig
Defenses against the lethal trifecta: private data, untrusted content, and a way to send data out. An agent holding all three can be turned into an exfiltration tool by instructions hidden in the content it reads — a calendar invite title, an email footer, a web page.
SkillsConfig
Which skills a run carries.
SlackConfig
[slack] — tunables for the Slack remote control. Nothing here grants anything. Who may drive the agent lives in ~/.mecha/slack/binding.json, a store rather than config, for the reason [messages] is global-only and then some: a project file arrives with a cloned repository, and a repo that could name a Slack owner would have been handed the remote control.
ToolsConfig
WebConfig
Tunables for mecha serve — the tailnet web surface.
WorkConfig
How much of a producer’s generated output survives a mecha work clean.

Enums§

PermissionMode
TrifectaPolicy