{"slug": "show-hn-hypothesis-driven-autoresearch-for-dl-research", "title": "Show HN: Hypothesis-Driven Autoresearch for DL Research", "summary": "A project called magic-machine released a hypothesis-driven autonomous research system for deep learning model and system optimization, built on Anthropic's Claude Code, the Kiseki experiment tracking tool and Python 3 with PyYAML. The system assigns a research lead to form falsifiable hypotheses, a staff researcher to challenge them, parallelized cold executors to run one experiment each, and a verifier to check measurements against artifacts, provenance, comparability and noise, with results kept, discarded, confirmed or abandoned to shape the next cycle. Objectives and constraints are defined in a project.toml file specifying metrics such as median GPU latency in ms with a target of 18.0 and guards such as validation accuracy of at least 0.90, and runs resume from file-based state rather than chat.", "body_md": "**An autonomous hypothesis-driven research system for deep learning model and system optimization.**\n\n**magic-machine** is a research lead for empirical optimization work.\n\nGive it an objective, for example, *reduce Vision Transformer inference latency while preserving accuracy on NVIDIA AGX Orin*, and it works through the research process:\n\n1. Understand the objective, metrics, guards, and constraints.\n2. The **research lead** forms falsifiable hypotheses; the**staff researcher** challenges them.\n3. Cold **executors** run one experiment each, parallelized aggressively across free resources.\n4. The **verifier** checks measurements against artifacts, provenance, comparability, and noise.\n5. Results are kept, discarded, confirmed, or abandoned; findings shape the next cycle.\n\nThe system can continue working unattended for hours. You can drop in, inspect the evidence, redirect the research, or let it proceed.\n\nThe goal is not to automate a sequence of experiments. It is to automate the empirical research process.\n\nPrerequisites: [Claude Code](https://docs.anthropic.com/en/docs/claude-code/overview), [Kiseki](https://github.com/JonnaMat/kiseki) (or adapt to any other experiment tracking tool), and Python 3 with PyYAML.\n\n```\ngit clone <this repo> ~/src/magic-machine\ncd ~/src/magic-machine\nmkdir -p scripts && cp -n config/scripts/* scripts/ && chmod +x scripts/*\nmkdir -p ~/.claude/skills ~/.claude/agents\n\nfor s in magic-machine experiment setup; do\n  ln -sfn \"$PWD/skills/$s\" ~/.claude/skills/\"$s\"\ndone\nfor a in executor verifier staff-researcher; do\n  ln -sf \"$PWD/agents/$a.md\" ~/.claude/agents/\"$a.md\"\ndone\n```\n\nThen, in an agent session:\n\n```\nRead skills/setup/SKILL.md and set this machine up.\n```\n\nSetup writes `env.toml`, `hooks.py`, and `rules.md` under `~/.config/magic-machine/` / `~/research/` and validates the installation with a smoke test.\n\n```\ncp -r templates/project ~/research/my-project\nmkdir -p ~/research/my-project/{notes,state/decisions}\n```\n\nDefine the research objective and evaluation criteria in `project.toml`:\n\n```\nschema = 1\nname = \"my-project\"\n\nobjective = \"\"\"\nOptimize model inference performance while preserving accuracy.\n\"\"\"\n\ngates = []\n\nconstraints = [\n  \"Must run on the target device at batch size 1\",\n  \"FP16 baseline must remain unchanged\",\n]\n\n[[metric]]\nmeasure = \"median GPU latency in ms\"\nbetter = \"lower\"\ntarget = 18.0\n\n[[guard]]\nmeasure = \"validation accuracy\"\nrelation = \">=\"\nvalue = 0.90\n```\n\nStart from the research workspace:\n\n```\ncd ~/research\nclaude --dangerously-skip-permissions\n```\n\nThen:\n\n```\n/magic-machine Project: my-project. Run the pre-flight, then keep going unattended.\n```\n\nInterrupted runs resume cleanly: decisions and state live in files, not in chat.", "url": "https://wpnews.pro/news/show-hn-hypothesis-driven-autoresearch-for-dl-research", "canonical_source": "https://github.com/JonnaMat/magic-machine", "published_at": "2026-12-05 02:55:17+00:00", "updated_at": "2026-12-05 03:43:26.530533+00:00", "lang": "en", "topics": ["ai-research", "ai-agents", "machine-learning", "ai-tools"], "entities": ["magic-machine", "Claude Code", "Anthropic", "Kiseki", "PyYAML", "NVIDIA AGX Orin"], "also_reported_by": [], "takeaway": "magic-machine runs unattended deep-learning optimization loops by defining objectives, metrics and guards in project.toml (e.g. median GPU latency target 18.0 ms with validation accuracy >= 0.90) and persisting decisions and state to files so interrupted runs resume cleanly.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-hypothesis-driven-autoresearch-for-dl-research", "markdown": "https://wpnews.pro/news/show-hn-hypothesis-driven-autoresearch-for-dl-research.md", "text": "https://wpnews.pro/news/show-hn-hypothesis-driven-autoresearch-for-dl-research.txt", "jsonld": "https://wpnews.pro/news/show-hn-hypothesis-driven-autoresearch-for-dl-research.jsonld"}}