Skip to content

Created an agents.md file for working in or with the pyares library - #36

Merged
nkleiner merged 3 commits into
Developfrom
add-agents-markdown
Nov 9, 2026
Merged

nkleiner merged 3 commits into
Developfrom
add-agents-markdown

Conversation

@arthursloan

Copy link
Copy Markdown
Collaborator

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.

@arthursloan
arthursloan requested a review from nkleiner October 24, 2026 01:48

@nkleiner nkleiner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This overall looks pretty good, just a few comments to hopefully strengthen it up in some key spots.

Comment thread AGENTS.md Outdated
## 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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like Gemini grabbed on to the old Autonomous Research System name, which I've been trying to sort of stomp out

Comment thread AGENTS.md
**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).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While we're providing links it might be worth throwing in a mention of the PyAres docs here

Comment thread AGENTS.md

---

## 2. Python Environment & Build System

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread AGENTS.md Outdated

# 1. Mandatory Safe Mode Callback (must be robust, non-blocking or fast, and idempotent)
def enter_safe_mode():
heater.set_power(0.0)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread AGENTS.md Outdated
service.start()
```

#### Invariants & Rules for Device Services:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread AGENTS.md Outdated
service.start()
```

#### Invariants & Rules for Planner Services:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@arthursloan

Copy link
Copy Markdown
Collaborator Author

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 PyAres/Demo for instructions on working with PyAres. I took the explicit python code out of the markdown files and just left rules and instructions to check the demo implementations in the appropriate demos folder so we don't end up with conflicting examples if syntax changes down the road.

@nkleiner
nkleiner merged commit 0c06622 into Develop Nov 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants