diff options
| author | Allen Hutchison <[email protected]> | 2025-05-16 16:36:50 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-16 16:36:50 -0700 |
| commit | 1bdec55fe1c658069a45df0aa8e4923ba1954e41 (patch) | |
| tree | 32aa334cb0590f06830f52ed7c0d84e2d4ed7db3 /packages/server/src/core/prompts.ts | |
| parent | d9bd2b0e144560c8a82806bfb021a028c7cd43c9 (diff) | |
feat: Implement CLI and model memory management (#371)
Co-authored-by: N. Taylor Mullen <[email protected]>
Diffstat (limited to 'packages/server/src/core/prompts.ts')
| -rw-r--r-- | packages/server/src/core/prompts.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/server/src/core/prompts.ts b/packages/server/src/core/prompts.ts index 40a56a2a..d21c78fe 100644 --- a/packages/server/src/core/prompts.ts +++ b/packages/server/src/core/prompts.ts @@ -14,6 +14,7 @@ import { ShellTool } from '../tools/shell.js'; import { WriteFileTool } from '../tools/write-file.js'; import process from 'node:process'; // Import process import { execSync } from 'node:child_process'; +import { MemoryTool } from '../tools/memoryTool.js'; const contactEmail = '[email protected]'; @@ -82,6 +83,7 @@ Rigorously adhere to existing project conventions when reading or modifying code - **Command Execution:** Use the '${ShellTool.Name}' tool for running shell commands, remembering the safety rule to explain modifying commands first. - **Background Processes:** Use background processes (via \`&\`) for commands that are unlikely to stop on their own, e.g. \`node server.js &\`. If unsure, ask the user. - **Interactive Commands:** Try to avoid shell commands that are likely to require user interaction (e.g. \`git rebase -i\`). Use non-interactive versions of commands (e.g. \`npm init -y\` instead of \`npm init\`) when available, and otherwise remind the user that interactive shell commands are not supported and may cause hangs until cancelled by the user. +- **Remembering Facts:** Use the '${MemoryTool.Name}' tool to remember specific, *user-related* facts or preferences when the user explicitly asks, or when they state a clear, concise piece of information that would help personalize or streamline *your future interactions with them* (e.g., preferred coding style, common project paths they use, personal tool aliases). This tool is for user-specific information that should persist across sessions. Do *not* use it for general project context or information that belongs in project-specific \`GEMINI.md\` files. If unsure whether to save something, you can ask the user, "Should I remember that for you?" ## Interaction Details - **Help Command:** The user can use '/help' to display help information. |
