Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ai-that-works/ai-that-works
/ functions
Functions
2,155 in github.com/ai-that-works/ai-that-works
⨍
Functions
2,155
◇
Types & classes
564
↳
Endpoints
48
↓ 514 callers
Method
get
(id: string)
2025-06-03-humans-as-tools-async/src/state.ts:9
↓ 313 callers
Method
error
Log error message - for serious issues that affect functionality.
2025-09-23-evals-for-classification/src/shared/logger.py:43
↓ 168 callers
Function
log
(msg: string)
2026-01-13-applying-12-factor-principles-to-coding-agent-sdks/src/utils.ts:20
↓ 112 callers
Method
info
Log info message - for successful operations and progress updates.
2025-09-23-evals-for-classification/src/shared/logger.py:35
↓ 106 callers
Method
exists
* Check if an order exists * @param id - Order ID * @returns true if order exists, false otherwise
2026-01-13-applying-12-factor-principles-to-coding-agent-sdks/src/store/order-store.ts:170
↓ 87 callers
Method
split
Return [(segment_metadata, talk_text), ...] in order. Each talk's text runs from its start_anchor to the start of the next talk's anc
2026-04-11-unconf-sf/src/talk_segmenter/transcript_splitter.py:13
↓ 87 callers
Method
write
Write one .txt per talk plus a segments.json index. Returns the list of .txt paths written.
2026-04-11-unconf-sf/src/talk_segmenter/segment_writer.py:21
↓ 86 callers
Function
open
(ws)
2025-11-05-event-driven-agents/demo/src/server.ts:74
↓ 75 callers
Method
update
(id: string, thread: Thread)
2025-06-03-humans-as-tools-async/src/state.ts:10
↓ 70 callers
Method
create
(thread: Thread)
2025-06-03-humans-as-tools-async/src/state.ts:8
↓ 60 callers
Method
set
(self, data: Dict)
2025-07-01-ai-content-pipeline-2/backend/main.py:97
↓ 57 callers
Function
fetch
(req, server)
2025-11-05-event-driven-agents/demo/src/server.ts:54
↓ 47 callers
Method
warning
Log warning message - for recoverable issues and fallbacks.
2025-09-23-evals-for-classification/src/shared/logger.py:39
↓ 42 callers
Function
cn
(...inputs: ClassValue[])
2025-07-01-ai-content-pipeline-2/frontend/src/lib/utils.ts:4
↓ 40 callers
Function
cn
(...inputs: ClassValue[])
2025-06-24-ai-content-pipeline/frontend/src/lib/utils.ts:4
↓ 36 callers
Method
close
()
2025-04-07-reasoning-models-vs-prompts/src/lib/neo4j.ts:27
↓ 34 callers
Method
screenshot
Take a screenshot for debugging.
2026-02-17-automating-aitw/src/riverside/riverside_agent.py:79
↓ 33 callers
Method
read
* Read an order by ID * @param id - Order ID * @returns The order if found, undefined otherwise
2026-01-13-applying-12-factor-principles-to-coding-agent-sdks/src/store/order-store.ts:63
↓ 32 callers
Method
count
* Get the total count of orders * @returns Total number of orders in the store
2026-01-13-applying-12-factor-principles-to-coding-agent-sdks/src/store/order-store.ts:150
↓ 31 callers
Function
cn
(...inputs: ClassValue[])
2026-04-14-agentic-coding-for-frontend-apps/03-wired-vs-pure/src/lib/utils.ts:4
↓ 30 callers
Method
debug
Log debug message - for detailed troubleshooting (use sparingly).
2025-09-23-evals-for-classification/src/shared/logger.py:47
↓ 30 callers
Method
load
* Load state from JSON file * If file doesn't exist or is invalid, starts with empty state * @returns Number of orders loaded
2026-01-13-applying-12-factor-principles-to-coding-agent-sdks/src/store/order-store.ts:199
↓ 29 callers
Function
assert
(condition: boolean, message: string)
2026-01-13-applying-12-factor-principles-to-coding-agent-sdks/src/store/order-store.test.ts:11
↓ 28 callers
Method
delete
* Delete an order by ID * @param id - Order ID * @returns true if deleted, false if not found
2026-01-13-applying-12-factor-principles-to-coding-agent-sdks/src/store/order-store.ts:105
↓ 28 callers
Method
list
* List all orders with optional filtering * @param filter - Optional filter criteria * @returns Array of orders matching the filter
2026-01-13-applying-12-factor-principles-to-coding-agent-sdks/src/store/order-store.ts:118
↓ 28 callers
Method
parse
(self, json_schema: Dict[str, Any])
2025-05-27-mcp-with-10000-tools/parse_json_schema.py:88
↓ 26 callers
Function
getSession
()
2025-10-28-ralph-wiggum-coding-agent-power-tools/webapp/src/lib/auth-server.ts:79
↓ 24 callers
Function
cn
(...inputs: ClassValue[])
2025-09-30-dyanmic-schemas/frontend/lib/utils.ts:4
↓ 24 callers
Method
success
Log success message - for completed operations.
2025-09-23-evals-for-classification/src/shared/logger.py:51
↓ 21 callers
Method
emit
(self, event_type: str, message: str)
2025-08-19-interruptible-agents/runtime.py:39
↓ 21 callers
Function
waitForCondition
( ref: SubscriptionRef.SubscriptionRef<T>, condition: (state: T) => boolean, timeoutMs: number = 1000 )
2025-11-05-event-driven-agents/demo/src/__tests__/test-helpers.ts:11
↓ 20 callers
Function
createActivityLog
( input: CreateActivityLogInput, )
2025-10-28-ralph-wiggum-coding-agent-power-tools/webapp/src/lib/activity-log-server.ts:39
↓ 19 callers
Method
run
(self)
2025-08-19-interruptible-agents/runtime.py:85
↓ 15 callers
Method
get_video
Get video by ID
2025-07-01-ai-content-pipeline-2/backend/database.py:63
↓ 15 callers
Method
get_video
Get video by ID
2025-06-24-ai-content-pipeline/backend/database.py:56
↓ 15 callers
Method
run
Complete workflow: login and schedule a session. Args: session: Session details to schedule. Returns:
2026-02-17-automating-aitw/src/riverside/riverside_agent.py:948
↓ 14 callers
Function
printEvent
(msg: SDKMessage)
2026-01-13-applying-12-factor-principles-to-coding-agent-sdks/src/utils.ts:29
↓ 14 callers
Function
testLayer
(...services: Services)
2025-11-05-event-driven-agents/demo/src/__tests__/test-utils.ts:44
↓ 13 callers
Method
update_video
Update video fields
2025-06-24-ai-content-pipeline/backend/database.py:81
↓ 12 callers
Method
save
* Save current state to JSON file * @returns true if saved successfully, false otherwise
2026-01-13-applying-12-factor-principles-to-coding-agent-sdks/src/store/order-store.ts:178
↓ 12 callers
Method
update_video
Update video fields
2025-07-01-ai-content-pipeline-2/backend/database.py:88
↓ 11 callers
Function
cn
(...inputs: ClassValue[])
2026-04-14-agentic-coding-for-frontend-apps/02-storybook-riptide/src/lib/utils.ts:4
↓ 11 callers
Function
createNotification
( data: CreateNotificationInput, )
2025-10-28-ralph-wiggum-coding-agent-power-tools/webapp/src/lib/notifications-server.ts:30
↓ 11 callers
Function
requireAuth
()
2025-10-28-ralph-wiggum-coding-agent-power-tools/webapp/src/app/actions/todos.ts:75
↓ 11 callers
Method
start
(self, convo_id: str, query: str)
2025-08-19-interruptible-agents/runtime.py:197
↓ 10 callers
Function
agentLoop
(thread: Thread)
2025-05-17-workshop-sf-twelve-factor-agents/agents-workshop/11-humanlayer-approval/src/agent.ts:84
↓ 10 callers
Function
getNotificationRecipients
( listId: string | null, excludeUserId: string, )
2025-10-28-ralph-wiggum-coding-agent-power-tools/webapp/src/app/actions/todos.ts:159
↓ 9 callers
Function
display_text_with_llm_detection
Display text with optional LLM pattern highlighting and statistics
2025-07-29-eval-many-models-same-prompt/streamlit_app.py:136
↓ 9 callers
Function
handleResponse
(response: Response)
2025-07-01-ai-content-pipeline-2/frontend/src/lib/apiClient.ts:19
↓ 9 callers
Method
load_categories
Load categories from configured source. Returns: The categories.
2025-09-23-evals-for-classification/src/data/category_loader.py:19
↓ 9 callers
Function
requireAuth
()
2025-10-28-ralph-wiggum-coding-agent-power-tools/webapp/src/app/actions/lists.ts:26
↓ 8 callers
Function
agentLoop
(thread: Thread)
2025-04-22-twelve-factor-agents/step-by-step/walkthrough/01-agent.ts:27
↓ 8 callers
Method
embed_category
Embed a category with vector store. If the category is already in the vector store, return the cached embedding. If the category is n
2025-09-23-evals-for-classification/src/classification/embeddings.py:52
↓ 8 callers
Function
generateId
()
2025-11-05-event-driven-agents/demo/src/events.ts:68
↓ 8 callers
Method
has_category
Check if a category exists in the vector store. Args: category_path: The category path to check. Returns: Tr
2025-09-23-evals-for-classification/src/classification/vector_store.py:191
↓ 8 callers
Method
narrow
Use embedding first to get 10 candidates, then LLM to refine to 3. Args: text: The text to narrow categories based on.
2025-09-23-evals-for-classification/src/classification/narrowing.py:217
↓ 8 callers
Function
subsection
(title: string)
2026-01-13-applying-12-factor-principles-to-coding-agent-sdks/src/demo.ts:53
↓ 8 callers
Method
url
Returns the full YouTube URL for the video.
2026-02-17-automating-aitw/src/youtube/youtube_client.py:23
↓ 7 callers
Method
_get_categories
Get categories. Returns: The categories.
2025-09-23-evals-for-classification/src/classification/pipeline.py:49
↓ 7 callers
Method
compute_similarity
Compute cosine similarity between embeddings. Args: embedding1: The first embedding. embedding2: The second embedding
2025-09-23-evals-for-classification/src/classification/embeddings.py:82
↓ 7 callers
Method
embed_text
Embed a single text. Args: text: The text to embed. Returns: The embedding of the text.
2025-09-23-evals-for-classification/src/classification/embeddings.py:33
↓ 7 callers
Function
execAsync
( cmd: string, opts?: Parameters<typeof exec>[1], )
2026-02-10-agentic-backpressure-deep-dive/03-child-process-exec.test.ts:26
↓ 7 callers
Function
formatDate
( dateString: string | undefined, options?: Intl.DateTimeFormatOptions, )
2025-07-01-ai-content-pipeline-2/frontend/src/lib/utils.ts:22
↓ 7 callers
Function
formatDate
(dateString: string | undefined, options?: Intl.DateTimeFormatOptions)
2025-06-24-ai-content-pipeline/frontend/src/lib/utils.ts:22
↓ 7 callers
Function
getResend
()
2025-10-28-ralph-wiggum-coding-agent-power-tools/webapp/src/lib/email-notifications.ts:8
↓ 7 callers
Function
handleResponse
(response: Response)
2025-06-24-ai-content-pipeline/frontend/src/lib/apiClient.ts:15
↓ 7 callers
Function
registerService
(metadata: ServiceMetadata)
2025-11-05-event-driven-agents/demo/src/visualizer/registry.ts:38
↓ 7 callers
Function
sendEvent
(event: string)
2025-04-07-reasoning-models-vs-prompts/src/actions/chat.ts:24
↓ 7 callers
Function
success
(message: string)
2026-01-13-applying-12-factor-principles-to-coding-agent-sdks/src/demo.ts:57
↓ 6 callers
Function
batchUpdateTodos
( todoIds: string[], updates: UpdateTodoInput, )
2025-10-28-ralph-wiggum-coding-agent-power-tools/webapp/src/app/actions/todos.ts:654
↓ 6 callers
Function
buildNotificationSectionHtml
( type: NotificationType, notifications: Notification[], )
2025-10-28-ralph-wiggum-coding-agent-power-tools/webapp/src/lib/email-digests.ts:103
↓ 6 callers
Function
buildNotificationSectionText
( type: NotificationType, notifications: Notification[], )
2025-10-28-ralph-wiggum-coding-agent-power-tools/webapp/src/lib/email-digests.ts:188
↓ 6 callers
Method
clear
* Clear all orders (useful for testing) * @returns Number of orders cleared
2026-01-13-applying-12-factor-principles-to-coding-agent-sdks/src/store/order-store.ts:158
↓ 6 callers
Function
convertCaptures
(captures: Record<string, any>)
2025-09-30-dyanmic-schemas/frontend/components/markdown/shiki-grammars.ts:25
↓ 6 callers
Function
createInputQueue
()
2026-01-13-applying-12-factor-principles-to-coding-agent-sdks/src/utils.ts:83
↓ 6 callers
Function
createTestLayer
()
2025-11-05-event-driven-agents/demo/src/__tests__/command-flow.test.ts:14
↓ 6 callers
Function
create_metric_comparison_chart
Create a bar chart comparing a single metric across runs.
2025-12-02-multimodal-evals/src/streamlit_app.py:342
↓ 6 callers
Method
find_similar_categories
Find the most similar categories to a query embedding. Args: query_embedding: The embedding to search for similar categories.
2025-09-23-evals-for-classification/src/classification/vector_store.py:113
↓ 6 callers
Function
getEnvVarWithDefault
(key: string, defaultValue: string)
2025-10-28-ralph-wiggum-coding-agent-power-tools/webapp/src/lib/config.ts:26
↓ 6 callers
Method
get_cached_embedding
Get cached embedding for a category if it exists. Args: category_path: The category path to look up. Returns:
2025-09-23-evals-for-classification/src/classification/vector_store.py:144
↓ 6 callers
Function
get_logger
Get a logger instance for a module. Args: name: Logger name, typically __name__ of the calling module level: Logging level (DEBUG
2025-09-23-evals-for-classification/src/shared/logger.py:96
↓ 6 callers
Method
is_available
Check if the vector store is available.
2025-09-23-evals-for-classification/src/classification/vector_store.py:37
↓ 6 callers
Method
select_best_category
Select the single best category from candidates using LLM. Args: text: The text to classify. candidates: The candidat
2025-09-23-evals-for-classification/src/classification/selection.py:11
↓ 6 callers
Function
truncate
(s: string, len = 120)
2026-01-13-applying-12-factor-principles-to-coding-agent-sdks/src/utils.ts:21
↓ 6 callers
Method
update_draft_field
Update a specific field in a draft (for parallel content generation)
2025-07-01-ai-content-pipeline-2/backend/database.py:242
↓ 6 callers
Method
update_draft_field
Update a specific field in a draft (for parallel content generation)
2025-06-24-ai-content-pipeline/backend/database.py:218
↓ 5 callers
Method
_print_section
(self, title: str)
2025-08-19-interruptible-agents/manager.py:66
↓ 5 callers
Function
addMessage
(state: MessagesStateType, message: Message)
2025-11-05-event-driven-agents/demo/src/reducers/messages-reducer.ts:50
↓ 5 callers
Method
add_category
Add a new category to the vector store. Args: category: The category to add. embedding: The category's embedding.
2025-09-23-evals-for-classification/src/classification/vector_store.py:161
↓ 5 callers
Function
agentLoop
(thread: Thread)
2025-05-17-workshop-sf-twelve-factor-agents/agents-workshop/09-state-management/src/agent.ts:74
↓ 5 callers
Function
agentLoop
(thread: Thread)
2025-05-10-workshop-nyc-twelve-factor-agents/workshop-agents/09-state-management/src/agent.ts:74
↓ 5 callers
Method
classify
Full classification pipeline with detailed results. Args: text: The text to classify. max_candidates: The maximum num
2025-09-23-evals-for-classification/src/classification/pipeline.py:59
↓ 5 callers
Method
clear
(self)
2025-07-01-ai-content-pipeline-2/backend/main.py:107
↓ 5 callers
Function
createFullTestLayer
(mockLLMConfig: { responses: string[]; chunkDelayMs?: number })
2025-11-05-event-driven-agents/demo/src/__tests__/interrupt-and-queue.test.ts:27
↓ 5 callers
Function
getLists
(userId: string)
2025-10-28-ralph-wiggum-coding-agent-power-tools/webapp/src/lib/lists-server.ts:58
↓ 5 callers
Function
getUser
()
2025-10-28-ralph-wiggum-coding-agent-power-tools/webapp/src/lib/auth.ts:7
↓ 5 callers
Function
handleClearSelection
()
2025-10-28-ralph-wiggum-coding-agent-power-tools/webapp/src/components/todos/KanbanBoard.tsx:245
↓ 5 callers
Function
handleClearSelection
()
2025-10-28-ralph-wiggum-coding-agent-power-tools/webapp/src/components/todos/TodoList.tsx:207
↓ 5 callers
Method
narrow_categories
Narrow categories using the configured strategy. Args: text: The text for which to narrow the categories. categories:
2025-09-23-evals-for-classification/src/classification/narrowing.py:325
↓ 5 callers
Function
oneLine
(s: string)
2026-01-13-applying-12-factor-principles-to-coding-agent-sdks/src/utils.ts:23
next →
1–100 of 2,155, ranked by callers