summaryrefslogtreecommitdiffhomepage
path: root/internal/tui
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-05-02 13:22:59 -0500
committerAdam <[email protected]>2025-05-02 15:24:47 -0500
commit364cf5b429c3dd6952d45c3361765aa3898e6326 (patch)
tree5a4b8e1892e447e00a3aaa27a333ff9f332d9c64 /internal/tui
parentb2f24e38eda018b464def477880e9db5bb51b515 (diff)
downloadopencode-364cf5b429c3dd6952d45c3361765aa3898e6326.tar.gz
opencode-364cf5b429c3dd6952d45c3361765aa3898e6326.zip
feat: write to context.md by default
Diffstat (limited to 'internal/tui')
-rw-r--r--internal/tui/components/dialog/init.go2
-rw-r--r--internal/tui/tui.go6
2 files changed, 4 insertions, 4 deletions
diff --git a/internal/tui/components/dialog/init.go b/internal/tui/components/dialog/init.go
index 77c76584d..16fb070e6 100644
--- a/internal/tui/components/dialog/init.go
+++ b/internal/tui/components/dialog/init.go
@@ -110,7 +110,7 @@ func (m InitDialogCmp) View() string {
Foreground(t.Text()).
Width(maxWidth).
Padding(0, 1).
- Render("Initialization generates a new OpenCode.md file that contains information about your codebase, this file serves as memory for each project, you can freely add to it to help the agents be better at their job.")
+ Render("Initialization generates a new CONTEXT.md file that contains information about your codebase, this file serves as memory for each project, you can freely add to it to help the agents be better at their job.")
question := baseStyle.
Foreground(t.Text()).
diff --git a/internal/tui/tui.go b/internal/tui/tui.go
index 28f94add7..0db21f380 100644
--- a/internal/tui/tui.go
+++ b/internal/tui/tui.go
@@ -707,14 +707,14 @@ func New(app *app.App) tea.Model {
model.RegisterCommand(dialog.Command{
ID: "init",
Title: "Initialize Project",
- Description: "Create/Update the OpenCode.md memory file",
+ Description: "Create/Update the CONTEXT.md memory file",
Handler: func(cmd dialog.Command) tea.Cmd {
- prompt := `Please analyze this codebase and create a OpenCode.md file containing:
+ prompt := `Please analyze this codebase and create a CONTEXT.md file containing:
1. Build/lint/test commands - especially for running a single test
2. Code style guidelines including imports, formatting, types, naming conventions, error handling, etc.
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.
-If there's already a opencode.md, improve it.
+If there's already a CONTEXT.md, improve it.
If there are Cursor rules (in .cursor/rules/ or .cursorrules) or Copilot rules (in .github/copilot-instructions.md), make sure to include them.`
return tea.Batch(
util.CmdHandler(chat.SendMsg{