KatalockAi AcademyBack to KatalockAi
Capstone 5, counts toward Phase 18

Autonomous research agent

Build an AI-scientist style agent: literature pass, best-first tree search over sandboxed experiments, budget caps, a writer with critique, a reviewer ensemble and a sandbox red team.

about 40 h Earns its own certificate Reviewed against a 6-point rubric
Submit your project Get coached by Professor Katalock

The capstone and what it builds on

  1. 1Autonomous Research Agent (AI-Scientist Class)The capstone brief
  2. 2AI Scientist v2 - Workshop-Level Autonomous ResearchPhase 15: Autonomous systems
  3. 3Tree of Thoughts and LATS: Deliberate SearchPhase 14: Agent engineering
  4. 4ReWOO and Plan-and-Execute: Decoupled PlanningPhase 14: Agent engineering
  5. 5Self-Refine and CRITIC: Iterative Output ImprovementPhase 14: Agent engineering
  6. 6Multi-Agent Debate and CollaborationPhase 14: Agent engineering
  7. 7Action Budgets, Iteration Caps, and Cost GovernorsPhase 15: Autonomous systems
  8. 8Kill Switches, Circuit Breakers, and Canary TokensPhase 15: Autonomous systems

What You'll Build

An autonomous research pipeline that takes a seed idea in a narrow ML domain, reads the literature, grows a tree of experiment variants, runs each in a locked-down sandbox, writes up the best branch as a paper and has it scored by a reviewer ensemble. The infrastructure (tree search, sandbox, budget, review loop, red team) is the point, not a new discovery.

Requirements

  1. Seed and scope config: a seed hypothesis plus the allowed search space (models, datasets, hyperparameters, compute cap per experiment).
  2. Literature pass: query a free API (Semantic Scholar, OpenAlex or arXiv) for at least 20 relevant papers, cache abstracts locally and produce a one-page digest with citations.
  3. Tree search: experiment nodes (hypothesis, config, code, expected outcome), expand(node) proposing children that each change one thing, score(node) combining novelty, quality and remaining budget, best-first selection. The full tree is persisted as JSON.
  4. Sandbox: every experiment runs with no network, memory, CPU and process limits and a read-only root (for example docker run --network=none --memory=2g --cpus=2 --pids-limit=256 --read-only), with seeds written in and outputs copied out.
  5. Plan-execute-verify: verify step checks metrics (did loss decrease, does the ablation isolate the effect); failed nodes store a failure reason.
  6. Budget: hard caps on LLM spend (dollars or tokens) and total compute, enforced in code with a kill switch; spend is logged per node.
  7. Writer: LaTeX or Markdown-to-PDF draft with matplotlib figures and a results table generated from the tree; compile, critique (vision critique of the rendered PDF if your model supports images, otherwise text plus figure checks) and revise, at most 3 rewrites.
  8. Reviewer ensemble of at least 3 judges (different models or distinct reviewer personas) scoring novelty, rigor, clarity, reproducibility and impact on a 1 to 5 scale; mean below threshold sends the draft back with critique.
  9. Red team: at least 4 adversarial experiments (fork bomb, network exfiltration, filesystem escape, shell metacharacters in generated code) all blocked, with a findings write-up.
  10. Reproducibility: one command reruns the chosen branch with the same seeds and regenerates the results table.

Constraints

  • Model-agnostic: any OpenAI-compatible endpoint (including the KatalockAi API) or a local model (for example via Ollama, llama.cpp or vLLM) may be used. No named commercial model is required; record which model you used in the README.
  • CPU path: keep experiments tiny (a 1M to 10M parameter transformer on a small text corpus, or classic ML on sklearn datasets), each under about 5 minutes on a laptop CPU. A GPU is optional.
  • Substitution: the lesson uses a $30 per paper cap, 100M-parameter experiments and five frontier judges. Here any enforced budget cap you choose (for example $5 or a token cap), tiny experiments and 3 or more judges are accepted.
  • Docker (or another container runtime) is required for the sandbox.
  • Pick your own seed idea; the generated paper must state clearly that it was produced by an automated agent.

Stretch Goals

  • Compare the tree search against a flat random search at the same budget.
  • Add a human approval gate for experiments estimated above a cost threshold and measure spend saved.
  • Measure single-judge vs ensemble false accepts on deliberately weak drafts.

How to Submit

  • Public GitHub repo with agent/ (tree, planner, verifier), sandbox/, writer/, review/, redteam/, runs/<run-id>/ (tree.json, paper.pdf, review.md, spend log) and README.md.
  • README: seed idea and search space, architecture, how to run end to end and how to reproduce, budget and sandbox policy, red-team results and limitations.
  • Paste the run log summary, the reviewer scores, the spend log totals and the red-team results table.

How It's Reviewed

Professor Katalock reads your repository and the evidence you paste, and scores each criterion out of 100. You pass with a weighted total of 70 or more and no criterion below 40. A copied or padded submission is flagged and fails.

CriterionWeightHow it's checked
Paper quality15Generated paper in runs/ is coherent, and every claim maps to a cell in the results table produced by the tree.
Experimental rigor20Baselines, seeds and ablations are present; verify step and failure reasons visible in tree.json.
Cost and compute discipline15Budget cap enforced in code with a kill switch; spend log shows per-node cost and the run stayed under cap.
Safety20Sandbox flags (no network, limits, read-only) in code; red-team table shows 4 or more attack types blocked with evidence.
Reproducibility and code structure15One command reruns the chosen branch with the same seeds and reproduces the table; modules for search, sandbox, writer and review are cleanly separated.
README: design decisions and limitations15README explains search scoring, judge design and budget choices, reflects on what failed in the learner's own run and states limits.

Submit

Push your work to a public GitHub repository with a README that explains how to run it, then paste the evidence below. Up to 3 reviews a day, free.

  • Run log summary (nodes expanded, best branch, total spend)
  • Reviewer ensemble scores per judge and the final mean
  • Red-team results table (attack, expected block, observed result)
  • Output of the one-command reproduction showing the regenerated results table
  • Short reflection on what the agent got wrong and how you constrained it

Reviews are done by AI against the rubric above. They check the evidence in your repository; they are not a substitute for a human code review, and a review can be wrong. If you think it is, improve the README so the evidence is unmistakable and resubmit.