- Always write clean, maintainable, and well-documented code
- Follow DRY (Don't Repeat Yourself) and KISS (Keep It Simple) practices
- Prefer simple solutions over complex ones
NEVER attempt to execute commands with sudo directly. VS Code blocks automatic execution of commands requiring elevated privileges by security.
If a command requires sudo:
- Notify the user that the command needs root permissions
- Clearly indicate the exact command that needs to be run manually
- DO NOT attempt to use
autoApprovefor commands withsudo
Example of correct behavior:
❌ INCORRECT: run_in_terminal(command: "sudo apt install -y package")
✅ CORRECT: "This command needs root permissions. Please manually run:
sudo apt install -y package
No permission required (auto-execute):
npm,npx,yarn,pnpmpython,pip,python3,pip3git(read-only commands and local changes)ls,cat,echo,pwd,cdfind,grepcurl,wget(without redirecting to config files)
Require user confirmation:
chmod,chownmkdir -pin system directoriesapt,apt-get,dnf,yum,pacman(package managers)docker(in some contexts)rm -rf- Any command that modifies system configuration
NEVER request:
sudoany command- Commands that modify
/etc/,/usr/,/var/
- [Adjust according to your project]
- [Use TypeScript strict mode]
- [Prefer async/await over callbacks]
- [Adjust according to your project]
- [Document public functions with JSDoc]
- [Adjust according to your project]
- [Write unit tests for new features]
- If you need to check MCP server status:
find ~/.vscode-server/data/ -name "mcp.json" 2>/dev/null - Do not attempt to run
ghwith sudo