Skip to content
Gaunt Sloth Documentation
Search
Ctrl
K
Cancel
GitHub
Select theme
Dark
Light
Auto
Getting Started
Overview
Quickstart
Guides & Recipes
Review code & PRs
Code with your rules
Work interactively
Local & free models
Choose & switch models
Work in a monorepo
Scripting & CI
Batch over inputs & models
Evaluate your agent
Evals for MCP servers
Workflows
Shell tool & approvals
What approvals protect you from
Custom tools
Configuration
Overview
Providers
Tools
MCP servers
Content sources
Prompts
Output & files
Profiles & runtime
Reference
Commands
Debug dump
Migrating to 2.0
Contributing
API
@gaunt-sloth/agent
builtInToolsConfig.js
core/debugCapture.js
core/resolveAgentFactory.js
GthDevToolkit
index.js
References
A2AClientConfig
A2AClientWrapper
A2AMessageResult
A2ASendContext
AGUI_CONTEXT_COMPACTED_EVENT
AgUiContextCompactedValue
AVAILABLE_BUILT_IN_TOOLS
convertMessage
convertMessages
createA2AAgentTool
createAcpAgentApp
createAcpAgentRouter
createAcpV1AgentApp
createAuthProviderAndAuthenticate
createInteractiveSession
createOAuthRedirectServer
createResolvers
DEFAULT_AGUI_HOST
getDefaultTools
InteractiveSessionOptions
OAuthClientProviderImpl
prepareMcpTools
resolveAgentFactory
resolveMiddleware
SessionConfig
startAcpServer
startAgUiServer
mcp/OAuthClientProviderImpl.js
mcp/tlsTrust.js
middleware/binaryContentInjectionMiddleware.js
middleware/frontendImageInjectionMiddleware.js
middleware/registry.js
middleware/types.js
modules/a2a/A2AClientWrapper.js
modules/acp/acpAgentApp.js
References
ACP_AGENT_NAME
ACP_AGENT_TITLE
AcpAgentAppOptions
announceAcpStart
isSameWorkspace
modules/acp/acpAgentAppV1.js
modules/acp/acpCommon.js
References
isSameWorkspace
modules/acp/acpPermissions.js
modules/acp/acpPermissionsV1.js
modules/acp/acpRouter.js
modules/acp/acpStdio.js
modules/acp/acpStopReason.js
modules/acp/acpToolCalls.js
modules/acp/acpUpdates.js
modules/acp/acpUpdatesV1.js
modules/apiAgUiModule.js
modules/interactiveSessionModule.js
modules/sessionResume.js
modules/slashCommands.js
modules/workspace.js
resolvers.js
tools/A2AAgentTool.js
tools/binaryUtils.js
tools/gthChecklistTool.js
tools/GthCustomToolkit.js
tools/GthFileSystemToolkit.js
tools/gthGrepTool.js
tools/gthStatusUpdateTool.js
tools/gthWebFetchTool.js
tools/McpResourceTool.js
tools/shell/env.js
tools/shell/outputBuffer.js
tools/shell/workDir.js
tools/showA2UISurfaceTool.js
utils/mcpAuthError.js
utils/mcpUtils.js
@gaunt-sloth/core
config
References
AllowlistCounts
applyRungAwareToolDescriptions
APPROVAL_POSTURES
APPROVAL_PROTECTION_DOCS_LINES
APPROVAL_PROTECTION_DOCS_URL
APPROVAL_RUNG_DESCRIPTIONS
APPROVAL_RUNG_LABELS
APPROVAL_RUNGS
APPROVAL_WRITE_MODIFIER_HINT
ApprovalEntry
ApprovalEntryType
ApprovalHintPattern
ApprovalMatcher
ApprovalRefusal
ApprovalRefusalLift
ApprovalRefusalOrigin
ApprovalRung
ApprovalsConfig
ApprovalsObjectConfig
availableDefaultConfigs
BinaryFormatConfig
BinaryFormatType
buildProfileScaffold
BUILT_IN_TOOL_ACCESS
BuiltInToolAccess
BuiltInToolConfig
BuiltInToolsConfig
BuiltInToolsSetting
commandAnswersApprovals
commandCarriesUserProvenance
CommandLineConfigOverrides
CommandToolingConfig
ConfigDiscoveryDetails
ConfigDiscoveryError
ConfigLayerValidationReport
ConfigType
ConfigValidationReport
CONFLICTING_CONFIG_SOURCES_MESSAGE
ConsoleLevelInput
createNamedProfile
CreateProfileResult
CustomCommandConfig
CustomCommandParameter
CustomToolsConfig
DEFAULT_APPROVAL_RUNG
DEFAULT_CONFIG
DEFAULT_SCAFFOLD_MODEL
DEFAULT_SCAFFOLD_PROVIDER
DescribableTool
DEV_COMMAND_TOOL_NAMES
DEV_TOOL_NAMES
EXTERNALLY_EMITTED_BUILT_IN_TOOL_NAMES
FilesystemToolsConfig
findProjectConfigPath
formatTokenBudget
getEffectiveDevToolsConfig
getGhReadFileMaxBytes
getRungToolDescriptionSuffix
getShellMaxOutputBytes
getShellTimeoutMs
getToolPreviewLines
GH_READ_FILE_DEFAULT_MAX_BYTES
GH_READ_FILE_TOOL_NAME
GhReadFileCommand
GthAcpSessionMode
GthConfig
GthDevToolsConfig
GthOutputHeaderRung
hasAnyConfig
hasProjectConfig
initConfig
isAccessClassGrantedAtRung
isApprovalRung
isBuiltInToolEntryEnabled
isConfigDiscoveryError
isDeterministicRung
isFilesystemToolRegistered
isGhReadFileToolEnabled
isGrantedAtRung
isMissingProviderKeyError
isNegotiatingRung
isRatedRung
isShellToolEnabled
isToolGatedAtRung
isUserProvenanceRung
isWriteFileToolRegistered
LLMConfig
loadConfiguredTui
loadGlobalRawConfig
McpAnnotationTrustChange
McpAnnotationTrustView
McpApprovalsConfig
McpServerAnnotationTrust
McpServerApprovalsConfig
McpToolApprovalEntry
MissingProviderKeyDetails
MissingProviderKeyError
normalizeBuiltInTools
parseTokenBudget
PrCommandConfig
PROFILE_NAME_RE
ProfileScaffoldSeed
PromptsConfig
PromptSegmentConfig
PromptSegmentName
PromptSegmentSetting
RatingConfig
RawConfigValidationResult
RawGthConfig
resolveApprovals
resolveConfig
resolveConfigExtends
ResolvedApprovals
resolveGatedToolNames
resolveIdentityProfileConfigPath
resolveInterruptToolNames
resolveProfileConfigPath
resolveShellApprovalGate
resolveTokenBudget
RUNG_TOOL_DESCRIPTION_SUFFIXES
ScopedPromptsEntry
selectScopedPrompts
ServerTool
SHELL_DEFAULT_MAX_OUTPUT_BYTES
SHELL_DEFAULT_TIMEOUT_MS
SHELL_TOOL_NAME
ShellApprovalEntry
ShellApprovalGateDecision
ShellApprovalGateNotice
stripRungToolDescriptionSuffix
SubagentProfileSpec
TOKEN_BUDGET_FORMS
TOKEN_BUDGET_MILLION
TOKEN_BUDGET_THOUSAND
TokenBudget
TokenBudgetError
TOOL_ANNOTATION_HINTS
ToolAnnotationHint
ToolApprovalEntry
tryJsonConfig
validateConfig
validateProfileName
ValidationCheck
WRITE_FILE_TOOL_NAME
config/colour
config/configDiscovery
config/defaults
config/filesystem-tools
config/jsonc
config/loader
config/mouse
config/profiles
config/providerKeys
config/schema
config/scopedPrompts
config/shell-policy
config/tokenBudget
config/tool-descriptions
config/types
constants
core/approvals/annotations
core/approvals/approvalRequest
core/approvals/conversationGrants
core/approvals/grants
core/approvals/matcher
core/approvals/mcpSubjects
core/approvals/promptHeader
core/approvals/toolAnnotationSources
core/approvals/toolHost
core/compaction
core/compactionThreshold
core/contextOverflowSeam
core/contextWindow
core/debugCapture
core/exitOutputChannel
core/GthAbstractAgent
core/GthAgentRunner
core/GthLangChainAgent
References
AgentStreamEvent
core/gthLeanAgentFactory
core/launchBanner
References
modelProviderLabel
core/mcpErrorPayload
core/modelLabel
core/plainToolIndication
core/reasoningBlocks
core/refusal
core/runHeader
core/runStats
core/shell/abstention
core/shell/alignment
core/shell/approvalCapture
core/shell/approvalStop
core/shell/arity
core/shell/denylist
core/shell/escalationSeverity
core/shell/framing
core/shell/hardline
core/shell/negotiation
core/shell/normalize
core/shell/openWorld
core/shell/provenance
core/shell/rater
References
PREFLIGHT_FLOOR_KINDS
PreflightFloorKind
RATER_ACTIONS
RATER_OUTCOMES
RaterAction
RaterOutcome
core/shell/raterHealth
core/shell/raterModel
core/shell/raterVocabulary
core/shell/rejection
core/shell/ShellCommandFailedError
core/terminationNotice
core/terminationReason
core/toolCallRepair
References
MAX_TEXT_EMITTED_TOOL_CALL_PAYLOAD_BYTES
parseStandalonePlainTextToolCallBlocks
PlainTextToolCallBlock
PlainTextToolCallParseOptions
promoteTextEmittedToolCallMessage
textToNativeToolCalls
TextToolCallRepairOptions
core/toolCallRepair/grammar
core/toolCallRepair/payload
core/toolCallRepair/promote
References
MAX_TEXT_EMITTED_TOOL_CALL_PAYLOAD_BYTES
core/toolDisplay
core/toolOutputChannel
core/types
References
AlignmentDecision
AlignmentDecisionKind
ApprovalSubject
DeclaredToolAnnotations
GthFinishReasonObservation
GthTerminationCategory
GthTerminationPosture
GthTerminationReason
GthTerminationRemedy
GthTerminationSite
GthTerminationSource
McpToolApprovalSubject
RaterNegotiationRound
RaterOutcome
ShellApprovalSubject
ShellSafetyVerdict
ToolApprovalSubject
history/checkpointRetention
history/checkpointSaver
history/historyEnabled
history/historyFormat
history/historyStore
history/recordSession
References
HistoryConfigView
history/sessionCheckpointer
index
References
AgentResolvers
AgentStreamEvent
AIIGNORE_FILE
AlignmentDecision
AlignmentDecisionKind
AllowlistCounts
applyRungAwareToolDescriptions
APPROVAL_POSTURES
APPROVAL_PROTECTION_DOCS_LINES
APPROVAL_PROTECTION_DOCS_URL
APPROVAL_RUNG_DESCRIPTIONS
APPROVAL_RUNG_LABELS
APPROVAL_RUNGS
APPROVAL_WRITE_MODIFIER_HINT
ApprovalEntry
ApprovalEntryType
ApprovalHintPattern
ApprovalLifetime
ApprovalMatcher
ApprovalOutcome
ApprovalOutcomeCallback
ApprovalRefusal
ApprovalRefusalLift
ApprovalRefusalOrigin
ApprovalRung
ApprovalsConfig
ApprovalsObjectConfig
ApprovalSubject
AttackHaltAnswer
AttackHaltCallback
AutocompactConfig
AutocompactController
AutocompactControllerOptions
AutocompactStatus
AutocompactThresholdOrigin
availableDefaultConfigs
BinaryFormatConfig
BinaryFormatType
buildCompactionPrompt
buildInitConfigContent
buildModelList
buildProfileScaffold
BUILT_IN_TOOL_ACCESS
BuiltInToolAccess
BuiltInToolConfig
BuiltInToolsConfig
BuiltInToolsSetting
CatalogOptions
CheckpointStoreStats
commandAnswersApprovals
commandCarriesUserProvenance
CommandLineConfigOverrides
CommandToolingConfig
CompactConversationOptions
COMPACTION_SUMMARY_PREFIX
COMPACTION_SUMMARY_SOURCE
compactionCutIndex
compactMessages
CompactMessagesInput
CompactMessagesResult
CONFIG_SCHEMA_POINTER
ConfigDiscoveryDetails
ConfigDiscoveryError
ConfigLayerValidationReport
ConfigType
ConfigValidationReport
CONFLICTING_CONFIG_SOURCES_MESSAGE
ConsoleLevelInput
ContextWindowOrigin
ContextWindowReading
ContextWindowResolutionOptions
ContextWindowSource
ConversationCompaction
ConversationMeta
conversationSize
ConversationSize
ConversationSummarizer
ConversationSummary
createCompactionSummaryMessage
createModelSummarizer
createNamedProfile
CreateProfileResult
CustomCommandConfig
CustomCommandParameter
CustomToolsConfig
DeclaredToolAnnotations
DEFAULT_APPROVAL_RUNG
DEFAULT_COMMIT_CO_AUTHOR_EMAIL
DEFAULT_COMMIT_CO_AUTHOR_NAME
DEFAULT_CONFIG
DEFAULT_KEEP_RECENT
DEFAULT_OLLAMA_HOST
DEFAULT_SCAFFOLD_MODEL
DEFAULT_SCAFFOLD_PROVIDER
DescribableTool
DetectedProvider
detectProviders
DEV_COMMAND_TOOL_NAMES
DEV_TOOL_NAMES
discoverModels
discoverModelsWithProvenance
DiscoveryConfig
DiscoveryKind
EnrichedModel
EXTERNALLY_EMITTED_BUILT_IN_TOOL_NAMES
FilesystemToolsConfig
findApiKeyEnvVar
findMissingProviderKey
findProjectConfigPath
formatBytes
formatCheckpointStoreStats
formatConversationList
formatConversationThread
formatInsightsSummary
formatPrunePlan
formatPruneResult
formatSearchResults
formatStoreSizeLine
formatTokenBudget
getCuratedFallbackModel
getEffectiveDevToolsConfig
getGhReadFileMaxBytes
getRungToolDescriptionSuffix
getShellMaxOutputBytes
getShellTimeoutMs
getToolPreviewLines
GH_READ_FILE_DEFAULT_MAX_BYTES
GH_READ_FILE_TOOL_NAME
GhReadFileCommand
GSLOTH_AUTH
GSLOTH_BACKSTORY
GSLOTH_CHAT_PROMPT
GSLOTH_CODE_PROMPT
GSLOTH_DIR
GSLOTH_EXEC_PROMPT
GSLOTH_SETTINGS_DIR
GSLOTH_SYSTEM_PROMPT
GthAcpSessionMode
GthAdvertisedTool
GthAdvertisedTools
GthAgentFactory
GthAgentInitOptions
GthAgentInterface
GthCommand
GthCompiledGraph
GthConfig
GthDevToolsConfig
GthFinishReasonObservation
gthLeanAgentFactory
GthOutputHeaderRung
GthRunStats
GthTerminationCategory
GthTerminationPosture
GthTerminationReason
GthTerminationRemedy
GthTerminationSite
GthTerminationSource
GthToolResult
hasAnyConfig
hasProjectConfig
HISTORY_DB_FILENAME
HistoryConfigView
HistoryInsights
HistoryStore
initConfig
INTERACTIVE_MODEL_FETCH_TIMEOUT_MS
isAccessClassGrantedAtRung
isApprovalRung
isBuiltInToolEntryEnabled
isCompactionSummary
isConfigDiscoveryError
isDeterministicRung
isFilesystemToolRegistered
isGhReadFileToolEnabled
isGrantedAtRung
isMissingProviderKeyError
isNegotiatingRung
isRatedRung
isShellToolEnabled
isToolGatedAtRung
isUserProvenanceRung
isWriteFileToolRegistered
listModels
listResumableConversationsSafe
LLMConfig
loadConfiguredTui
loadGlobalRawConfig
lookupConversationSafe
lookupConversationThreadSafe
markConversationUnresumableSafe
MCP_TOOL_NAME_PREFIX
McpAnnotationTrustChange
McpAnnotationTrustView
McpApprovalsConfig
McpConnectionFailure
McpServerAnnotationTrust
McpServerApprovalsConfig
McpServerInstruction
McpToolApprovalEntry
McpToolApprovalSubject
Message
MessagesGraph
MiddlewareCleanup
MiddlewareResolver
MissingProviderKeyDetails
MissingProviderKeyError
ModelCatalogEntry
ModelCost
ModelDiscoveryOptions
ModelDiscoveryResult
ModelDiscoveryStatus
ModelInfo
ModelLimit
ModelModalities
normalizeBuiltInTools
OllamaLikeModel
openConversationSafe
openHistoryStore
OpenHistoryStoreOptions
parseTokenBudget
PendingAttackHalt
PendingToolInterrupt
PrCommandConfig
PROFILE_NAME_RE
ProfileScaffoldSeed
PROJECT_GUIDELINES
PROJECT_REVIEW_INSTRUCTIONS
PromptsConfig
PromptSegmentConfig
PromptSegmentName
PromptSegmentSetting
PROVIDER_DESCRIPTORS
ProviderCatalog
ProviderDescriptor
ProviderId
PrunableConversation
RaterNegotiationRound
RaterOutcome
RatingConfig
RawConfigValidationResult
RawGthConfig
readConversationGrantsSafe
ReclaimSummary
recordSessionSafe
replaceGraphMessages
resolveApprovals
resolveConfig
resolveConfigExtends
ResolvedApprovals
ResolvedAutocompactConfig
ResolvedContextWindow
resolveGatedToolNames
resolveHistoryDbPath
resolveIdentityProfileConfigPath
resolveInitModel
resolveInterruptToolNames
resolveProfileConfigPath
resolveShellApprovalGate
resolveTokenBudget
RUNG_TOOL_DESCRIPTION_SUFFIXES
ScopedPromptsEntry
selectScopedPrompts
ServerTool
SessionRecord
SessionSearchResult
SHELL_ALLOWLIST_FILE
SHELL_DEFAULT_MAX_OUTPUT_BYTES
SHELL_DEFAULT_TIMEOUT_MS
SHELL_DENYLIST_FILE
SHELL_TOOL_NAME
ShellApprovalEntry
ShellApprovalGateDecision
ShellApprovalGateNotice
ShellApprovalSubject
ShellSafetyVerdict
StatusLevel
StatusUpdateCallback
StoredConversation
stripRungToolDescriptionSuffix
SubagentProfileSpec
SummarizingModel
ThreadUsage
toFtsMatchQuery
TOKEN_BUDGET_FORMS
TOKEN_BUDGET_MILLION
TOKEN_BUDGET_THOUSAND
TokenBudget
TokenBudgetError
TOOL_ANNOTATION_HINTS
ToolAnnotationHint
ToolApprovalCallback
ToolApprovalDecision
ToolApprovalEntry
ToolApprovalScope
ToolApprovalSubject
ToolRejectScope
ToolsCleanup
ToolsResolver
tryJsonConfig
USER_PROJECT_CONFIG_JS
USER_PROJECT_CONFIG_JSON
USER_PROJECT_CONFIG_JSONC
USER_PROJECT_CONFIG_MJS
USER_PROJECT_CONFIG_TS
validateConfig
validateProfileName
ValidationCheck
WRITE_FILE_TOOL_NAME
writeConversationGrantsSafe
providers/anthropic
providers/configurationPassthrough
providers/deepseek
providers/fake
providers/geminiSchemaSanitizer
providers/geminiThinking
providers/google-genai
providers/groq
providers/huggingface
providers/modelCatalog
providers/modelDiscovery
providers/ollama
providers/openai
providers/openrouter
providers/vertexai
providers/xai
runtime/askStructured
runtime/conversation
runtime/singleShot
runtime/structuredOutput
state/artifactStore
utils/aiignoreUtils
utils/binaryOutputUtils
utils/consoleUtils
utils/crashHandler
utils/debugDump
utils/debugUtils
utils/displayWidth
utils/fileUtils
utils/globalConfigUtils
utils/globMatch
utils/llmUtils
utils/ProgressIndicator
utils/redactSecrets
utils/stringUtils
utils/systemPromptNotes
utils/systemUtils
utils/toolMatching
utils/untrustedText
utils/vertexaiUtils
@gaunt-sloth/review
commands/commandUtils
helpers/jira/jiraClient
index
References
CONTENT_SOURCES
ContentSourceType
extractChangedPathsFromDiff
get
getContentFromSource
getRequirementsFromSource
getReviewPreamble
ghReadFileImpl
GTH_GH_READ_FILE_TOOL_NAME
PrRepoContext
REQUIREMENTS_SOURCES
RequirementSourceType
resolvePrIdFromArg
resolvePrRepoContext
review
ReviewContext
middleware/reviewRateMiddleware
modules/reviewHeading
modules/reviewModule
modules/types
sources/fileSource
sources/ghIssueSource
sources/ghPrDiffSource
sources/ghPrViewSource
sources/gitDiffSource
sources/jiraIssueLegacySource
sources/jiraIssueSource
sources/textSource
sources/types
tools/ghReadFileTool
utils/diffPaths
utils/fileUtils
v1.x docs (legacy)
GitHub
Select theme
Dark
Light
Auto
Gaunt Sloth Assistant
Packages
Section titled “Packages”
@gaunt-sloth/agent
@gaunt-sloth/core
@gaunt-sloth/review