Install
Install cigen from source with cargo. Written so an agent can follow it.
cigen is a Rust command-line tool. There are no prebuilt binaries for the current code yet (the v0.1.0 release predates it), so install it from source.
What you need
- Rust, edition 2024 (Rust 1.85 or later), from rustup.
- protoc, the Protocol Buffers compiler. cigen compiles its plugin protocol at build time.
- macOS:
brew install protobuf - Debian or Ubuntu:
apt-get install -y protobuf-compiler
- macOS:
- git.
cigen hashusesgit ls-filesto find the files a pattern matches.
Install
cigen runs each CI provider as a separate binary, so install all three:
cargo install --locked --git https://github.com/DocSpring/cigen \
cigen cigen-provider-github cigen-provider-circleci
cargo puts them in ~/.cargo/bin. cigen looks for the provider binaries next to its own binary, so keep the three
together. To keep them somewhere else, set CIGEN_PLUGIN_DIR to their directory.
Check it
cigen --version
Then follow the quick start.
Optional
- The CircleCI CLI. When
circleciis on yourPATH, cigen runscircleci config validateon the CircleCI config it generates and fails if the config is invalid.
For agents
To set cigen up in a repository:
- Install it as above, and run
cigen --versionto check. - Write a
cigen.ymlat the repository root. Start from the example in the quick start. The schema is in configuration and jobs. - Run
cigen generate. Fix any error it prints: each one names the file and key and says what to change. - Commit
cigen.ymland the generated files together. Never edit the generated files by hand. Changecigen.ymland generate again.
Every docs page is available as Markdown by adding .md to its address, and /llms-full.txt has
them all in one file.