How to wrap my agent with Aitm?
You may want to create a wrapper script (a shim) so that:
- your IDE/Agent orchestrator would detect your agent
- you would call then the wrapper script (ie pi) instead of aitm pi
- you can set your own env
Example: Steps by step
- Create a wrapper script at ~/.local/bin for example for pi:
- verify that it's first in your PATH
Configuration
Shim directory
When searching for command, the files (not the symlink) in this directory and subdirectories are excluded to avoid recursion (ie aitm calls a shim that calls aitm that calls the shim)
By default, the shim directory is the user home directory.
You can set it with:
- the AITM_SHIM_DIR env
- the -sd or --shim-dir option
Example: