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 **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.
Expand Down Expand Up @@ -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 "<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.
66 changes: 23 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:**

<sub><b>Example Natural Language Prompt for Claude Code, Codex or other AI coding agent</b></sub>

```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
<sub><b>Example Natural Language Prompt for Claude Code, Codex or other AI coding agent</b></sub>

**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

Expand Down
4 changes: 2 additions & 2 deletions llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
36 changes: 19 additions & 17 deletions modes/maintainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
3 changes: 1 addition & 2 deletions skills/start-new-project.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 <resolved-assistant>/autoassistant/audit_skill_apis.py --code "<snippet>"` (or
`--file <script.py>`) on generated PyAuto* code before executing it; never guess symbols.

Expand Down
Loading