Run an AI agent
Project description
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: optionally work directory
command: bash command to run
- name: name of other step
original: original instruction
condition: 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
--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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trobz_agent-0.2.2.tar.gz.
File metadata
- Download URL: trobz_agent-0.2.2.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7595790e7f4f2e5a7a20511834c7e28476cc056d6ec7a1a24db43ac63d9adc36
|
|
| MD5 |
4adf500eb8d65fc82af9d885e62027ae
|
|
| BLAKE2b-256 |
d719f3f11aa0324cb5397448afc2e0d0f715781f31eca9f2ff63da8f67302fce
|
File details
Details for the file trobz_agent-0.2.2-py3-none-any.whl.
File metadata
- Download URL: trobz_agent-0.2.2-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86ddda47ad5e1c511500c64e969a6185fbc074bb9aff39ac05bbd0db3b8c0571
|
|
| MD5 |
fb9fb2dc74649749cf35c362e562fac1
|
|
| BLAKE2b-256 |
fa094c4da95d9f897b72eaae6327dfb0bb787688cc884c23aef7ea3e2de38a40
|