Skip to content

chainabit agents import ​

Import agent definitions from a folder, a file or https://host/repo.git#<commit>[:path]; nothing runs at import

Synopsis ​

text
chainabit agents import <source> [options]

Arguments ​

ArgumentDescriptionDefault
<source>Required.—

Options ​

OptionDescriptionDefault
--to <scope>user (default) or project (trusted folder only)"user"
--confirmWrite the shown files—
--replaceReplace an existing definition after checking both digests—

Options shared by every command are described in Global options and shared behavior.

Behavior ​

Copies agent definition files (Markdown with name and description front matter) into the agents folder of your user scope, or with --to project into the .chainabit/agents folder of a trusted project. Nothing runs at import.

  • The command first shows the source, the destination and the SHA-256 prefix of each definition, then writes nothing until you pass --confirm. Without it the command exits with code 2 and says so.
  • An existing definition with the same name is kept unless you pass --replace, which replaces it after checking both digests.
  • The source is a folder, a single file, or an https Git repository at a commit: https://host/repo.git#<commit>, optionally followed by :<path>.

See Run agents on this computer.

Examples ​

The file below is a placeholder; use your own definition.

bash
chainabit agents import ./reviewer.md
chainabit agents import ./reviewer.md --confirm

Built with purpose. chainabit.com