Optional Experimentala2aA2A (Agent-to-Agent) protocol agents configuration.
Enables delegation of tasks to external AI agents.
Each agent becomes available as a tool named a2a_agent_<agentId>.
This feature is experimental and may change.
OptionalbuiltOptionalbuiltAllow inference to be interrupted with esc. Only has an effect in TTY mode.
OptionalcommandsContent Provider. Provider used to fetch content (usually diff) for review or pr command.
OptionalcontentOptionalcustomOptionaldebugLog messages and events to gaunt-sloth.log,
use llm.verbose or gth --verbose as more intrusive option, setting verbose to LangChain / LangGraph
OptionalidentitySeparate identity profile.
May include separate identity, guidelines and command protocol,
making gsloth behave as an agent different from default profile behaviour.
for example, devops profile to detect changes such as properties and environment variables.
Custom config can still win over this one.
This setting requires .gsloth/.gsloth-settings directory to exist.
Whether to include the current date in the project review instructions or not.
OptionalmcpMCP (Model Context Protocol) server connections. Allows connecting to external MCP servers including those requiring OAuth.
OptionalmiddlewareMiddleware configuration for LangChain v1. Middleware provides hooks to intercept and control agent execution at critical points.
Middleware can be:
Example (JSON config):
{
"middleware": [
"summarization",
{ "name": "anthropic-prompt-caching", "ttl": "5m" }
]
}
Example (JS config):
{
middleware: [
"summarization",
{ beforeModel: (state) => { /* custom logic */ return state; } }
]
}
Available predefined middleware:
anthropic-prompt-caching: Reduces API costs by caching prompts (Anthropic only)summarization: Condenses conversation history when approaching token limitsOptionalmodelOptionalorganizationOrganisation name, locale and timezone. Only used with includeCurrentDateAfterGuidelines. timeZone and locale should be in format supported by Intl.DateTimeFormat
Path to project-specific guidelines.
The default is .gsloth.guidelines.md; this config may be used to point Gaunt Sloth to a different file,
for example, to AGENTS.md
OptionalrequirementsStream output. Some models do not support streaming. Set value to false for them.
Stream session log instead of writing it when inference streaming is complete. (only works when streamOutput is true)
OptionaltoolsUse colour in output
Should the output be written to md file.
(e.g. gth_2025-07-26_22-59-06_REVIEW.md).
Can be set to false with -wn or -w0
Can be set to a specific filename or path by passing a string:
"review.md") are placed in .gsloth/ when it exists, otherwise project root"./review.md" or "reviews/last.md") are always relative to project root
Please note the string does not accept absolute path, but allows to exit project with .. if necessary.
Raw, unprocessed Gaunt Sloth config.