ralphex-update

Featured

Smart-merge updated ralphex defaults into customized prompts/agents

AI & Automation 1,183 stars 91 forks Updated today MIT

Install

View on GitHub

Quality Score: 90/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
40
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# ralphex-update - Smart Prompt Merging **SCOPE**: Compare current embedded defaults with user's installed config, and intelligently merge updates into customized files. Preserves user intent while incorporating structural changes. ## Step 0: Verify CLI Installation ```bash which ralphex ``` **If not found**, guide installation: - **macOS (Homebrew)**: `brew install umputun/apps/ralphex` - **Any platform with Go**: `go install github.com/umputun/ralphex/cmd/ralphex@latest` **Do not proceed until `which ralphex` succeeds.** ## Step 1: Extract Current Defaults Create temp directory and dump embedded defaults: ```bash DUMP_DIR=$(mktemp -d /tmp/ralphex-defaults-XXXX) ralphex --dump-defaults "$DUMP_DIR" echo "$DUMP_DIR" ``` Save the dump directory path for later use. ## Step 2: Determine Config Directory Resolve the user's config directory: ```bash # check environment variable first echo "${RALPHEX_CONFIG_DIR:-}" ``` If `RALPHEX_CONFIG_DIR` is empty, use default: - **macOS/Linux**: `~/.config/ralphex/` Verify the directory exists: ```bash ls -la <config-dir>/ ``` If it doesn't exist, inform user that ralphex hasn't been configured yet and there's nothing to update. ## How ralphex Config Files Work ralphex installs config, prompt, and agent files with all content **commented out** (every line prefixed with `# `). At runtime, `stripComments()` removes these lines, finds nothing, and falls back to **embedded defaults** compiled into the binary. These all-commented fi...

Details

Author
umputun
Repository
umputun/ralphex
Created
4 months ago
Last Updated
today
Language
Go
License
MIT

Related Skills