MCPcopy Create free account

hub / github.com/Claw-AI-Lab/Claw-AI-Lab / functions

Functions3,044 in github.com/Claw-AI-Lab/Claw-AI-Lab

↓ 1 callersMethod_copy_results_back
Copy results and modified files back.
backend/agent/researchclaw/pipeline/experiment_run/runtime.py:339
↓ 1 callersMethod_copy_results_back
( workspace: Path, experiment_dir: Path, stage_dir: Path, session: StageSession, )
backend/agent/researchclaw/pipeline/iterative_refine/runtime.py:363
↓ 1 callersFunction_create_message
()
backend/agent/tests/test_anthropic.py:21
↓ 1 callersFunction_create_model_config
Create a per-agent config file with a different primary_model.
backend/services/agent_bridge.py:2083
↓ 1 callersFunction_data_paths_section
Minimal data path pointers — detailed info is in CODEGEN.md.
backend/agent/researchclaw/pipeline/codegen/system_prompt.py:287
↓ 1 callersFunction_deduplicate_tables
IMP-30: Remove duplicate tables that share the same header row. LLMs sometimes repeat tables (e.g. same results table in Results and Discussi
backend/agent/researchclaw/templates/converter.py:813
↓ 1 callersMethod_default_code_hints
(self, paradigm: str, libs: str)
backend/agent/researchclaw/domains/prompt_adapter.py:184
↓ 1 callersMethod_default_code_hints
(self, paradigm: str)
backend/agent/researchclaw/domains/adapters/physics.py:67
↓ 1 callersMethod_default_compute_budget
(self)
backend/agent/researchclaw/domains/adapters/physics.py:87
↓ 1 callersMethod_default_dataset_guidance
(self, paradigm: str)
backend/agent/researchclaw/domains/prompt_adapter.py:217
↓ 1 callersMethod_default_dataset_guidance
(self)
backend/agent/researchclaw/domains/adapters/physics.py:96
↓ 1 callersMethod_default_hints
(self)
backend/agent/researchclaw/domains/adapters/biology.py:77
↓ 1 callersMethod_default_hints
(self)
backend/agent/researchclaw/domains/adapters/economics.py:80
↓ 1 callersMethod_default_hints
(self)
backend/agent/researchclaw/domains/adapters/chemistry.py:64
↓ 1 callersMethod_default_hp_guidance
(self)
backend/agent/researchclaw/domains/prompt_adapter.py:226
↓ 1 callersMethod_default_hp_reporting
(self)
backend/agent/researchclaw/domains/adapters/physics.py:105
↓ 1 callersFunction_default_hypotheses
(topic: str)
backend/agent/researchclaw/pipeline/executor.py:1585
↓ 1 callersMethod_default_mix_balance
(self)
assets/showcase/adaptive-mrsa/codes/models.py:278
↓ 1 callersFunction_default_quality_report
(threshold: float)
backend/agent/researchclaw/pipeline/executor.py:1648
↓ 1 callersFunction_degraded
(stage: Stage)
backend/agent/tests/test_rc_runner.py:764
↓ 1 callersFunction_delete_project
Delete a project: stop any running processes, clean up state, remove files.
backend/services/agent_bridge.py:430
↓ 1 callersFunction_detect_ascend
Detect Huawei Ascend NPU via npu-smi.
backend/agent/researchclaw/hardware.py:133
↓ 1 callersFunction_detect_result_contradictions
P10: Detect contradictions in experiment results before paper writing. Returns a list of advisory strings to inject into paper writing prompt.
backend/agent/researchclaw/pipeline/executor.py:6433
↓ 1 callersFunction_dicts_to_papers
Reconstruct Paper objects from cached dicts.
backend/agent/researchclaw/literature/search.py:66
↓ 1 callersFunction_dir_hash
Quick hash of file mtimes to detect changes.
backend/agent/researchclaw/utils/codebase_manifest.py:142
↓ 1 callersFunction_discover_data
Pre-discover filesystem context before prompt building. Analogous to claw-code's ``ProjectContext.discover_with_git()`` which reads git statu
backend/agent/researchclaw/pipeline/codegen/runtime.py:32
↓ 1 callersFunction_docker_available
Return True if Docker daemon is reachable.
backend/agent/researchclaw/agents/figure_agent/renderer.py:38
↓ 1 callersFunction_doing_tasks_section
()
backend/agent/researchclaw/pipeline/codegen/system_prompt.py:171
↓ 1 callersMethod_edit_file
(self, inp: dict[str, Any])
backend/agent/researchclaw/pipeline/claw_engine/tools/executor.py:175
↓ 1 callersMethod_ensure_deps
Auto-install missing dependencies from experiment code.
backend/agent/researchclaw/pipeline/experiment_run/runtime.py:240
↓ 1 callersFunction_environment_section
(ctx: CodegenContext)
backend/agent/researchclaw/pipeline/codegen/system_prompt.py:252
↓ 1 callersFunction_expand_search_queries
Expand search queries for broader literature coverage. Generates additional queries by extracting key phrases from the topic and creating foc
backend/agent/researchclaw/pipeline/executor.py:2106
↓ 1 callersFunction_experiment_section
(run_dir: Path)
backend/agent/researchclaw/report.py:96
↓ 1 callersFunction_experiment_section
(ctx: CodegenContext)
backend/agent/researchclaw/pipeline/codegen/system_prompt.py:277
↓ 1 callersFunction_extract_code_block
(content: str)
backend/agent/researchclaw/pipeline/executor.py:1435
↓ 1 callersFunction_extract_decision_rationale
Extract rationale from the most recent decision_structured.json. Supports multiple field formats: - ``rationale`` or ``reason`` key (direct)
backend/agent/researchclaw/evolution.py:210
↓ 1 callersFunction_extract_full_pdf_text
Extract full text from a local PDF for downstream stages (S9, S11). Uses the PDFExtractor utility which reads all pages. Falls back to the s
backend/agent/researchclaw/pipeline/executor.py:2200
↓ 1 callersFunction_extract_local_pdf_reference
(pdf_path: Path)
backend/agent/researchclaw/pipeline/executor.py:2233
↓ 1 callersFunction_extract_multi_file_blocks
Parse LLM response containing multiple files with filename markers. Expected format:: ```filename:main.py import model .
backend/agent/researchclaw/pipeline/executor.py:1451
↓ 1 callersFunction_extract_plan_hints
Analyze the experiment plan and generate targeted technical hints. This replaces hardcoded advice: hints are only generated for technologies
backend/agent/researchclaw/pipeline/codegen/system_prompt.py:336
↓ 1 callersMethod_extract_python_code
(content: str)
backend/agent/researchclaw/experiment/runner.py:308
↓ 1 callersFunction_extract_runtime_lessons
Extract fine-grained lessons from experiment run artifacts.
backend/agent/researchclaw/evolution.py:261
↓ 1 callersMethod_extract_single_file_code
Extract Python code from LLM response for a single file.
backend/agent/researchclaw/pipeline/code_agent.py:510
↓ 1 callersFunction_extract_topic_keywords
Extract meaningful keywords from the research topic + domain list. Returns lowercased keyword list (2+ chars, no stop words). Used by the dom
backend/agent/researchclaw/pipeline/executor.py:1224
↓ 1 callersMethod_fill_bar_template
Fill bar comparison template with condition data.
backend/agent/researchclaw/agents/figure_agent/codegen.py:658
↓ 1 callersMethod_fill_grouped_bar_template
Fill grouped bar template with multi-metric data.
backend/agent/researchclaw/agents/figure_agent/codegen.py:714
↓ 1 callersMethod_fill_heatmap_template
Fill heatmap template — rows=conditions, cols=metrics.
backend/agent/researchclaw/agents/figure_agent/codegen.py:759
↓ 1 callersMethod_fill_template
Fill a template with actual data values.
backend/agent/researchclaw/agents/figure_agent/codegen.py:582
↓ 1 callersMethod_filter_baselines
Filter baselines by pip availability.
backend/agent/researchclaw/agents/benchmark_agent/selector.py:80
↓ 1 callersMethod_finalize
( files: dict[str, str], ctx: CodegenContext, config: RCConfig, stage_dir: Pat
backend/agent/researchclaw/pipeline/codegen/runtime.py:538
↓ 1 callersFunction_find_acpx
Find the acpx binary — check PATH, then OpenClaw's plugin directory.
backend/agent/researchclaw/llm/acp_client.py:45
↓ 1 callersMethod_find_experiment_dir
(run_dir: Path)
backend/agent/researchclaw/pipeline/experiment_run/runtime.py:207
↓ 1 callersMethod_find_experiment_dir
Find the latest experiment/ directory from prior stages.
backend/agent/researchclaw/pipeline/sanity_check/runtime.py:199
↓ 1 callersMethod_find_experiment_dir
(run_dir: Path)
backend/agent/researchclaw/pipeline/iterative_refine/runtime.py:212
↓ 1 callersMethod_find_free_gpu
()
backend/agent/researchclaw/pipeline/experiment_run/runtime.py:215
↓ 1 callersMethod_find_free_gpu
()
backend/agent/researchclaw/pipeline/iterative_refine/runtime.py:223
↓ 1 callersMethod_find_masks
(self, root: str)
assets/showcase/adaptive-mrsa/codes/models.py:46
↓ 1 callersMethod_force_reconnect
Close the stale session and reset so _ensure_session creates a new one.
backend/agent/researchclaw/llm/acp_client.py:278
↓ 1 callersFunction_format_age
Human-readable age string.
backend/agent/researchclaw/literature/cache.py:87
↓ 1 callersMethod_format_commit_message
( *, run_id: str, metrics: dict[str, object], description: str )
backend/agent/researchclaw/experiment/git_manager.py:126
↓ 1 callersMethod_generate_baseline_code
Ask LLM to generate baseline method instantiation code.
backend/agent/researchclaw/agents/benchmark_agent/acquirer.py:63
↓ 1 callersMethod_generate_data_loader
Ask LLM to generate a robust data loading function.
backend/agent/researchclaw/agents/benchmark_agent/acquirer.py:24
↓ 1 callersFunction_generate_framework_diagram_prompt
Generate a text-to-image prompt for a methodology framework diagram. Reads the paper's method section and produces a detailed prompt suitable
backend/agent/researchclaw/pipeline/executor.py:737
↓ 1 callersMethod_generate_image
Generate image via the best available backend. Priority: OpenAI images API → OpenAI chat proxy → google-genai SDK → Gemini REST API.
backend/agent/researchclaw/agents/figure_agent/nano_banana.py:320
↓ 1 callersFunction_generate_latex_package
Generate a complete LaTeX package (zip) ready for Overleaf upload. Uses LLM to convert markdown paper to LaTeX, then collects figures, refere
backend/agent/researchclaw/pipeline/executor.py:7787
↓ 1 callersFunction_generate_neurips_checklist
Generate a NeurIPS-style paper checklist appendix in markdown. This checklist is based on the NeurIPS 2025 submission requirements. It is app
backend/agent/researchclaw/pipeline/executor.py:644
↓ 1 callersMethod_generate_plan
Use LLM to generate a detailed figure plan.
backend/agent/researchclaw/agents/figure_agent/planner.py:233
↓ 1 callersFunction_generate_run_id
(topic: str)
backend/agent/researchclaw/cli.py:144
↓ 1 callersMethod_generate_script
Generate a plotting script for a single figure.
backend/agent/researchclaw/agents/figure_agent/codegen.py:513
↓ 1 callersMethod_generate_via_openai_chat
Generate image via an OpenAI-compatible chat completions proxy (fallback). The proxy (e.g. vectorengine.ai) forwards to a Gemini image model
backend/agent/researchclaw/agents/figure_agent/nano_banana.py:417
↓ 1 callersMethod_generate_via_openai_images
Generate image via the OpenAI-compatible /images/generations endpoint. Uses the standard OpenAI images API which returns b64_json or url.
backend/agent/researchclaw/agents/figure_agent/nano_banana.py:342
↓ 1 callersMethod_generate_via_sdk
Generate image using google-genai SDK.
backend/agent/researchclaw/agents/figure_agent/nano_banana.py:486
↓ 1 callersMethod_get_or_create_sandbox
Lazily create a single sandbox instance for all validation runs.
backend/agent/researchclaw/pipeline/code_agent.py:1284
↓ 1 callersMethod_glob_search
(self, inp: dict[str, Any])
backend/agent/researchclaw/pipeline/claw_engine/tools/executor.py:209
↓ 1 callersMethod_grep_search
(self, inp: dict[str, Any])
backend/agent/researchclaw/pipeline/claw_engine/tools/executor.py:271
↓ 1 callersMethod_hard_validate
Run AST-based checks and classify as CRITICAL or WARNING. Returns (critical_issues, warning_issues).
backend/agent/researchclaw/pipeline/code_agent.py:638
↓ 1 callersFunction_header
(summary: dict[str, Any], run_dir: Path)
backend/agent/researchclaw/report.py:48
↓ 1 callersMethod_hints
(self, paradigm: str)
backend/agent/researchclaw/domains/adapters/math.py:56
↓ 1 callersMethod_image_to_feature
(self, image: Image.Image)
assets/showcase/adaptive-mrsa/codes/models.py:177
↓ 1 callersMethod_improve_code
( self, llm: _ChatClient, current_code: str, history: ExperimentHistory )
backend/agent/researchclaw/experiment/runner.py:239
↓ 1 callersFunction_init_intent_llm
Lazily create a lightweight LLM client for intent classification.
backend/services/agent_bridge.py:225
↓ 1 callersFunction_install_opencode
Install OpenCode globally via npm. Returns True on success.
backend/agent/researchclaw/cli.py:48
↓ 1 callersFunction_intro_section
()
backend/agent/researchclaw/pipeline/codegen/system_prompt.py:148
↓ 1 callersMethod_invoke_opencode
Run ``opencode run`` in the workspace. Returns (success, log, elapsed).
backend/agent/researchclaw/pipeline/opencode_bridge.py:568
↓ 1 callersMethod_is_improvement
(self, new_value: float, best_value: float)
backend/agent/researchclaw/experiment/runner.py:289
↓ 1 callersFunction_is_npm_installed
Check if ``npm`` is available on PATH.
backend/agent/researchclaw/cli.py:43
↓ 1 callersMethod_is_valid_blueprint
Check if a blueprint has the minimum required structure.
backend/agent/researchclaw/pipeline/code_agent.py:389
↓ 1 callersFunction_is_verified
Check if num matches any verified value within 1% relative tolerance.
backend/agent/researchclaw/pipeline/executor.py:8319
↓ 1 callersFunction_iter_plan_sources
Yield candidate paths for the experiment plan, best match first.
backend/agent/researchclaw/pipeline/sanity_check/runtime.py:29
↓ 1 callersMethod_keyword_allowed
Reject ambiguous keyword matches that commonly leak across domains.
backend/agent/researchclaw/agents/benchmark_agent/surveyor.py:145
↓ 1 callersMethod_kill_container
(name: str)
backend/agent/researchclaw/experiment/docker_sandbox.py:544
↓ 1 callersFunction_label
(index: int)
backend/services/discussion_runner.py:41
↓ 1 callersMethod_list_data_files
(workspace: Path)
backend/agent/researchclaw/pipeline/result_analysis/runtime.py:279
↓ 1 callersMethod_list_experiment_files
(workspace: Path)
backend/agent/researchclaw/pipeline/experiment_run/runtime.py:310
↓ 1 callersMethod_list_experiment_files
(workspace: Path)
backend/agent/researchclaw/pipeline/iterative_refine/runtime.py:302
↓ 1 callersMethod_list_workspace_files
(self)
backend/agent/researchclaw/pipeline/claw_engine/turn_loop.py:658
↓ 1 callersMethod_list_workspace_files
Quick list of workspace files (for trace logging).
backend/agent/researchclaw/pipeline/codegen/turn_loop.py:748
↓ 1 callersMethod_llm_decide
Ask LLM to analyze paper and decide on figures.
backend/agent/researchclaw/agents/figure_agent/decision.py:188
↓ 1 callersFunction_llm_extract
Extract patterns using LLM analysis.
backend/agent/researchclaw/agents/code_searcher/pattern_extractor.py:127
↓ 1 callersFunction_llm_generate
Generate queries using LLM.
backend/agent/researchclaw/agents/code_searcher/query_gen.py:116
← previousnext →701–800 of 3,044, ranked by callers