Skip to content

Commit e0d67cb

Browse files
NiveditJainclaude
andauthored
[luv-31] Default prompt-less sessions to max effort + random color (not ultracode) (#30)
* [luv-31] Drop the /effort ultracode startup input; keep max as the default Prompt-less interactive sessions (plan + bypass) auto-ran "/effort ultracode" as their first startup input, entering ultracode mode. Remove that so those sessions just stay at the --effort max CLI baseline already passed on every launch path. initial_args is now empty when there is no prompt, so no startup command is consumed and the session opens at max effort. Update the README "How it works" line to match. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * [luv-31] Restore the random /color startup input and bump to 0.0.22 Bring back the COLORS list, pick_color() helper, and the random import that #28 removed, and wire "/color {pick_color()}" back into the prompt-less plan and bypass launch paths so each session is visually distinct again — while keeping --effort max (not ultracode) as the baseline. Bump version 0.0.21 -> 0.0.22. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 6e8df50 commit e0d67cb

3 files changed

Lines changed: 12 additions & 4 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ luv --clean
4949
1. Clones the repo into `~/prs/{repo}-{number}/`
5050
2. Creates a new branch `luv-{number}`
5151
3. Trusts the project in Claude Code config
52-
4. Launches Claude with Opus 4.8 at max effort; prompt-less sessions auto-run `/effort ultracode` as their first input to enter ultracode mode
52+
4. Launches Claude with Opus 4.8 at max effort
5353

5454
All workspaces live under `~/prs/`. The number comes from the repo's GitHub issue counter to avoid collisions.
5555

‎luv/__init__.py‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import json
22
import os
3+
import random
34
import re
45
import shutil
56
import stat
@@ -15,6 +16,13 @@
1516
CLAUDE_JSON = Path.home() / ".claude.json"
1617
CLAUDE_SETTINGS_JSON = Path.home() / ".claude" / "settings.json"
1718

19+
COLORS = ["red", "blue", "green", "yellow", "purple", "orange", "pink", "cyan", "default"]
20+
21+
22+
def pick_color() -> str:
23+
"""Pick a random /color value so each luv session is visually distinct."""
24+
return random.choice(COLORS)
25+
1826
PR_RULES = """
1927
# Pull Request Management
2028
@@ -366,10 +374,10 @@ def launch(clone_dir: Path, prompt: str | None, plan_mode: bool = False,
366374
initial_args = ["-p", prompt]
367375
elif plan_mode:
368376
mode_flags = ["--permission-mode", "plan"]
369-
initial_args = [prompt] if prompt else ["/effort ultracode"]
377+
initial_args = [prompt] if prompt else [f"/color {pick_color()}"]
370378
else:
371379
mode_flags = ["--permission-mode", "bypassPermissions"]
372-
initial_args = [prompt] if prompt else ["/effort ultracode"]
380+
initial_args = [prompt] if prompt else [f"/color {pick_color()}"]
373381

374382
if compose_file:
375383
project = docker_project_name(clone_dir)

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "luv-cli"
7-
version = "0.0.21"
7+
version = "0.0.22"
88
description = "Launch Claude Code agents on GitHub repos with isolated workspaces and optional Docker dev environments"
99
requires-python = ">=3.10"
1010
license = "MIT"

0 commit comments

Comments
 (0)