← Back to context

Comment by dragonwriter

7 months ago

> That's twelve lines and 182 tokens just for writing React. Lots for Python too. Why these two specifically?

Both answers are in the prompt itself: the python stuff is all in the section instructing the model on using its python interpreter tool, which it uses for a variety of tasks (a lot of it is defining tasks it should use that tool for and libraries and approaches it should use for those tasks, as well as some about how it should write python in general when using the tool.)

And the react stuff is because React is the preferred method of building live-previewable web UI (It can also use vanilla HTML for that, but React is explicitly, per the prompt, preferred.)

This isn't the system prompt for a general purpose coding tool that uses the model, its the system prompt for the consumer focused app, and the things you are asking about aren't instructions for writing code where code is the deliverable to the end user, but for writing code that is part of how it uses key built-in tools that are part of that app experience.