Skip to content

Allow for multiple line custom prompts in mycoder.config.js #249

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bhouston opened this issue Mar 13, 2025 · 4 comments · Fixed by #250
Closed

Allow for multiple line custom prompts in mycoder.config.js #249

bhouston opened this issue Mar 13, 2025 · 4 comments · Fixed by #250
Labels

Comments

@bhouston
Copy link
Member

Having only a single line for the custom prompt is quite limited.

So support a string or multiple strings in an array.

Maybe I should call it additionalPrompt as it doesn't replace the existing prompt but add to it.

@bhouston
Copy link
Member Author

/mycoder can you turn this into a PR?

@bhouston
Copy link
Member Author

I've created PR #250 to implement support for multiple line custom prompts in mycoder.config.js. The implementation allows customPrompt to accept either a string (for backward compatibility) or an array of strings (for multiple lines).

Example usage:

// Single line (existing behavior)
customPrompt: 'Single line custom prompt',

// Multiple lines (new behavior)
customPrompt: [
  'First line of custom prompt',
  'Second line of custom prompt',
  'Third line of custom prompt',
],

All tests are passing, and the changes are minimal while maintaining backward compatibility.

github-actions bot pushed a commit that referenced this issue Mar 14, 2025
# [mycoder-agent-v1.4.0](mycoder-agent-v1.3.1...mycoder-agent-v1.4.0) (2025-03-14)

### Bug Fixes

* disable respawn as it can confuse some LLMs ([c04ee43](c04ee43))
* perfect gpustack compatibility, fix openai edge case ([9359f62](9359f62))

### Features

* support multiple line custom prompts in mycoder.config.js ([fa7f45e](fa7f45e)), closes [#249](#249)
Copy link

🎉 This issue has been resolved in version mycoder-agent-v1.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this issue Mar 14, 2025
# [mycoder-v1.4.0](mycoder-v1.3.1...mycoder-v1.4.0) (2025-03-14)

### Bug Fixes

* perfect gpustack compatibility, fix openai edge case ([9359f62](9359f62))

### Features

* replace cosmiconfig with c12 for configuration management ([cc17315](cc17315)), closes [#260](#260)
* support multiple line custom prompts in mycoder.config.js ([fa7f45e](fa7f45e)), closes [#249](#249)
Copy link

🎉 This issue has been resolved in version mycoder-v1.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant