Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SethGammon/Citadel
/ functions
Functions
1,589 in github.com/SethGammon/Citadel
⨍
Functions
1,589
◇
Types & classes
2
↓ 1 callers
Function
activeLease
(lease, now = new Date())
core/deploy-steward/steward.js:271
↓ 1 callers
Function
agentReport
(limit)
scripts/telemetry-report.cjs:26
↓ 1 callers
Function
agentToToml
(fm, fullContent)
scripts/codex-compat.js:485
↓ 1 callers
Function
alreadyFiredForSession
(sessionId)
hooks_src/session-end.js:46
↓ 1 callers
Function
annotateCurrentHeads
(projectRoot, reports, options = {})
scripts/stack-plan.js:142
↓ 1 callers
Function
annotateOperatorArtifacts
(snapshot)
scripts/dashboard.js:461
↓ 1 callers
Function
appendCompletionRecord
(filePath, details = {})
core/campaigns/update-campaign.js:29
↓ 1 callers
Function
appendJsonl
(filePath, entry)
core/telemetry/io.js:11
↓ 1 callers
Function
appendJsonl
(filePath, value)
core/codex/native-integrations.js:40
↓ 1 callers
Function
appendRebalanceSignal
* Append an idle signal for the fleet lead. Append-only JSONL, one line per * idle event. Lines without teammate identity are diagnostic only; the le
hooks_src/teammate-idle.js:42
↓ 1 callers
Function
approvalBoundaryFor
(action)
scripts/next-action.js:131
↓ 1 callers
Function
approvalRequestFor
(action)
scripts/next-action.js:205
↓ 1 callers
Function
approvalRiskFor
(action)
scripts/next-action.js:144
↓ 1 callers
Function
arg
(name, fallback = null)
scripts/codex-plugin-smoke.js:8
↓ 1 callers
Function
arg
(name, fallback = null)
scripts/install.js:8
↓ 1 callers
Function
arg
(name, fallback = null)
scripts/codex-readiness-check.js:7
↓ 1 callers
Function
assertHooksFired
* Assert hooks fired by comparing telemetry before/after. * Returns array of hook assertion strings that failed, or empty if all pass.
scripts/skill-bench.js:597
↓ 1 callers
Function
attachIntegrity
(record, options = {})
core/telemetry/integrity.js:75
↓ 1 callers
Function
autoLayout
(spec)
scripts/grid.cjs:156
↓ 1 callers
Function
benchmarkMarkdown
(args)
scripts/skill-scaffold.js:100
↓ 1 callers
Function
benchmarkStatus
(benchDir)
core/skills/catalog.js:88
↓ 1 callers
Function
bestCost
* Get the best cost for a session-cost event. * Priority: override_cost > real_cost > estimated_cost
scripts/telemetry-stats.js:146
↓ 1 callers
Function
bootstrapFromAgentsMd
(projectRoot)
scripts/test-agents-md-only-steward.js:32
↓ 1 callers
Function
boundaryFor
(route, dirty)
scripts/route-preview.js:369
↓ 1 callers
Function
boundaryForDecision
(decision)
scripts/operator-console.js:116
↓ 1 callers
Function
boundaryForStack
(stack)
scripts/operator-console.js:148
↓ 1 callers
Method
box
(x, y, w, h, label, style = 'single')
scripts/grid.cjs:63
↓ 1 callers
Function
buildArchiveFile
(source, files, exportedAt)
scripts/unharness.js:49
↓ 1 callers
Function
buildBlocks
(projectRoot, options = {})
core/memory/blocks.js:103
↓ 1 callers
Function
buildCriteria
(proof)
scripts/usefulness-trial.js:67
↓ 1 callers
Function
buildGraph
(filesMap, rootDir)
core/map/index.js:328
↓ 1 callers
Function
buildIncrementalArgs
* Incremental flags when the project has a tsconfig.json. The build info cache * lives under .planning/cache/ so repeat checks stay fast.
hooks_src/post-edit.js:396
↓ 1 callers
Function
buildManualCandidates
(options, now)
core/deploy-steward/steward.js:752
↓ 1 callers
Function
buildNextAction
(status, ordered)
scripts/stack-plan.js:180
↓ 1 callers
Function
buildPayload
(metrics, projectName)
scripts/telemetry-otlp-export.js:273
↓ 1 callers
Function
buildPrompt
(candidates)
scripts/noop-judge.js:83
↓ 1 callers
Function
buildRepairItems
(snapshot)
scripts/dashboard.js:1000
↓ 1 callers
Function
buildReport
(events)
scripts/permission-audit.js:106
↓ 1 callers
Function
buildStackApprovalCapsule
(projectRoot, stack)
scripts/stack-plan.js:247
↓ 1 callers
Function
buildTargets
(spec)
scripts/generate-project-guidance.js:32
↓ 1 callers
Function
bumpLastUpdated
(content)
scripts/noop-apply.js:63
↓ 1 callers
Function
canonicalize
* Recursively sort object keys for deterministic JSON serialization. * Arrays are preserved in order; object keys are sorted alphabetically. * Primi
hooks_src/harness-health-util.js:31
↓ 1 callers
Function
categorizeFiles
(files)
scripts/watch.js:325
↓ 1 callers
Function
checkCampaignBudget
* Check if the active campaign has a budget and whether we're near it. * Reads budget from campaign frontmatter, cumulative cost from session-costs.j
hooks_src/cost-tracker.js:109
↓ 1 callers
Function
checkCampaignScope
* Check whether the file being written falls within the active campaign's claimed scope. * Warns (exit 0 with message) for out-of-scope writes. * Ha
hooks_src/protect-files.js:225
↓ 1 callers
Function
checkDaemonState
* Daemon bridge: if a daemon is running, notify the user. * * Interactive sessions (user at the keyboard) get a notification only -- * no tokens sp
hooks_src/init-project.js:291
↓ 1 callers
Function
checkDependencies
(worktreePath, profile)
core/worktree/readiness.js:128
↓ 1 callers
Function
checkEnvFiles
(projectRoot, worktreePath, profile)
core/worktree/readiness.js:166
↓ 1 callers
Function
checkHealthCommands
(profile)
core/worktree/readiness.js:270
↓ 1 callers
Function
checkLayerViolation
(layer, importAlias)
hooks_src/post-edit.js:227
↓ 1 callers
Function
checkOrient
(dashboard)
scripts/operating-proof.js:135
↓ 1 callers
Function
checkOverlap
(scope)
scripts/coordination.js:76
↓ 1 callers
Function
checkPorts
(profile)
core/worktree/readiness.js:238
↓ 1 callers
Function
checkProject
(projectRoot)
scripts/generate-routing.js:214
↓ 1 callers
Function
checkProject
(projectRoot)
scripts/generate-doc-surfaces.js:140
↓ 1 callers
Function
checkReport
(projectRoot)
scripts/operating-proof.js:201
↓ 1 callers
Function
checkRoute
(projectRoot, routeRequest)
scripts/operating-proof.js:157
↓ 1 callers
Function
checkSetup
(projectRoot, dashboard)
scripts/operating-proof.js:101
↓ 1 callers
Function
checkStaleCommandResult
* Watchdog: check for stale command results from a previous session. * * If last-command-result.json exists and is older than 10 minutes, * the pre
hooks_src/init-project.js:216
↓ 1 callers
Function
checkStatus
(checks)
scripts/operating-proof.js:95
↓ 1 callers
Function
checkVerify
(projectRoot, options = {})
scripts/operating-proof.js:173
↓ 1 callers
Function
chooseNextAction
(snapshot)
scripts/dashboard.js:1141
↓ 1 callers
Function
claim
(id, scope, type, desc)
scripts/coordination.js:57
↓ 1 callers
Function
cleanup
(dir)
scripts/integration-test.js:55
↓ 1 callers
Function
cleanup
(dir)
scripts/test-organize-enforce.js:40
↓ 1 callers
Function
cleanupDynamicDirectories
* Clean up expired dynamic directories based on the organization manifest. * Only runs cleanup for 'auto' policy and 'session'-scoped directories. *
hooks_src/session-end.js:511
↓ 1 callers
Function
cleanupScopeClaims
(worktreeName)
hooks_src/worktree-remove.js:126
↓ 1 callers
Function
codexAutomationLoops
(projectRoot)
core/loops/registry.js:129
↓ 1 callers
Function
collect
()
scripts/dashboard-server.js:111
↓ 1 callers
Function
collect
(args)
scripts/fleet-steward.js:200
↓ 1 callers
Function
collectJsonlFiles
(projectRoot)
core/telemetry/integrity.js:195
↓ 1 callers
Function
collectProof
(workDir, owner, repoName, repoUrl, transcript, args)
scripts/live-github-steward-proof.js:250
↓ 1 callers
Function
collectWaveSignals
* Read the last 20 hook-timing entries and surface anything from the * last 30 seconds that Claude should know about. * * Surfaces: * - Typechec
hooks_src/post-tool-batch.js:86
↓ 1 callers
Function
compactConsoleSummary
(consoleState)
scripts/operator-console.js:213
↓ 1 callers
Function
compactTimestamp
(value)
scripts/next-action.js:121
↓ 1 callers
Function
completeBuildAndVerify
(campaignPath)
scripts/test-operator-journey.js:24
↓ 1 callers
Function
completionRecordSummary
(content)
scripts/dashboard.js:202
↓ 1 callers
Function
compressionReport
()
scripts/telemetry-report.cjs:34
↓ 1 callers
Function
computeCost
(tokens)
runtimes/claude-code/adapters/session-tokens.js:181
↓ 1 callers
Function
connectSSE
()
dashboard/app.js:509
↓ 1 callers
Function
consumeOneTimeAllow
* Check and consume a one-time approval. Returns true if a fresh marker exists. * The marker is deleted after reading (single-use). * @param {string
hooks_src/harness-health-util.js:586
↓ 1 callers
Function
contractFromArgs
()
scripts/loops.js:108
↓ 1 callers
Function
contradictionIssues
(blockRecord)
core/memory/blocks.js:286
↓ 1 callers
Function
copyDirIfMissing
* Copy files from src to dest, but only if they don't already exist. * Preserves user customizations to templates.
hooks_src/init-project.js:85
↓ 1 callers
Function
copyDirRecursive
(src, dest)
hooks_src/init-project.js:68
↓ 1 callers
Function
copySkillTree
(sourceDir, targetDir)
scripts/codex-compat.js:557
↓ 1 callers
Function
countActionableJsonl
(filePath, actionableStatuses = ['needs-review', 'pending'])
scripts/dashboard.js:104
↓ 1 callers
Function
countAnchors
(text)
core/skills/noop-detect.js:129
↓ 1 callers
Function
countDecisionPoints
(source)
hooks_src/complexity-check.js:47
↓ 1 callers
Function
countFiles
(dir)
scripts/unharness.js:115
↓ 1 callers
Function
countGeneratedEntries
(hooks)
core/hooks/install.js:52
↓ 1 callers
Function
countHooksInConfig
(config)
scripts/dashboard.js:666
↓ 1 callers
Function
countJsonlLines
(filePath)
scripts/dashboard.js:98
↓ 1 callers
Function
countPendingIntakeItems
(intakeDir)
scripts/dashboard.js:638
↓ 1 callers
Function
countPreservedHooks
(hooks, preserveMarker)
core/hooks/install.js:56
↓ 1 callers
Function
countSkills
()
scripts/codex-compat.js:334
↓ 1 callers
Function
countTableAgents
(content)
scripts/dashboard.js:383
↓ 1 callers
Function
createAgentRunEntry
(args, options = {})
core/telemetry/log.js:19
↓ 1 callers
Function
createEventId
(record)
core/telemetry/integrity.js:85
↓ 1 callers
Function
createFleetExecutionPlan
(options = {})
core/codex/native-integrations.js:481
← previous
next →
701–800 of 1,589, ranked by callers