Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .gemini/settings.json

This file was deleted.

8 changes: 4 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

You are working inside **autofit_assistant**, the PyAutoFit AI Assistant: an agent workspace
combining instructions, skills, wiki content, and science-project machinery for real Bayesian
inference. **This file is the canonical, agent-agnostic source of truth.** `CLAUDE.md` imports
it and `.gemini/settings.json` points here; never maintain a parallel copy.
inference. **This file is the canonical, agent-agnostic source of truth.** Claude Code, Codex
and other agents read it directly; never maintain a parallel copy.

**What makes this assistant different.** PyAutoFit is domain-agnostic: it fits *your* model to
*your* data with *your* likelihood. Unlike a domain assistant (e.g. `autolens_assistant`,
Expand Down Expand Up @@ -50,8 +50,8 @@ never-rewrite-history.
and blocks ones written from memory. If blocked, don't guess — grep `skills/` or introspect
`dir()`, then re-run. Claude Code and Codex both register this hook from their
project config. In Codex, review and trust the current project-hook hash with `/hooks`;
changed or untrusted hooks are skipped. **On any other harness (OpenCode, Gemini CLI,
an IDE agent) self-enforce it**: run
changed or untrusted hooks are skipped. **On any other harness (GitHub Copilot CLI,
OpenCode, an IDE agent) self-enforce it**: run
`python autoassistant/audit_skill_apis.py --code "<snippet>"` (or `--file <script.py>`) on
generated PyAuto\* code before executing it. Codex registers the PreToolUse safety gates,
not the separate Claude remote-session Python bootstrap; use `source activate.sh` normally.
Expand Down
5 changes: 5 additions & 0 deletions AI_OPTIONS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# PyAutoLabs AI Options

PyAutoLabs uses one AI options page across all of its assistants.

Read the [PyAutoLabs AI Options](https://github.com/PyAutoLabs/PyAutoScientist/blob/main/AI_OPTIONS.md) page.
68 changes: 20 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,36 +34,26 @@ written out so you can read ahead or work through them on your own.

## Setting up the assistant

The assistant runs inside an **AI coding agent** — a tool that reads this repository, executes Python on your
computer and inspects the results. That is what lets it install **PyAutoFit**, wrap your likelihood code, run
searches and look at the plots they produce. You do not have to run anything to use it: discussing a model, choosing
priors, planning an analysis or learning in Teacher Mode all happen inside the same agent.

1. **Choose Claude Code or Codex.** These are the two recommended agents. Codex discovery and safety adapters have
focused validation; full science fits depend on the local environment — see [Claude Code](docs/setup/claude_code.md) and [Codex](docs/setup/codex_cli.md). For sustained
scientific work expect to pay for one of them, but how depends on your situation: a personal subscription, access
through your institution or team, or usage-based API billing. Check the provider's current plans rather than
assuming a subscription is the only route. The setup below uses the CLI; the linked smoke record describes
its tested coverage.
2. **Open the assistant workspace.** Clone this repository and start the agent inside it — the instructions load
automatically, and the assistant installs PyAutoFit for you if it is missing:

```bash
git clone https://github.com/PyAutoLabs/autofit_assistant.git
cd autofit_assistant
claude # or: codex
```

3. **Submit the starting prompt — the tour begins.** Paste the prompt at the top of this README and the assistant
opens the guided tour at step 1. (If you already have likelihood code, the "Bring Your Own Likelihood" prompt
under [Your own project](#bring-your-own-likelihood-byol) starts **BYOL mode** instead, running the same
workflow from your code.)

**Experimental alternative.** [OpenCode](docs/setup/opencode_cli.md) is an open-source coding agent whose client is
free; the model you connect it to is a separate choice with its own cost and capability, free offerings are often
time-limited, and no provider/model configuration has yet been validated against this assistant — treat it as
compatible, not tested. Browser chats with a GitHub connector are **no longer supported** (retired 2026-09-10; the old
pages are archived with a notice under [`docs/archive/`](docs/archive/README.md)).
The assistant runs inside an **AI coding agent**: a tool that reads this repository, runs Python on your computer and
inspects the results. That is what lets it install **PyAutoFit**, wrap your likelihood code, run searches and look at
the plots they produce. You do not have to run anything to use it: discussing a model, choosing priors, planning an
analysis or learning in Teacher Mode all happen inside the same agent.

Claude Code and Codex are recommended. Free options and chat use are on the
[PyAutoLabs AI options page](https://github.com/PyAutoLabs/PyAutoScientist/blob/main/AI_OPTIONS.md).

Clone this repository and start the agent inside it. The instructions load automatically, and the assistant installs
PyAutoFit for you if it is missing:

```bash
git clone https://github.com/PyAutoLabs/autofit_assistant.git
cd autofit_assistant
claude # or: codex
```

Then paste the prompt at the top of this README and the assistant opens the guided tour at step 1. (If you already
have likelihood code, the "Bring Your Own Likelihood" prompt under [Your own project](#bring-your-own-likelihood-byol)
starts **BYOL mode** instead, running the same workflow from your code.)

## The tour, step by step

Expand Down Expand Up @@ -466,24 +456,6 @@ the priors, picking the non-linear search, and how to read the posterior. So I
come away understanding the workflow, not just the commands.
```

## Experimental: Google Colab + Gemini

[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/PyAutoLabs/autofit_assistant/blob/main/notebooks/experimental_colab.ipynb)

Two cells in a fresh CPU runtime: one installs the assistant's PyAutoFit stack,
one prints the context to copy into Colab's Gemini sidebar — the safety
invariants, teacher and BYOL modes, and the skills for composing a model,
wrapping a likelihood, running a search, plotting a fit and debugging one that
fails. After that the notebook is your sandbox: write your own cells, paste your
own likelihood, and print any other assistant file on demand with `show(...)`.

This is experimental: cloning the assistant does not automatically load its
instructions into Gemini. Follow the notebook's explicit context step. Gemini
availability depends on your Google account and Colab settings. Save a notebook
copy and download anything you want to keep before the runtime resets; this is a
small browser experiment, with larger inference projects continuing in the full
assistant.

## License

The assistant ships agent instructions and reference material derived from the public
Expand Down
15 changes: 0 additions & 15 deletions docs/archive/README.md

This file was deleted.

63 changes: 0 additions & 63 deletions docs/archive/chat/chatgpt_paid_connector.md

This file was deleted.

69 changes: 0 additions & 69 deletions docs/archive/chat/claude_chat_paid.md

This file was deleted.

47 changes: 0 additions & 47 deletions docs/setup/claude_code.md

This file was deleted.

52 changes: 0 additions & 52 deletions docs/setup/codex_cli.md

This file was deleted.

Loading
Loading