MCPcopy Create free account

hub / github.com/OpenRaiser/NanoResearch / functions

Functions1,278 in github.com/OpenRaiser/NanoResearch

↓ 2 callersMethod_find_section_end
r"""Find the character position at the END of a \section{heading}'s content. Returns the position just before the next \section{} or bibliogr
nanoresearch/agents/writing/latex_bib_figures.py:385
↓ 2 callersMethod_first_non_empty
(*values: Any)
nanoresearch/evolution/memory_analyzer.py:34
↓ 2 callersMethod_fix_common_slurm_issues
Fix known SLURM script issues that LLMs commonly produce.
nanoresearch/agents/_debug_helpers.py:102
↓ 2 callersFunction_fix_json_escapes
Fix invalid JSON escape sequences produced by LaTeX content. LLM outputs often contain raw LaTeX like \\cite{}, \\textbf{}, \\frac{} inside J
nanoresearch/agents/_base_helpers.py:122
↓ 2 callersMethod_fix_mismatched_environments
Auto-fix ``\\begin{X}...\\end{Y}`` mismatches in LaTeX source. Common LLM errors: ``\\begin{equation}...\\end{parameter}``, ``\\begin
nanoresearch/agents/review/consistency.py:206
↓ 2 callersMethod_fix_timeout
When quick-eval times out, apply deterministic speed-ups to main.py. Instead of sending a vague "timeout" to the LLM for batch-fix, we apply
nanoresearch/agents/experiment/_code_runner_helpers.py:32
↓ 2 callersFunction_flush
()
nanoresearch/skills.py:134
↓ 2 callersMethod_format_check_summary
(check: PreflightResult)
nanoresearch/agents/preflight.py:70
↓ 2 callersFunction_format_code_context
Format code files into a single context string.
nanoresearch/agents/code_editor.py:127
↓ 2 callersFunction_format_numbers_in_text
Keep generated captions/prose from exposing raw float precision.
nanoresearch/agents/writing/grounding_tables.py:114
↓ 2 callersMethod_format_resource_paths
Format downloaded resource paths for inclusion in prompts.
nanoresearch/agents/coding_helpers.py:102
↓ 2 callersMethod_generate_fallback_chart
Fallback for failed figure generation. Data charts are marked failed rather than filled with made-up values. Conceptual figures get a
nanoresearch/agents/figure_gen/code_figure.py:215
↓ 2 callersMethod_generate_file
Generate a single source file.
nanoresearch/agents/coding.py:427
↓ 2 callersMethod_generate_iteration_hypothesis
LLM generates the next iteration hypothesis from feedback.
nanoresearch/agents/experiment/iteration.py:77
↓ 2 callersFunction_get_arxiv_search
()
nanoresearch/agents/ideation.py:51
↓ 2 callersMethod_get_best_round
Return result data from the best round, or the last round as fallback.
nanoresearch/agents/experiment/_iteration_helpers.py:278
↓ 2 callersMethod_get_chat_lock
(self, chat_id: str)
nanoresearch/feishu_bot_core.py:181
↓ 2 callersMethod_get_job_status
Query SLURM for job status.
nanoresearch/agents/execution/cluster_runner.py:168
↓ 2 callersMethod_get_memory
(self, chat_id: str)
nanoresearch/feishu_bot_core.py:174
↓ 2 callersMethod_heuristic_instruction_list
(self, domain: SkillDomain | str, trace: str)
nanoresearch/evolution/skills.py:287
↓ 2 callersFunction_insert_into_preamble
Insert a LaTeX preamble snippet before ``\\begin{document}``.
nanoresearch/pipeline/_workspace_helpers.py:157
↓ 2 callersFunction_is_finite
(v)
nanoresearch/agents/analysis/training_dynamics.py:125
↓ 2 callersMethod_is_method_schematic_label
(fig_key: str, figure_block: str = "")
nanoresearch/agents/writing/latex_bib_figures.py:231
↓ 2 callersFunction_is_usable_performance_value
(value: Any)
nanoresearch/agents/figure_gen/evidence.py:22
↓ 2 callersMethod_json_mode_fallback_supported
( exc: Exception, kwargs: dict[str, Any], )
nanoresearch/pipeline/multi_model.py:173
↓ 2 callersFunction_latex_escape_cell
Escape LaTeX-special chars in table cells (headers and method names).
nanoresearch/agents/analysis/comparison_matrix.py:60
↓ 2 callersMethod_launch_contract_code_dir
(self, cluster_code_path: str)
nanoresearch/agents/cluster_executor.py:90
↓ 2 callersFunction_linear_slope
Least-squares slope (no numpy needed).
nanoresearch/agents/analysis/training_dynamics.py:133
↓ 2 callersMethod_load_iteration_checkpoint
Load iteration checkpoint if available. Returns (state, start_round) where start_round is the round to resume from (1 if no checkpoin
nanoresearch/agents/experiment/iteration.py:40
↓ 2 callersFunction_load_stage_data
(ws: Workspace)
nanoresearch/agents/paper_snapshot.py:414
↓ 2 callersMethod_load_stage_output
Load previously saved output for a completed stage.
nanoresearch/pipeline/base_orchestrator.py:333
↓ 2 callersMethod_local_preflight
Run local checks before submitting to SLURM. Tests: 1. Python syntax check (py_compile) on all .py files 2. Import check -- t
nanoresearch/agents/execution/local_runner_helpers.py:122
↓ 2 callersMethod_merge_trajectory
(existing: list[str], incoming: list[str] | None, *, limit: int = 6)
nanoresearch/evolution/memory.py:355
↓ 2 callersMethod_monitor_job
Poll SLURM until job completes. Returns final status.
nanoresearch/agents/execution/cluster_runner.py:129
↓ 2 callersMethod_normalize_conditions
(conditions: dict[str, Any] | None)
nanoresearch/evolution/memory.py:338
↓ 2 callersMethod_package_import_candidates
(package_name: str)
nanoresearch/agents/runtime_env/_validation.py:29
↓ 2 callersFunction_paper_apply
(editor: "PaperEditor", instruction: str)
nanoresearch/cli_paper_edit.py:165
↓ 2 callersMethod_parse_edits
Parse LLM response into edit objects.
nanoresearch/agents/code_editor.py:344
↓ 2 callersMethod_parse_json_tail
(stdout: str)
nanoresearch/agents/cluster_executor.py:151
↓ 2 callersFunction_parse_ram_output
Extract structured sections from RAM output text.
nanoresearch/evolution/ram.py:66
↓ 2 callersFunction_path_within_root
(path: Path, root: Path)
nanoresearch/agents/project_runner_core.py:142
↓ 2 callersMethod_per_session_env_name
Deterministic conda env name for the current session. Uses ``nanoresearch_{sanitized_label}`` so that resume reuses the same env (ide
nanoresearch/agents/runtime_env/__init__.py:290
↓ 2 callersMethod_persist_nl_skills
(self, skills: list[NaturalLanguageSkill])
nanoresearch/evolution/skills.py:275
↓ 2 callersMethod_persist_remediation_ledger
( self, remediation_ledger: list[dict[str, Any]] | None, )
nanoresearch/agents/execution/repair_ledger.py:128
↓ 2 callersMethod_precompile_static_layout_audit
r"""Run deterministic layout hygiene before LaTeX compilation. The goal is to make the first compiled PDF reasonable: compact floats,
nanoresearch/agents/writing/latex_figure_placement.py:563
↓ 2 callersFunction_print_edit_result
Pretty-print the result of an edit operation.
nanoresearch/cli_code_edit.py:192
↓ 2 callersFunction_print_health
Print health check results as a table.
nanoresearch/cli_paper_edit.py:440
↓ 2 callersFunction_print_paper_result
Pretty-print paper edit result.
nanoresearch/cli_paper_edit.py:169
↓ 2 callersMethod_recover_metrics_contract_from_logs
(self, result: dict[str, Any])
nanoresearch/agents/execution/result_collector.py:59
↓ 2 callersMethod_relocate_intro_figures
r"""Move non-architecture figures out of the Introduction section. Ablation, results, and training-curve figures don't belong in Intr
nanoresearch/agents/writing/latex_figure_placement.py:301
↓ 2 callersMethod_relocate_post_bib_figures
r"""Move any \begin{figure}...\end{figure} blocks that appear after \bibliography back to their proper positions in the document body.
nanoresearch/agents/writing/latex_figure_placement.py:91
↓ 2 callersMethod_repair_repeat_count
( fix_history: list[dict[str, Any]], signature: str, )
nanoresearch/agents/execution/repair_ledger.py:51
↓ 2 callersFunction_repair_truncated_json
Attempt to repair JSON that was truncated by output token limit. Strategy: close any open strings, arrays, and objects from the end.
nanoresearch/agents/_base_helpers.py:302
↓ 2 callersMethod_repair_truncated_json
Attempt to repair JSON that was truncated mid-output. Handles common truncation patterns: unterminated strings, missing closing brack
nanoresearch/agents/review/section_extraction.py:65
↓ 2 callersFunction_resolve_command_path
(token: str, code_dir: Path)
nanoresearch/agents/project_runner_core.py:152
↓ 2 callersMethod_resolve_user_python
Resolve a user-supplied environment spec to a Python executable. Accepts three formats: 1. Direct path to python executable (file ex
nanoresearch/agents/runtime_env/__init__.py:81
↓ 2 callersMethod_review_single_section
Review a single section of the paper. Returns a SectionReview with detailed feedback including strengths (to be preserved during revi
nanoresearch/agents/review/single_review.py:74
↓ 2 callersMethod_revise_section
Revise a single section based on reviewer feedback. Uses the WRITING-stage LLM (typically a strong generation model) rather than the
nanoresearch/agents/review/revision.py:313
↓ 2 callersMethod_rewrite_file
When patching fails, ask LLM to rewrite the entire file.
nanoresearch/agents/_debug_helpers.py:28
↓ 2 callersMethod_run_local_shell
(self, cmd: str, timeout: int = CMD_TIMEOUT)
nanoresearch/agents/cluster_executor_ops.py:33
↓ 2 callersMethod_safe_parse_json
Parse JSON from LLM response, stripping markdown fences.
nanoresearch/agents/figure_gen/save_figure.py:160
↓ 2 callersMethod_sanitize_bibtex
Fix common Unicode issues in BibTeX entries and deduplicate.
nanoresearch/agents/writing/latex_bib_figures.py:17
↓ 2 callersMethod_scp_upload
(self, local: str, remote: str, timeout: int = SCP_TIMEOUT)
nanoresearch/agents/cluster_executor_ops.py:84
↓ 2 callersMethod_search_literature
(self, queries: list[str])
nanoresearch/agents/ideation_search.py:34
↓ 2 callersMethod_setup_venv
Prepare a Python environment for experiment execution. Reuses a configured or already-compatible local environment first, and only cr
nanoresearch/agents/experiment/_code_runner_helpers.py:152
↓ 2 callersFunction_shell_join_command
(tokens: list[str])
nanoresearch/agents/project_runner_core.py:251
↓ 2 callersFunction_short_metric_name
Compact metric labels for paper tables.
nanoresearch/agents/writing/grounding_tables.py:17
↓ 2 callersFunction_show_paper_status
Show paper overview: sections, figures, review score.
nanoresearch/cli_paper_edit.py:232
↓ 2 callersFunction_shutdown_handler
(*_args)
nanoresearch/feishu_bot.py:307
↓ 2 callersMethod_skill_tokens
(self, skill: NaturalLanguageSkill)
nanoresearch/evolution/skills.py:359
↓ 2 callersMethod_slug
(value: str)
nanoresearch/agents/planning.py:424
↓ 2 callersFunction_split_torch_requirements
Split a list of requirement specifiers into torch-family and non-torch. Returns (torch_specs, other_specs). torch_specs are raw specifier string
nanoresearch/agents/runtime_env/_discovery.py:108
↓ 2 callersMethod_stage_allowed
(entry: SkillEntry, task_type: str)
nanoresearch/skills.py:210
↓ 2 callersMethod_stage_path
(source: Path, dest: Path)
nanoresearch/agents/setup.py:182
↓ 2 callersMethod_strip_json_fence
(raw: str)
nanoresearch/agents/experiment/__init__.py:199
↓ 2 callersFunction_summarize_coding_output
(coding_output: dict[str, Any], workspace: Workspace)
nanoresearch/_smoke_helpers.py:192
↓ 2 callersMethod_summarize_round_trajectory
(self, rounds: list[Any], *, limit: int = 4)
nanoresearch/evolution/memory_analyzer.py:50
↓ 2 callersFunction_truncate_tool_result
Bound tool output before it re-enters the LLM context.
nanoresearch/agents/_base_helpers.py:65
↓ 2 callersMethod_upload_file
(self, chat_id: str, file_path: Path)
nanoresearch/feishu_bot_handlers.py:462
↓ 2 callersFunction_utc_now
()
nanoresearch/agents/repair_journal.py:17
↓ 2 callersMethod_validate_cluster_env
( self, cluster_code_path: str, *, conda_sh: str, install_kind: str,
nanoresearch/agents/cluster_executor_env.py:25
↓ 2 callersMethod_validate_launch_contract
(self, cluster_code_path: str, script_cmd: str)
nanoresearch/agents/cluster_executor.py:102
↓ 2 callersMethod_validation_status
(details: dict[str, Any] | None, key: str)
nanoresearch/agents/runtime_env/_validation.py:52
↓ 2 callersMethod_verify_code
Verify generated Python files have valid syntax via compile().
nanoresearch/agents/experiment/code_gen.py:151
↓ 2 callersMethod_verify_torch_cuda
Verify that torch imports and CUDA is available post-install.
nanoresearch/agents/runtime_env/_install.py:308
↓ 2 callersFunction_window_span
(text: str)
nanoresearch/latex/fixer.py:360
↓ 2 callersMethod_wrap_log_metrics_for_contract
(parsed_metrics: dict[str, Any])
nanoresearch/agents/execution/result_collector.py:71
↓ 2 callersFunction_write_runner_assets
( code_dir: Path, target_command: list[str], *, target_env: dict[str, str] | None = None, )
nanoresearch/agents/project_runner_core.py:257
↓ 2 callersMethodadd_fact
(self, fact: str)
nanoresearch/feishu_bot.py:152
↓ 2 callersMethodadd_message
(self, role: str, content: str)
nanoresearch/feishu_bot.py:149
↓ 2 callersMethodapply_instruction
Run the ReAct agent loop to fulfill the user's instruction.
nanoresearch/agents/paper_editor.py:235
↓ 2 callersFunctionbootstrap_ci
Bootstrap confidence interval (no scipy needed).
nanoresearch/agents/analysis/statistics.py:67
↓ 2 callersMethodbuild_context
( self, task_type: str, *, topic: str = "", blueprint: dict | None = N
nanoresearch/skills.py:549
↓ 2 callersFunctionbuild_router_hints
(profile: dict[str, Any])
nanoresearch/profile.py:202
↓ 2 callersMethodcall
Execute a registered tool by name. Validates required parameters before calling the handler, and strips unexpected parameters to prev
nanoresearch/agents/tools.py:48
↓ 2 callersMethodcan_transition
(self, target: PipelineStage)
nanoresearch/pipeline/state.py:61
↓ 2 callersMethodcheck_imports
Check all files for import mismatches. Returns list of mismatch dicts. Each dict contains: importer: filename that has the bad im
nanoresearch/agents/import_checker.py:42
↓ 2 callersMethodclose
(self)
nanoresearch/agents/analysis/__init__.py:555
↓ 2 callersMethodclose
(self)
nanoresearch/agents/execution/cluster_runner.py:319
↓ 2 callersMethodcollect_repairable_dependency_specs
(cls, code_dir: Path)
nanoresearch/agents/runtime_env/_validation.py:134
← previousnext →301–400 of 1,278, ranked by callers