Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/ClawWork
/ functions
Functions
540 in github.com/HKUDS/ClawWork
⨍
Functions
540
◇
Types & classes
33
↳
Endpoints
14
↓ 54 callers
Function
xmlFind
(node, ln)
frontend/src/pages/Artifacts.jsx:80
↓ 47 callers
Function
log_message
Log messages to both console and file
scripts/calculate_task_values.py:35
↓ 41 callers
Function
log_message
Log messages to both console and file
scripts/estimate_task_hours.py:29
↓ 41 callers
Method
terminal_print
Print message to terminal log file (and optionally console) This captures the exact formatted output with emojis Arg
livebench/utils/logger.py:185
↓ 37 callers
Method
_log
Log message to terminal
livebench/agent/wrapup_workflow.py:368
↓ 33 callers
Function
log_message
Log messages to both console and file
eval/generate_meta_prompts.py:31
↓ 32 callers
Method
error
Log error message Args: message: Error message context: Additional context dictionary ex
livebench/utils/logger.py:65
↓ 22 callers
Method
track_api_call
Track API call cost (e.g., JINA search, OCR) based on token usage Args: tokens: Number of tokens used price_
livebench/agent/economic_tracker.py:203
↓ 20 callers
Method
end_task
End tracking for current task and save consolidated task record
livebench/agent/economic_tracker.py:146
↓ 19 callers
Method
start_task
Start tracking costs for a new task Args: task_id: Unique identifier for the task date: Date task was assign
livebench/agent/economic_tracker.py:117
↓ 19 callers
Method
track_tokens
Track token usage and calculate cost Args: input_tokens: Number of input tokens output_tokens: Number of out
livebench/agent/economic_tracker.py:158
↓ 18 callers
Method
add_work_income
Add income from completed work with evaluation score threshold Payment is only awarded if evaluation_score >= min_evaluation
livebench/agent/economic_tracker.py:358
↓ 18 callers
Function
xmlFindAll
(node, ln)
frontend/src/pages/Artifacts.jsx:79
↓ 17 callers
Method
warning
Log warning message Args: message: Warning message context: Additional context dictionary
livebench/utils/logger.py:85
↓ 16 callers
Function
read_jsonl
(path: Path)
scripts/generate_static_data.py:36
↓ 14 callers
Function
log_message
Log messages with timestamp
scripts/recalculate_agent_economics.py:25
↓ 13 callers
Method
info
Log info message Args: message: Info message context: Additional context dictionary prin
livebench/utils/logger.py:102
↓ 13 callers
Method
initialize
Initialize tracker, load existing state or create new
livebench/agent/economic_tracker.py:85
↓ 12 callers
Method
get_balance
Get current balance
livebench/agent/economic_tracker.py:515
↓ 11 callers
Method
run
Run the wrap-up workflow Args: date: Current date (YYYY-MM-DD) task: Current task dictionary (may be
livebench/agent/wrapup_workflow.py:375
↓ 10 callers
Function
get
(url)
frontend/src/api.js:15
↓ 10 callers
Function
liveUrl
(path)
frontend/src/api.js:13
↓ 10 callers
Function
log_error
Convenience function to log error
livebench/utils/logger.py:217
↓ 10 callers
Function
staticUrl
(path)
frontend/src/api.js:12
↓ 10 callers
Function
write_json
(path: Path, data)
scripts/generate_static_data.py:51
↓ 9 callers
Method
get_survival_status
Get survival status based on balance Returns: Status: "thriving", "stable", "struggling", or "bankrupt"
livebench/agent/economic_tracker.py:524
↓ 8 callers
Function
resolveColor
(node, themeColors, phClr)
frontend/src/pages/Artifacts.jsx:124
↓ 7 callers
Method
_sync_compat_attrs
(self)
livebench/tools/productivity/code_execution_sandbox.py:492
↓ 7 callers
Function
buildResponse
* Build API Gateway-compatible response
livebench/data/agent_data/kimi-k2.5-test-openrouter-10dollar-1/sandbox/2027-07-09/exports.js:142
↓ 7 callers
Method
get_provider
(self)
livebench/tools/productivity/code_execution_sandbox.py:532
↓ 6 callers
Method
get_instance
Get or create the singleton session sandbox instance.
livebench/tools/productivity/code_execution_sandbox.py:462
↓ 6 callers
Method
get_task_costs
Get cost breakdown for a specific task Args: task_id: Task identifier Returns:
livebench/agent/economic_tracker.py:740
↓ 5 callers
Method
_ensure_backend
(self, timeout: int = 3600)
livebench/tools/productivity/code_execution_sandbox.py:500
↓ 5 callers
Method
_get_task_by_id
Get task by ID from filtered task list Args: task_id: Task identifier Returns: Task dictionary or N
livebench/work/task_manager.py:450
↓ 5 callers
Function
get_logger
Get the global logger instance
livebench/utils/logger.py:212
↓ 5 callers
Method
load_tasks
Load tasks from configured source (parquet, jsonl, or inline) Returns: Number of tasks loaded Raises:
livebench/work/task_manager.py:99
↓ 5 callers
Method
select_daily_task
Select a task for the given date Args: date: Date string (YYYY-MM-DD) signature: Agent signature (optional,
livebench/work/task_manager.py:302
↓ 4 callers
Method
_write_log
Write log entry to file
livebench/utils/logger.py:41
↓ 4 callers
Function
agent_dirs
()
scripts/generate_static_data.py:58
↓ 4 callers
Method
close
Close all server connections
livebench/langchain_mcp_adapters/client.py:172
↓ 4 callers
Method
ensure_started
(self, timeout: int = 3600)
livebench/tools/productivity/code_execution_sandbox.py:105
↓ 4 callers
Method
ensure_started
(self, timeout: int = 3600)
livebench/tools/productivity/code_execution_sandbox.py:246
↓ 4 callers
Method
get_daily_summary
Get cost summary for a specific date Args: date: Date string (YYYY-MM-DD) Returns:
livebench/agent/economic_tracker.py:780
↓ 4 callers
Function
get_safe_filename
Convert category name to safe filename
eval/generate_meta_prompts.py:266
↓ 4 callers
Method
is_bankrupt
Check if agent is bankrupt
livebench/agent/economic_tracker.py:540
↓ 3 callers
Method
_apply_filters
Apply agent-specific filters to task list
livebench/work/task_manager.py:260
↓ 3 callers
Method
_log_evaluation
Log evaluation result Args: artifact_path: Single path (str) or list of paths
livebench/work/evaluator.py:153
↓ 3 callers
Function
addToQueue
(id: string, message: string | React.ReactElement, priority: number = 0)
livebench/data/agent_data/kimi-k2.5-test-openrouter-10dollar-1/sandbox/2026-06-25/ScreenReaderStatusMessage.tsx:58
↓ 3 callers
Function
applyColorMods
(hex, parentEl)
frontend/src/pages/Artifacts.jsx:55
↓ 3 callers
Method
broadcast
Broadcast message to all connected clients
livebench/api/server.py:167
↓ 3 callers
Method
cleanup
(self)
livebench/tools/productivity/code_execution_sandbox.py:80
↓ 3 callers
Method
debug
Log debug message Args: message: Debug message context: Additional context dictionary pr
livebench/utils/logger.py:119
↓ 3 callers
Method
download_artifact
(self, remote_path: str, local_dir: str)
livebench/tools/productivity/code_execution_sandbox.py:74
↓ 3 callers
Method
evaluate_artifact
Evaluate a work artifact and determine payment Args: signature: Agent signature task: Task dictionary (must
livebench/work/evaluator.py:56
↓ 3 callers
Function
getPreviewableArtifacts
Extract previewable artifacts from a task's evaluation data
frontend/src/pages/WorkView.jsx:22
↓ 3 callers
Method
get_cost_analytics
Get detailed cost analytics across all tasks and dates Returns: Dictionary with cost breakdown by channel, date,
livebench/agent/economic_tracker.py:577
↓ 3 callers
Method
get_daily_cost
Get total daily token cost
livebench/agent/economic_tracker.py:548
↓ 3 callers
Method
get_net_worth
Get net worth (balance + portfolio value)
livebench/agent/economic_tracker.py:519
↓ 3 callers
Method
get_or_create_sandbox
Ensure a provider backend is ready and return its native handle.
livebench/tools/productivity/code_execution_sandbox.py:527
↓ 3 callers
Method
get_summary
Get comprehensive economic summary Returns: Dictionary with all economic metrics
livebench/agent/economic_tracker.py:552
↓ 3 callers
Function
hue2rgb
(p, q, t)
frontend/src/pages/Artifacts.jsx:50
↓ 3 callers
Function
load_config
Load configuration from JSON file
livebench/main.py:27
↓ 3 callers
Function
load_jsonl
Load all records from a JSONL file; skip malformed lines.
scripts/derive_task_completions.py:42
↓ 3 callers
Function
load_jsonl
Load a JSONL file, return list of dicts.
scripts/domain_earnings_analysis.py:58
↓ 3 callers
Function
parseBg
(bgEl, tc, themeBgFills)
frontend/src/pages/Artifacts.jsx:161
↓ 3 callers
Function
parseGradient
(gradFill, tc, phClr)
frontend/src/pages/Artifacts.jsx:143
↓ 3 callers
Function
read_jsonl
(path: Path)
scripts/backfill_balance_task_info.py:31
↓ 3 callers
Function
read_pdf_as_images
Convert PDF to list of PNG images, combining 4 pages into one image to save resources. Uses pdf2image to convert PDF pages to images, th
livebench/tools/productivity/file_reading.py:377
↓ 3 callers
Function
read_pptx_as_images
Convert PPTX to list of PNG images (one per slide). Uses LibreOffice to convert PPTX → PDF, then pdf2image to convert PDF → PNG images.
livebench/tools/productivity/file_reading.py:291
↓ 3 callers
Function
resolveRelPath
(base, rel)
frontend/src/pages/Artifacts.jsx:81
↓ 3 callers
Method
save_daily_state
Save end-of-day economic state Args: date: Date string (YYYY-MM-DD) work_income: Today's work income (actual
livebench/agent/economic_tracker.py:438
↓ 3 callers
Function
useDisplayName
()
frontend/src/DisplayNamesContext.jsx:14
↓ 2 callers
Function
_check_clawwork_enabled
Exit with an error if clawwork is not enabled in config.
clawmode_integration/cli.py:170
↓ 2 callers
Method
_fallback_result
Return a safe default classification.
clawmode_integration/task_classifier.py:155
↓ 2 callers
Method
_format_cost_line
Return a short cost footer for the current task.
clawmode_integration/agent_loop.py:254
↓ 2 callers
Function
_get_global_state
Get global state from parent module
livebench/tools/productivity/file_reading.py:29
↓ 2 callers
Function
_load_task_completions_by_task_id
Load task_completions.jsonl indexed by task_id → entry dict.
livebench/api/server.py:71
↓ 2 callers
Method
_log_message
Log messages to log file
livebench/agent/live_agent.py:383
↓ 2 callers
Method
_log_task_assignment
Log task assignment to agent's task log
livebench/work/task_manager.py:544
↓ 2 callers
Function
_make_agent_loop
Create a ClawWorkAgentLoop from nanobot config. Shared by both the ``agent`` and ``gateway`` commands. Returns ``(agent_loop, state, bus)``.
clawmode_integration/cli.py:133
↓ 2 callers
Method
_print_final_summary
Print final simulation summary
livebench/agent/live_agent.py:1204
↓ 2 callers
Function
_print_response
(text: str)
clawmode_integration/cli.py:224
↓ 2 callers
Method
_read_docx_content
Extract text content from DOCX file Args: path: Path to DOCX file Returns: Extr
livebench/work/llm_evaluator.py:280
↓ 2 callers
Method
_read_xlsx_content
Extract data from XLSX file Args: path: Path to XLSX file Returns: Formatted te
livebench/work/llm_evaluator.py:326
↓ 2 callers
Method
_save_balance_record
Save balance record to file
livebench/agent/economic_tracker.py:476
↓ 2 callers
Function
_thinking_ctx
()
clawmode_integration/cli.py:218
↓ 2 callers
Method
_validate_task_schema
Validate task has required fields Args: task: Task dictionary identifier: Line number or index for error mes
livebench/work/task_manager.py:237
↓ 2 callers
Function
cleanup_session_sandbox
Clean up session sandbox resources.
livebench/tools/productivity/code_execution_sandbox.py:736
↓ 2 callers
Method
ensure_started
(self, timeout: int = 3600)
livebench/tools/productivity/code_execution_sandbox.py:65
↓ 2 callers
Method
execute_code
(self, code: str)
livebench/tools/productivity/code_execution_sandbox.py:68
↓ 2 callers
Function
fetchAgentTasks
(sig)
frontend/src/api.js:31
↓ 2 callers
Function
fetchAgents
()
frontend/src/api.js:19
↓ 2 callers
Function
fetchLeaderboard
()
frontend/src/api.js:22
↓ 2 callers
Function
fmt
(v)
frontend/src/pages/Leaderboard.jsx:765
↓ 2 callers
Function
formatDuration
(secs)
frontend/src/pages/WorkView.jsx:13
↓ 2 callers
Function
generate_meta_prompt_for_category
Use GPT-4o to generate evaluation guidelines for a specific category
eval/generate_meta_prompts.py:182
↓ 2 callers
Function
getActivityIcon
(activity)
frontend/src/pages/Dashboard.jsx:96
↓ 2 callers
Function
getArtifactFileUrl
(path)
frontend/src/api.js:53
↓ 2 callers
Function
getFileIcon
(ext)
frontend/src/components/FilePreview.jsx:20
↓ 2 callers
Function
getFileUrl
(path)
frontend/src/pages/Artifacts.jsx:481
next →
1–100 of 540, ranked by callers