Permissions — claude-code Architecture
A rule-based engine that asks for user approval before dangerous operations.
Entity Profile
Relationship Graph
Domain
Functions
- AgentJsonSchema()
- AgentResponseDisplay()
- AtMentionedSchema()
- ChannelAllowlistSchema()
- ClaudeInChromePromptNotificationSchema()
- FORK_AGENT.getSystemPrompt()
- McpClaudeAIProxyServerConfigSchema()
- McpJsonConfigSchema()
- McpSSEServerConfigSchema()
- McpStdioServerConfigSchema()
- McpWebSocketServerConfigSchema()
- TokenExchangeResponseSchema()
- _setPeer()
- _temp()
- _temp()
- _temp()
- _temp()
- _temp()
- _temp()
- _temp()
- _temp()
- _temp()
- _temp()
- _temp2()
- _temp2()
- _temp2()
- _temp2()
- _temp3()
- _temp4()
- _temp4()
- addMcpConfig()
- addScopeToServers()
- applyFileSuggestion()
- applyShellSuggestion()
- areMcpConfigsAllowedWithEnterpriseMcpConfig()
- authorizationUrl()
- baseInputSchema()
- buildChildMessage()
- calculateAgentStats()
- clearClaudeAIMcpConfigsCache()
- clearServerTokensFromLocalStorage()
- clearTimeout()
- close()
- close()
- closeTabInIDE()
- collectDirectoryNames()
- commandArraysMatch()
- computeEditsFromContents()
- computeLevel()
- constructor()
- countHunkLines()
- createFileSuggestionItem()
- createLinkedTransportPair()
- createPermissionQueueOps()
- createSuggestionFromSource()
- dir()
- discoverAuthorizationServer()
- emitTaskProgress()
- excludeStalePluginClients()
- expandEnvVarsInString()
- extractCompletionToken()
- extractSearchToken()
- fetchAuthServerMetadata()
- fetchClaudeAIMcpConfigsIfEligible()
- findAvailablePort()
- findCommonPrefix()
- findElicitationInQueue()
- findLongestCommonPrefix()
- findMatchingFiles()
- formatCronFireTime()
- formatTaskAsPrompt()
- gateChannelServer()
- generateAgentSuggestions()
- generateBashSuggestions()
- generateFileSuggestions()
- getAgentDefinitionsWithOverrides()
- getAgentMemoryEntrypoint()
- getChromeFlag()
- getClaudeCodeMcpConfigs()
- getClaudeConfigFiles()
- getDirectoryNames()
- getDirectoryNamesAsync()
- getExploreSystemPrompt()
- getFileIndex()
- getFilesUsingGit()
- getGitIndexMtime()
- getLocalAgentMemoryDir()
- getLoggingSafeMcpBaseUrl()
- getMcpDenylistSettings()
- getMcpDisplayName()
- getMcpServerHeaders()
- getMcpServerSignature()
- getPreservedSelection()
- getProjectFiles()
- getPrompt()
- getScopeLabel()
- getSearchOrReadInfo()
- getServerKey()
- getSyncedJsonPath()
- getToolsDescription()
- getTopLevelPaths()
- getTransportDisplayName()
- getUserPromptPreview()
- handleInteractivePermission()
- hasPermissionCallback()
- hasRecentInteraction()
- hasSandboxPermissionCallback()
- hasSummarySinceLastUserTurn()
- inputSchema()
- invalidateCredentials()
- isChannelAllowlisted()
- isFileEditResult()
- isForkSubagentEnabled()
- isOfficialMcpUrl()
- isPluginAgent()
- isRecordableMessage()
- isRejectedMessage()
- isSSEConfig()
- isSessionContainerCompatible()
- isYankKey()
- issuerKey()
- jwtExp()
- loadHistoryEntries()
- loadRipgrepIgnorePatterns()
- logApprovalEvent()
- logRejectionEvent()
- makeShutdownNotif()
- makeSpawnNotif()
- markClaudeAiMcpConnected()
- markStepUpPending()
- mergeClients()
- mergeUntrackedIntoNormalizedCache()
- normalizeGitPaths()
- normalizeOAuthErrorBody()
- normalizeUrl()
- notifyVscodeFileUpdated()
- outputSchema()
- pageToMessages()
- parseCount()
- parseHeaders()
- parseHooksFromFrontmatter()
- parseMcpConfigFromFilePath()
- pathListSignature()
- performCrossAppAccess()
- processMailboxPermissionResponse()
- processResponse()
- refreshAuthorization()
- registerPermissionCallback()
- renderPlaceholder()
- replaceFromSnapshot()
- revokeToken()
- runAsyncAgentLifecycle()
- saveCodeVerifier()
- saveIdpIdTokenFromJwt()
- saveSyncedMeta()
- send()
- setAgentColor()
- shortRequestId()
- shouldShowUpdateNotification()
- snapshotMetaSchema()
- sourceToString()
- start()
- start()
- startBackgroundCacheRefresh()
- toggleMembership()
- tokens()
- urlPatternToRegex()
- useAfterFirstRender()
- useAutoModeUnavailableNotification()
- useAwaySummary()
- useBackgroundTaskNavigation()
- useClipboardImageHint()
- useCommandQueue()
- useDeprecationWarningNotification()
- useDiffData()
- useDirectConnect()
- useDynamicConfig()
- useFileHistorySnapshotInit()
- useHistorySearch()
- useIDEStatusIndicator()
- useIdeConnectionStatus()
- useIdeLogging()
- useIdeSelection()
- useInboxPoller()
- useIssueFlagBanner()
- useLspInitializationNotification()
- useLspPluginRecommendation()
- useManagePlugins()
- useMcpToggleEnabled()
- useMergedCommands()
- useMinDisplayTime()
- useNotifyAfterTimeout()
- useNpmDeprecationNotification()
- usePluginAutoupdateNotification()
- usePluginInstallationStatus()
- usePrStatus()
- useRateLimitWarningNotification()
- useRemoteSession()
- useSSHSession()
- useSelectionBgColor()
- useSessionBackgrounding()
- useSettingsChange()
- useSwarmInitialization()
- useTaskListWatcher()
- useTasksV2()
- useTeammateViewAutoExit()
- useTerminalSize()
- useTextInput()
- useTurnDiffs()
- useTypeahead()
- useVimInput()
- useVoiceEnabled()
- useVoiceIntegration()
- userFacingName()
- userFacingNameBackgroundColor()
- wrapChannelMessage()
- xaaRefresh()
Frequently Asked Questions
What is the Permissions subdomain?
Permissions is a subdomain in the claude-code codebase, part of the AgentTooling domain. A rule-based engine that asks for user approval before dangerous operations. It contains 0 source files.
Which domain does Permissions belong to?
Permissions belongs to the AgentTooling domain.
What functions are in Permissions?
The Permissions subdomain contains 217 function(s): AgentJsonSchema, AgentResponseDisplay, AtMentionedSchema, ChannelAllowlistSchema, ClaudeInChromePromptNotificationSchema, FORK_AGENT.getSystemPrompt, McpClaudeAIProxyServerConfigSchema, McpJsonConfigSchema, and 209 more.