Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/cwc-workshops
/ functions
Functions
761 in github.com/anthropics/cwc-workshops
⨍
Functions
761
◇
Types & classes
99
↓ 1 callers
Function
drainUntilIdle
( client: Anthropic, sessionId: string, options: { kickoff?: () => Promise<void>; onEvent?: (eve
research-desk/solutions/src/lib/sessions.ts:87
↓ 1 callers
Function
drainUntilIdle
( client: Anthropic, sessionId: string, options: { kickoff?: () => Promise<void>; onEvent?: (eve
research-desk/src/lib/sessions.ts:93
↓ 1 callers
Method
ensureHeadSession
The head conversation is durable: reuse the saved session when it is still alive.
research-desk/solutions/src/lib/orchestrator.ts:45
↓ 1 callers
Function
ensure_env
(c: anthropic.Anthropic, name: str, ids: dict)
agent-decomposition/agents/cma.py:130
↓ 1 callers
Function
escape
(value: string | number | boolean)
research-desk/src/lib/scorecard.ts:137
↓ 1 callers
Function
exact_match
(result, spec)
agent-decomposition/evals/graders.py:96
↓ 1 callers
Function
extractSlideTexts
(index: number, doc: unknown)
eval-driven-agent-development/src/parse-pptx.ts:264
↓ 1 callers
Method
final
(self)
agent-battle/harness/leaderboard.py:149
↓ 1 callers
Function
findContractRoot
(root: HTMLElement)
how-we-claude-code/phase-3-verify/src/verify/core/contract.ts:59
↓ 1 callers
Method
fromElement
(el: Element)
how-we-claude-code/phase-3-verify/src/verify/harness/recorder.ts:35
↓ 1 callers
Method
from_dict
(cls, d: dict)
agent-battle/harness/client.py:86
↓ 1 callers
Function
genId
()
how-we-claude-code/phase-3-verify/src/features/todos/useTodos.ts:8
↓ 1 callers
Function
gen_products
(n: int = 250)
agent-decomposition/data/seed.py:131
↓ 1 callers
Function
gen_sales_history
(products: list[dict], days: int = 90)
agent-decomposition/data/seed.py:183
↓ 1 callers
Function
gen_stock_levels
SKU × warehouse × day. ~250 × 3 × 90 ≈ 67k rows.
agent-decomposition/data/seed.py:207
↓ 1 callers
Function
gen_supplier_catalog
(products: list[dict], suppliers: list[dict])
agent-decomposition/data/seed.py:169
↓ 1 callers
Function
gen_suppliers
()
agent-decomposition/data/seed.py:157
↓ 1 callers
Method
getNarrations
({ since = 0, limit = 200 } = {})
agent-battle/event/lib/board.mjs:289
↓ 1 callers
Function
getUnit
(id: string)
how-we-claude-code/phase-3-verify/src/verify/core/registry.ts:32
↓ 1 callers
Function
get_or_create
Idempotent: one agent + environment per participant, reused across runs. IDs and a hash of the spec are cached in .agent_cache.json so re-runs
agent-battle/my_agent.py:378
↓ 1 callers
Function
get_supplier_catalog
(sku: str)
agent-decomposition/agents/sandbox_tools.py:127
↓ 1 callers
Function
get_supplier_catalog
(sku: str)
agent-decomposition/agents/before/tools.py:81
↓ 1 callers
Function
grade
(task: dict, result)
agent-decomposition/evals/graders.py:247
↓ 1 callers
Method
grade
Compute the metric. String results are printed verbatim; numbers go through `format`.
eval-driven-agent-development/src/graders/types.ts:24
↓ 1 callers
Function
gradeTask
( client: Anthropic, task: Task, pinBaseline: boolean, )
eval-driven-agent-development/src/eval-runner.ts:72
↓ 1 callers
Function
handle
(name, args)
ship-your-first-managed-agent/e2e.py:41
↓ 1 callers
Method
handleBacklog
(client: Anthropic, headSessionId: string)
research-desk/solutions/src/lib/orchestrator.ts:132
↓ 1 callers
Method
handleBacklog
(client: Anthropic, headSessionId: string)
research-desk/src/lib/orchestrator.ts:132
↓ 1 callers
Function
handle_tool
(name: str, args: dict)
ship-your-first-managed-agent/agent_complete.py:70
↓ 1 callers
Function
healthy_request
A single normal request: start + end log lines.
ship-your-first-managed-agent/data/generate_log.py:54
↓ 1 callers
Function
heat
* Map a value within [min, max] to a red→yellow→green RGB color. `good: "low"` * flips the spectrum so smaller is greener.
eval-driven-agent-development/src/eval-runner.ts:138
↓ 1 callers
Function
inject_style
()
ship-your-first-managed-agent/ui.py:10
↓ 1 callers
Function
inputLabel
(el: HTMLInputElement, root: HTMLElement)
how-we-claude-code/phase-3-verify/src/verify/verifiers/a11y.ts:100
↓ 1 callers
Function
installVerifyHandle
()
how-we-claude-code/phase-3-verify/src/verify/harness/handle.ts:26
↓ 1 callers
Method
isConnected
(key)
agent-battle/event/lib/relay.mjs:213
↓ 1 callers
Function
isHelloProvisioned
(config: DeskConfig)
research-desk/src/lib/config.ts:77
↓ 1 callers
Method
isKnown
(key)
agent-battle/event/lib/relay.mjs:221
↓ 1 callers
Function
isPrivateOrLocalAddr
(addr)
agent-battle/event/server.mjs:122
↓ 1 callers
Function
isProvisioned
(config: DeskConfig)
research-desk/src/lib/config.ts:70
↓ 1 callers
Function
iso
(ts: datetime)
ship-your-first-managed-agent/data/generate_log.py:44
↓ 1 callers
Function
judgeSlideImage
( client: Anthropic, index: number, jpgPath: string, )
eval-driven-agent-development/src/graders/judge/judge.ts:61
↓ 1 callers
Function
jumpTo
Jump to a specific step. Pauses (so it mounts, verifies, and holds).
how-we-claude-code/phase-3-verify/src/verify/harness/ReplayPage.tsx:239
↓ 1 callers
Function
keysEqual
(a, b)
agent-battle/event/lib/relay.mjs:35
↓ 1 callers
Method
leaderboard
()
agent-battle/event/lib/board.mjs:294
↓ 1 callers
Function
listDeploymentRuns
(query: Record<string, string> = {})
research-desk/src/lib/preview.ts:53
↓ 1 callers
Function
listDeployments
(query: Record<string, string> = {})
research-desk/src/lib/preview.ts:49
↓ 1 callers
Function
listMemories
(prefix = "/")
research-desk/src/lib/memory.ts:29
↓ 1 callers
Function
listVersions
(limit = 50)
research-desk/src/lib/memory.ts:61
↓ 1 callers
Function
llm_judge
(result, spec)
agent-decomposition/evals/graders.py:216
↓ 1 callers
Function
load
()
production-ready-agent/solution/components/SessionRail.tsx:87
↓ 1 callers
Function
load
()
production-ready-agent/solution/components/ChatPanel.tsx:85
↓ 1 callers
Function
load
()
production-ready-agent/starter/components/SessionRail.tsx:87
↓ 1 callers
Function
loadDeskConfigOrThrow
()
research-desk/src/lib/analysis.ts:202
↓ 1 callers
Function
load_tasks
(task_filter: str | None = None)
agent-decomposition/evals/run.py:29
↓ 1 callers
Function
lookup
(query)
agent-battle/event/lib/wiki.mjs:90
↓ 1 callers
Function
main
()
ship-your-first-managed-agent/data/generate_log.py:146
↓ 1 callers
Function
main
()
agent-decomposition/data/seed.py:243
↓ 1 callers
Function
main
()
agent-decomposition/evals/run.py:144
↓ 1 callers
Function
main
()
agent-decomposition/agents/cli.py:8
↓ 1 callers
Function
main
()
agent-decomposition/agents/deploy_cli.py:6
↓ 1 callers
Function
main
()
agent-decomposition/agents/starter/deploy.py:7
↓ 1 callers
Function
main
()
research-desk/scripts/seed.ts:48
↓ 1 callers
Function
main
()
how-we-claude-code/phase-3-verify/scripts/record.ts:35
↓ 1 callers
Function
main
(dry_run=False, eval=False)
agent-battle/my_agent.py:552
↓ 1 callers
Function
main
()
agent-battle/harness/agent.py:439
↓ 1 callers
Function
main
()
agent-battle/harness/verify.py:92
↓ 1 callers
Function
main
()
agent-battle/harness/replay.py:167
↓ 1 callers
Function
makeRecords
(tickers: string[])
research-desk/solutions/src/lib/analysis.ts:189
↓ 1 callers
Function
maybe_report_cost
Report only on every Nth turn, for use inside agent loops.
agent-battle/harness/leaderboard.py:121
↓ 1 callers
Function
normalize
(text)
agent-battle/event/lib/moderation.mjs:33
↓ 1 callers
Function
numeric_tolerance
(result, spec)
agent-decomposition/evals/graders.py:115
↓ 1 callers
Function
onCreated
(s: SessionSummary)
production-ready-agent/solution/components/DealDesk.tsx:48
↓ 1 callers
Function
onCreated
(s: SessionSummary)
production-ready-agent/starter/components/DealDesk.tsx:48
↓ 1 callers
Method
openSession
(durationSeconds)
agent-battle/event/lib/board.mjs:151
↓ 1 callers
Function
parsePptx
(pptxPath: string)
eval-driven-agent-development/src/parse-pptx.ts:67
↓ 1 callers
Function
pickMime
()
how-we-claude-code/phase-3-verify/src/verify/harness/recorder.ts:177
↓ 1 callers
Function
play_task
Send Claude one turn at a time until the bot has `task` in its inventory. Counts only non-chat actions toward max_turns. Aborts if the same a
agent-battle/harness/agent.py:138
↓ 1 callers
Function
post_deploy_checkout_request
A checkout request after the bad deploy: N+1 queries, slow, maybe 500.
ship-your-first-managed-agent/data/generate_log.py:68
↓ 1 callers
Function
provisionDesk
(agentPrefix = "research-desk")
research-desk/src/lib/provision.ts:161
↓ 1 callers
Function
provisionHello
(agentPrefix = "research-desk")
research-desk/src/lib/provision.ts:116
↓ 1 callers
Function
ranked_mention
Check that target SKU appears in the first N body rows of the first markdown table.
agent-decomposition/evals/graders.py:190
↓ 1 callers
Function
readAllContracts
(root: HTMLElement)
how-we-claude-code/phase-3-verify/src/verify/core/contract.ts:46
↓ 1 callers
Function
readContract
(root: HTMLElement)
how-we-claude-code/phase-3-verify/src/verify/core/contract.ts:33
↓ 1 callers
Function
read_sink
(name: str, run_id: str | None = None)
agent-decomposition/agents/common.py:75
↓ 1 callers
Method
recordAchievement
({ participant, id, run_elapsed_ms })
agent-battle/event/lib/board.mjs:198
↓ 1 callers
Method
recordCost
({ participant, tokens, turns, diamonds = 0, run_id })
agent-battle/event/lib/board.mjs:230
↓ 1 callers
Method
recordNarration
({ participant, kind, text })
agent-battle/event/lib/board.mjs:263
↓ 1 callers
Function
ref_range
(agent: str)
agent-decomposition/evals/run.py:42
↓ 1 callers
Function
reflect
Ask Claude to rewrite its strategy notes after a task. Plain text reply, no tools — fast and cheap. On API failure, leave notes unchanged.
agent-battle/harness/agent.py:332
↓ 1 callers
Function
regex_present
(result, spec)
agent-decomposition/evals/graders.py:176
↓ 1 callers
Function
reject
(_req, res)
agent-battle/event/server.mjs:341
↓ 1 callers
Function
relTime
(iso: string)
production-ready-agent/solution/components/PipelineRail.tsx:92
↓ 1 callers
Function
relTime
(iso: string)
production-ready-agent/starter/components/PipelineRail.tsx:92
↓ 1 callers
Function
render_compare
(before: list[dict], after: list[dict], wall_s: float)
agent-decomposition/evals/run.py:118
↓ 1 callers
Function
render_single
(agent: str, results: list[dict], wall_s: float)
agent-decomposition/evals/run.py:84
↓ 1 callers
Function
render_state
Full first-turn render: run context + state + current task.
agent-battle/harness/prompts.py:144
↓ 1 callers
Function
render_state_delta
Compact subsequent-turn render: just current state + task line. No RunContext header — that's already in the conversation history. The goal i
agent-battle/harness/prompts.py:161
↓ 1 callers
Function
replay
(path: str, *, task_filter: Optional[str] = None, grep: Optional[str] = None)
agent-battle/harness/replay.py:78
↓ 1 callers
Function
reportDiamond
(n)
agent-battle/bot/bot.js:826
↓ 1 callers
Function
reportNarration
(kind, text)
agent-battle/bot/bot.js:830
← previous
next →
301–400 of 761, ranked by callers