lager CLI as a person does. lager agent gives the agent a guide. The guide
tells the agent how to find boxes and nets, and how to run tests. It also
tells the agent which commands are safe, and when to ask a human first.
The guide is part of the CLI, so it always agrees with the installed version.
After you update the CLI, run lager agent install again.
Syntax
Commands
Options
Usage
What the Agent Learns
The guide tells the agent to:- Name the box in every command, with
--boxorLAGER_BOX. - Use JSON output, and read the error envelope and the exit code.
- Use a time limit on every stream, for example
lager uart NET --duration 10. - Read the DUT context and the metadata of each net before it plans a test.
- Write tests as
lager pythonscripts, and turn power off at the end.
The guide is text that the agent reads. It does not prevent a command.
Your Changes Are Safe
install and uninstall change only the files that lager wrote. If you
change a file, lager keeps your version and exits with code 1. Use --force
to replace it. In AGENTS.md, lager changes only the text between its
BEGIN lager-cli agent guide and END lager-cli agent guide markers.
You can commit a project install to your repository. A teammate who runs
lager agent install gets the same update rules.
