You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,34 @@ max_tokens = 8192
87
87
theme = "base16-ocean.dark"
88
88
```
89
89
90
+
## Custom System Prompts
91
+
92
+
You can extend Codey's system prompt by creating `SYSTEM.md` files that are automatically appended to the base prompt. These files are loaded from two locations (in order):
93
+
94
+
1.**User config**: `~/.config/codey/SYSTEM.md` - personal customizations
SYSTEM.md files support [mdsh](https://github.com/zimbatm/mdsh) syntax, allowing you to embed shell commands that are executed dynamically. This is useful for including context that changes over time.
100
+
101
+
### Example SYSTEM.md
102
+
103
+
```markdown
104
+
Today is `$ date '+%d %B %Y'`.
105
+
106
+
```$
107
+
if which linctl > /dev/null 2>&1; then
108
+
echo "Use linctl to manage Linear tickets."
109
+
fi
110
+
```
111
+
112
+
## Guidelines
113
+
- Follow the existing code style
114
+
```
115
+
116
+
Commands are re-executed on every LLM request, so the prompt always reflects the current state of your environment. Note that this may cause cache invalidation if command output changes between requests.
0 commit comments