Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CaptainCrouton89/.claude
/ functions
Functions
204 in github.com/CaptainCrouton89/.claude
⨍
Functions
204
◇
Types & classes
1
↓ 17 callers
Function
appendLog
(message)
hooks/lifecycle/claude-md-manager.mjs:11
↓ 17 callers
Function
log
(message)
hooks/lifecycle/history-mcp.mjs:11
↓ 12 callers
Function
log
(message)
hooks/validation/validation-mcp.mjs:10
↓ 10 callers
Function
updateFrontmatter
(status)
hooks/pre-tool-use/agent-system/cursor-runner.cjs:24
↓ 8 callers
Function
appendLog
(message)
hooks/lifecycle/session-history-logger.mjs:9
↓ 7 callers
Function
appendLog
(message)
hooks/lifecycle/session-tracker.mjs:11
↓ 7 callers
Function
skip
(reason, extra = '')
hooks/validation/feature-validator.mjs:404
↓ 7 callers
Function
updateFrontmatter
(status)
hooks/pre-tool-use/agent-system/claude-runner.cjs:17
↓ 6 callers
Function
appendLog
(message)
hooks/lifecycle/auto-copy-skills-on-init.mjs:46
↓ 5 callers
Function
run_git_command
Run a git command and return its output.
hooks/user-prompt-submit/git-hook.py:6
↓ 4 callers
Function
appendError
(message)
hooks/pre-tool-use/agent-system/cursor-runner.cjs:72
↓ 4 callers
Function
appendToLog
(text)
hooks/pre-tool-use/agent-system/agent-script.mjs:48
↓ 4 callers
Function
collectTextChunks
(value, depth = 0, chunks = [])
hooks/pre-tool-use/agent-system/cursor-runner.cjs:76
↓ 4 callers
Function
denySpawn
* Denies the spawn request and exits * @param {string} reason - Reason for denial
hooks/pre-tool-use/agent-interceptor.cjs:22
↓ 4 callers
Function
getValidationPath
(cwd)
hooks/validation/validation-mcp.mjs:18
↓ 4 callers
Function
markFilesAsHandled
(filesInDir, filesHandled)
hooks/lifecycle/claude-md-manager.mjs:71
↓ 4 callers
Function
readRegistry
* Reads the agent registry from disk * @param {string} registryPath - Path to registry file * @returns {Object} Registry object
hooks/pre-tool-use/agent-system/registry-manager.cjs:8
↓ 4 callers
Function
writeRegistry
* Writes the agent registry to disk * @param {string} registryPath - Path to registry file * @param {Object} registry - Registry object to write
hooks/pre-tool-use/agent-system/registry-manager.cjs:25
↓ 3 callers
Function
appendError
(message)
hooks/pre-tool-use/agent-system/claude-runner.cjs:65
↓ 3 callers
Function
appendSpeakerLine
(label, text)
hooks/pre-tool-use/agent-system/agent-script.mjs:294
↓ 3 callers
Function
getBlockKey
(message, index = 0)
hooks/pre-tool-use/agent-system/agent-script.mjs:81
↓ 3 callers
Function
getHistoryPath
(cwd)
hooks/lifecycle/history-mcp.mjs:20
↓ 3 callers
Function
pruneCache
(cache, activeFiles)
hooks/lifecycle/claude-md-manager.mjs:77
↓ 3 callers
Function
registerMessageId
(message)
hooks/pre-tool-use/agent-system/agent-script.mjs:337
↓ 3 callers
Function
removePidFromRegistry
(registryPath, agentId)
hooks/lifecycle/agent-monitor.mjs:26
↓ 3 callers
Function
resolveMessageId
(message)
hooks/pre-tool-use/agent-system/agent-script.mjs:55
↓ 3 callers
Function
saveProcessingCache
(cache)
hooks/lifecycle/claude-md-manager.mjs:43
↓ 3 callers
Function
skip
(reason)
hooks/validation/claude-md-validator.mjs:480
↓ 3 callers
Function
unquote
* Removes quotes from a string value * @param {*} value - Value to unquote * @returns {*} Unquoted value
hooks/pre-tool-use/agent-system/frontmatter-parser.cjs:6
↓ 3 callers
Function
updateAgentStatus
* Updates the completion status for an agent in the registry * @param {string} registryPath - Path to registry file * @param {string} agentId - Agen
hooks/pre-tool-use/agent-system/registry-manager.cjs:105
↓ 2 callers
Function
appendDeltaText
(message, deltaText)
hooks/pre-tool-use/agent-system/agent-script.mjs:164
↓ 2 callers
Function
appendLog
(message)
hooks/validation/claude-md-validator.mjs:87
↓ 2 callers
Function
appendLog
(message)
hooks/validation/feature-validator.mjs:19
↓ 2 callers
Function
ask
(question)
hooks/state-tracking/benchmark/annotate.js:89
↓ 2 callers
Function
buildContextMessage
* Build the combined context message
hooks/user-prompt-observers/observer-registry.js:271
↓ 2 callers
Function
computeTodoSignature
(todos)
hooks/validation/feature-validator.mjs:134
↓ 2 callers
Function
createDelegationMessage
* Creates the delegation message to return to the user * @param {Object} hookData - Hook data object * @param {string} agentLogPath - Path to agent
hooks/pre-tool-use/agent-system/spawn-helpers.cjs:93
↓ 2 callers
Function
ensureExitLogged
()
hooks/pre-tool-use/agent-system/agent-script.mjs:520
↓ 2 callers
Function
extractMessageText
(content)
hooks/pre-tool-use/agent-system/agent-script.mjs:313
↓ 2 callers
Function
extractTodoInfoFromMessage
(message)
hooks/validation/feature-validator.mjs:52
↓ 2 callers
Function
finalizeFailure
(code, signal)
hooks/pre-tool-use/agent-system/cursor-runner.cjs:280
↓ 2 callers
Function
finalizeFailure
(code, signal)
hooks/pre-tool-use/agent-system/claude-runner.cjs:141
↓ 2 callers
Function
formatClosedSummary
(closedSummaries)
hooks/validation/claude-md-validator.mjs:258
↓ 2 callers
Function
getFeatureStatePath
()
hooks/validation/feature-validator.mjs:196
↓ 2 callers
Function
getFileInfo
(filePath)
hooks/lifecycle/agent-monitor.mjs:65
↓ 2 callers
Function
getStateFilePath
()
hooks/lifecycle/claude-md-manager.mjs:25
↓ 2 callers
Function
getTodoStatePath
({ createDir = false } = {})
hooks/validation/claude-md-validator.mjs:101
↓ 2 callers
Function
getToolCalls
* Get tool calls from assistant messages
hooks/validation/feature-validator.mjs:326
↓ 2 callers
Function
loadAgentDefinition
* Loads an agent definition from file * @param {string} agentType - Type of agent to load * @returns {Object} Agent definition with systemPrompt, mo
hooks/pre-tool-use/agent-system/agent-loader.cjs:17
↓ 2 callers
Function
loadIgnoreFile
* Load ignore patterns from a file (one pattern per line, # for comments)
hooks/lifecycle/claude-md-manager.mjs:149
↓ 2 callers
Function
loadValidations
(cwd)
hooks/validation/validation-mcp.mjs:22
↓ 2 callers
Function
normalizeList
* Normalizes a list by removing duplicates and empty values * @param {Array} list - List to normalize * @returns {Array} Normalized list
hooks/pre-tool-use/agent-system/frontmatter-parser.cjs:25
↓ 2 callers
Function
parseFrontmatter
(content)
hooks/lifecycle/history-mcp.mjs:89
↓ 2 callers
Function
processTranscriptRecord
(line)
hooks/pre-tool-use/agent-system/agent-script.mjs:387
↓ 2 callers
Function
resolveAgentFilePath
* Resolves the file path for an agent definition * @param {string} baseDir - Base directory to search in * @param {string} agentType - Agent type to
hooks/pre-tool-use/agent-system/agent-file-resolver.cjs:10
↓ 2 callers
Function
resolveCandidate
()
hooks/pre-tool-use/agent-system/agent-script.mjs:463
↓ 2 callers
Function
runAllObservers
* Main registry function - runs all observers in parallel
hooks/user-prompt-observers/observer-registry.js:202
↓ 2 callers
Function
saveValidations
(cwd, validations)
hooks/validation/validation-mcp.mjs:35
↓ 2 callers
Function
sessionMarkerActive
()
hooks/pre-tool-use/agent-system/agent-script.mjs:434
↓ 2 callers
Function
toList
* Converts a value to a normalized list * @param {*} value - Value to convert * @returns {Array|null} List or null
hooks/pre-tool-use/agent-system/frontmatter-parser.cjs:55
↓ 2 callers
Function
todoKey
(todo)
hooks/validation/claude-md-validator.mjs:181
↓ 2 callers
Function
updateAgentPid
* Updates the PID for an agent in the registry * @param {string} registryPath - Path to registry file * @param {string} agentId - Agent ID * @param
hooks/pre-tool-use/agent-system/registry-manager.cjs:70
↓ 2 callers
Function
writeInitialLog
* Writes the initial log file for an agent * @param {string} agentLogPath - Path to agent log file * @param {string} description - Task description
hooks/pre-tool-use/agent-system/spawn-helpers.cjs:55
↓ 1 callers
Function
annotate
* Interactive annotation session
hooks/state-tracking/benchmark/annotate.js:55
↓ 1 callers
Function
appendFullText
(message, block, index)
hooks/pre-tool-use/agent-system/agent-script.mjs:112
↓ 1 callers
Function
appendToArchive
(cwd, title, bullets, sessionId, gitCommit)
hooks/lifecycle/history-mcp.mjs:134
↓ 1 callers
Function
autoAnnotate
* Auto-annotate prompts using Claude Sonnet 4.5
hooks/state-tracking/benchmark/auto-annotate.js:26
↓ 1 callers
Function
backgroundWorker
* Background worker that processes all directories changed in the session
hooks/lifecycle/claude-md-manager.mjs:258
↓ 1 callers
Function
backgroundWorker
* Background worker that generates and saves the history entry
hooks/lifecycle/session-history-logger.mjs:60
↓ 1 callers
Function
backgroundWorker
* Background validation worker
hooks/validation/claude-md-validator.mjs:284
↓ 1 callers
Function
backgroundWorker
* Background validation worker (runs as detached process)
hooks/validation/feature-validator.mjs:365
↓ 1 callers
Function
buildConfusionMatrix
* Calculate confusion matrix
hooks/state-tracking/benchmark/run-benchmark.js:154
↓ 1 callers
Function
calculateEffortCorrelation
* Calculate effort correlation
hooks/state-tracking/benchmark/run-benchmark.js:219
↓ 1 callers
Function
calculateMetrics
* Calculate per-category metrics
hooks/state-tracking/benchmark/run-benchmark.js:178
↓ 1 callers
Function
calculateMetrics
* Calculate metrics
hooks/state-tracking/benchmark/compare-models.js:62
↓ 1 callers
Function
captureSessionInfo
(sessionId)
hooks/pre-tool-use/agent-system/agent-script.mjs:197
↓ 1 callers
Function
categorizePrompt
* Run activity tracker logic on a single prompt * This replicates the logic from activity-tracker.js
hooks/state-tracking/benchmark/run-benchmark.js:27
↓ 1 callers
Function
categorizeWithModel
* Categorize prompt with specific model
hooks/state-tracking/benchmark/compare-models.js:44
↓ 1 callers
Function
checkAgentPermissions
* Checks if the current agent has permission to spawn the subagent * @param {string|null} parentAgentId - Parent agent ID * @param {string} subagent
hooks/pre-tool-use/agent-interceptor.cjs:40
↓ 1 callers
Function
checkParallelExecution
(userPrompt)
hooks/user-prompt-observers/observer-registry.js:156
↓ 1 callers
Function
checkPromptImprovement
* Specialized observers (existing ones)
hooks/user-prompt-observers/observer-registry.js:115
↓ 1 callers
Function
check_anthropic_models
Check for outdated Anthropic model usage.
hooks/post-tool-use/code-quality-checker.py:34
↓ 1 callers
Function
check_any_type_usage
Check for 'any' type usage in TypeScript/JavaScript.
hooks/post-tool-use/code-quality-checker.py:76
↓ 1 callers
Function
check_fallback_patterns
Check for fallback and legacy patterns in code files only.
hooks/post-tool-use/code-quality-checker.py:52
↓ 1 callers
Function
check_openai_models
Check for outdated OpenAI model usage.
hooks/post-tool-use/code-quality-checker.py:8
↓ 1 callers
Function
cleanupRunnerScript
(agentId)
hooks/lifecycle/agent-cleanup.mjs:29
↓ 1 callers
Function
collectClaudeMdFiles
* Collects CLAUDE.md files from file directory up to cwd, then includes HOME
hooks/validation/claude-md-validator.mjs:10
↓ 1 callers
Function
createAgentRegistryEntry
* Creates a registry entry for an agent * @param {string} agentId - Unique agent identifier * @param {number} currentDepth - Current recursion depth
hooks/pre-tool-use/agent-system/registry-manager.cjs:41
↓ 1 callers
Function
create_error_fixing_prompt
Create a focused prompt for fixing errors in a specific file.
hooks/post-tool-use/typescript-error-fixer.py:150
↓ 1 callers
Function
detectTodoClosures
(toolInput)
hooks/validation/claude-md-validator.mjs:213
↓ 1 callers
Function
detect_style_from_prompt
Detect which output style to use based on prompt keywords.
hooks/user-prompt-submit/output-style-switcher.py:70
↓ 1 callers
Function
ensureArchiveHeader
(cwd)
hooks/lifecycle/history-mcp.mjs:60
↓ 1 callers
Function
ensureHistoryFile
(cwd)
hooks/lifecycle/history-mcp.mjs:32
↓ 1 callers
Function
expandAtNotation
(prompt, cwd)
hooks/state-tracking/activity-tracker.js:46
↓ 1 callers
Function
extractPromptsFromTranscript
* Extracts user prompts from transcript JSONL files * @param {string} transcriptPath - Path to transcript file * @returns {Array<{prompt: string, se
hooks/state-tracking/benchmark/sample-prompts.js:12
↓ 1 callers
Function
extractUpdateContent
(content, lastNotifiedLine = -1)
hooks/lifecycle/agent-monitor.mjs:97
↓ 1 callers
Function
findProjectDir
(startDir)
hooks/validation/feature-validator.mjs:478
↓ 1 callers
Function
find_package_json
Find the nearest package.json to determine project root.
hooks/post-tool-use/typescript-error-fixer.py:64
↓ 1 callers
Function
formatEntry
(title, bullets)
hooks/lifecycle/history-mcp.mjs:115
↓ 1 callers
Function
generateAgentId
* Generates a unique agent ID * @returns {string} Agent ID
hooks/pre-tool-use/agent-interceptor.cjs:73
next →
1–100 of 204, ranked by callers