
Skill
editing-letta-code-desktop-preferences
edit Letta Code Desktop preferences
Description
Edits Letta Code Desktop (LCD) preferences by safely reading and updating ~/.letta/desktop_preferences.json. Use only when the user asks to change current Desktop/LCD settings such as theme, default working directory, remote access preference, or remote environment name via the preferences JSON.
SKILL.md
Editing Letta Code Desktop Preferences
Use this skill only to edit the active Letta Code Desktop preferences JSON file. Do not use it for Desktop product-code changes, Electron IPC work, UI changes, or general Letta Cloud Desktop implementation tasks.
Preferences file
The Desktop preferences file is:
~/.letta/desktop_preferences.json
Known preference keys:
defaultWorkingDirectory: default folder for new local sessions.theme:auto,light, ordark.allowRemoteAccess: boolean for whether remote access should be enabled in preferences.remoteEnvName: environment name shown for remote access.
Workflow
- Read the existing JSON first.
- Preserve unknown keys.
- Merge only the requested preference updates.
- Write pretty JSON with a trailing newline.
- Do not edit token, provider, secret, agent, conversation, memory, or unrelated state files.
- Tell the user that the change applies live only if their Desktop build watches preference-file changes; otherwise they should reload/restart Desktop or use Preferences → General.
Safe edit command
Use a merge-style edit like this, changing only the requested keys:
node - <<'NODE'
const fs = require('fs');
const os = require('os');
const path = require('path');
const file = path.join(os.homedir(), '.letta', 'desktop_preferences.json');
fs.mkdirSync(path.dirname(file), { recursive: true });
const current = fs.existsSync(file)
? JSON.parse(fs.readFileSync(file, 'utf8'))
: {};
const next = {
...current,
// Example update. Replace this with the user's requested setting.
theme: 'dark',
};
fs.writeFileSync(file, JSON.stringify(next, null, 2) + '\n');
NODE
Validation
After editing, read the file back or parse it to confirm valid JSON:
node -e "JSON.parse(require('fs').readFileSync(require('os').homedir() + '/.letta/desktop_preferences.json', 'utf8')); console.log('desktop_preferences.json is valid')"
More skills from the letta-code repository
View all 18 skillsacquiring-skills
discover and install agent skills
Jul 13AgentsAutomationGitHubContext Doctor
repair system prompt and memory degradation
Jul 13AgentsAI ContextDebuggingconverting-mcps-to-skills
connect MCP servers to create skills
Jul 13AgentsAutomationMCPcreating-mods
create and edit Letta Code mods
Jul 23AgentsAutomationCodingcreating-skills
create and update agent skills
Jul 13AgentsDocumentationPlugin Developmentcustomizing-commands
create and manage Letta slash commands
Jul 13AgentsAutomationCLI
More from Letta
View publishercustomizing-statusline
customize Letta Code statusline mods
letta-code
Jul 13CLIEngineeringdispatching-coding-agents
dispatch stateless coding agents
letta-code
Jul 26AgentsCodingMulti-Agentfinding-agents
locate and manage agents on server
letta-code
Jul 16AgentsManagementgenerating-mod-envs
generate Letta mod learning environments
letta-code
Jul 13AgentsAI InfrastructureConfigurationimage-generation
generate images from text prompts
letta-code
Jul 13CreativeGraphicsImage Generation