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

↓ 942 callersMethodappend
(self, record: SkillEffectivenessRecord)
backend/agent/researchclaw/metaclaw_bridge/skill_feedback.py:36
↓ 933 callersMethodget
Get cached result if it exists and is not expired.
backend/agent/researchclaw/agents/code_searcher/cache.py:42
↓ 492 callersMethodget
(self, name: str)
backend/agent/researchclaw/pipeline/codegen/registry.py:35
↓ 394 callersMethodappend
(self, namespace: str, content: str)
backend/agent/researchclaw/adapters.py:31
↓ 189 callersMethodget
(self, project_id: str)
backend/services/agent_bridge.py:757
↓ 91 callersMethodadd
(self, result: ExperimentResult)
backend/agent/researchclaw/experiment/runner.py:40
↓ 87 callersFunctionmsg_log
(agent: LobsterAgent, message: str, level: str = "info", stage: int | None = None)
backend/services/agent_bridge.py:940
↓ 80 callersMethodsearch
Search the web for a query.
backend/agent/researchclaw/web/search.py:94
↓ 68 callersFunction_read_prior_artifact
(run_dir: Path, filename: str)
backend/agent/researchclaw/pipeline/executor.py:336
↓ 62 callersMethodlog
Append a timestamped log entry and auto-persist for live debugging.
backend/agent/researchclaw/pipeline/codegen/session.py:49
↓ 47 callersMethodrun
(self, code: str, *, timeout_sec: int = 300)
backend/agent/researchclaw/experiment/sandbox.py:250
↓ 41 callersMethodparse
Parse experiment results from a run directory. Tries formats in order: JSON → CSV → stdout regex.
backend/agent/researchclaw/experiment/metrics.py:113
↓ 40 callersMethod_log_event
Log to both Python logger and the internal validation log.
backend/agent/researchclaw/pipeline/code_agent.py:1377
↓ 38 callersFunction_utcnow_iso
()
backend/agent/researchclaw/pipeline/executor.py:171
↓ 36 callersFunctionmsg_agent_update
(agent: LobsterAgent)
backend/services/agent_bridge.py:805
↓ 35 callersMethodlog
(self, phase: str, message: str)
backend/agent/researchclaw/pipeline/claw_engine/session.py:39
↓ 34 callersMethodfrom_dict
( cls, data: dict[str, Any], *, project_root: Path | None = None, chec
backend/agent/researchclaw/config.py:420
↓ 30 callersMethodfor_stage
Return a fully rendered prompt for *stage* with variables filled. If *evolution_overlay* is provided, it is appended to the user prompt
backend/agent/researchclaw/prompts.py:137
↓ 29 callersFunction_write_prior_artifact
( run_dir: Path, stage_num: int, filename: str, content: str )
backend/agent/tests/test_rc_executor.py:85
↓ 27 callersFunction_make_paper
(**kwargs: Any)
backend/agent/tests/test_rc_literature.py:39
↓ 26 callersFunction_keyword_detect
Match text against keyword rules. Returns domain_id or None.
backend/agent/researchclaw/domains/detector.py:281
↓ 25 callersFunction_safe_json_loads
Parse JSON from text, handling noisy ACP output. Tries multiple strategies: direct parse, markdown fence extraction, balanced brace matching
backend/agent/researchclaw/pipeline/executor.py:441
↓ 24 callersFunction_chat_with_prompt
Send a chat request with optional retry on timeout/transient errors. Parameters ---------- retries: Number of extra attempts afte
backend/agent/researchclaw/pipeline/executor.py:592
↓ 24 callersMethod_write
(self, text: str)
backend/agent/researchclaw/pipeline/codegen/turn_loop.py:153
↓ 24 callersFunctionget_profile
Get a specific domain profile by ID.
backend/agent/researchclaw/domains/detector.py:175
↓ 24 callersMethodread
(self)
backend/agent/tests/test_rc_llm.py:17
↓ 23 callersMethodblock
Render a reusable prompt block.
backend/agent/researchclaw/prompts.py:189
↓ 23 callersMethodchat
Send a chat completion request with retry and fallback. Args: messages: List of {role, content} dicts. model: Overrid
backend/agent/researchclaw/llm/client.py:151
↓ 22 callersFunction_uid
()
backend/services/agent_bridge.py:198
↓ 20 callersFunction_convert_inline
Convert inline Markdown formatting to LaTeX. Preserves: - Inline math ``\\(...\\)`` and ``$...$`` - ``\\cite{...}`` references - Disp
backend/agent/researchclaw/templates/converter.py:1291
↓ 20 callersMethod_write
(self, text: str)
backend/agent/researchclaw/pipeline/claw_engine/turn_loop.py:143
↓ 20 callersMethodappend
Append a single lesson to the store.
backend/agent/researchclaw/evolution.py:362
↓ 19 callersMethodwrite
(self, text: str)
backend/agent/tests/test_rc_health.py:591
↓ 18 callersMethod_make_result
( self, success: bool, data: dict[str, Any] | None = None, error: str = "", )
backend/agent/researchclaw/agents/base.py:158
↓ 18 callersFunction_render
Replace ``{var_name}`` placeholders with *variables* values. Only bare ``{word_chars}`` tokens are substituted — JSON schema examples like ``
backend/agent/researchclaw/prompts.py:51
↓ 18 callersFunctionis_metric_name
Return True if *name* looks like a metric name rather than a log line. Used to filter stdout lines when parsing ``name: value`` metric output.
backend/agent/researchclaw/hardware.py:262
↓ 18 callersMethodopen
(self, url: str)
backend/agent/researchclaw/adapters.py:43
↓ 17 callersFunction_get_evolution_overlay
Load evolution lessons + MetaClaw skills for prompt injection. Combines intra-run lessons (from current run's evolution dir) with cross-run a
backend/agent/researchclaw/pipeline/executor.py:571
↓ 17 callersFunction_valid_config_data
()
backend/agent/tests/test_rc_config.py:68
↓ 17 callersMethodcount
Return total number of stored lessons.
backend/agent/researchclaw/evolution.py:476
↓ 17 callersFunctionget_adapter
Get the appropriate PromptAdapter for a given domain. Lookup order: 1. Exact domain_id match 2. Prefix match (e.g., "ml_" for all ML doma
backend/agent/researchclaw/domains/prompt_adapter.py:303
↓ 17 callersMethodprojects_dir
(self)
backend/services/agent_bridge.py:796
↓ 17 callersFunctionvalidate_config
( data: dict[str, Any], *, project_root: Path | None = None, check_paths: bool = True, )
backend/agent/researchclaw/config.py:545
↓ 16 callersFunction_now_ms
()
backend/services/agent_bridge.py:201
↓ 16 callersFunction_parse_sections
Split Markdown into a flat list of sections by heading.
backend/agent/researchclaw/templates/converter.py:603
↓ 16 callersFunction_read_json
(path: Path)
backend/services/agent_bridge.py:204
↓ 16 callersMethodrun
Run a single Python code string inside a container.
backend/agent/researchclaw/experiment/docker_sandbox.py:120
↓ 15 callersFunction_add
(q: str)
backend/agent/researchclaw/pipeline/executor.py:234
↓ 15 callersFunction_done
(stage: Stage, artifacts: tuple[str, ...] = ("out.md",))
backend/agent/tests/test_rc_runner.py:48
↓ 15 callersFunctioncheck
(name: str, ok: bool, detail: str = "")
backend/agent/tests/e2e_docker_sandbox.py:30
↓ 15 callersMethodclose
Close the acpx session.
backend/agent/researchclaw/llm/acp_client.py:142
↓ 15 callersMethodgenerate
Execute all enabled phases and return generated files.
backend/agent/researchclaw/pipeline/code_agent.py:191
↓ 15 callersMethodlog
(self, phase: str, message: str)
backend/agent/researchclaw/pipeline/claw_engine/turn_loop.py:47
↓ 15 callersMethodpush
(self, task: Task)
backend/services/agent_bridge.py:616
↓ 14 callersFunctionadvance
Compute the next state given current stage, status, and event. Raises ValueError on unsupported transitions.
backend/agent/researchclaw/pipeline/stages.py:235
↓ 14 callersFunctionget_template
Look up a conference template by name. Raises ``KeyError`` if *name* is not in the registry. Accepts both full names (``"neurips_2024"``) and
backend/agent/researchclaw/templates/conference.py:350
↓ 13 callersFunction_kb_root
(tmp_path: Path)
backend/agent/tests/test_rc_kb.py:19
↓ 13 callersFunctionmarkdown_to_latex
Convert a Markdown paper to a complete LaTeX document. Parameters ---------- paper_md: Full paper in Markdown with embedded LaTeX
backend/agent/researchclaw/templates/converter.py:52
↓ 13 callersMethodpreflight
Quick connectivity check - one minimal chat call. Returns (success, message). Distinguishes: 401 (bad key), 403 (model forbidden),
backend/agent/researchclaw/llm/client.py:224
↓ 13 callersFunctionvalidate_entry_point
Validate *entry_point* syntax (no filesystem access needed). Returns an error message if invalid, ``None`` if valid. Call this **before** cop
backend/agent/researchclaw/experiment/sandbox.py:21
↓ 12 callersMethod_make_result
(self, stage_num, status, error=None, decision="proceed")
backend/agent/tests/test_rc_evolution.py:98
↓ 12 callersFunctionlist_all_projects
Scan runs/projects/ and return status info for all projects.
backend/services/agent_bridge.py:1590
↓ 12 callersFunctionmsg_project_list
(projects: list[dict])
backend/services/agent_bridge.py:950
↓ 12 callersMethodput
Store a result in the cache.
backend/agent/researchclaw/agents/code_searcher/cache.py:61
↓ 12 callersMethodsub_prompt
Return a rendered sub-prompt (e.g. code_repair).
backend/agent/researchclaw/prompts.py:198
↓ 11 callersMethod_accumulate
Track cumulative LLM usage.
backend/agent/researchclaw/agents/base.py:189
↓ 11 callersFunction_make_prose
Generate flowing prose text of approximately *word_count* words.
backend/agent/tests/test_rc_executor.py:3215
↓ 11 callersMethod_run_git
(self, args: list[str])
backend/agent/researchclaw/experiment/git_manager.py:111
↓ 11 callersFunctioncreate_sandbox
Return the appropriate sandbox backend for *config.mode*. - ``"sandbox"`` → :class:`ExperimentSandbox` (subprocess) - ``"docker"`` → :class:
backend/agent/researchclaw/experiment/factory.py:14
↓ 11 callersFunctiondetect_domain
Detect the research domain from topic and context. Three-level detection: 1. Keyword matching (fast, deterministic) 2. LLM classification
backend/agent/researchclaw/domains/detector.py:369
↓ 11 callersFunctiondetect_template_content
Scan text for template/placeholder patterns. Returns list of TemplateMatch objects for each detected pattern.
backend/agent/researchclaw/quality.py:91
↓ 11 callersFunctionextract_lessons
Extract lessons from a list of StageResult objects. Detects: - Failed stages → error lesson - Blocked stages → pipeline lesson - Deci
backend/agent/researchclaw/evolution.py:136
↓ 11 callersFunctionmakeAgent
(id: string, name: string, layer: AgentLayer, runId: string)
frontend/src/mock.ts:8
↓ 11 callersFunctionmsg_stage_update
(agent_id: str, stage: int, status: str)
backend/services/agent_bridge.py:808
↓ 11 callersFunctionscore_complexity
Score the complexity of an experiment to determine if beast mode is warranted. Returns a ComplexityScore with score in [0.0, 1.0].
backend/agent/researchclaw/pipeline/opencode_bridge.py:124
↓ 11 callersMethodsearch
Execute a complete code search for a research topic. Flow: 1. Check cache 2. Generate search queries 3. Search GitHub
backend/agent/researchclaw/agents/code_searcher/agent.py:122
↓ 11 callersFunctiontitle_similarity
Word-overlap Jaccard-ish similarity between two titles. Returns 0.0–1.0. Uses max(len) as denominator so short titles don't inflate the scor
backend/agent/researchclaw/literature/verify.py:155
↓ 10 callersMethod__init__
(self, clip_path: str, device: torch.device)
assets/showcase/adaptive-mrsa/codes/models.py:173
↓ 10 callersFunction_extract_paper_title
Extract paper title from markdown text for LaTeX generation. Prioritises H1 headings that appear *before* the abstract section and look like
backend/agent/researchclaw/pipeline/executor.py:687
↓ 10 callersMethod_make_sandbox_result
( self, metrics: dict | None = None, stdout: str = "", stderr: str = "", )
backend/agent/tests/test_rc_executor.py:1488
↓ 10 callersFunction_reset_agent_idle
Reset agent to idle state, clearing all project-related fields.
backend/services/agent_bridge.py:1572
↓ 10 callersFunctioncache_key
Deterministic cache key from query parameters.
backend/agent/researchclaw/literature/cache.py:38
↓ 10 callersFunctiongenerate_report
Generate a Markdown report from a pipeline run directory. Args: run_dir: Path to the run artifacts directory (e.g., artifacts/rc-xxx/)
backend/agent/researchclaw/report.py:15
↓ 10 callersMethodload
( cls, path: str | Path, *, project_root: str | Path | None = None, ch
backend/agent/researchclaw/config.py:522
↓ 10 callersFunctionsearch_papers
Search multiple academic sources and return deduplicated results. Parameters ---------- query: Free-text search query. limit:
backend/agent/researchclaw/literature/search.py:104
↓ 10 callersMethodto_flat_metrics
Convert to flat metric dict for backward compatibility. The existing pipeline expects dict[str, float] from parse_metrics(). This met
backend/agent/researchclaw/experiment/metrics.py:66
↓ 9 callersMethod__init__
(self)
assets/showcase/quantifying-hallucination/main.py:379
↓ 9 callersMethod_chat
Make an LLM call and track count.
backend/agent/researchclaw/pipeline/code_agent.py:1274
↓ 9 callersFunction_esc
Escape curly braces in user-provided strings for str.format().
backend/agent/researchclaw/agents/figure_agent/codegen.py:29
↓ 9 callersFunction_extract_keywords
Extract meaningful keywords from text (lowercased, 3+ chars, no stops).
backend/agent/researchclaw/literature/novelty.py:133
↓ 9 callersFunction_make_exa_result
Build a fake Exa SDK result object.
backend/agent/tests/test_exa_search.py:23
↓ 9 callersMethod_parse_decisions
Parse LLM response into decision list.
backend/agent/researchclaw/agents/figure_agent/decision.py:245
↓ 9 callersMethod_parse_json
Try to extract JSON from text using three strategies. Always returns a ``dict`` or ``None`` — lists and other JSON primitives are dis
backend/agent/researchclaw/agents/base.py:122
↓ 9 callersFunctioncheck_novelty
Check whether the proposed research has significant overlap with existing work. Parameters ---------- topic: Research topic strin
backend/agent/researchclaw/literature/novelty.py:185
↓ 9 callersFunctioncreate_llm_client
Factory: return the right LLM client based on ``config.llm.provider``. - ``"acp"`` → :class:`ACPClient` (spawns an ACP-compatible agent) - ``
backend/agent/researchclaw/llm/__init__.py:54
↓ 9 callersMethodexecute
Review all rendered figures. Context keys: rendered (list[dict]): From Renderer — each has 'figure_id', 'success'
backend/agent/researchclaw/agents/figure_agent/critic.py:41
↓ 9 callersMethodlog_error
(self, phase: str, message: str, exc: Exception | None = None)
backend/agent/researchclaw/pipeline/claw_engine/session.py:49
↓ 9 callersFunctionmsg_queue_update
(queues: dict[str, TaskQueue])
backend/services/agent_bridge.py:947
↓ 9 callersFunctionput_cache
Write search results to cache.
backend/agent/researchclaw/literature/cache.py:98
↓ 9 callersFunctionstrip_thinking_tags
Remove all reasoning artifacts from LLM output. Handles XML <think> tags, bracket [thinking] blocks, insight decorators, plan markers, and ac
backend/agent/researchclaw/utils/thinking_tags.py:86
next →1–100 of 3,044, ranked by callers