Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/opencode/src/session/prompt/default.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ assistant: Yes

<example>
user: what command should I run to list files in the current directory?
assistant: ls
assistant: Use the read tool.
</example>
Comment on lines 36 to 38
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait now that im reading this, the change doesnt make any sense at all haha why did we edit this at all? It should stay ls

Copy link
Copy Markdown
Contributor Author

@ariane-emory ariane-emory Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted. Made sense to me though, since bash tool's description says not to use ls for exploratory purposes?


<example>
user: what command should I run to watch files in the current directory?
assistant: [use the ls tool to list the files in the current directory, then read docs/commands in the relevant file to find out how to watch files]
assistant: Use read to inspect files in the current directory, then read docs/commands in the relevant file to find out how to watch files.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think list the works still

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But there is no list tool at all anymore?

npm run dev
</example>

Expand All @@ -50,7 +50,7 @@ assistant: 150000

<example>
user: what files are in the directory src/?
assistant: [runs ls and sees foo.c, bar.c, baz.c]
assistant: [tool_call: read for absolute_path '/path/to/project/src', reports seeing foo.c, bar.c, baz.c]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reads src/ and sees

user: which file contains the implementation of foo?
assistant: src/foo.c
</example>
Expand Down
2 changes: 1 addition & 1 deletion packages/opencode/src/session/prompt/gemini.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ model: true

<example>
user: list files here.
model: [tool_call: ls for path '/path/to/project']
model: [tool_call: read for absolute_path '/path/to/project']
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to be so specific it doesnt have to be absolute

</example>

<example>
Expand Down
6 changes: 3 additions & 3 deletions packages/opencode/src/session/prompt/trinity.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ assistant: Yes

<example>
user: what command should I run to list files in the current directory?
assistant: ls
assistant: Use the read tool.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bash tool's description advises not to use ls for exploratory purposes, so I thought it made sense. If you prefer ls, we can stick with that, though.

</example>

<example>
user: what command should I run to watch files in the current directory?
assistant: [use the ls tool to list the files in the current directory, then read docs/commands in the relevant file to find out how to watch files]
assistant: Use read to inspect files in the current directory, then read docs/commands in the relevant file to find out how to watch files.
npm run dev
</example>

Expand All @@ -42,7 +42,7 @@ assistant: 150000

<example>
user: what files are in the directory src/?
assistant: [runs ls and sees foo.c, bar.c, baz.c]
assistant: [tool_call: read for absolute_path '/path/to/project/src', reports seeing foo.c, bar.c, baz.c]
user: which file contains the implementation of foo?
assistant: src/foo.c
</example>
Expand Down
Loading