From b1519d46db549fdedd3fcd3f7dfef677e901a252 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Fri, 23 Oct 2026 12:30:14 +0100 Subject: [PATCH] docs: link the PyAutoLabs AI options page; retire OpenCode/Gemini/chat legacy (#87) Shorter README getting-started block linking the shared AI options page, AI_OPTIONS.md stub beside AI_POLICY.md, .gemini/settings.json removed, AGENTS.md and llms.txt harness wording updated. Co-Authored-By: Claude Fable 5.1 --- .gemini/settings.json | 5 --- AGENTS.md | 8 ++--- AI_OPTIONS.md | 5 +++ README.md | 66 +++++++++++++------------------------ llms.txt | 4 +-- modes/maintainer.md | 36 ++++++++++---------- skills/start-new-project.md | 3 +- 7 files changed, 54 insertions(+), 73 deletions(-) delete mode 100644 .gemini/settings.json create mode 100644 AI_OPTIONS.md diff --git a/.gemini/settings.json b/.gemini/settings.json deleted file mode 100644 index 5e535b2..0000000 --- a/.gemini/settings.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "context": { - "fileName": ["AGENTS.md", "GEMINI.md"] - } -} diff --git a/AGENTS.md b/AGENTS.md index 2121436..29875db 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,8 +2,8 @@ You are working inside **autocti_assistant**, the PyAutoCTI AI Assistant: an agent workspace combining instructions, skills, wiki content, and science-project machinery for real lens -modelling. **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. +modelling. **This file is the canonical, agent-agnostic source of truth.** Claude Code, Codex +and other agents read it directly; never maintain a parallel copy. **Interaction principle.** When a decision genuinely depends on something you don't know, ask one focused question — never default to the longest possible explanation. @@ -47,8 +47,8 @@ deliberate refactor). Two are NEVER overridden: the real-data gate and never-rew 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 ""` (or `--file `) 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. diff --git a/AI_OPTIONS.md b/AI_OPTIONS.md new file mode 100644 index 0000000..6b48d71 --- /dev/null +++ b/AI_OPTIONS.md @@ -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. diff --git a/README.md b/README.md index 69f94a6..e1244cf 100644 --- a/README.md +++ b/README.md @@ -12,55 +12,35 @@ index of what exists today. ## Getting Started -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 PyAutoCTI and its arctic dependency, run calibrations and look at -the trails they produce. You do not have to run anything to use it: asking what CTI is, planning a calibration or +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 PyAutoCTI and its arctic dependency, run calibrations and look +at the trails they produce. You do not have to run anything to use it: asking what CTI is, planning a calibration 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. Their setup pages live in the sibling assistant and apply here with this repository's URL: - [Claude Code](https://github.com/PyAutoLabs/autolens_assistant/blob/main/docs/setup/claude_code.md) · - [Codex](https://github.com/PyAutoLabs/autolens_assistant/blob/main/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 sets up the PyAutoCTI stack (including arcticpy, which needs a compiler and GSL - headers — see [`skills/ac_setup_environment.md`](skills/ac_setup_environment.md)) after your first prompt: - - ```bash - git clone https://github.com/PyAutoLabs/autocti_assistant.git - cd autocti_assistant - claude # or: codex - ``` - -3. **Submit the starting prompt:** - - Example Natural Language Prompt for Claude Code, Codex or other AI coding agent - - ```text - I'm new to PyAutoCTI. Explain what charge transfer inefficiency is and how a calibration works, then run the - 1D calibration demonstration in scripts/demonstrations/demo_1_calibrate_1d.py, show me the fit, and check that - it recovers the input trap density and release timescale. - ``` +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). -Start the prompt with `Teacher mode.` if you want the detector physics explained as you go, or ask it to plan a -calibration and discuss the trap model before anything runs. +Clone this repository and start the agent inside it. The assistant sets up the PyAutoCTI stack after your first +prompt (arcticpy needs a compiler and GSL headers, see [`skills/ac_setup_environment.md`](skills/ac_setup_environment.md)): + +```bash +git clone https://github.com/PyAutoLabs/autocti_assistant.git +cd autocti_assistant +claude # or: codex +``` + +Then submit the starting prompt: -## Experimental alternatives +Example Natural Language Prompt for Claude Code, Codex or other AI coding agent -**OpenCode** is an open-source coding agent whose *client* is free. Model access is separate: you connect it to a -provider, and the cost, capability and availability of the model are the provider's, not OpenCode's; free models are -often limited-time offerings, and not every model can drive the assistant (it must handle multi-step tool use and be -able to look at figures). **No free provider/model configuration has yet been validated against any PyAuto assistant**, -so treat OpenCode as compatible rather than tested. Setup and caveats are on the sibling assistant's -[OpenCode page](https://github.com/PyAutoLabs/autolens_assistant/blob/main/docs/setup/opencode_cli.md); use this -repository's URL. +```text +I'm new to PyAutoCTI. Explain what charge transfer inefficiency is and how a calibration works, then run the +1D calibration demonstration in scripts/demonstrations/demo_1_calibrate_1d.py, show me the fit, and check that +it recovers the input trap density and release timescale. +``` -Browser chats with a GitHub connector are **not supported**. Maintainer-facing notes on evaluating further agents are -in the sibling assistant's -[`docs/evaluation/agent_evaluation.md`](https://github.com/PyAutoLabs/autolens_assistant/blob/main/docs/evaluation/agent_evaluation.md). +Start the prompt with `Teacher mode.` if you want the detector physics explained as you go, or ask it to plan a +calibration and discuss the trap model before anything runs. ## What ships today diff --git a/llms.txt b/llms.txt index f85f716..a998657 100644 --- a/llms.txt +++ b/llms.txt @@ -4,12 +4,12 @@ ## How to use it -The assistant is supported **only inside an AI coding agent** that can read this repository and execute Python: **Claude Code** or **Codex** (recommended and tested), or **OpenCode** as an experimental alternative. Clone the repository and open the agent inside it — `AGENTS.md` (via `CLAUDE.md` for Claude Code) loads automatically: +The assistant is supported **only inside an AI coding agent** that can read this repository and execute Python: **Claude Code** or **Codex** (recommended and tested). Free options (GitHub Copilot CLI, OpenCode) are on the [PyAutoLabs AI options page](https://github.com/PyAutoLabs/PyAutoScientist/blob/main/AI_OPTIONS.md). Clone the repository and open the agent inside it; `AGENTS.md` loads automatically: ```bash git clone https://github.com/PyAutoLabs/autocti_assistant.git cd autocti_assistant -claude # or: codex / opencode +claude # or: codex ``` Then paste the starting prompt from the [README](./README.md). Desktop and IDE versions of these agents are fine when they provide the same repository and execution access. Browser chats with a GitHub connector are **not supported**: they cannot run the arctic-backed stack or inspect data, which the assistant's safeguards depend on. diff --git a/modes/maintainer.md b/modes/maintainer.md index a1cd3c0..be01583 100644 --- a/modes/maintainer.md +++ b/modes/maintainer.md @@ -102,24 +102,26 @@ maintainer smoke tests below. `benchmarks/runs/` and the regenerated `benchmarks/RESULTS.md`. A newborn starts with empty runs and regenerates `RESULTS.md` via `python autoassistant/benchmark.py report`. -## Chat-surface compatibility smoke test - -Run these checks after documentation changes are available on the public GitHub repository. Do -not claim a surface is tested merely because its documentation says repository access is -supported. - -- **ChatGPT with GitHub access:** provide the repository URL and the bootstrap prompt from - [`llms.txt`](../llms.txt); ask it to name the exact instruction, skill-index, and wiki files - it read before answering one installation question and one modelling question. -- **ChatGPT without GitHub access:** attach `llms.txt`, `AGENTS.md`, and one selected skill; - confirm it states the capability boundary and requests missing local evidence rather than - pretending to inspect files. +## Agent and chat compatibility smoke test + +The user-facing routes are listed on the shared +[PyAutoLabs AI options page](https://github.com/PyAutoLabs/PyAutoScientist/blob/main/AI_OPTIONS.md): +Claude Code and Codex recommended, GitHub Copilot CLI and OpenCode as free routes (documented, +not benchmarked), and chat with a GitHub connector for discussion only. Change that page, not +this repository, when the routes change. Do not claim a route is tested merely because its +documentation says repository access is supported. + +- **Copilot CLI or OpenCode with a named model:** run one benchmark prompt from the repository + root. Confirm it reads `AGENTS.md`, runs `autoassistant/audit_skill_apis.py` on generated + code, and can describe a plotted figure (vision). +- **Chat with a GitHub connector (Claude.ai, ChatGPT):** attach the repository and use the + opening prompt from the AI options page; ask it to name the instruction, skill-index and wiki + files it read before answering one installation question and one modelling question. Confirm + it produces commands for the user to run instead of claiming execution. - **Codex web:** connect the repository, ask it to summarize the active `AGENTS.md` constraints, then request a read-only plan for a small modelling task. Confirm it grounds the plan in the relevant skill and does not make an unrequested edit or pull request. -- **Non-agentic CLI/chat:** provide the same bootstrap and either browsing access or attached - files; confirm it produces commands for the user to run instead of claiming execution. -Record the surface, date, plan/account context, files successfully loaded, and any limitations. -Plan availability changes, so test results should describe observed behavior rather than promise -that a feature is free for every user. +Record the route, model, date, plan/account context, files successfully loaded, and any +limitations. Plan availability changes, so test results should describe observed behavior rather +than promise that a feature is free for every user. diff --git a/skills/start-new-project.md b/skills/start-new-project.md index 8289ea2..917fbec 100644 --- a/skills/start-new-project.md +++ b/skills/start-new-project.md @@ -111,7 +111,6 @@ reproducible-science subset; generate the thin assistant layer; refer back for e README.md # front door: reproduce + continue-this-work (template below) AGENTS.md # thin: project context + refer-back + locate rule (below) CLAUDE.md # one-line `@AGENTS.md` stub - .gemini/settings.json # context.fileName -> AGENTS.md .claude/settings.json # PyAuto* API code-gate via refer-back (below) project.yaml # minimal manifest incl. assistant_ref (below) config/ activate.sh scripts/ # copied above @@ -167,7 +166,7 @@ This project ships the assistant's PyAuto* **API code-gate** (`.claude/settings. Bash runs generated PyAuto* code, a hook resolves the assistant (same order as above) and validates the symbols against the installed stack, denying code written from memory. It fails open if no assistant clone is found. Only Claude Code runs `.claude/` hooks — on any other -harness (Codex, OpenCode, Gemini CLI), self-enforce it: run +harness (Codex, GitHub Copilot CLI, OpenCode), self-enforce it: run `python /autoassistant/audit_skill_apis.py --code ""` (or `--file `) on generated PyAuto* code before executing it; never guess symbols.