Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenRaiser/NanoResearch
/ functions
Functions
1,278 in github.com/OpenRaiser/NanoResearch
⨍
Functions
1,278
◇
Types & classes
194
↳
Endpoints
2
↓ 1 callers
Method
_slug
(text: str)
nanoresearch/evolution/skills.py:162
↓ 1 callers
Function
_slugify
Convert text to a filesystem-safe slug.
nanoresearch/pipeline/_workspace_helpers.py:109
↓ 1 callers
Method
_smart_trim_figure
LLM-driven figure trimming. Flow: 1. Send original image to LLM → LLM decides if trim needed 2. If yes, LLM writes Python cro
nanoresearch/agents/figure_gen/trim.py:93
↓ 1 callers
Method
_smart_truncate
Truncate paper text preserving high-priority sections. Instead of naive head/tail split (which often drops Method/Experiment), keep p
nanoresearch/agents/review/apply_revisions.py:160
↓ 1 callers
Method
_snap_to_pair_boundary
Move *idx* forward so it lands on a user message (pair start).
nanoresearch/agents/paper_condenser.py:193
↓ 1 callers
Method
_split_ablation
Split ablation entries into (full_result_dict, variants_list). Identifies the full model by name first; falls back to best score (dir
nanoresearch/agents/analysis/__init__.py:505
↓ 1 callers
Function
_split_sections
Split full text into sections based on heading patterns.
mcp_server/tools/pdf_reader.py:148
↓ 1 callers
Method
_spread_consecutive_figures
r"""Detect consecutive \begin{figure}...\end{figure} blocks with no text paragraph between them and spread them apart. Strategy (cont
nanoresearch/agents/writing/latex_figure_placement.py:393
↓ 1 callers
Method
_stage_workspace_resources
( cls, resources: list[dict], data_dir: Path, models_dir: Path, )
nanoresearch/agents/setup.py:207
↓ 1 callers
Method
_static_skill_tokens
(self, entry: dict[str, Any])
nanoresearch/evolution/skills.py:365
↓ 1 callers
Function
_std
(xs: list[float])
nanoresearch/agents/analysis/training_dynamics.py:145
↓ 1 callers
Method
_strip_abstract_environment
Keep templates responsible for abstract wrapping; LLMs often add it anyway.
nanoresearch/agents/writing/section_writer.py:189
↓ 1 callers
Method
_strip_command_option
(tokens: list[str], option: str)
nanoresearch/agents/execution/repair_commands.py:71
↓ 1 callers
Method
_submit_job
Submit a SLURM batch job and return the job ID.
nanoresearch/agents/execution/cluster_runner.py:102
↓ 1 callers
Method
_summarize_available_resources
( cls, code_dir: Path, resource_context: dict[str, Any] | None, )
nanoresearch/agents/execution/repair_runtime.py:363
↓ 1 callers
Method
_summarize_local_iteration
Create a concise experiment summary for downstream writing/analysis.
nanoresearch/agents/execution/local_runner_helpers.py:97
↓ 1 callers
Method
_supplementary_search
( self, missing_directions: list[str], existing_papers_dict: dict[str, dict], )
nanoresearch/agents/ideation_search.py:407
↓ 1 callers
Method
_table_metrics_match
Check if an LLM-generated table's metric columns match the grounding packet.
nanoresearch/agents/writing/grounding_tables.py:581
↓ 1 callers
Function
_task_type_to_subsystem
Map pipeline task type to RAM subsystem name.
nanoresearch/agents/base.py:58
↓ 1 callers
Function
_timestamp_token
()
nanoresearch/smoke_execution.py:35
↓ 1 callers
Method
_topic_relevance_score
(self, topic: str, paper: dict)
nanoresearch/agents/ideation_search.py:256
↓ 1 callers
Method
_topic_tokens
(topic: str)
nanoresearch/agents/ideation_search.py:250
↓ 1 callers
Function
_training_entry_finite
Check that numeric fields in a training log entry are finite.
nanoresearch/agents/experiment/__init__.py:108
↓ 1 callers
Function
_trim_json_fragment
Trim the last incomplete JSON element from a fragment.
nanoresearch/agents/_base_helpers.py:288
↓ 1 callers
Function
_truncate_shell_chain
(tokens: list[str])
nanoresearch/agents/project_runner_core.py:59
↓ 1 callers
Function
_unescape_identifier_args
(src: str)
nanoresearch/latex/fixer.py:150
↓ 1 callers
Function
_unwrap_shell_wrapper
(tokens: list[str])
nanoresearch/agents/project_runner_core.py:81
↓ 1 callers
Method
_update_best_round
Track the current best round using the primary metric heuristic.
nanoresearch/agents/execution/local_runner_helpers.py:53
↓ 1 callers
Function
_update_environment_stack
Track LaTeX environments while scanning document lines.
nanoresearch/agents/writing/_latex_helpers.py:90
↓ 1 callers
Method
_validate_action
(action: dict[str, Any], router_x: dict[str, Any])
nanoresearch/router_policy.py:188
↓ 1 callers
Method
_validate_citation_coverage
Validate citation quality of the written paper. Checks: 1. Total citation count 2. Must-cite papers referenced 3. Cit
nanoresearch/agents/writing/citation_manager.py:484
↓ 1 callers
Function
_validate_command_target
( tokens: list[str], code_dir: Path, *, allow_runner_recursion: bool = True, )
nanoresearch/agents/project_runner_validate.py:42
↓ 1 callers
Method
_validate_cross_stage_refs
Validate cross-stage references. Logs warnings, never errors.
nanoresearch/pipeline/base_orchestrator.py:374
↓ 1 callers
Method
_validate_data_paths
Scan generated code for file path references and check they exist.
nanoresearch/agents/coding_helpers.py:222
↓ 1 callers
Method
_validate_figures_in_latex
r"""Validate that every figure file from figure_output has \includegraphics in the LaTeX. Missing figures are injected near their \ref{fig:..
nanoresearch/agents/writing/latex_bib_figures.py:530
↓ 1 callers
Method
_validate_user_python
Quick smoke-test: can this python execute?
nanoresearch/agents/runtime_env/__init__.py:128
↓ 1 callers
Method
_validation_requires_venv_rebuild
(cls, validation: dict[str, Any] | None)
nanoresearch/agents/runtime_env/_validation.py:61
↓ 1 callers
Method
_verify_and_inject_tables
Verify Experiments section has correct tables; inject if missing or wrong.
nanoresearch/agents/writing/grounding_tables.py:530
↓ 1 callers
Function
_workspace_entrypoint_candidates
(code_dir: Path)
nanoresearch/agents/project_runner_core.py:238
↓ 1 callers
Function
_workspace_python_files
(code_dir: Path, *, max_depth: int = 4)
nanoresearch/agents/project_runner_core.py:223
↓ 1 callers
Method
_wrap_stage_output
Wrap agent output with a stage-specific key.
nanoresearch/pipeline/base_orchestrator.py:328
↓ 1 callers
Method
_write
Atomic write of the progress file.
nanoresearch/pipeline/progress.py:45
↓ 1 callers
Method
_write_figure_reference_sentence
Ask the configured writing model for a constrained figure-reference sentence.
nanoresearch/agents/writing/writing_agent.py:600
↓ 1 callers
Function
_write_synthetic_binary_csv
( path: Path, *, rows: int, features: int, seed: int, )
nanoresearch/smoke_execution.py:43
↓ 1 callers
Method
allows_runtime_package
( self, package_name: str, *, module_name: str = "", aliases: dict[str
nanoresearch/agents/runtime_env/_types.py:87
↓ 1 callers
Function
analyze_training_dynamics
Analyze training curve for convergence, overfitting, stability. Args: training_log: List of dicts with keys like "epoch", "train_loss",
nanoresearch/agents/analysis/training_dynamics.py:10
↓ 1 callers
Method
as_dict
(self)
nanoresearch/router_policy.py:81
↓ 1 callers
Function
build_arg_parser
()
nanoresearch/_smoke_helpers.py:203
↓ 1 callers
Function
build_comparison_matrix
Build method comparison matrix with best/second-best annotations. Args: baselines: [{"name": str, "metrics": {metric_name: value}}]
nanoresearch/agents/analysis/comparison_matrix.py:5
↓ 1 callers
Function
build_experiment_tools
Create a ToolRegistry with all experiment tools.
nanoresearch/agents/experiment_tool_handlers.py:205
↓ 1 callers
Method
build_history_prompt
(self, current_text: str)
nanoresearch/feishu_bot.py:166
↓ 1 callers
Function
build_paper_context
Build a concise paper status summary to inject into the conversation.
nanoresearch/agents/paper_condenser.py:282
↓ 1 callers
Function
build_profile_seed
(archetype: str)
nanoresearch/profile.py:186
↓ 1 callers
Method
check_config_yaml
Verify a config file exists (YAML, JSON, or Python config module).
nanoresearch/agents/preflight.py:113
↓ 1 callers
Method
check_connectivity
(self)
nanoresearch/agents/cluster_executor_ops.py:116
↓ 1 callers
Method
check_data_references
Scan code for data paths/URLs; check for forbidden fabricated-data fallback.
nanoresearch/agents/preflight.py:350
↓ 1 callers
Method
check_import_resolution
Check that all 'from src.xxx import' can resolve to src/xxx.py files.
nanoresearch/agents/_preflight_helpers.py:14
↓ 1 callers
Method
check_main_entrypoint
Verify a Python entrypoint exists (main.py, train.py, run.py, etc.).
nanoresearch/agents/preflight.py:417
↓ 1 callers
Method
check_requirements
Check requirements.txt for parse errors and obvious conflicts.
nanoresearch/agents/preflight.py:238
↓ 1 callers
Function
cohens_d
Effect size (Cohen's d) between two groups.
nanoresearch/agents/analysis/statistics.py:51
↓ 1 callers
Method
collect_declared_dependency_names
(cls, code_dir: Path)
nanoresearch/agents/runtime_env/_validation.py:130
↓ 1 callers
Function
comparison_matrix_to_latex
r"""Render comparison matrix as LaTeX tabular. Best values are \textbf{bold}, second-best are \underline{underlined}. Metric names and method
nanoresearch/agents/analysis/comparison_matrix.py:70
↓ 1 callers
Method
complete_ram_triple
Complete the pending RAM triple with downstream feedback.
nanoresearch/agents/base.py:366
↓ 1 callers
Method
complete_triple
Attach downstream feedback, write completed triple to disk.
nanoresearch/evolution/ram_data.py:103
↓ 1 callers
Method
compute_logprobs
Compute per-token log-probabilities for ``output_text`` given ``input_text`` as context. Used by the SDPO trainer for the original po
nanoresearch/evolution/ram.py:368
↓ 1 callers
Method
decide
(self, payload: dict[str, Any], *, post_feedback: bool = False)
nanoresearch/router_policy.py:116
↓ 1 callers
Method
diff_snapshots
Compare two snapshots (or latest snapshot vs current state).
nanoresearch/agents/paper_editor.py:371
↓ 1 callers
Method
download_results
(self, cluster_code_path: str, local_workspace: Path)
nanoresearch/agents/cluster_executor_ops.py:320
↓ 1 callers
Function
enrich_citation_counts_openalex
Enrich papers with citation counts from OpenAlex via title matching. For each paper with citation_count=0, searches OpenAlex by title and upd
mcp_server/tools/openalex.py:202
↓ 1 callers
Function
enrich_tool_error
Build an error dict with context-aware recovery hints.
nanoresearch/agents/paper_condenser.py:315
↓ 1 callers
Method
export_review_registry
(self)
nanoresearch/skills.py:215
↓ 1 callers
Method
extract_context
Extract prompt-injection context from matched skills. Returns a *SkillContext* with: - phase1_context: domain knowledge (high-value s
nanoresearch/skills.py:336
↓ 1 callers
Function
extract_text_from_bytes
Extract structured text from PDF bytes. Args: pdf_bytes: Raw PDF file content. max_pages: Maximum pages to process. Returns:
mcp_server/tools/pdf_reader.py:72
↓ 1 callers
Method
extract_writing_context
Extract writing-specific context for the WritingAgent. Returns a single block of text combining venue formatting rules, scientific wr
nanoresearch/skills.py:407
↓ 1 callers
Method
fail
Shortcut to transition to FAILED from any non-terminal stage.
nanoresearch/pipeline/state.py:83
↓ 1 callers
Method
for_section
Build a contract guidance block for a specific section.
nanoresearch/agents/writing/_types.py:76
↓ 1 callers
Method
from_string
Parse from string like 'survey:short:' or 'original:' prefix.
nanoresearch/schemas/manifest.py:47
↓ 1 callers
Function
generate_figure
Generate a figure and save it as PNG. Args: figure_type: One of "bar_chart", "line_chart", "table", "placeholder". data: Figure-s
mcp_server/tools/figure_gen.py:14
↓ 1 callers
Function
generate_full_paper
Generate a complete paper LaTeX document. Args: data: Must include 'title', 'authors', 'abstract', 'sections', 'references_
mcp_server/tools/latex_gen.py:75
↓ 1 callers
Method
generate_image
Generate images — routes to OpenAI images API or Gemini native API.
nanoresearch/pipeline/_multi_model_helpers.py:188
↓ 1 callers
Method
generate_with_usage
Like generate(), but returns an LLMResult with usage metadata.
nanoresearch/pipeline/multi_model.py:224
↓ 1 callers
Function
get_nanoresearch_home
()
nanoresearch/profile.py:164
↓ 1 callers
Function
get_openalex_papers_batch
Fetch details for multiple papers using OpenAlex filter. Uses pipe-separated ID filter: /works?filter=openalex:W123|W456|... Up to ~50 IDs pe
mcp_server/tools/openalex.py:146
↓ 1 callers
Function
get_openalex_references
Snowball sampling via OpenAlex: get referenced works for top-cited papers. For each paper, looks up its OpenAlex record to get `referenced_works`
mcp_server/tools/openalex.py:248
↓ 1 callers
Function
get_paper_details
Get detailed paper info including citations and references. Args: paper_id: Semantic Scholar paper ID or arXiv:XXXX.XXXXX format. Re
mcp_server/tools/semantic_scholar.py:126
↓ 1 callers
Function
get_ram_prompts
Return (system_prompt, user_template) for a subsystem. Raises ``KeyError`` if *subsystem* is not one of ``method_gen``, ``code_impl``, ``pape
nanoresearch/evolution/ram_prompts.py:134
↓ 1 callers
Function
get_sota
Get SOTA leaderboard results for a given task. NOTE: The PapersWithCode API is defunct. This now returns an empty list with a warning. Use Se
mcp_server/tools/paperswithcode.py:65
↓ 1 callers
Function
get_style_files
Return LaTeX style files bundled with a template format. Templates may be pure Jinja files with no additional .sty/.cls/.bst resources. In th
nanoresearch/templates/__init__.py:47
↓ 1 callers
Function
get_template_path
Get the path to a specific template format. Args: format_name: Name of the format (e.g., 'neurips', 'icml', 'arxiv') Returns:
nanoresearch/templates/__init__.py:25
↓ 1 callers
Method
handle_message
(self, chat_id: str, message_id: str, text: str, sender_id: str)
nanoresearch/feishu_bot_core.py:198
↓ 1 callers
Function
handle_tool_call
Dispatch a tool call to the appropriate handler.
mcp_server/server.py:174
↓ 1 callers
Method
increment_retry
(self, stage: PipelineStage)
nanoresearch/pipeline/workspace.py:252
↓ 1 callers
Function
init_profile
Create or refresh the long-term NanoResearch user profile.
nanoresearch/cli.py:448
↓ 1 callers
Method
install_dependency_specs
( self, python: str, code_dir: Path, specs: list[str], *, sour
nanoresearch/agents/runtime_env/_install.py:32
↓ 1 callers
Method
list_nanoresearch_conda_envs
List all ``nanoresearch_*`` conda environments. Returns list of ``{"name": str, "path": str}``.
nanoresearch/agents/runtime_env/_conda.py:170
↓ 1 callers
Method
list_snapshots
(self)
nanoresearch/agents/paper_snapshot.py:49
↓ 1 callers
Method
load_triples
Load completed triples from disk. Parameters ---------- subsystem : str, optional Filter to a specific subsystem.
nanoresearch/evolution/ram_data.py:132
↓ 1 callers
Function
main
()
mcp_server/server.py:353
↓ 1 callers
Function
main
(argv: list[str] | None = None)
nanoresearch/smoke_execution.py:289
↓ 1 callers
Function
main
()
nanoresearch/feishu_bot.py:235
← previous
next →
801–900 of 1,278, ranked by callers