MCPcopy Create free account

hub / github.com/OpenRaiser/NanoResearch / functions

Functions1,278 in github.com/OpenRaiser/NanoResearch

↓ 1 callersMethod_cmd_stop
(self, chat_id: str, message_id: str)
nanoresearch/feishu_bot_handlers.py:132
↓ 1 callersFunction_code_preview
( editor: "InteractiveCodeEditor", # noqa: F821 instruction: str, )
nanoresearch/cli_code_edit.py:185
↓ 1 callersMethod_coerce_blueprint_fields
Coerce LLM output fields that should be strings but came as dicts/lists. The LLM sometimes returns structured objects for fields like size_in
nanoresearch/agents/planning.py:429
↓ 1 callersMethod_collect_results
Collect training results from output files.
nanoresearch/agents/execution/result_collector.py:344
↓ 1 callersFunction_collect_scalar_metrics
( workspace: Workspace, execution_output: dict[str, Any] | None = None, )
nanoresearch/_smoke_helpers.py:52
↓ 1 callersMethod_collect_suggested_fixes
(checks: list[PreflightResult])
nanoresearch/agents/preflight.py:74
↓ 1 callersMethod_command_entry_script
(tokens: list[str], code_dir: Path)
nanoresearch/agents/execution/repair_commands.py:134
↓ 1 callersFunction_compact_messages_if_needed
Proactive context compaction: trim old tool results when context grows large. Inspired by OpenClaw's cache-aware pruning: when total content exce
nanoresearch/agents/_base_helpers.py:80
↓ 1 callersFunction_compact_paper_result
(text: str)
nanoresearch/agents/_base_helpers.py:38
↓ 1 callersFunction_compile_pdflatex
Compile with pdflatex + bibtex (3-pass).
mcp_server/tools/pdf_compile.py:66
↓ 1 callersFunction_compile_tectonic
Compile with tectonic — handles bibtex cycle automatically.
mcp_server/tools/pdf_compile.py:50
↓ 1 callersMethod_compute_analysis
Run deterministic computational analysis alongside LLM analysis.
nanoresearch/agents/analysis/__init__.py:371
↓ 1 callersMethod_condense_memory
(self, memory)
nanoresearch/feishu_bot_core.py:382
↓ 1 callersFunction_content_len
(content: Any)
nanoresearch/agents/_base_helpers.py:89
↓ 1 callersMethod_copy_figures_to_drafts
Copy figure PDF/PNG files from figures/ to drafts/ for compilation.
nanoresearch/agents/writing/latex_bib_figures.py:671
↓ 1 callersMethod_copy_style_files
Copy .sty/.cls/.bst files bundled with *template_format* to drafts/.
nanoresearch/agents/writing/latex_bib_figures.py:658
↓ 1 callersFunction_count_lines
(path: Path)
nanoresearch/pipeline/_workspace_helpers.py:174
↓ 1 callersFunction_count_pdf_pages_quick
Count pages in a PDF file. Returns None if unavailable.
nanoresearch/agents/paper_condenser.py:270
↓ 1 callersMethod_create_per_session_conda_env
Create (or reuse) a per-session conda env and return env_info dict. Steps: 1. Check if env already exists (resume idempotency).
nanoresearch/agents/runtime_env/_conda.py:29
↓ 1 callersMethod_ctx_introduction
Introduction: topic, gaps, hypothesis, method brief, cite keys.
nanoresearch/agents/writing/context_sections.py:84
↓ 1 callersMethod_dedup_full_doc_figures
Full-document figure dedup (safety net after assembly).
nanoresearch/agents/writing/writing_agent.py:766
↓ 1 callersMethod_dedup_section_figures
Remove duplicate figure blocks across sections (keep first occurrence).
nanoresearch/agents/writing/writing_agent.py:738
↓ 1 callersMethod_default_code_plan_files
()
nanoresearch/agents/coding.py:37
↓ 1 callersFunction_default_session_id
()
nanoresearch/smoke_execution.py:39
↓ 1 callersMethod_dependency_manifests
(self)
nanoresearch/agents/preflight.py:95
↓ 1 callersFunction_derive_experiment_status
(execution_output: dict[str, Any])
nanoresearch/_smoke_helpers.py:140
↓ 1 callersMethod_derive_quality_signal
Derive quality signal from stage output for SDPO training.
nanoresearch/pipeline/deep_orchestrator.py:153
↓ 1 callersMethod_design_code_plan
Design the code structure based on blueprint and cloned repos.
nanoresearch/agents/coding.py:296
↓ 1 callersFunction_detect_bib_entry_type
Return (bibtex_type, venue_field) based on venue name.
nanoresearch/agents/review/_constants.py:19
↓ 1 callersMethod_detect_contract_failure_signals
( cls, stdout_log: str, stderr_log: str, )
nanoresearch/agents/execution/_result_collector_helpers.py:177
↓ 1 callersMethod_detect_manifest_reference
(cls, code_dir: Path)
nanoresearch/agents/runtime_env/_manifests.py:86
↓ 1 callersMethod_deterministic_trim
Deterministic whitespace trimming — no LLM, always reliable. Two-pass approach: 1. Basic bbox crop (remove outer whitespace margins)
nanoresearch/agents/figure_gen/trim.py:19
↓ 1 callersMethod_diagnose_and_optimize_prompt
Use LLM to diagnose why image generation failed and produce a shorter, optimized prompt.
nanoresearch/agents/figure_gen/ai_figure.py:276
↓ 1 callersMethod_diagnose_and_patch
Send full context to LLM, get diagnosis + structured patches.
nanoresearch/agents/debug.py:220
↓ 1 callersMethod_diagnose_env_failure
Produce a human-readable diagnosis for environment creation failure.
nanoresearch/agents/runtime_env/_install.py:434
↓ 1 callersMethod_discover_conda_envs
()
nanoresearch/feishu_bot_handlers.py:211
↓ 1 callersMethod_domain_for_task
(self, task_type: str)
nanoresearch/skills.py:546
↓ 1 callersMethod_download_missing_resource
Try to download a missing data file. Security: validates URL scheme (http/https only) and uses shlex.quote.
nanoresearch/agents/_debug_helpers.py:170
↓ 1 callersMethod_download_resources
Download pretrained models and datasets to global cache. Download priority for models: 1. Check if already cached (skip download)
nanoresearch/agents/setup_search.py:173
↓ 1 callersFunction_draw_bar_chart
(ax, data: dict)
mcp_server/tools/figure_gen.py:56
↓ 1 callersFunction_draw_line_chart
(ax, data: dict)
mcp_server/tools/figure_gen.py:65
↓ 1 callersFunction_draw_placeholder
(ax, data: dict)
mcp_server/tools/figure_gen.py:95
↓ 1 callersFunction_draw_table
(ax, data: dict)
mcp_server/tools/figure_gen.py:79
↓ 1 callersMethod_enforce_contribution_limit
r"""Truncate itemize blocks to *max_items* in the Introduction section. Only targets the first itemize block found between \section{Introduct
nanoresearch/agents/writing/latex_figure_placement.py:221
↓ 1 callersMethod_enforce_figure_height_cap
r"""Ensure every \includegraphics has a height cap. Handles two cases: 1. \includegraphics[width=...]{file} -- add height if missing
nanoresearch/agents/writing/latex_bib_figures.py:620
↓ 1 callersMethod_enrich_with_full_text
(self, papers: list[dict], top_k: int = TOP_K_FULL_TEXT)
nanoresearch/agents/ideation_search.py:329
↓ 1 callersMethod_ensure_experiment_contract
Add a conservative execution contract if the planner omitted one.
nanoresearch/agents/planning.py:313
↓ 1 callersMethod_ensure_legacy_runner
Materialize deterministic runner assets for legacy experiment projects.
nanoresearch/agents/experiment/_code_runner_helpers.py:198
↓ 1 callersMethod_ensure_llm_figure_references
Insert constrained GPT-written references for figure blocks not cited in prose.
nanoresearch/agents/writing/writing_agent.py:644
↓ 1 callersMethod_ensure_minimum_citations
Inject concise paper-facing related-work citations until min_refs. The injected text is literature context only. It does not introduce
nanoresearch/agents/writing/citation_manager.py:162
↓ 1 callersFunction_ensure_writable_dir
(path: Path)
nanoresearch/agents/project_runner_validate.py:295
↓ 1 callersMethod_entry_script_supports_flag
(entry_script: Path | None, flag: str)
nanoresearch/agents/execution/repair_commands.py:147
↓ 1 callersMethod_evaluate_search_coverage
(self, topic: str, papers: list[dict])
nanoresearch/agents/ideation_search.py:372
↓ 1 callersMethod_execute_code_with_venv
Run _execute_code and also return the venv python path for reuse.
nanoresearch/agents/experiment/code_runner.py:147
↓ 1 callersMethod_expand_citation_pool
Expand paper metadata with role-targeted OpenAlex searches. This is a paper-writing safeguard: full research papers need enough liter
nanoresearch/agents/writing/citation_manager.py:21
↓ 1 callersMethod_expand_composed_experiments
Use the LLM to expand prose while preserving artifact floats verbatim.
nanoresearch/agents/writing/section_writer.py:671
↓ 1 callersMethod_expand_composed_experiments_by_blocks
Expand only prose blocks while preserving artifact tables/figures verbatim.
nanoresearch/agents/writing/section_writer.py:731
↓ 1 callersMethod_expand_via_citations
(self, papers: list[dict], top_k: int = 5, max_new: int = 20)
nanoresearch/agents/ideation_search.py:272
↓ 1 callersMethod_extract_action
(raw_response: str)
nanoresearch/router_policy.py:150
↓ 1 callersFunction_extract_balanced_json_segment
Extract a balanced JSON object/array substring starting at ``start``.
nanoresearch/agents/_base_helpers.py:164
↓ 1 callersFunction_extract_cite_sentences
r"""Extract sentences containing \cite commands. Returns list of (sentence_text, [cite_key1, cite_key2, ...]). Only returns sentences from th
nanoresearch/agents/review_citation_checker.py:89
↓ 1 callersMethod_extract_contribution_contract
r"""Extract structured contribution claims from Introduction LaTeX content. Parses \begin{itemize}...\end{itemize} blocks to find \item entri
nanoresearch/agents/writing/context_sections.py:516
↓ 1 callersMethod_extract_download_urls_from_repo
Scan README, download scripts, and configs for real download URLs.
nanoresearch/agents/setup_github.py:67
↓ 1 callersFunction_extract_env_assignments
(tokens: list[str])
nanoresearch/agents/project_runner_core.py:69
↓ 1 callersMethod_extract_environment_pip_dependencies
(environment_file: Path)
nanoresearch/agents/_preflight_helpers.py:60
↓ 1 callersMethod_extract_evidence
(self, papers: list[dict])
nanoresearch/agents/ideation_hypothesis.py:349
↓ 1 callersMethod_extract_failed_import_packages
(validation: dict | None)
nanoresearch/agents/cluster_executor.py:187
↓ 1 callersMethod_extract_figure_caption
(figure_block: str)
nanoresearch/agents/writing/writing_agent.py:542
↓ 1 callersFunction_extract_json_candidates
Return likely JSON substrings from raw LLM output.
nanoresearch/agents/_base_helpers.py:199
↓ 1 callersMethod_extract_method_impl_details
Extract implementation details (epochs, GPU, lr, loss weights) from Method section. These are passed to Experiments section context so it doe
nanoresearch/agents/writing/context_builder.py:380
↓ 1 callersMethod_extract_metric_snapshot
Extract a flat metric snapshot from raw execution artifacts.
nanoresearch/agents/analysis/_analysis_helpers.py:156
↓ 1 callersFunction_extract_metrics_from_training_log
Extract scalar metrics from an epoch-level training-log array.
nanoresearch/_smoke_helpers.py:97
↓ 1 callersMethod_extract_missing_modules
(error_text: str)
nanoresearch/agents/execution/repair_runtime.py:143
↓ 1 callersMethod_extract_missing_required_options
(error_text: str)
nanoresearch/agents/execution/repair_commands.py:20
↓ 1 callersMethod_extract_nltk_resources
(error_text: str)
nanoresearch/agents/execution/repair_runtime.py:157
↓ 1 callersMethod_extract_pyproject_dependency_names
(cls, pyproject_file: Path)
nanoresearch/agents/runtime_env/_manifests.py:233
↓ 1 callersMethod_extract_requirement_dependency_names
(cls, requirements_file: Path)
nanoresearch/agents/runtime_env/_manifests.py:163
↓ 1 callersMethod_extract_requirement_dependency_specs
(requirements_file: Path)
nanoresearch/agents/runtime_env/_validation.py:87
↓ 1 callersMethod_extract_setup_cfg_dependency_names
(cls, setup_cfg_file: Path)
nanoresearch/agents/runtime_env/_manifests.py:257
↓ 1 callersFunction_extract_structured_metrics
(payload: dict[str, Any])
nanoresearch/_smoke_helpers.py:15
↓ 1 callersMethod_extract_surname
Extract a BibTeX-safe surname from an author name string. Handles multi-word surnames (van der Waals → vanderwaals), single-name auth
nanoresearch/agents/writing/context_builder.py:51
↓ 1 callersMethod_extract_unrecognized_options
(error_text: str)
nanoresearch/agents/execution/repair_commands.py:48
↓ 1 callersFunction_extract_yaml_frontmatter
Return (name, description) from YAML frontmatter, or ("", "").
nanoresearch/skills.py:101
↓ 1 callersMethod_failed_import_packages
(validation: dict[str, Any] | None)
nanoresearch/agents/runtime_env/_validation.py:70
↓ 1 callersMethod_fallback_abstract
(core: dict[str, Any], grounding: GroundingPacket | None = None)
nanoresearch/agents/writing/section_writer.py:407
↓ 1 callersMethod_fallback_title
(core: dict[str, Any])
nanoresearch/agents/writing/section_writer.py:349
↓ 1 callersFunction_fetch_file_tree
Fetch the repository file tree (first 100 files).
mcp_server/tools/github_search.py:100
↓ 1 callersFunction_fetch_readme
Fetch repository README content.
mcp_server/tools/github_search.py:130
↓ 1 callersMethod_figure_artifact_summary
(figure_output: dict | None, grounding: GroundingPacket)
nanoresearch/agents/writing/writing_agent.py:560
↓ 1 callersMethod_find_anchor_span
( cls, content: str, old: str, *, max_extra_lines: int = 8, )
nanoresearch/agents/experiment/__init__.py:278
↓ 1 callersMethod_find_best_metrics
Find the best metric values across all rounds.
nanoresearch/agents/feedback_analyzer.py:294
↓ 1 callersMethod_find_compatible_existing_python
Return an existing Python environment that already satisfies imports.
nanoresearch/agents/runtime_env/__init__.py:144
↓ 1 callersMethod_find_definition_block_span
(cls, content: str, old: str)
nanoresearch/agents/experiment/__init__.py:300
↓ 1 callersMethod_find_download_scripts
Find shell/Python scripts whose name suggests data downloading.
nanoresearch/agents/setup_github.py:107
↓ 1 callersMethod_find_existing_job
Check if a previous SLURM job exists (from a crashed run). Returns (job_id, status) if found, None otherwise.
nanoresearch/agents/execution/cluster_runner.py:83
↓ 1 callersFunction_find_matching_brace
Find the matching closing brace for ``text[open_brace_index] == '{'``.
nanoresearch/agents/writing/_latex_helpers.py:39
↓ 1 callersMethod_find_primary_metric
Return the primary metric name from blueprint, or first available.
nanoresearch/agents/analysis/__init__.py:484
↓ 1 callersMethod_find_rstrip_line_span
(cls, content: str, old: str)
nanoresearch/agents/experiment/__init__.py:262
↓ 1 callersMethod_find_subsection_end_for_figure
r"""Find a result subsection for fallback figure placement. Result figures must be placed inside the Experiments section. Without thi
nanoresearch/agents/writing/latex_bib_figures.py:342
↓ 1 callersMethod_find_table_span
Find span of ``\\begin{table}...\\end{table}`` enclosing *label*.
nanoresearch/agents/writing/grounding_tables.py:515
← previousnext →501–600 of 1,278, ranked by callers