Repository navigation
Created an agents.md file for working in or with the pyares library - #36
Conversation
nkleiner
left a comment
There was a problem hiding this comment.
This overall looks pretty good, just a few comments to hopefully strengthen it up in some key spots.
| ## 1. What This Project Is | ||
|
|
||
| **PyAres** is the official Python SDK and gRPC service framework for the **ARES** | ||
| (Autonomous Research System) self-driving laboratory ecosystem. It bridges native Python |
There was a problem hiding this comment.
Looks like Gemini grabbed on to the old Autonomous Research System name, which I've been trying to sort of stomp out
| **PyAres** is the official Python SDK and gRPC service framework for the **ARES** | ||
| (Autonomous Research System) self-driving laboratory ecosystem. It bridges native Python | ||
| code with the centralized [ARES OS 2](https://github.com/AFRL-ARES/ARES) orchestrator using | ||
| Protocol Buffers and gRPC via [`ares-datamodel`](https://github.com/AFRL-ARES/ares-datamodel). |
There was a problem hiding this comment.
While we're providing links it might be worth throwing in a mention of the PyAres docs here
|
|
||
| --- | ||
|
|
||
| ## 2. Python Environment & Build System |
There was a problem hiding this comment.
This section gives me some minor concerns simply because outlining specific versions means suddenly our agents.md becomes an additional place that needs updated every time that we update our packages. I'd recommend instead supplying direction to an agent to check the .toml file to understand the dependencies instead.
|
|
||
| # 1. Mandatory Safe Mode Callback (must be robust, non-blocking or fast, and idempotent) | ||
| def enter_safe_mode(): | ||
| heater.set_power(0.0) |
There was a problem hiding this comment.
We have a lot of these sorts of placeholder values without actually making note of the fact they're placeholders, which I could see causing some models to hallucinate when referencing the file. I don't think we need to do a full implementation example of a fake piece of hardware here, rather adjusting these comments to make it clear these are placeholder device names would help avoid hallucinations
| service.start() | ||
| ``` | ||
|
|
||
| #### Invariants & Rules for Device Services: |
There was a problem hiding this comment.
We don't really do any talking about the explicit implementation of the hardware wrapper, a system which is probably a preferable implementation standard (creating a Heater class that handles the hardware level communications). It might be worthwhile to include an example of what that wrapper style looks like.
| service.start() | ||
| ``` | ||
|
|
||
| #### Invariants & Rules for Planner Services: |
There was a problem hiding this comment.
Might be worth pointing out that parameters can be planned for independently and in batches based on how the codes parsing and planning logic works
…rate file to avoid unecessary context.
|
Just pushed up a new commit with the AGENTS.md focused on working on working on PyAres and directing the reader to the BEST_PRACTICES.md located in |
Based on discussions and experiences during the SiLA 2 device hackathon I suggest we add instructions for LLM agentic systems covering repo structure, best practices and implementation guidelines. This instruction set was generated with one of the nicer Gemini models with some minor tweaks from me. @nkleiner Give it a read-through and let me know what you think.