Color

From allierays/agentic-loop · View interactive version

Color is an AI agent skill from the GitHub repository allierays/agentic-loop. Pick the terminal background color Ralph uses to distinguish its terminal from Claude Code.

How to use this skill

Skill file

Terminal Color

The user wants to change Ralph's terminal background tint - the color applied during npx agentic-loop run to visually distinguish Ralph's terminal from Claude Code.

Note: This only works in macOS Terminal.app. On other terminals (iTerm2, VS Code, Linux), Ralph skips tinting automatically.

Step 1: Show Current Color

Read .ralph/config.json and check for terminalTint. Show the current setting:

Step 2: Ask Color Preference

Use AskUserQuestion:

Question: "What color should Ralph's terminal background be?"

Header: "Tint color"

Options:

If the user selects "Other", ask them to provide a hex color (e.g., #2e2e1a).

Step 3: Validate (if custom hex)

If the user provided a custom hex:

Step 4: Save to Config

Read .ralph/config.json, set the terminalTint field, and write it back.

Use jq to update:

jq --arg color "THE_HEX_VALUE" '.terminalTint = $color' .ralph/config.json > .ralph/config.json.tmp && mv .ralph/config.json.tmp .ralph/config.json

Step 5: Preview (macOS Terminal.app only)

If running in Terminal.app, apply the color immediately so the user can see it:

# Apply preview (will be restored when Claude session ends)
osascript -e 'tell application "Terminal" to set background color of front window to {R, G, B}' 2>/dev/null

Where R, G, B are the hex values converted to 16-bit (multiply each 8-bit value by 257).

If "Off" was chosen, skip the preview.

Step 6: Confirm

Say:

"Done! Ralph will use #xxxxxx as the terminal tint.

Next time you run npx agentic-loop run, the terminal background will change to this color. It restores to your original background when the loop ends.

Run /color again anytime to change it."

If "Off" was chosen, say:

"Done! Terminal tinting is now disabled. Ralph will run without changing your terminal background."

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.