on main help sign in
chore: small fixes
commit254a5e755b6b8ae93c9e2ca204c62820d98591f1 authorKujtim Hoxha <kujtimii.h@gmail.com> dateFri 20 Jun 2025, 11:45 (1 year ago) parent312df62
2 files changed+8−4
internal/llm/prompt/coder.go+6−3 internal/tui/components/core/status/status.go+2−1
internal/llm/prompt/coder.go+6−3
@@ -30,7 +30,6 @@ You are operating as and within the Crush CLI, a terminal-based agentic coding a
3030You can:
3131- Receive user prompts, project context, and files.
3232- Stream responses and emit function calls (e.g., shell commands, code edits).
33−- Apply patches, run commands, and manage user approvals based on policy.
3433- Work inside a sandboxed, git-backed workspace with rollback support.
3534- Log telemetry so sessions can be replayed or inspected later.
3635- More details on your functionality are available at "crush --help"
@@ -64,17 +63,19 @@ You MUST adhere to the following criteria when executing the task:
6463- If completing the user's task DOES NOT require writing or modifying files (e.g., the user asks a question about the code base):
6564 - Respond in a friendly tune as a remote teammate, who is knowledgeable, capable and eager to help with coding.
6665- When your task involves writing or modifying files:
67− - Do NOT tell the user to "save the file" or "copy the code into a file" if you already created or modified the file using "apply_patch". Instead, reference the file as already saved.
66+ - Do NOT tell the user to "save the file" or "copy the code into a file" if you already created or modified the file using "edit/write". Instead, reference the file as already saved.
6867 - Do NOT show the full contents of large files you have already written, unless the user explicitly asks for them.
6968- When doing things with paths, always use use the full path, if the working directory is /abc/xyz and you want to edit the file abc.go in the working dir refer to it as /abc/xyz/abc.go.
7069- If you send a path not including the working dir, the working dir will be prepended to it.
7170- Remember the user does not see the full output of tools
71+- NEVER use emojis in your responses
7272`
7373
7474const baseAnthropicCoderPrompt = `You are Crush, an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.
7575
7676IMPORTANT: Before you begin work, think about what the code you're editing is supposed to do based on the filenames directory structure.
7777
78+
7879# Memory
7980If the current working directory contains a file called CRUSH.md, it will be automatically added to your context. This file serves multiple purposes:
80811. Storing frequently used bash commands (build, test, lint, etc.) so you can use them without searching each time
@@ -131,7 +132,7 @@ assistant: src/foo.c
131132
132133<example>
133134user: write tests for new feature
134−assistant: [uses grep and glob search tools to find where similar tests are defined, uses concurrent read file tool use blocks in one tool call to read relevant files at the same time, uses edit/patch file tool to write new tests]
135+assistant: [uses grep and glob search tools to find where similar tests are defined, uses concurrent read file tool use blocks in one tool call to read relevant files at the same time, uses edit file tool to write new tests]
135136</example>
136137
137138# Proactiveness
@@ -165,6 +166,8 @@ NEVER commit changes unless the user explicitly asks you to. It is VERY IMPORTAN
165166- If you intend to call multiple tools and there are no dependencies between the calls, make all of the independent calls in parallel.
166167- IMPORTANT: The user does not see the full output of the tool responses, so if you need the output of the tool for the response make sure to summarize it for the user.
167168
169+VERY IMPORTANT NEVER use emojis in your responses.
170+
168171You MUST answer concisely with fewer than 4 lines of text (not including tool use or code generation), unless user asks for detail.`
169172
170173func getEnvironmentInfo() string {
internal/tui/components/core/status/status.go+2−1
@@ -88,6 +88,7 @@ func (m *statusCmp) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
8888 TTL: msg.Payload.PersistTime,
8989 }
9090 }
91+ return m, m.clearMessageCmd(m.info.TTL)
9192 }
9293 }
9394 return m, nil
@@ -136,7 +137,7 @@ func NewStatusCmp(keyMap help.KeyMap) StatusCmp {
136137 help := help.New()
137138 help.Styles = t.S().Help
138139 return &statusCmp{
139− messageTTL: 10 * time.Second,
140+ messageTTL: 5 * time.Second,
140141 help: help,
141142 keyMap: keyMap,
142143 }