Skip to content

Commit 7e7eb1c

Browse files
committed
added agents.rst
1 parent 155393b commit 7e7eb1c

3 files changed

Lines changed: 47 additions & 5 deletions

File tree

maintenance/cooling/measuring_glycol_freezing_point.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
Using the refractometer to measure the freezing point of ethylene glycol
2-
========================
1+
Measurement of coolant freezing point
2+
==========================================================================
33

4-
The cleanroom at LCO stocks an Extech R41 model refractometer in the cabinet (might be in a toolbox). It is in a black semi-hardshell case about the size of an eyeglasses case.
4+
We have and an Extech R41 model refractometer in the MagAO-X "Cooling system parts, tools, and hardware" box in the cleanroom.
5+
It is in a black semi-hardshell case about the size of an eyeglasses case.
56

67
Usage
78
----------
89

910
.. image:: figures/ExtechR41_refractometer_UserManual.png
1011

11-
Latest measurement
12-
----------
12+
Latest measurements
13+
------------------------
1314

1415
On 2026-03-21 we measured the MagAO-X instrument glycol concentration using the refractometer and found a freezing point of about -22 Celsius.
1516

software/agents.rst

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
Using AI Agents
2+
======================================
3+
4+
AI Policy
5+
-----------------------
6+
You are encouraged to use AI to help you write code. However, you are still responsible for the physics and engineering. The following guidelines are intended to ensure that we write code that helps MagAO-X achieve its goals, but that we also learn about how the universe works and document what we learn.
7+
8+
Standard Workflow
9+
----------------------
10+
You must still follow the standard workflow using feature branches, testing from your home directory, and pull-request to get reviewed before merging.
11+
12+
AGENTS.md
13+
---------------------------
14+
At the top level of the MagAO-X repo there is a file named `AGENTS.md`_. This file contains a set of guidelines for an AI agent to
15+
follow. While `AGENTS.md`_ is supposed to be a standard name, in practice you should always remind your agent to refer to that file.
16+
17+
.. _AGENTS.md: https://github.com/magao-x/MagAOX/blob/dev/AGENTS.md
18+
19+
If you develop a new rule while working with AI, ask it to update `AGENTS.md`_ and include it in your feature branch.
20+
21+
Plans
22+
--------------------------
23+
The current best practice is to use AI in planning mode. Describe your problem and ask the AI to create a plan. Then iterate on the
24+
plan as needed, keeping the planning document (see below) up to date. Once you are happy with the plan, then have the agent implement it.
25+
26+
Planning Documents
27+
~~~~~~~~~~~~~~~~~~~~~~~~~
28+
In the MagAO-X repo there is now a folder called `agents/plans`_. One thing that has proven useful is to write your specifications in a
29+
new file there. Then your prompt to the AI is simply to review that file, make a plan, and write out the plan to that same file. The
30+
intention is that you then commit that file as part of your feature development. The benefit to this practice will be that we now have
31+
a record of the engineering you did to create the feature.
32+
33+
.. _agents/plans: https://github.com/magao-x/MagAOX/tree/dev/agents/plans
34+
35+
Blast Radius -- Follow the Rules
36+
----------------------------------------
37+
It is incredibly easy to "change all the things", or "fix all the bugs", with AI. AI agents are always willing to work, and often ask
38+
to go further if they recognize more problems. Try to avoid this. We consider it good engineering practice to make small focused
39+
changes and test them, and slowly expand. This is why it is crucial to follow the development guidelines and our git-branch-PR workflow
40+
so that we can maintain some semblance of traceability and recoverability.

software/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ The MagAO-X software system.
77
:maxdepth: 1
88

99
hacking
10+
agents
1011
python_indi_device
1112

1213
Links

0 commit comments

Comments
 (0)