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
Method
_read_paper_pdf
Download a paper PDF and extract its full text or a specific section.
nanoresearch/agents/writing/section_writer.py:290
Method
_read_tex_from_zip
(snap_id: str)
nanoresearch/agents/paper_editor.py:375
Method
_repair_inline_math_escapes
(match: re.Match)
nanoresearch/agents/writing/latex_assembler.py:688
Method
_repair_inline_math_in_prose_line
(line: str)
nanoresearch/agents/writing/latex_assembler.py:413
Method
_repair_split_subscript_math
(tex: str)
nanoresearch/agents/writing/latex_assembler.py:610
Method
_replace_equation_by_label
(tex: str, label: str, replacement: str)
nanoresearch/agents/writing/latex_assembler.py:758
Method
_round_long_decimal
(match: re.Match)
nanoresearch/agents/writing/latex_assembler.py:644
Method
_run
(cmd: str, timeout: int = 10)
nanoresearch/agents/debug.py:145
Function
_run_chart_subprocess
Run a chart-plotting subprocess with proper process-tree cleanup on timeout.
nanoresearch/agents/figure_gen/_constants.py:32
Function
_run_command
Run a shell command and return stdout/stderr.
nanoresearch/agents/experiment_tools.py:232
Method
_run_local_training
( self, code_dir: Path, command: list[str], )
nanoresearch/agents/execution/local_runner_helpers.py:222
Method
_run_pipeline_thread
(self, chat_id: str, topic: str, env_name: str = "")
nanoresearch/feishu_bot_handlers.py:352
Method
_run_stage_with_retry
(self, stage, topic: str, accumulated: dict)
nanoresearch/pipeline/evo_orchestrator.py:47
Method
_run_stage_with_retry
Run stage with retry, then complete RAM triple on success.
nanoresearch/pipeline/deep_orchestrator.py:139
Method
_run_subprocess_sync
( command: list[str], *, cwd: Path | None = None, timeout: int = 60, e
nanoresearch/agents/execution/cluster_runner.py:286
Function
_search_files
Search for files matching a glob pattern.
nanoresearch/agents/experiment_tools.py:296
Method
_search_papers
(query: str, max_results: int = 5)
nanoresearch/agents/review/multi_reviewer.py:36
Method
_search_papers
(query: str, max_results: int = 5)
nanoresearch/agents/writing/section_writer.py:219
Method
_section_lengths
(tex: str)
nanoresearch/agents/paper_editor.py:385
Method
_short_method_prompt
()
nanoresearch/agents/figure_gen/ai_figure.py:59
Function
_slugify
(text: str)
nanoresearch/profile.py:380
Method
_stabilize_spec
(spec: str)
nanoresearch/agents/coding_helpers.py:173
Method
_sync_figure_count
Keep figure_count in sync with len(figures).
nanoresearch/schemas/figure.py:25
Function
_sync_search
()
mcp_server/tools/web_search.py:38
Function
_tool_compile_pdf
Compile paper.tex to PDF and return page count.
nanoresearch/agents/paper_snapshot.py:339
Function
_tool_edit_tex
Direct search/replace on paper.tex.
nanoresearch/agents/paper_snapshot.py:214
Function
_tool_fix_latex
Run LaTeX sanitiser + compile fix loop (auto-diagnose and repair errors).
nanoresearch/agents/paper_snapshot.py:353
Function
_tool_get_paper_info
Read paper metadata: title, sections, page count, figure count, citations.
nanoresearch/agents/paper_snapshot.py:81
Function
_tool_list_figures
List all figure files and their info.
nanoresearch/agents/paper_snapshot.py:227
Function
_tool_read_experiment_results
Read experiment results for grounding.
nanoresearch/agents/paper_snapshot.py:380
Function
_tool_read_section
Read the LaTeX content of a specific section.
nanoresearch/agents/paper_snapshot.py:134
Function
_tool_regenerate_figure
Regenerate figures using FigureAgent with style/content guidance. If target_figure is set, only that figure key is regenerated. Otherwise all
nanoresearch/agents/paper_snapshot.py:258
Function
_tool_rewrite_section
Rewrite a section using the LLM with specific instructions.
nanoresearch/agents/paper_snapshot.py:164
Function
_tool_run_review
Run ReviewAgent: score + revise the paper.
nanoresearch/agents/paper_snapshot.py:305
Method
_transitions
(self)
nanoresearch/pipeline/state.py:56
Method
_try_deterministic_fix
Level 1: Delegate to shared latex_fixer.deterministic_fix().
nanoresearch/agents/review/latex_compile.py:320
Function
_version_callback
(value: bool)
nanoresearch/cli.py:117
Function
_write_file
Write content to a file. Creates parent directories if needed.
nanoresearch/agents/experiment_tools.py:181
Method
ablation_discussion
()
nanoresearch/agents/writing/grounding_tables.py:822
Method
active_count
Number of non-forgotten events.
nanoresearch/agents/paper_condenser.py:108
Method
add_candidate
(path_value: str, kind: str, name: str)
nanoresearch/agents/execution/repair_resources.py:100
Method
add_figure_block
(block: str, *, placement: str = "ht", width: str = "0.58\\linewidth")
nanoresearch/agents/writing/grounding_tables.py:882
Function
apply_edits
Apply search-replace edits to LaTeX source. Each edit is {"old": "exact text", "new": "replacement"}. Uses whitespace-normalized matching as
nanoresearch/latex/fixer.py:342
Method
apply_instruction
Apply a natural-language instruction to the code. 1. Auto-snapshot before changes 2. Read all code files 3. Ask LLM for edits
nanoresearch/agents/code_editor.py:219
Function
build_error_snippet
Build a numbered code snippet around the error line. Expands the window to include complete LaTeX environments (figure, table, align, equatio
nanoresearch/latex/fixer.py:248
Function
build_search_replace_prompt
Build the user prompt for Level 2 LLM search-replace fix.
nanoresearch/latex/_fixer_helpers.py:85
Method
cancel_job
(self, job_id: str)
nanoresearch/agents/cluster_executor_ops.py:357
Function
check_ai_writing_patterns
Detect AI-generated writing patterns in LaTeX source. Checks for: - Banned AI phrases (strong indicators) - Overused AI vocabulary (weak
nanoresearch/agents/_checkers_helpers.py:48
Function
check_bare_special_chars
Find bare ``&`` and ``#`` outside math environments and tables.
nanoresearch/agents/checkers.py:266
Function
check_latex_consistency
Check LaTeX source for structural consistency issues.
nanoresearch/agents/checkers.py:28
Function
check_math_formulas
Check math formulas for basic consistency issues.
nanoresearch/agents/checkers.py:89
Method
check_resources
(self)
nanoresearch/agents/cluster_executor_ops.py:361
Function
check_unicode_issues
Detect non-ASCII characters that may break LaTeX compilation.
nanoresearch/agents/checkers.py:312
Function
check_unmatched_braces
Detect lines with unmatched ``{`` / ``}`` braces.
nanoresearch/agents/checkers.py:221
Method
clamp_title
(value: str, limit: int = 115)
nanoresearch/agents/writing/section_writer.py:377
Function
classify_error
Classify LaTeX error for targeted LLM guidance. Args: error_lower: Lowercased error log text. Returns: Human-readable hint s
nanoresearch/latex/fixer.py:200
Function
cleanup_envs
Remove per-session conda environments (nanoresearch_*). Lists all nanoresearch_* conda environments and optionally removes them to reclaim di
nanoresearch/cli_paper_edit.py:281
Function
clear_cache
Clear the prompt cache (useful for testing or hot-reloading).
nanoresearch/prompts/__init__.py:56
Method
close
(self)
nanoresearch/pipeline/base_orchestrator.py:111
Method
close
Close agents and unload RAM model.
nanoresearch/pipeline/deep_orchestrator.py:191
Method
close
(self)
nanoresearch/agents/setup_github.py:445
Method
close
(self)
nanoresearch/agents/coding_helpers.py:459
Method
close
(self)
nanoresearch/agents/_debug_helpers.py:209
Method
code_dir
(self)
nanoresearch/pipeline/workspace.py:306
Function
code_edit
Interactive code editor with LLM assistance and auto-backup. Enter instructions in natural language. The LLM reads your code, makes changes,
nanoresearch/cli_code_edit.py:16
Method
combined_context
(self)
nanoresearch/skills.py:513
Method
completion_tokens
(self)
nanoresearch/pipeline/cost_tracker.py:23
Method
complexity_discussion
()
nanoresearch/agents/writing/grounding_tables.py:841
Method
compute_hindsight_logprobs
Compute per-token log-probabilities under the hindsight policy. The hindsight policy conditions on feedback: ``log π_θ(y_i | x, o, y_{<i})``.
nanoresearch/evolution/ram.py:398
Function
compute_significance_report
Full significance report for one metric comparison.
nanoresearch/agents/analysis/statistics.py:93
Method
concise_topic
(raw_topic: Any)
nanoresearch/agents/writing/section_writer.py:384
Method
create_snapshot
(self, label: str = "")
nanoresearch/agents/paper_snapshot.py:36
Method
current
(self)
nanoresearch/pipeline/state.py:44
Method
decay
(self, *, project_key: str = "", amount: float | None = None)
nanoresearch/evolution/memory.py:581
Function
deep
Compatibility alias for the unified deep-backbone pipeline.
nanoresearch/cli_commands.py:140
Function
delete
Delete a research session and its workspace.
nanoresearch/cli_commands.py:102
Function
detect_truncation
Detect if LLM output was likely truncated mid-generation. Checks for unbalanced braces, incomplete environments, and sentences ending abruptl
nanoresearch/agents/_base_helpers.py:335
Function
deterministic_fix
Apply deterministic LaTeX fixes. Returns modified tex or None if unchanged. Args: tex_source: LaTeX source code. error_log: Compi
nanoresearch/latex/fixer.py:66
Method
discard_pending
Drop all pending (incomplete) triples. Returns count discarded.
nanoresearch/evolution/ram_data.py:195
Method
drafts_dir
(self)
nanoresearch/pipeline/workspace.py:294
Function
error_signature
Compute a short hash of the error log tail for dedup.
nanoresearch/latex/_fixer_helpers.py:48
Method
execute_script_skill
( self, skill: ScriptSkill, *, args: list[str] | None = None, cwd: Pat
nanoresearch/evolution/skills.py:823
Function
export
Export a completed session to a clean output folder.
nanoresearch/cli_commands.py:34
Method
export_for_training
Export triples as a single JSONL file for the SDPO trainer. Returns the number of triples written.
nanoresearch/evolution/ram_data.py:170
Function
extract_error_lines
Extract line numbers from a LaTeX error log. Prioritizes actual error lines over warnings.
nanoresearch/latex/_fixer_helpers.py:13
Method
facts
(self)
nanoresearch/feishu_bot.py:146
Function
feishu
Launch Feishu bot for triggering NanoResearch pipeline via Feishu messages. Requires a Feishu app with App ID/Secret configured via FEISHU_AP
nanoresearch/cli_commands.py:230
Method
figure_ref
(key: str, block: str)
nanoresearch/agents/writing/grounding_tables.py:878
Method
figures_dir
(self)
nanoresearch/pipeline/workspace.py:298
Method
filter
(self, record: logging.LogRecord)
nanoresearch/cli.py:86
Method
filter_kind
(items: list[dict[str, str]])
nanoresearch/agents/execution/repair_resources.py:221
Method
finalize_success
(*, output, manifest, source, strategy)
nanoresearch/agents/cluster_executor_env.py:373
Method
find_result
(*needles: str)
nanoresearch/agents/writing/grounding_tables.py:761
Method
flat_metrics
(value: Any)
nanoresearch/agents/analysis/__init__.py:199
Method
fmt_metric
(value: float | None, suffix: str = "")
nanoresearch/agents/writing/grounding_tables.py:783
Method
generate
Generate a completion using the configured model.
nanoresearch/pipeline/multi_model.py:213
Method
generate_json_validated
Call LLM, parse as JSON, and validate against a Pydantic model. On validation failure, feeds the error back to the LLM for one retry.
nanoresearch/agents/base.py:608
Method
generate_with_image
Generate a completion with an image attachment (vision).
nanoresearch/pipeline/_multi_model_helpers.py:29
Method
generate_with_tools
Generate a completion with optional tool/function calling.
nanoresearch/pipeline/_multi_model_helpers.py:117
Function
get_papers_batch
Fetch details for multiple papers in a single request (up to 500). Uses POST /paper/batch — consumes only 1 API call for up to 500 papers. A
mcp_server/tools/semantic_scholar.py:173
← previous
next →
1,101–1,200 of 1,278, ranked by callers