Skip to content
petromirPublic

About

AI assets and configurations

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Oh my AI

Scripts, skills, agents, and everything necessary to make AI work better for us, so we can finally have more time
to go to the beach 🏖️

Usage

To use these configurations, install them into your project or global config directories.

Installing Configs & Skills

Running install-configs.sh does two things in one pass:

  1. Copies each assistant's configuration directory from configs/<assistant> (e.g. configs/gemini, configs/opencode, configs/pi, configs/oh-my-pi) into that assistant's config directory under $HOME (~/.gemini, ~/.config/opencode, ~/.pi/agent, ~/.omp/agent).
  2. Copies every shared skill from configs/common/.agents/skills into each assistant's skills directory (Gemini, Copilot, Claude, OpenCode, Pi, Oh-My-Pi, and generic ~/.agents/skills).
./install-configs.sh

By default, the script targets all assistants and skips existing files/directories.

Note: Config directories only exist for gemini, opencode, pi, and omp — Copilot and Claude have no dedicated config folder and only receive shared skills. The Oh-My-Pi key is omp (its config lives in ~/.omp/agent); unknown names are rejected with an error and a non-zero exit code, so a typo can never pass as a successful no-op.

Options

  • -f: Force override existing configs/skills.
  • -s: Skip installing shared skills; only assistant configs are installed.
  • -m <mode>: Config mode (OpenCode and Oh-My-Pi only). The only valid value is yolo, which installs each assistant's yolo variant as its regular config file: opencode-yolo.jsonc as opencode.jsonc and config-yolo.yml as config.yml. Omit it for the default behaviour (standard configs only).
  • -a <assistant>: Specify target assistant (opencode, pi, omp, agents, gemini, copilot, claude, or all). You can also provide a comma-separated list. Unknown names are rejected with an error; any list containing all selects every assistant.

Examples:

# Install only for OpenCode
./install-configs.sh -a opencode
# Install for OpenCode and Pi, forcing override
./install-configs.sh -f -a opencode,pi
# Install assistant configs only, skipping shared skills
./install-configs.sh -s -a gemini
# Install OpenCode in yolo mode
./install-configs.sh -m yolo -a opencode
# Install Oh-My-Pi in yolo mode
./install-configs.sh -m yolo -a omp

Note (Oh-My-Pi yolo trade-off): config-yolo.yml keeps only deny and prompt bash rules. The allow rules are omitted because yolo auto-approves those commands anyway. As a result, if you later run omp --approval-mode write, every bash command prompts, since no allow rules remain to auto-approve safe commands. Reinstall the standard config (./install-configs.sh -f -a omp) if you need the allow list.

Controlling Models with controls.env

controls.env in the repository root holds the model values that the installer writes into the mode-managed configs (opencode.jsonc, opencode-yolo.jsonc, config.yml, config-yolo.yml). Those files contain placeholders such as ${OPENCODE_MODEL_DEFAULT}, and install-configs.sh substitutes them while installing. One edit therefore changes both the standard and the yolo config.

Format: NAME=value, one per line. Blank lines and lines starting with # are ignored; an inline comment must be preceded by whitespace, and a value may be wrapped in matching quotes. Every placeholder must resolve, otherwise the install stops with an error naming the variable.

OpenCode (OPENCODE_MODEL_*)

Variable Used for
OPENCODE_MODEL_DEFAULT Top-level model.
OPENCODE_MODEL_SMALL Top-level small_model.
OPENCODE_MODEL_<AGENT> The model of one agent. Agents: general, build, plan, explore, researcher, executor, simplifier, reviewer, expert-reviewer (- becomes _).

An OpenCode agent value may carry a :variant suffix. The installer writes the part before : to the agent's model, and the part after it to the agent's variant:

OPENCODE_MODEL_BUILD=opencode-go/gemini-4-argon:medium
# -> "model": "opencode-go/gemini-4-argon", "variant": "medium"

OPENCODE_MODEL_DEFAULT and OPENCODE_MODEL_SMALL must not carry a variant, because OpenCode has no top-level variant setting. A value without a :variant suffix fails the install as soon as the matching _VARIANT placeholder is needed.

Oh-My-Pi (OMP_MODEL_*)

OMP_MODEL_<ROLE> sets the matching modelRoles entry. Roles: default, smol, slow, plan, designer, commit, tiny, task, advisor. Oh-My-Pi already accepts the provider/model:variant pattern and comma-separated fallbacks, so the value is used verbatim.

Note: both configs share the same variables, so -m yolo now uses the same models and variants as the standard config. The yolo explore agent also gained a variant entry, so every agent's model and variant come from controls.env.

Removing Configs & Skills

The install can be undone with the remove command. It only deletes the items this script would have installed (e.g. configs/gemini/.gemini/antigravity-cli, or a single shared skill directory) — it never wipes an entire ~/.gemini, skills, or config directory, so anything else living alongside it is left untouched.

# Remove installed assistant configs
./install-configs.sh remove configs

# Remove installed shared skills
./install-configs.sh remove skills

-a <assistant> scopes either command the same way it scopes installation. -f and -s do not apply to remove.

Examples:

# Remove Pi's installed configs only
./install-configs.sh remove configs -a pi
# Remove shared skills from Gemini and OpenCode only
./install-configs.sh remove skills -a gemini,opencode

Setting Environment Variables

To append environment variables to your shell configuration files (~/.zshrc, ~/.zprofile, ~/.bashrc, ~/.bash_profile), run:

./set_env_vars.sh

By default, the script updates all shell configs. You can target specific shells or force the overwriting the existing definitions.

Options

  • -s <shell>: Specify target shell (bash, zshell, or all). Can be used multiple times.
  • -f: Force overwrite existing variable definitions.
  • -v: Enable verbose output.

Examples:

# Update only Bash configs
./set_env_vars.sh -s bash

# Update both Bash and Zsh configs
./set_env_vars.sh -s bash -s zshell

# Update all configs, forcing overwrite
./set_env_vars.sh -f

Note: Edit the ENV_VARS array inside the script to configure which variables are set.

Pre-configured Environment Variables

The script comes with the following environment variables already configured:

Variable Value Description
OPENCODE_DISABLE_EXTERNAL_SKILLS 1 Disables external skills in OpenCode CLI

These variables are applied to all shell configuration files by default.

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for simple rules and how to get started.

TODO

Support my work

Buy Me A Ko-fi Buy Me A Coffee GitHub Sponsor

About

AI assets and configurations

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Contributors

Languages