Skip to content

Commit 9402fb2

Browse files
committed
⚙️ sline: rename from statusline and fix model detection
Complete transition from statusline to sline system: - Rename .clauderc/statusline/ → .clauderc/sline/ - Fix model detection: opus → sonnet in settings - Update version display: "sonnet 4" instead of "sonnet 4.0" - Update package.json script: statusline:build → sline:build - Update settings.json binary path to new sline location - Update CLAUDE.md documentation references
1 parent 6f88458 commit 9402fb2

File tree

11 files changed

+66
-21
lines changed

11 files changed

+66
-21
lines changed

.clauderc/claude-workflow/CLAUDE.md

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,21 @@ Note: all research initiation steps are mandatory.
9696
- Creates `prescreen.md` with comprehensive findings and targeted research questions
9797
- Marks prescreen.md with Claude Code ✅ when complete
9898
3. User forwards `init.md` + `prescreen.md` to Claude Desktop for research
99-
4. **Claude Desktop MUST read prescreen.md first**
100-
- Analyzes Claude Code's findings and questions
101-
- Uses prescreen insights to make research more relevant and precise
102-
- Marks prescreen.md with Claude Desktop ✅ after review
103-
5. Claude Desktop may ask clarifying questions to the user
104-
6. Once all Claude Desktop questions are answered, Claude Desktop registers its questions and
99+
4. **MANDATORY: Claude Desktop tech stack analysis**
100+
- **Step 4a**: Examine project's actual tech stack using:
101+
- Project CLAUDE.md for technology overview
102+
- package.json dependencies
103+
- prescreen.md findings
104+
- **Step 4b**: Read and analyze Claude Code's prescreen findings and questions
105+
- **Step 4c**: Align research focus with ACTUAL technologies used (avoid irrelevant research)
106+
- Example: If project uses Tailwind → research Tailwind patterns, NOT styled-components
107+
- Marks prescreen.md with Claude Desktop ✅ after tech stack analysis and prescreen review
108+
5. Claude Desktop conducts focused research based on actual tech stack
109+
6. Claude Desktop may ask clarifying questions to the user
110+
7. Once all Claude Desktop questions are answered, Claude Desktop registers its questions and
105111
answers in qa.md
106-
7. Claude Desktop populates `research.md` with findings
107-
8. Claude Desktop confirms prescreen.md Claude Desktop ✅ when research is complete
112+
8. Claude Desktop populates `research.md` with findings relevant to actual project tech stack
113+
9. Claude Desktop confirms prescreen.md Claude Desktop ✅ when research is complete
108114

109115
### Phase 2: Clarification Loop
110116

@@ -162,6 +168,21 @@ skip the QA phase if:
162168
- **Scope**: [Components affected, files involved]
163169
- **Analysis Date**: [Date]
164170

171+
## Project Tech Stack (FOR CLAUDE DESKTOP FOCUS)
172+
173+
### Currently Used Technologies
174+
- **UI Framework**: [e.g., Preact 10.x, React 18.x]
175+
- **State Management**: [e.g., MobX 6, Redux Toolkit, Zustand]
176+
- **Styling**: [e.g., Tailwind v4, styled-components, Sass]
177+
- **Bundler**: [e.g., Webpack 5, Vite, Parcel]
178+
- **Routing**: [e.g., React Router v7, Next.js Router]
179+
- **Testing**: [e.g., Jest, Vitest, none]
180+
- **Real-time**: [e.g., WebSocket, Socket.io, none]
181+
182+
### Technologies NOT Used (Avoid Research)
183+
- [List technologies that might be confused with current stack]
184+
- [Helps Claude Desktop avoid irrelevant research paths]
185+
165186
## Current State Assessment
166187

167188
[Comprehensive analysis of current implementation]

.clauderc/claude-workflow/preact-to-react/prescreen.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,29 @@
1111
- **Scope**: Full application migration from Preact 10.27.1 to React 18.x
1212
- **Analysis Date**: 2024-12-19
1313

14+
## Project Tech Stack (FOR CLAUDE DESKTOP FOCUS)
15+
16+
### Currently Used Technologies
17+
- **UI Framework**: Preact 10.27.1 with React compatibility aliases
18+
- **State Management**: MobX 6.13.7 (mixed v5/v6 patterns, ~50 inject() HOCs)
19+
- **Styling**: Tailwind CSS v4 with @layer system, CSS custom properties, shadow DOM isolation
20+
- **Bundler**: Webpack 5 with multiple entry points (migrating to Vite planned)
21+
- **Routing**: React Router v7 with shadow DOM support
22+
- **Testing**: NONE (zero test coverage - critical gap)
23+
- **Real-time**: Custom WebSocket implementation with MobX integration
24+
- **Performance**: Manual DOM optimizations, react-lazyload for virtualization
25+
- **CSS Isolation**: Complex stylesInjector.js with media→container query transformation
26+
27+
### Technologies NOT Used (Avoid Research)
28+
- **NOT styled-components** → Focus on Tailwind CSS migration patterns
29+
- **NOT Redux/Zustand** → Focus on MobX 6 + React 18 integration
30+
- **NOT Socket.io** → Focus on custom WebSocket + React compatibility
31+
- **NOT Vite** (yet) → Focus on Webpack 5 configuration for React
32+
- **NOT Jest/Vitest** → Focus on testing setup from scratch
33+
- **NOT Emotion/Stitches** → Focus on Tailwind + shadow DOM patterns
34+
- **NOT Next.js** → Focus on React Router v7 migration
35+
- **NOT create-react-app** → Focus on custom Webpack build system
36+
1437
## Current State Assessment
1538

1639
### Codebase Scale

.clauderc/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
],
2424
"defaultMode": "plan"
2525
},
26-
"model": "opus",
26+
"model": "sonnet",
2727
"hooks": {
2828
"Notification": [
2929
{
@@ -39,7 +39,7 @@
3939
},
4040
"statusLine": {
4141
"type": "command",
42-
"command": "/Users/dima/.claude/statusline/bin",
42+
"command": "/Users/dima/.claude/sline/bin",
4343
"padding": 0
4444
}
4545
}
3.42 MB
Binary file not shown.
File renamed without changes.
File renamed without changes.

.clauderc/statusline/main.go renamed to .clauderc/sline/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ func getGitEmoji() string {
151151

152152
func getStateFilePath() string {
153153
homeDir, _ := os.UserHomeDir()
154-
return filepath.Join(homeDir, ".claude", "statusline", "statusline-db.json")
154+
return filepath.Join(homeDir, ".claude", "sline", "sline-db.json")
155155
}
156156

157157
func initStateFile(filePath string) {
@@ -223,7 +223,7 @@ func getModelDisplayName() string {
223223
case "opusplan":
224224
return enSpace + applyGradient("opus plan") + lightGrayColor + " 4.1" + Reset
225225
case "sonnet":
226-
return enSpace + applyGradient("sonnet") + lightGrayColor + " 4.0" + Reset
226+
return enSpace + applyGradient("sonnet") + lightGrayColor + " 4" + Reset
227227
case "haiku":
228228
return enSpace + applyGradient("haiku") + lightGrayColor + " 3.5" + Reset
229229
default:

.clauderc/sline/sline-db.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"current_index":1,"last_update_time":1755815954}
File renamed without changes.

CLAUDE.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Reference actual files for current aliases:
130130
**Custom Configs:**
131131

132132
-`.membank/` - Documentation, libsources, implementation guides
133-
-`statusline/` - Statusline code and scripts
133+
-`sline/` - Sline code and scripts
134134
-`scripts/` - Python libsource management scripts
135135

136136
### Management Rules
@@ -166,14 +166,14 @@ Reference actual files for current aliases:
166166
│ └── feature-name/ # Per-feature research directories
167167
├── commands/ # Command definitions
168168
├── scripts/ # Python libsource management
169-
├── statusline/ # Go statusline implementation
169+
├── sline/ # Go sline implementation
170170
```
171171

172-
## Statusline System
172+
## Sline System
173173

174174
### Overview
175175

176-
Go-based statusline system providing rich terminal display with:
176+
Go-based sline system providing rich terminal display with:
177177

178178
- Directory path with ~ shortening
179179
- Dynamic model detection with rotating emoji (hourly rotation)
@@ -186,8 +186,8 @@ Go-based statusline system providing rich terminal display with:
186186

187187
### Architecture
188188

189-
- **Single Implementation**: Go binary at `statusline/bin`
190-
- **Shared State**: `statusline-db.json` tracks emoji rotation
189+
- **Single Implementation**: Go binary at `sline/bin`
190+
- **Shared State**: `sline-db.json` tracks emoji rotation
191191
- **Native API**: Supports Claude Code v1.0.85+ cost data
192192
- **ccusage Integration**: Fallback for daily/monthly cost totals
193193

@@ -202,8 +202,8 @@ Go-based statusline system providing rich terminal display with:
202202

203203
### Usage
204204

205-
- **Build statusline**: `pnpm statusline:build`
206-
- **Current**: Points to `statusline/bin` in settings.json
205+
- **Build sline**: `pnpm sline:build`
206+
- **Current**: Points to `sline/bin` in settings.json
207207

208208
## Libsource System
209209

0 commit comments

Comments
 (0)