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
↓ 2 callers
Function
getMasterDoc
(masterFile)
frontend/src/pages/Artifacts.jsx:359
↓ 2 callers
Function
getStatusColor
(task)
frontend/src/pages/WorkView.jsx:293
↓ 2 callers
Method
get_evaluation_history
Get evaluation history for an agent Args: signature: Agent signature Returns: List of evaluation re
livebench/work/evaluator.py:196
↓ 2 callers
Method
get_native_handle
(self)
livebench/tools/productivity/code_execution_sandbox.py:86
↓ 2 callers
Function
get_required_packages
Returns list of Python packages to preinstall in the E2B sandbox. Based on analysis of GDPVal tasks and agent terminal logs showing
scripts/build_e2b_template.py:43
↓ 2 callers
Method
get_task_reference_files
Get local paths to task reference files Args: task: Task dictionary Returns: List of file paths (ab
livebench/work/task_manager.py:484
↓ 2 callers
Function
isPlaceholder
(sp)
frontend/src/pages/Artifacts.jsx:86
↓ 2 callers
Method
list_artifacts
(self, base_dirs: List[str], artifact_extensions: List[str])
livebench/tools/productivity/code_execution_sandbox.py:77
↓ 2 callers
Function
load_clawwork_config
Load the ``agents.clawwork`` section from nanobot's config JSON. Returns a ``ClawWorkConfig`` with defaults for any missing fields.
clawmode_integration/config.py:43
↓ 2 callers
Function
load_gdpval_data
Load the gdpval parquet file
eval/generate_meta_prompts.py:39
↓ 2 callers
Function
load_task_completions_by_task_id
Load task_completions.jsonl indexed by task_id → entry dict.
scripts/generate_static_data.py:68
↓ 2 callers
Function
parsePicElement
(pic, rels, zip, slideFile, blobUrls)
frontend/src/pages/Artifacts.jsx:283
↓ 2 callers
Function
parseShape
(sp, tc)
frontend/src/pages/Artifacts.jsx:228
↓ 2 callers
Function
read_docx
Read a Microsoft Word document and extract text. Args: docx_path: Path to DOCX file Returns: Extracted text
livebench/tools/productivity/file_reading.py:139
↓ 2 callers
Function
read_image
Read an image file and return base64-encoded data URL. This format is compatible with OpenAI's vision API format: {"type": "image_ur
livebench/tools/productivity/file_reading.py:232
↓ 2 callers
Function
read_pdf_ocr
使用 SiliconFlow DeepSeek-OCR 对单个 PDF 做 OCR。 NOTE: This is the old OCR-based method. The default is now read_pdf_as_images() which con
livebench/tools/productivity/file_reading.py:466
↓ 2 callers
Function
read_txt
Read a plain text file. Args: txt_path: Path to TXT file Returns: File content as string
livebench/tools/productivity/file_reading.py:271
↓ 2 callers
Function
read_xlsx
Read a Microsoft Excel spreadsheet and extract data. Args: xlsx_path: Path to XLSX file Returns: Formatted
livebench/tools/productivity/file_reading.py:184
↓ 2 callers
Function
removeFromQueue
(id: string)
livebench/data/agent_data/kimi-k2.5-test-openrouter-10dollar-1/sandbox/2026-06-25/ScreenReaderStatusMessage.tsx:72
↓ 2 callers
Function
renderFilePreview
(extension, url)
frontend/src/components/FilePreview.jsx:201
↓ 2 callers
Method
run_daily_session
Run daily session: decision-making and activity execution Args: date: Date string (YYYY-MM-DD) Returns:
livebench/agent/live_agent.py:546
↓ 2 callers
Function
sendTemplatedEmail
* Send templated email via SES
livebench/data/agent_data/kimi-k2.5-test-openrouter-10dollar-1/sandbox/2027-07-09/exports.js:122
↓ 2 callers
Method
track_flat_api_call
Track API call with flat-rate pricing (e.g., Tavily search at $0.0008 per call) Args: cost: Flat cost in dollars for thi
livebench/agent/economic_tracker.py:246
↓ 2 callers
Function
track_response_tokens
Track token usage from a LangChain API response into EconomicTracker. Prefers response_metadata["token_usage"] (raw API dict) over LangChain's
livebench/agent/economic_tracker.py:842
↓ 2 callers
Method
upload_reference_file
(self, local_path: str, remote_dir: str = _REFERENCE_REMOTE_DIR)
livebench/tools/productivity/code_execution_sandbox.py:71
↓ 1 callers
Method
_ainvoke_with_retry
Agent invocation with retry, timeout, and token tracking Args: messages: List of messages to send to the agent
livebench/agent/live_agent.py:393
↓ 1 callers
Method
_build_graph
Build the LangGraph workflow
livebench/agent/wrapup_workflow.py:64
↓ 1 callers
Method
_build_multimodal_evaluation_content
Build multimodal evaluation content with text and images Returns: List of content blocks for OpenAI's multimodal
livebench/work/llm_evaluator.py:514
↓ 1 callers
Function
_build_state
Construct ClawWorkState from the ``agents.clawwork`` plugin config. Reads clawwork settings directly from the raw JSON in ~/.nanobot/config.j
clawmode_integration/cli.py:75
↓ 1 callers
Function
_call_qwen_ocr
使用 Qwen VL OCR 对多页 PDF 逐页识别并返回原始结构: { "content": "<text>", "total_pages": ..., "model": "...", "usage": {...}
livebench/tools/productivity/file_reading.py:503
↓ 1 callers
Method
_create_backend
(self, provider: str)
livebench/tools/productivity/code_execution_sandbox.py:485
↓ 1 callers
Method
_create_langchain_tool
Create a LangChain Tool from MCP tool definition
livebench/langchain_mcp_adapters/client.py:111
↓ 1 callers
Method
_execute_tool
Execute a tool by name with given arguments
livebench/agent/live_agent.py:491
↓ 1 callers
Method
_extract_score
Extract numerical score from LLM evaluation response Args: evaluation_text: Full evaluation text from LLM Retur
livebench/work/llm_evaluator.py:742
↓ 1 callers
Function
_extract_tavily
Extract web page content using Tavily Extract API Args: urls: Single URL or comma-separated list of URLs to extract content from
livebench/tools/productivity/search.py:194
↓ 1 callers
Function
_format_image_message
Format single image as multimodal message
livebench/agent/message_formatter.py:90
↓ 1 callers
Function
_format_multimodal_message
Format PDF/PPTX images as multimodal message
livebench/agent/message_formatter.py:53
↓ 1 callers
Function
_format_text_message
Format regular text tool result
livebench/agent/message_formatter.py:110
↓ 1 callers
Method
_fuzzy_match
Try to match an occupation name, falling back to default.
clawmode_integration/task_classifier.py:68
↓ 1 callers
Method
_get_default_mcp_config
Get default MCP configuration - Work and Learn only
livebench/agent/live_agent.py:181
↓ 1 callers
Function
_get_global_state
Get global state from parent module
livebench/tools/productivity/video_creation.py:10
↓ 1 callers
Function
_get_global_state
Get global state from parent module.
livebench/tools/productivity/code_execution_sandbox.py:30
↓ 1 callers
Function
_get_global_state
Get global state from parent module
livebench/tools/productivity/code_execution.py:10
↓ 1 callers
Function
_get_global_state
Get global state from parent module
livebench/tools/productivity/file_creation.py:10
↓ 1 callers
Method
_get_requested_provider
()
livebench/tools/productivity/code_execution_sandbox.py:476
↓ 1 callers
Method
_get_server_tools
Get tools from a specific MCP server
livebench/langchain_mcp_adapters/client.py:61
↓ 1 callers
Method
_handle_clawwork
Parse /clawwork <instruction>, classify, assign task, run agent.
clawmode_integration/agent_loop.py:141
↓ 1 callers
Function
_inject_evaluation_credentials
Set EVALUATION_* env vars from nanobot's provider config. The LLMEvaluator (livebench/work/llm_evaluator.py:46-55) already checks EVALUATION_
clawmode_integration/cli.py:53
↓ 1 callers
Method
_lazy_import
(self)
livebench/tools/productivity/code_execution_sandbox.py:100
↓ 1 callers
Method
_lazy_import
(self)
livebench/tools/productivity/code_execution_sandbox.py:225
↓ 1 callers
Method
_load_already_done
Read task_completions.jsonl to find dates and task IDs already conducted in a previous run. Returns (already_done_dates: set[str], a
livebench/agent/live_agent.py:954
↓ 1 callers
Method
_load_inline_tasks
Load tasks from inline configuration
livebench/work/task_manager.py:191
↓ 1 callers
Method
_load_jsonl_tasks
Load tasks from JSONL file
livebench/work/task_manager.py:158
↓ 1 callers
Method
_load_latest_state
Load latest economic state from balance file
livebench/agent/economic_tracker.py:105
↓ 1 callers
Method
_load_meta_prompt
Load meta-prompt for a specific occupation category Args: occupation: Occupation name (e.g., "Software_Developers")
livebench/work/llm_evaluator.py:197
↓ 1 callers
Method
_load_occupations
Load the occupation-to-wage mapping JSON.
clawmode_integration/task_classifier.py:52
↓ 1 callers
Method
_load_parquet_tasks
Load tasks from parquet file (existing logic)
livebench/work/task_manager.py:126
↓ 1 callers
Function
_load_task_completions_by_date
Load task_completions.jsonl, summing wall_clock_seconds per date.
livebench/api/server.py:92
↓ 1 callers
Function
_load_task_values
()
livebench/api/server.py:42
↓ 1 callers
Method
_load_task_values
Load task values from JSONL file
livebench/work/task_manager.py:209
↓ 1 callers
Method
_log_work_income
Log work income to token costs file
livebench/agent/economic_tracker.py:397
↓ 1 callers
Method
_logs_to_stdout
(self, logs: Any)
livebench/tools/productivity/code_execution_sandbox.py:119
↓ 1 callers
Function
_make_nanobot_provider
Create a LiteLLMProvider from nanobot config (mirrors nanobot CLI).
clawmode_integration/cli.py:35
↓ 1 callers
Method
_prepare_reference_files
Copy task reference files to agent sandbox and upload to code sandbox for execute_code. Args: date: Current date
livebench/agent/live_agent.py:242
↓ 1 callers
Method
_process_message
Wrap super()'s processing with start_task / end_task. Intercepts /clawwork commands to classify and assign tasks before handing off t
clawmode_integration/agent_loop.py:91
↓ 1 callers
Method
_read_artifacts_with_images
Read artifact file contents with separate handling for images and text Args: artifact_paths: List of artifact fi
livebench/work/llm_evaluator.py:374
↓ 1 callers
Method
_save_task_record
Save consolidated task-level cost record (one line per task)
livebench/agent/economic_tracker.py:288
↓ 1 callers
Function
_search_jina
Search using Jina AI API (alternative - markdown-based results) Args: query: Search query string max_results: Maximum number
livebench/tools/productivity/search.py:60
↓ 1 callers
Function
_search_tavily
Search using Tavily API (recommended - structured results with answers) Args: query: Search query string max_results: Maximu
livebench/tools/productivity/search.py:10
↓ 1 callers
Method
_select_assigned_task
Select task based on explicit assignment configuration Args: date: Date string available_tasks: List of task
livebench/work/task_manager.py:374
↓ 1 callers
Method
_setup_logging
Set up log file path for activity messages
livebench/agent/live_agent.py:377
↓ 1 callers
Method
_summarize_conversation
Summarize conversation to extract what the agent was working on Args: messages: List of message dicts with 'role
livebench/agent/wrapup_workflow.py:326
↓ 1 callers
Method
_track_tokens_from_response
Track token usage from the API response. Delegates to the shared track_response_tokens() function. Prints the full response_metadata
livebench/agent/live_agent.py:472
↓ 1 callers
Function
analyze_old_format
Analyze the old format to show limitations
scripts/analyze_economic_improvements.py:15
↓ 1 callers
Function
backfill_agent
(agent_dir: Path)
scripts/backfill_balance_task_info.py:105
↓ 1 callers
Function
build_agent_tasks
Replicate the server.py /api/agents/{sig}/tasks endpoint logic. Returns list of task dicts with: task_id, occupation, sector, task_value_usd,
scripts/domain_earnings_analysis.py:75
↓ 1 callers
Function
build_date_to_task_ids_ordered
Return {date: [task_id, task_id, ...]} preserving file order. Multiple entries for the same date come from repeated simulation runs.
scripts/backfill_balance_task_info.py:52
↓ 1 callers
Function
build_task_durations
Return {task_id: seconds} using logs/info.jsonl. A task may be started more than once if the agent was restarted mid-run. We collect ALL
scripts/backfill_balance_task_info.py:66
↓ 1 callers
Function
build_template
Build the E2B custom sandbox template with preinstalled packages. Args: alias: Alias name for the template (default: gdpval-work
scripts/build_e2b_template.py:88
↓ 1 callers
Function
calculate_task_values
Calculate value for each task
scripts/calculate_task_values.py:237
↓ 1 callers
Function
category_already_generated
Check if a category has already been generated
eval/generate_meta_prompts.py:270
↓ 1 callers
Method
chat
( self, messages: list[dict[str, Any]], tools: list[dict[str, Any]] | None = None,
clawmode_integration/provider_wrapper.py:44
↓ 1 callers
Function
check_backward_compatibility_notes
Note backward compatibility considerations
scripts/validate_economic_system.py:562
↓ 1 callers
Function
check_e2b_installed
Check if e2b package is installed
scripts/build_e2b_template.py:34
↓ 1 callers
Method
classify
Classify an instruction into an occupation with estimated value. Returns: { "occupation": str,
clawmode_integration/task_classifier.py:90
↓ 1 callers
Method
cleanup
(self)
livebench/tools/productivity/code_execution_sandbox.py:199
↓ 1 callers
Method
cleanup
(self)
livebench/tools/productivity/code_execution_sandbox.py:424
↓ 1 callers
Function
cleanup_agent
Scan and clean up failed runs for a single agent.
scripts/cleanup_failed_runs.py:77
↓ 1 callers
Function
compute_domain_earnings
Replicate Dashboard.jsx domainChartData logic exactly.
scripts/domain_earnings_analysis.py:143
↓ 1 callers
Function
compute_wall_clock
Compute wall-clock seconds from the best available source. Priority: 1. token_costs.jsonl timestamp_end - timestamp_start 2. bal
scripts/derive_task_completions.py:125
↓ 1 callers
Method
connect
(self, websocket: WebSocket)
livebench/api/server.py:160
↓ 1 callers
Function
connectWebSocket
()
frontend/src/hooks/useWebSocket.js:13
↓ 1 callers
Function
create_date_to_task_mapping
Create mapping from date to task_id from tasks.jsonl
scripts/recalculate_agent_economics.py:93
↓ 1 callers
Function
create_goodsin_showreel
Creates a high-energy showreel for Goodsin Studios showcasing their best CGI work. Follows all specifications from the task description.
livebench/data/agent_data/qwen3-max-10dollar-1/sandbox/2026-02-09/video_editing_script.py:12
↓ 1 callers
Function
create_hour_estimation_prompt
Create the prompt that asks GPT-5.2 to estimate hours needed for a task
scripts/estimate_task_hours.py:44
↓ 1 callers
Function
create_meta_prompt_generation_request
Create the meta-prompt that asks GPT-4o to generate evaluation guidelines for a specific category
eval/generate_meta_prompts.py:46
↓ 1 callers
Function
create_occupation_mappings
Create mappings for all occupations
scripts/calculate_task_values.py:201
↓ 1 callers
Function
create_occupation_matching_prompt
Create prompt for GPT-5.2 to match occupations
scripts/calculate_task_values.py:89
↓ 1 callers
Function
create_wrapup_workflow
Factory function to create a wrap-up workflow instance Args: llm: Language model instance (if None, creates default) logger:
livebench/agent/wrapup_workflow.py:431
↓ 1 callers
Function
demo_new_format
Demonstrate the new format with actual examples
scripts/validate_economic_system.py:23
← previous
next →
101–200 of 540, ranked by callers