feat(prompts): add format to save code snippet#5007
Conversation
Signed-off-by: Roshan kr singh <roshan.kr.singh9911@gmail.com>
|
Thank you for this submission! Let me tag @EbonyLouis @iandouglas to review <3 |
agiuliano-square
left a comment
There was a problem hiding this comment.
LGTM! Thanks for this contribution @Roshansingh9.
|
Hey @Roshansingh9 can you fetch and merge main into your branch please so the last test can run. After that we should be good to merge, thanks! |
|
I like the idea of the code snippet tool, but I don't recommend using the memory extension for this. Currently goose will send EVERY memory stored with every LLM interaction, so if the user is doing something that's not code-related, the LLM is getting all of those snippet memories. |
|
After addressing the memory usage and fetch + merge main into your branch, the tests can run and we can get these submitted. And hopefully passed! @Roshansingh9 |
* main: (33 commits) Add Web Accessibility Auditor recipe to cookbook (#5318) To do mcp tutorial (#5317) workflows: add a manual trigger option to pr-smoke-test (#5302) documenting `goose recipe list` command (#5278) add a system prompt snapshot test (#5305) fix: handle non exist subrecipe path (#5287) Next camp (#5237) more lowercasing of TabItem labels (#5307) modified docs/tutorials/cicd Github Action's install path to follow download_cli script (#5240) Fix artifact download to work across workflow runs (#5304) Added extension search (#5283) docs: lowercase 'goose' in TabItem labels for consistency (#5297) feat(prompts): add format to save code snippet (#5007) fix: use Windows-compatible default path for CLI installation (#5221) feat: add Test Coverage Optimizer recipe (#5118) (#5272) Upgrade node to fix canary (#5301) Remove reliance on localstorage for pendingScheduleDeepLink when scheduling a recipe (#5290) Add historical tracking with trend indicators using artifacts (#5295) roll back vite and electron package upgrades breaking canary win and linux (#5292) Revert "Revert "Rewrite extension management tools"" (#5273) ...
Signed-off-by: Roshan kr singh <roshan.kr.singh9911@gmail.com> Co-authored-by: Rizel Scarlett <rizel@squareup.com> Signed-off-by: Blair Allan <Blairallan@icloud.com>
Signed-off-by: Roshan kr singh <roshan.kr.singh9911@gmail.com> Co-authored-by: Rizel Scarlett <rizel@squareup.com> Signed-off-by: Blair Allan <Blairallan@icloud.com>
Summary
Added a new beginner prompt "Code Snippet Saver" that enables users to save and organize reusable code snippets using the memory extension. This prompt helps developers build a personal snippet library that persists across all Goose conversations, making it easy to recall frequently used code patterns.
Type of Change
Testing
The new prompt has been tested manually in a local build of the Goose desktop application.
format-code-snippet.jsonfile to thedocumentation/src/pages/prompt-library/data/prompts/directory.example_promptand confirmed the output matched the expectedexample_result.Related Issues
Closes #4769
Email:roshan.kr.singh9857@gmail.com