@@ -10,6 +10,7 @@ import (
1010 tea "github.com/charmbracelet/bubbletea/v2"
1111 "github.com/charmbracelet/crush/internal/config"
1212 "github.com/charmbracelet/crush/internal/fur/provider"
13+ "github.com/charmbracelet/crush/internal/llm/prompt"
1314 "github.com/charmbracelet/crush/internal/tui/components/chat"
1415 "github.com/charmbracelet/crush/internal/tui/components/completions"
1516 "github.com/charmbracelet/crush/internal/tui/components/core"
@@ -242,14 +243,6 @@ func (s *splashCmp) saveAPIKeyAndContinue(apiKey string) tea.Cmd {
242243
243244func (s *splashCmp) initializeProject() tea.Cmd {
244245 s.needsProjectInit = false
245− prompt := `Please analyze this codebase and create a CRUSH.md file containing:
246−1. Build/lint/test commands - especially for running a single test
247−2. Code style guidelines including imports, formatting, types, naming conventions, error handling, etc.
248−
249−The file you create will be given to agentic coding agents (such as yourself) that operate in this repository. Make it about 20 lines long.
250−If there's already a CRUSH.md, improve it.
251−If there are Cursor rules (in .cursor/rules/ or .cursorrules) or Copilot rules (in .github/copilot-instructions.md), make sure to include them.
252−Add the .crush directory to the .gitignore file if it's not already there.`
253246
254247 if err := config.MarkProjectInitialized(); err != nil {
255248 return util.ReportError(err)
@@ -261,7 +254,7 @@ Add the .crush directory to the .gitignore file if it's not already there.`
261254 cmds = append(cmds,
262255 util.CmdHandler(chat.SessionClearedMsg{}),
263256 util.CmdHandler(chat.SendMsg{
264− Text: prompt,
257+ Text: prompt.Initialize(),
265258 }),
266259 )
267260 }