Repository navigation
Description
Overview
The "start here" prompt is published on the PyAutoFit README, the RTD Quick Start and the assistant README, but nothing in autofit_assistant catches it — a new user gets an inferred assistant/teacher posture and no tour. This task adds a third mode, modes/start_here.md, that turns the RTD Natural Language Inference page into a guided, hands-on tour: for each of the page's six sections the assistant explains the step, hands the user the page's own prompt to type, runs it, shows the real output (model.info, fit image, search list, parameter table, output folder), and invites a variation before moving on. A second track replays the same six steps on the user's own science (paper or plain description → model → likelihood → search → fit → results → organise). Teacher mode and "ask anything" are visible at every step. The assistant README is restructured around the tour and the PyAutoFit RTD pages link the prompt to the mode.
Plan
- Add
modes/start_here.md: intro (what PyAutoFit is, the bundleddataset/gaussian_x1/, the Gaussian equation), then six steps with the same shape — explain → prompt to type (verbatim from the RTD page) → run + show → try a variation → check-in. - Part 2 of the same mode: the six steps on the user's own project, composing
af_adapt_to_domain,af_ingest_paper,af_wrap_likelihood,af_compose_model,af_configure_search,af_run_search,start-new-project; every step asks before acting. - Every step (both parts) ends with a fixed "ask anything / say teacher mode" footer; questions never advance the step.
- Register the mode in
AGENTS.md"Modes" with a selection rule for the start-here prompt; hand off to assistant/teacher mode after the tour. - Restructure the assistant
README.mdaround the tour (Getting Started → Setup → The tour step by step → Your own project → Teacher mode & HowToFit → License) without changing any prompt text. - PyAutoFit docs leg (docs only): one sentence on
quick_start.mdandnatural_language.mdlinking the prompt to the mode; regenerate the mismatchedmodel.infoblock; replace the dangling editorial placeholder. - Dry-run the whole tour in the worktree so every quoted output is real; save the per-step scripts to
scripts/start_here/.
Detailed implementation plan
Affected Repositories
- autofit_assistant (primary)
- PyAutoFit (docs only:
docs/overview/quick_start.md,docs/overview/natural_language.md)
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| ./autofit_assistant | main | clean |
| ./PyAutoFit | main | clean (stale merged worktree .worktrees/scientific-workflow-language, not a block) |
Suggested branch: feature/start-here-mode
Worktree: ~/Code/PyAutoLabs-wt/start-here-mode/
worktree_check_conflict start-here-mode autofit_assistant PyAutoFit → clear.
Implementation Steps
autofit_assistant/modes/start_here.md(new). Sections mirror the existing mode files (## What changes/## What stays the same/## What triggers inference) plus the tour. Trigger: the published start-here prompt or "start here"/"start_here". Posture: one step per turn, the user types the prompts, the assistant never runs ahead; composesskills/_style.md"Newcomer mode" depth with the existing skills. Runaf_setup_environmentfirst if the session-start drift check fails.- Intro: what PyAutoFit is; the workflow line model → priors → likelihood → search → results → scientific workflow;
dataset/gaussian_x1/(100 pixels, noise σ=2, truth centre=50 / normalization=25 / sigma=10 per its README); the Gaussian equation; a plot of the data; one question max ("new to Bayesian inference, or just new to PyAutoFit?"). - Part 1, six steps, each: Explain (2–4 sentences + one
wiki/core/link) → Prompt to type (verbatim fromPyAutoFit/docs/overview/natural_language.md) → Run + show → Try a variation (2–3 rewordings, e.g. "make it two Gaussians", "fix sigma to 10", "use Emcee instead") → check-in.- Compose the Model →
model.info(af_compose_model) - Define the Likelihood → log-likelihood at a random draw + model-vs-data image (
af_custom_analysis/af_wrap_likelihood) - Searches → search list incl. JAX-gradient searches, Dynesty configured (
af_configure_search) - Model Fit and Results → parameter table vs truth, max-LH plot, corner plot, output-folder tour (
af_run_search,af_plot_fit,af_load_results) - Saving and Loading →
output/tree walk, reload without re-run, aggregator one-liner (af_load_results) - Scientific Workflows → the page's three extension prompts (three Gaussians + evidence; Emcee vs Dynesty vs optimiser; investigate a saved result)
- Compose the Model →
- Part 2, own project, same shape: P0 science context (paper via
af_ingest_paperor plain description;af_adapt_to_domaininterview; profile/state written) → P1 model (af_compose_model) → P2 likelihood (af_wrap_likelihoodor a simple Analysis; data-inspection gate) → P3 search (af_configure_search) → P4 fit + results → P5 save + organise (start-new-projectoffered) → P6 extend (pointers to Scientific Workflow / Statistical Methods pages). Every P-step asks before acting; the user's likelihood code is never altered. - Fixed two-line footer on every step: ask anything ("what is a prior?") and it is explained before moving on; say "teacher mode" for full explanations. A mid-tour "teacher mode" flips
modes/teacher.mdon without leaving the tour. - Hand-off after both parts: state the session now runs in assistant (or teacher) mode; list
start-new-project,af_ingest_paper, RTD Scientific Workflow / Statistical Methods, HowToFit. - Rules: Part-1 prompts byte-identical to the RTD page; all
AGENTS.mdsafety invariants and the code gate apply; generated Python →scripts/start_here/in workspace style, one per step; "skip to step N" / "skip to my project" honoured, never skipped silently.
- Intro: what PyAutoFit is; the workflow line model → priors → likelihood → search → results → scientific workflow;
autofit_assistant/AGENTS.md"Modes": third bullet Start here (guided tour); selection rule: the start-here prompt outranks inference from the opening request,.maintainerstill outranks everything; hand-off per the mode file.autofit_assistant/README.mdrestructure: Getting Started (prompt unchanged + what happens when you type it: two tracks, ask anything, teacher mode; linkmodes/start_here.md) → Setting up the assistant (step 3: "submit the starting prompt — the tour begins") → The tour, step by step (the six RTD sections as today, each with a one-line "Try it:" nudge and the ask-anything footer) → Your own project (P0–P6 as a numbered list; existing BYO-likelihood, "Ingest this paper" and "Start a science project" prompts re-homed under P2/P0/P5) → Teacher mode and HowToFit → License. No prompt text changes.docs/setup/claude_code.mdandcodex_cli.md: the "New to Bayesian inference?" line gains "or just ask — the start-here tour takes questions at every step".- PyAutoFit docs:
quick_start.mdone sentence after the prompt (the assistant answers with its guided start-here mode);natural_language.mdone sentence in the intro; regenerate themodel.infoblock by actually running the compose step withaf.ex.Gaussianunder the requested priors (current block shows LogUniformPrior 1e-6–1e6 and sigma 0–25, contradicting the prompt); replace[Find 1D example of a random model to the data, maybe from HowToFit]?withdocs/images/toy_model_fit.pngor drop it. - Dry-run: execute Part 1 steps 1–5 and the three-Gaussian variant in the worktree (Dynesty nlive=100), save scripts to
scripts/start_here/, runpython autoassistant/audit_skill_apis.py --fileon each; dry-run Part 2 once ondataset/sne_cosmology/(nothing committed from it).
Key Files
autofit_assistant/modes/start_here.md— the new mode (tour script, both parts)autofit_assistant/modes/teacher.md,modes/assistant.md— structure to mirror; teacher.md is composed mid-tourautofit_assistant/AGENTS.md— "Modes" selection ruleautofit_assistant/README.md— restructure around the tourautofit_assistant/skills/_style.md— "Adaptive depth", "Newcomer mode", "Output folder announcement", "Generated script style"autofit_assistant/skills/af_adapt_to_domain.md— the Part-2 engineautofit_assistant/dataset/gaussian_x1/README.md— truth values quoted in the introPyAutoFit/docs/overview/natural_language.md,quick_start.md— the six prompts (lockstep source) + link sentences
Verification
- Every prompt quoted in
modes/start_here.mdappears byte-identical innatural_language.md. - Fresh session in the worktree: the start-here prompt yields (a) mode stated, (b) intro, (c) the step-1 prompt handed over and a wait; typing it prints
model.infowith the requested priors; "make it two Gaussians" prints two named components. scripts/start_here/*.pypass the API audit and run; step-4 recovery near 49.98 / 24.85 / 9.84.audit_skill_apis.py --check-versionexit 0; PyAutoFit diff touches onlydocs/overview/*.md.
Original Prompt
Click to expand starting prompt
autofit_assistant: a "start here" mode that walks a new user through the six natural-language tasks
Type: feature
Target: autofit_assistant
Repos:
- autofit_assistant
- PyAutoFit
Themes: - assistants
- docs
Difficulty: medium
Autonomy: safe
Priority: high
Consequence: notify
Witness:modes/start_here.mdexists andAGENTS.mdmode selection routes the README / RTD "start here" prompt (Begin the "start here" guide for a new user.) to it; the mode walks all six Contents sections of the RTD Natural Language Inference page in order (Compose the Model, Define the Likelihood, Searches, Model Fit and Results, Saving and Loading, Scientific Workflows), each step hands the user the page's own prompt to type, shows the result (e.g.model.info) and invites a variation before moving on; README.md andPyAutoFit/docs/overview/natural_language.mdsay the start-here prompt launches this guided mode.
Filed: 2026-09-10
Original request (verbatim)
I then want us to add to the autofit_assistant a "start_here" mode which literally does all the above setups,
guiding the new user through them. E.g. if the user writes start here, the assistant explains the 1D gaussian and
tells them to input the prompt on the 3 Gaussian model showing them model.info, and then ecnourages them to describe
the mdoel differently (e.g. make it two Guassians). It should do this for all 6 of the tasks described above.This is the prompt which users see on the PYAutoFit README.md and ohter pages, which this mode
should be linked to and initiate. IT should give them a proper intro and stpe by step, following
the natural language guide on the RTD.I want to perform scientific inference with PyAutoFit (https://github.com/PyAutoLabs/PyAutoFit) and the
autofit_assistant (https://github.com/PyAutoLabs/autofit_assistant).Begin the "start here" guide for a new user.
Context
"The above setups" / "the 6 tasks" are the six Contents sections of
@PyAutoFit/docs/overview/natural_language.md (mirrored in
@autofit_assistant/README.md "Using PyAutoFit Assistant"): model → likelihood →
search → fit/results → save/load → scientific workflows. The RTD page already
carries a ready-to-type prompt for each; the mode reuses those prompts verbatim
rather than inventing new ones.
The "start here" prompt is already published (PyAutoFit README, RTD Quick
Start, assistant README top) but nothing in the assistant catches it: the
assistant has only modes/teacher.md and modes/assistant.md, selected in
@autofit_assistant/AGENTS.md "Modes".
Scope
- @autofit_assistant/modes/start_here.md — a third mode, a guided tour: a proper
intro (what PyAutoFit is, what the bundleddataset/gaussian_x1/is, the 1D
Gaussian equation and its three parameters), then the six steps in RTD order.
Each step: explain the concept in a few sentences, hand the user the RTD
page's prompt for that step to type themselves, run it when they do (showing
the concrete output —model.infofor step 1, the fit-vs-data image for step
2, the search list for step 3, the parameter table + plot for step 4, the
output folder tour for step 5), then invite a variation ("now describe the
model differently — e.g. two Gaussians", a different prior, a different
search) before moving on. Step 6 covers the page's three scientific-workflow
extensions (three Gaussians + evidence comparison, sampler comparison,
investigate a saved result) and hands off to Bring Your Own Likelihood /
domain adaptation, Teacher mode and the Scientific Workflow page. - @autofit_assistant/AGENTS.md — register the mode in "Modes" and the selection
rule: the start-here prompt (or "start here" / "start_here") selects it; it
is a guided-onboarding posture that composes with the existing safety
invariants and skills (af_compose_model,af_run_search, ...); it steps
down into assistant/teacher mode when the tour ends. - @autofit_assistant/README.md — say under the starting prompt that it launches
the guided "start here" mode and what the six steps are; keep the prompt text
identical to PyAutoFit's. - @PyAutoFit/docs/overview/natural_language.md and
@PyAutoFit/docs/overview/quick_start.md — one sentence linking the start-here
prompt to the assistant's guided mode (the README/RTD mirror commits show
these three surfaces are kept in lockstep).
Notes
- Interpretation: "the prompt on the 3 Gaussian model showing them model.info"
is read as the step-1 compose prompt (the three-parameter Gaussian whose
model.infothe page prints); the three-component Gaussian is step 6's
first extension. Confirm during planning. - Do not duplicate the RTD prose into the mode file; the mode carries the tour
logic and points at the page's prompts. Prompts quoted in the mode must match
the RTD page word for word so the three surfaces stay in lockstep.
Follow-up requests (verbatim, same session)
Follow up details: The assistant should then, if it does not already, do a step-by-step guide for a new user to set up inference on
their own project. IT shiould begin with paper ingestion or just a description of the science they are doing,
then model composition, definining a likelihood function, picking a search and so on. The point is users should
ultimately be able to use just natural language to describe everything and then get it going. The autofit_assistant
GitHub README.md page is prob gonna need a lot of updating to be more in line with the goal here, which is
reallly to have users run these tasks and then "get it".
The notion of teacher mode and users asking questions to clarify things should be evident throughout.
Scope additions: Part 2 of the mode replays the six steps on the user's own science
(paper or plain description → model → likelihood → search → fit → results → organise),
composing af_adapt_to_domain, af_ingest_paper, af_wrap_likelihood,
af_compose_model, af_configure_search, af_run_search, start-new-project; every
step carries a fixed "ask anything / say teacher mode" footer; README restructured around
the tour (Getting Started → Setup → The tour step by step → Your own project → Teacher
mode & HowToFit → License), prompt text unchanged.
Activity
Jammy2211 commentedon Sep 10, 2026
Library PR created: PyAutoLabs/PyAutoFit#1603 (PyAutoFit docs, merges first)
Assistant PR created: #39
Both branches are feature/start-here-mode in the start-here-mode worktree. Merge via /prm in library-first order.
Jammy2211 commentedon Sep 10, 2026
Shipped
model.infoblock regenerated from a real compose step; dangling editorial placeholder removed.modes/start_here.md: turn-0 intro, Part 1 (the six RTD sections one step per turn, prompts verbatim, real outputs, variations), Part 2 (the same six steps on the user's own science viaaf_adapt_to_domainand its channels), a teacher-mode / ask-anything footer on every step;AGENTS.mdmode registration and selection rule;README.mdrestructured around the tour; setup pages;scripts/start_here/dry-run scripts (step 4 recovers 50.00 / 24.89 / 9.82; Nautilus three-Gaussian lnZ −60.23 vs −49.41).Follow-ups filed in PyAutoMind:
draft/feature/autofit_assistant/data_loading_and_selection_cuts_skill.md(no skill owns data loading + selection cuts) anddraft/bug/autofit/aggregate_csv_tests_fail_locally_pass_in_ci.md. Open on the RTD page: it still describes a random-draw fit image at "Define the likelihood" and shows none.