agent.py
This is to run different AI agents.
Installation
uv pip install git+https://github.com/trobz/agent.py
Usage
agent <instructions>
Run the above command to run the agent with instructions and default codex agent.
agent --instructions-file <instructions file name>
agent -f <instructions file name>
Alternatively run one of the above commands to run the agent with instructions in the file name.
agent --workflow <workflow file name>
agent -w <workflow file name>
Or one of the above command can be ran to run the agent with multiple instructions in workflow file name. The format of the workflow file is as follows:
- name: name of the work flow
code: code of the work flow
steps:
- name: name of the step
original: original instruction
work_dir: optional work directory
command: bash command to run
- name: name of other step
original: original instruction
condition: optional bash command to run and check the return code
instruction: instruction to run the agent
- name: name of other step
original: original instruction
ignore: true
notes: notes
step can have files set to a list of files to include in the instruction for the agent to consult.
step can have commit_if_change set to either true or a string to commit the changes. If set to true, the step name is used as the commit message. If set to a string, the string is used instead.
--backend <agent name>
Add the above option to run the agent with agent name. Available agents: codex, opencode, and gemini.
--mode <mode>
Add the above option to run the agent with the mode. Available modes: normal, yolo. Mode yolo is to run codex with --dangerously-bypass-approvals-and-sandbox option and run gemini with --yolo option.
--model
Add the above option to use a different model.
Metadata
Release files for trobz-agent 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| trobz_agent-1.0.3.tar.gz | 16.3 kB | Without provenance | Details for trobz_agent-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trobz_agent-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for trobz_agent-1.0.3-py3-none-any.whl |
Total release size: 33.3 kB
Release files / trobz_agent-1.0.3.tar.gz
| Download URL | trobz_agent-1.0.3.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffc4a679e5484f78393f49da262f21775ec6b92806bcd44f6f314c586f7d83d1
|
|
BLAKE2b-256 checksum How to use checksums |
2678677970c49587fff54dd1bcd493cba010ea671f03d70785fe4d730da75bee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / trobz_agent-1.0.3-py3-none-any.whl
| Download URL | trobz_agent-1.0.3-py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
47585a9e304500e30aae5e879150a908941e787f22b5d9b8b69b127a5e5de63a
|
|
BLAKE2b-256 checksum How to use checksums |
d4b5b4ebf8c7b39ebbf0533c4db3a9b431a7dd8da82d6dfa885d44db87327461
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for trobz-agent 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.