Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atripati/ark
/ functions
Functions
715 in github.com/atripati/ark
⨍
Functions
715
◇
Types & classes
146
↓ 1 callers
Function
autoTestGo
(code string, dir string)
pkg/runtime/verify.go:521
↓ 1 callers
Method
broadenContext
(newPlan, oldPlan *ContextPlan)
pkg/context/engine.go:289
↓ 1 callers
Function
buildPrompt
(history []message)
pkg/runtime/agent.go:1054
↓ 1 callers
Function
buildTestArgs
buildTestArgs generates test arguments, using tempFileName for file path params.
pkg/runtime/verify.go:697
↓ 1 callers
Function
buildTestArgsDefault
buildTestArgsDefault generates default test arguments.
pkg/runtime/verify.go:710
↓ 1 callers
Method
checkDomain
(rawURL string)
pkg/tools/http.go:309
↓ 1 callers
Function
classifyAgentStep
(step int, isRetry bool, prevAction string)
pkg/runtime/agent.go:43
↓ 1 callers
Function
classifyTaskType
classifyTaskType determines the cognitive type of the incoming task. This drives effort allocation, model selection, and confidence calibration.
pkg/runtime/agent.go:57
↓ 1 callers
Function
cleanCodeResponse
cleanCodeResponse strips unnecessary content from code responses.
pkg/runtime/quality.go:220
↓ 1 callers
Function
cleanRankingResponse
(text string)
pkg/runtime/quality.go:273
↓ 1 callers
Function
cleanReasoningResponse
cleanReasoningResponse cleans up reasoning responses.
pkg/runtime/quality.go:279
↓ 1 callers
Function
cleanSummaryResponse
cleanSummaryResponse ensures summaries are concise.
pkg/runtime/quality.go:301
↓ 1 callers
Method
common_failures
Get common failure patterns for a specific tool.
ark-memory/ark_memory/experience.py:320
↓ 1 callers
Function
contains
(s, substr string)
pkg/cost/cost_test.go:303
↓ 1 callers
Method
context
Get recall results as a formatted context string. Ready to inject into an LLM prompt. Returns: A string like:
ark-memory/ark_memory/agent.py:155
↓ 1 callers
Method
count
Count memories in a namespace.
ark-memory/ark_memory/store.py:357
↓ 1 callers
Function
countIndent
(line string)
pkg/config/config.go:386
↓ 1 callers
Function
countInputTokens
(steps []StepCost)
pkg/cost/cost.go:321
↓ 1 callers
Function
countOutputTokens
(steps []StepCost)
pkg/cost/cost.go:329
↓ 1 callers
Method
decay_all
Run decay pass — remove memories that have decayed below threshold. Returns number of memories removed.
ark-memory/ark_memory/store.py:366
↓ 1 callers
Function
describeAction
(tool string)
cmd/ark/main.go:403
↓ 1 callers
Function
detectCodeLanguageFromContent
detectCodeLanguageFromContent guesses language from code content.
pkg/runtime/quality.go:588
↓ 1 callers
Function
detectLanguage
detectLanguage extracts a programming language name from a natural language query.
pkg/tools/github.go:725
↓ 1 callers
Method
effectiveContent
(block *ContextBlock)
pkg/context/manager.go:474
↓ 1 callers
Method
embed_batch
(self, texts: List[str])
ark-memory/ark_memory/embeddings.py:39
↓ 1 callers
Function
executeAndTest
Phase 4: Execute + Test
pkg/runtime/verify.go:344
↓ 1 callers
Method
executeCostOptimized
(context, task string, step int, stepType StepType)
pkg/router/router.go:192
↓ 1 callers
Function
executeGoFull
(code string)
pkg/runtime/verify.go:357
↓ 1 callers
Function
executeJavaScript
(code string)
pkg/runtime/verify.go:465
↓ 1 callers
Function
executePythonFull
(code string)
pkg/runtime/verify.go:424
↓ 1 callers
Method
executeQualityFirst
(context, task string, step int, stepType StepType)
pkg/router/router.go:178
↓ 1 callers
Method
executorForTier
(tier Tier)
pkg/router/router.go:411
↓ 1 callers
Method
explainChoice
explainChoice generates a human-readable reason for the routing decision.
pkg/router/router.go:259
↓ 1 callers
Function
extractOwner
extractOwner pulls the org/owner from a repo item for diversity checks.
pkg/runtime/agent.go:1375
↓ 1 callers
Function
extractParamsFromSchema
(schema string)
pkg/context/manager.go:548
↓ 1 callers
Function
extractTags
(parts ...string)
pkg/context/manager.go:562
↓ 1 callers
Function
filterByLanguage
(repos []map[string]interface{}, lang string)
pkg/tools/github.go:538
↓ 1 callers
Function
filterJunkRepos
(repos []map[string]interface{})
pkg/tools/github.go:565
↓ 1 callers
Method
findAlternative
findAlternative finds the best alternative model. Must be called with r.mu held.
pkg/governor/intelligence.go:164
↓ 1 callers
Function
findPython
()
pkg/runtime/verify.go:774
↓ 1 callers
Function
findSubstring
(s, sub string)
pkg/governor/governor_test.go:526
↓ 1 callers
Function
findSubstring
(s, sub string)
pkg/config/config_test.go:365
↓ 1 callers
Method
forget_all
Forget all memories in a namespace.
ark-memory/ark_memory/agent.py:151
↓ 1 callers
Function
formatRankedTools
(ranked []RankedTool)
pkg/context/engine.go:1007
↓ 1 callers
Function
generateTestSchema
(server, tool string)
pkg/context/engine_test.go:440
↓ 1 callers
Method
getOrCreate
(model string)
pkg/governor/registry.go:103
↓ 1 callers
Method
ingest_all
Ingest from all available Runtime files at once. Call this once at startup to bootstrap experience from existing data.
ark-memory/ark_memory/collector.py:332
↓ 1 callers
Function
isPrecisePrompt
(prompt string)
pkg/runtime/quality.go:96
↓ 1 callers
Function
isValidJSON
(s string)
pkg/governor/verifier.go:461
↓ 1 callers
Function
itoa
(i int)
pkg/context/engine_test.go:444
↓ 1 callers
Function
jitter
()
pkg/tools/http.go:363
↓ 1 callers
Method
loadInternal
(block *ContextBlock)
pkg/context/manager.go:488
↓ 1 callers
Function
looksLikeJSON
(s string)
pkg/governor/verifier.go:455
↓ 1 callers
Function
min
(a, b int)
pkg/tools/filesystem_test.go:212
↓ 1 callers
Function
min
(a, b int)
pkg/router/router_test.go:33
↓ 1 callers
Method
minModelCost
()
pkg/governor/registry.go:530
↓ 1 callers
Method
model_performance
Get performance stats for a model across tasks.
ark-memory/ark_memory/experience.py:348
↓ 1 callers
Function
newAnthropic
(model, apiKey string, maxTokens int)
pkg/models/providers.go:50
↓ 1 callers
Function
newOllama
(model, baseURL string)
pkg/models/providers.go:78
↓ 1 callers
Function
newOpenAI
(model, apiKey, baseURL string, maxTokens int)
pkg/models/providers.go:62
↓ 1 callers
Method
parseLine
(raw string, lineNum int)
pkg/config/config.go:137
↓ 1 callers
Function
parseParams
(s string)
pkg/runtime/agent.go:1130
↓ 1 callers
Function
parseRetryAfter
(header string)
pkg/tools/http.go:366
↓ 1 callers
Function
parseSearchResults
(raw string)
pkg/tools/github.go:515
↓ 1 callers
Method
persistPattern
(pattern string, entry *MemoryEntry)
pkg/context/engine.go:729
↓ 1 callers
Function
predictOutcome
(rt RankedTool)
pkg/context/engine.go:827
↓ 1 callers
Method
recall
Semantic recall — find memories most relevant to the query. Multi-signal ranking: - Semantic similarity (cosine) — 50% wei
ark-memory/ark_memory/store.py:112
↓ 1 callers
Method
recall_all
Recall across ALL namespaces for this agent. Single query, no per-namespace loop.
ark-memory/ark_memory/agent.py:129
↓ 1 callers
Method
recordTask
(result *TaskResult)
pkg/runtime/agent.go:237
↓ 1 callers
Function
resolveEnvString
(s string)
pkg/tools/custom.go:138
↓ 1 callers
Function
resolveEnvVars
(cfg *Config)
pkg/config/config.go:342
↓ 1 callers
Function
retryable
(statusCode int, err error)
pkg/models/providers.go:20
↓ 1 callers
Function
runAgent
(configPath, task string, allowWrite, dryRun bool)
cmd/ark/main.go:446
↓ 1 callers
Function
runBenchmark
()
cmd/ark/main.go:205
↓ 1 callers
Function
runDemo
()
cmd/ark/main.go:419
↓ 1 callers
Function
runDemoLearn
()
cmd/ark/main.go:826
↓ 1 callers
Function
runInit
()
cmd/ark/main.go:126
↓ 1 callers
Function
sanitizeOutput
(s string)
pkg/tools/http.go:328
↓ 1 callers
Function
searchString
(s, sub string)
pkg/cost/cost_test.go:307
↓ 1 callers
Method
selectTier
(stepType StepType)
pkg/router/router.go:232
↓ 1 callers
Function
simplifyIssue
(raw string)
pkg/tools/github.go:936
↓ 1 callers
Function
simplifyIssueList
(raw string)
pkg/tools/github.go:889
↓ 1 callers
Function
simplifyNewsResults
(raw string)
pkg/tools/websearch.go:187
↓ 1 callers
Function
simplifyPRList
(raw string)
pkg/tools/github.go:954
↓ 1 callers
Function
simplifyRepo
(raw string)
pkg/tools/github.go:864
↓ 1 callers
Function
simplifyUser
(raw string)
pkg/tools/github.go:989
↓ 1 callers
Function
simplifyWebResults
(raw string)
pkg/tools/websearch.go:133
↓ 1 callers
Function
stripNoiseWords
stripNoiseWords removes common filler words from a query, keeping only meaningful domain keywords. GitHub search works best with focused terms.
pkg/tools/github.go:633
↓ 1 callers
Function
stripTestInstructions
(prompt string)
pkg/runtime/quality.go:477
↓ 1 callers
Method
swapFailedTool
(newPlan, oldPlan *ContextPlan, failedTools []string)
pkg/context/engine.go:315
↓ 1 callers
Method
toolNames
toolNames returns sorted list of registered tool names (for error messages).
pkg/tools/http.go:146
↓ 1 callers
Function
trimToolOutput
trimToolOutput reduces raw tool output to essential content to save tokens. JSON arrays get truncated to maxItems. Long strings get cut. This alone ca
pkg/runtime/agent.go:1309
↓ 1 callers
Function
truncateStr
(s string, maxLen int)
pkg/runtime/agent.go:333
↓ 1 callers
Function
unquote
(s string)
pkg/config/config.go:401
↓ 1 callers
Method
updateCapabilityScores
(p *ModelProfile, obs Observation)
pkg/governor/registry.go:187
↓ 1 callers
Method
updateStepRecord
(p *ModelProfile, obs Observation)
pkg/governor/registry.go:243
↓ 1 callers
Method
updateToolRecord
(p *ModelProfile, obs Observation)
pkg/governor/registry.go:211
↓ 1 callers
Method
upgradeToFullSchema
(newPlan, oldPlan *ContextPlan)
pkg/context/engine.go:264
↓ 1 callers
Function
validateOutput
(result string)
pkg/tools/http.go:336
↓ 1 callers
Method
worker
()
pkg/store/store.go:118
← previous
next →
301–400 of 715, ranked by callers