[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-letta-self-configuration":3,"mdc-pzmfw8-key":34,"related-org-letta-self-configuration":2360,"related-repo-letta-self-configuration":2517},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":29,"sourceUrl":32,"mdContent":33},"self-configuration","configure Letta agent runtime behavior","Configures Letta agents' own runtime behavior, including model, context window, system prompt, reasoning, conversation overrides, compaction settings, and compaction prompts. Use when an agent or user asks to self-modify, tune summarization\u002Fcompaction, change identity\u002Fsystem instructions, adjust model settings, or test conversation-scoped overrides.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"letta","Letta","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fletta.png","letta-ai",[13,17,20],{"name":14,"slug":15,"type":16},"Configuration","configuration","tag",{"name":18,"slug":19,"type":16},"Agents","agents",{"name":21,"slug":22,"type":16},"AI Infrastructure","ai-infrastructure",127,"https:\u002F\u002Fgithub.com\u002Fletta-ai\u002Fskills","2026-07-13T06:25:39.923129","MIT",20,[],{"repoUrl":24,"stars":23,"forks":27,"topics":30,"description":31},[],"A shared repository for skills. Intended to be used with Letta Code, Claude Code, Codex CLI, and other agents that support skills.","https:\u002F\u002Fgithub.com\u002Fletta-ai\u002Fskills\u002Ftree\u002FHEAD\u002Fletta\u002Fself-configuration","---\nname: self-configuration\ndescription: Configures Letta agents' own runtime behavior, including model, context window, system prompt, reasoning, conversation overrides, compaction settings, and compaction prompts. Use when an agent or user asks to self-modify, tune summarization\u002Fcompaction, change identity\u002Fsystem instructions, adjust model settings, or test conversation-scoped overrides.\nlicense: MIT\n---\n\n# Letta self-configuration\n\nUse the Letta API when an agent needs to change its own persistent defaults or the current conversation's temporary runtime settings.\n\n## Safety rule\n\nAsk before changing persistent agent defaults unless the user explicitly requested the change. Persistent changes include agent model, system prompt, context window, model settings, and compaction settings. Prefer conversation-scoped changes for experiments.\n\n## Decision tree\n\n- Need a temporary model\u002Fcontext experiment? Patch the **current conversation**.\n- Need persistent model, system prompt, or compaction behavior? Patch the **agent**.\n- Need better summaries after context eviction? Use the **Compaction settings** section and prompt patterns.\n- Need provider keys, BYOK setup, or server deployment env vars? Use the broader Letta configuration\u002FAPI skills instead.\n- Need to design a new agent from scratch? Use the agent-development skill.\n\n## Environment\n\n```bash\nBASE_URL=\"${LETTA_BASE_URL:-https:\u002F\u002Fapi.letta.com}\"\n: \"${LETTA_API_KEY:?Set LETTA_API_KEY}\"\n: \"${AGENT_ID:?Set AGENT_ID}\"\n```\n\nUse `AGENT_ID` for yourself. Use `CONVERSATION_ID` for the current thread when it is available.\n\n## Inspect first\n\n```bash\ncurl -sS \"$BASE_URL\u002Fv1\u002Fagents\u002F$AGENT_ID\" \\\n  -H \"Authorization: Bearer $LETTA_API_KEY\" | \\\n  jq '{id, model, context_window_limit, llm_config, model_settings, compaction_settings, system_chars: (.system | length)}'\n```\n\n## Choose the API target\n\n| Target | Endpoint | Persistence | Use for |\n| --- | --- | --- | --- |\n| Agent | `PATCH \u002Fv1\u002Fagents\u002F$AGENT_ID` | Persistent across conversations | model defaults, context window, system prompt, compaction settings |\n| Conversation | `PATCH \u002Fv1\u002Fconversations\u002F$CONVERSATION_ID` | Current conversation only | temporary model\u002Fcontext\u002Freasoning experiments |\n\n## Quick patches\n\n### Context window only\n\n`context_window_limit` is top-level. Do not put it inside `model_settings`.\n\n```bash\ncurl -sS -X PATCH \"$BASE_URL\u002Fv1\u002Fagents\u002F$AGENT_ID\" \\\n  -H \"Authorization: Bearer $LETTA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"context_window_limit\": 64000}'\n```\n\nConversation-scoped:\n\n```bash\n: \"${CONVERSATION_ID:?Set CONVERSATION_ID}\"\n\ncurl -sS -X PATCH \"$BASE_URL\u002Fv1\u002Fconversations\u002F$CONVERSATION_ID\" \\\n  -H \"Authorization: Bearer $LETTA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"context_window_limit\": 64000}'\n```\n\n### Agent-level model update\n\n`model_settings` is usually treated as a replacement object, not a deep merge. Read the current agent first and include any existing settings you want to keep. Provider-specific examples live in [references\u002Fmodel-settings.md](references\u002Fmodel-settings.md).\n\n```bash\ncurl -sS -X PATCH \"$BASE_URL\u002Fv1\u002Fagents\u002F$AGENT_ID\" \\\n  -H \"Authorization: Bearer $LETTA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"openai\u002Fgpt-5.2\",\n    \"context_window_limit\": 272000,\n    \"model_settings\": {\n      \"provider_type\": \"openai\",\n      \"parallel_tool_calls\": true,\n      \"reasoning\": { \"reasoning_effort\": \"medium\" },\n      \"max_output_tokens\": 128000\n    }\n  }'\n```\n\n### Conversation-scoped model update\n\n```bash\n: \"${CONVERSATION_ID:?Set CONVERSATION_ID}\"\n\ncurl -sS -X PATCH \"$BASE_URL\u002Fv1\u002Fconversations\u002F$CONVERSATION_ID\" \\\n  -H \"Authorization: Bearer $LETTA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"openai\u002Fgpt-5.2\",\n    \"context_window_limit\": 64000,\n    \"model_settings\": {\n      \"provider_type\": \"openai\",\n      \"parallel_tool_calls\": true,\n      \"reasoning\": { \"reasoning_effort\": \"low\" }\n    }\n  }'\n```\n\n### Safe conversation-scoped model test\n\nA successful `PATCH` means the API accepted the configuration shape. It does **not** always prove the selected model handle can generate at runtime for the current server, provider, account, or routing configuration. The first actual model call may still fail with a resolver\u002Fprovider error.\n\nFor model experiments, prefer this bounded recipe:\n\n1. Save or inspect the current agent\u002Fconversation configuration.\n2. Patch the **current conversation**, not persistent agent defaults.\n3. Verify the response or re-fetch the conversation to confirm the config changed.\n4. Run a tiny low-risk runtime test in the same conversation.\n5. If the runtime test fails, revert the conversation to the saved known-good model\u002Fsettings.\n\nThis keeps failed model-handle experiments from damaging the agent's persistent continuity or requiring the user to repair global defaults.\n\n### System prompt replacement\n\nOnly use `system` when the user explicitly asks to change the persistent system prompt. It is a full replacement, not an append.\n\n```bash\ncurl -sS \"$BASE_URL\u002Fv1\u002Fagents\u002F$AGENT_ID\" \\\n  -H \"Authorization: Bearer $LETTA_API_KEY\" | jq -r '.system'\n```\n\nThen send the complete replacement prompt:\n\n```bash\ncurl -sS -X PATCH \"$BASE_URL\u002Fv1\u002Fagents\u002F$AGENT_ID\" \\\n  -H \"Authorization: Bearer $LETTA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"system\": \"\u003CFULL replacement system prompt. Preserve important existing instructions.>\"}'\n```\n\n## Safer bundled updater\n\nUse `scripts\u002Fupdate-agent-settings.ts` when you want a dry-runable patch that can optionally merge existing `model_settings` or `compaction_settings` before updating.\n\n```bash\nnpx tsx \u003CSKILL_DIR>\u002Fscripts\u002Fupdate-agent-settings.ts \\\n  --target agent \\\n  --context-window-limit 64000 \\\n  --dry-run\n```\n\nExamples and all flags are in [references\u002Fapi-patch-examples.md](references\u002Fapi-patch-examples.md).\n\n## Compaction settings\n\nCompaction runs when message history grows too large for the context window. Letta replaces older messages with a summary while keeping recent messages in context. The summary appears before the remaining recent messages, so a custom compaction prompt should preserve enough background for the later messages to make sense.\n\nCustomize compaction when the default summary loses important continuity, tone, relationship context, implementation details, or user feedback.\n\n### Compaction fields\n\n| Field | Use |\n| --- | --- |\n| `mode` | `sliding_window`, `all`, `self_compact_sliding_window`, or `self_compact_all`. |\n| `prompt` | Custom summarization prompt. |\n| `model` | Optional cheaper\u002Ffaster summarizer model. |\n| `model_settings` | Optional summarizer model settings. |\n| `prompt_acknowledgement` | Optional boolean for summarizers that add acknowledgements\u002Fmeta-commentary. |\n| `clip_chars` | Max summary length in characters. Default is 50000. |\n| `sliding_window_percentage` | Fraction of messages to summarize in sliding-window modes. Docs default: `0.3`. |\n\n### Choose a compaction mode\n\n- Use `sliding_window` by default. It summarizes older messages with a separate summarizer call and keeps recent messages intact.\n- Use `self_compact_sliding_window` when the agent's own persona\u002Fsystem prompt is important for summary quality or prompt-cache reuse.\n- Use `all` only when maximum space reduction matters more than preserving recent raw messages.\n- Use `self_compact_all` for all-message compaction with the agent system prompt included.\n\n### Prompt requirements\n\nEvery custom compaction prompt should:\n\n- State whether evicted messages come from the beginning of the context window.\n- Say the summary will appear before remaining recent messages.\n- Say not to continue the conversation, answer transcript questions, or call tools.\n- Require incorporation of any existing summary being evicted.\n- Preserve exact user requests, names, IDs, URLs, file paths, dates, and quoted phrases when they matter.\n- Include lookup hints for detailed content that cannot fit.\n- End with \"Only output the summary.\"\n\nFor complete prompt templates, read [references\u002Fcompaction-prompt-patterns.md](references\u002Fcompaction-prompt-patterns.md).\n\n### Update compaction with the bundled script\n\n```bash\nnpx tsx \u003CSKILL_DIR>\u002Fscripts\u002Fupdate-compaction-prompt.ts \\\n  --prompt-file \u002Ftmp\u002Fcompaction-prompt.txt \\\n  --mode self_compact_sliding_window \\\n  --clip-chars 50000 \\\n  --dry-run\n```\n\nThe script preserves existing `compaction_settings` fields unless flags override them. It uses `LETTA_API_KEY`, `AGENT_ID`, and `LETTA_BASE_URL` unless corresponding flags are provided.\n\n## SDK examples\n\nTypeScript and Python examples live in [references\u002Fapi-patch-examples.md](references\u002Fapi-patch-examples.md).\n\n## Verify\n\n```bash\ncurl -sS \"$BASE_URL\u002Fv1\u002Fagents\u002F$AGENT_ID\" \\\n  -H \"Authorization: Bearer $LETTA_API_KEY\" | \\\n  jq '{id, model, context_window_limit, llm_config_context_window: .llm_config.context_window, model_settings, compaction_settings, system_chars: (.system | length)}'\n```\n\n## Guardrails\n\n- Ask before changing persistent agent defaults unless explicitly requested.\n- Prefer conversation-scoped updates for experiments.\n- Keep context windows only as large as needed. Bigger windows increase latency and cost.\n- Preserve existing `model_settings` and `compaction_settings` fields unless intentionally changing them.\n- For self-compaction prompts, always forbid tool use and conversation continuation.\n- If an update returns `400`, first check model handle validity, provider type, and whether settings are in the expected shape.\n",{"data":35,"body":36},{"name":4,"description":6,"license":26},{"type":37,"children":38},"root",[39,48,54,61,66,72,123,129,285,305,311,420,426,518,524,531,549,674,679,843,849,866,1065,1071,1287,1293,1313,1318,1353,1358,1364,1377,1469,1474,1594,1600,1627,1719,1730,1735,1740,1745,1751,1926,1932,1979,1985,1990,2028,2039,2045,2146,2178,2184,2194,2200,2293,2299,2354],{"type":40,"tag":41,"props":42,"children":44},"element","h1",{"id":43},"letta-self-configuration",[45],{"type":46,"value":47},"text","Letta self-configuration",{"type":40,"tag":49,"props":50,"children":51},"p",{},[52],{"type":46,"value":53},"Use the Letta API when an agent needs to change its own persistent defaults or the current conversation's temporary runtime settings.",{"type":40,"tag":55,"props":56,"children":58},"h2",{"id":57},"safety-rule",[59],{"type":46,"value":60},"Safety rule",{"type":40,"tag":49,"props":62,"children":63},{},[64],{"type":46,"value":65},"Ask before changing persistent agent defaults unless the user explicitly requested the change. Persistent changes include agent model, system prompt, context window, model settings, and compaction settings. Prefer conversation-scoped changes for experiments.",{"type":40,"tag":55,"props":67,"children":69},{"id":68},"decision-tree",[70],{"type":46,"value":71},"Decision tree",{"type":40,"tag":73,"props":74,"children":75},"ul",{},[76,90,101,113,118],{"type":40,"tag":77,"props":78,"children":79},"li",{},[80,82,88],{"type":46,"value":81},"Need a temporary model\u002Fcontext experiment? Patch the ",{"type":40,"tag":83,"props":84,"children":85},"strong",{},[86],{"type":46,"value":87},"current conversation",{"type":46,"value":89},".",{"type":40,"tag":77,"props":91,"children":92},{},[93,95,100],{"type":46,"value":94},"Need persistent model, system prompt, or compaction behavior? Patch the ",{"type":40,"tag":83,"props":96,"children":97},{},[98],{"type":46,"value":99},"agent",{"type":46,"value":89},{"type":40,"tag":77,"props":102,"children":103},{},[104,106,111],{"type":46,"value":105},"Need better summaries after context eviction? Use the ",{"type":40,"tag":83,"props":107,"children":108},{},[109],{"type":46,"value":110},"Compaction settings",{"type":46,"value":112}," section and prompt patterns.",{"type":40,"tag":77,"props":114,"children":115},{},[116],{"type":46,"value":117},"Need provider keys, BYOK setup, or server deployment env vars? Use the broader Letta configuration\u002FAPI skills instead.",{"type":40,"tag":77,"props":119,"children":120},{},[121],{"type":46,"value":122},"Need to design a new agent from scratch? Use the agent-development skill.",{"type":40,"tag":55,"props":124,"children":126},{"id":125},"environment",[127],{"type":46,"value":128},"Environment",{"type":40,"tag":130,"props":131,"children":136},"pre",{"className":132,"code":133,"language":134,"meta":135,"style":135},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","BASE_URL=\"${LETTA_BASE_URL:-https:\u002F\u002Fapi.letta.com}\"\n: \"${LETTA_API_KEY:?Set LETTA_API_KEY}\"\n: \"${AGENT_ID:?Set AGENT_ID}\"\n","bash","",[137],{"type":40,"tag":138,"props":139,"children":140},"code",{"__ignoreMap":135},[141,212,251],{"type":40,"tag":142,"props":143,"children":146},"span",{"class":144,"line":145},"line",1,[147,153,159,164,169,174,179,184,189,194,198,202,207],{"type":40,"tag":142,"props":148,"children":150},{"style":149},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[151],{"type":46,"value":152},"BASE_URL",{"type":40,"tag":142,"props":154,"children":156},{"style":155},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[157],{"type":46,"value":158},"=",{"type":40,"tag":142,"props":160,"children":161},{"style":155},[162],{"type":46,"value":163},"\"${",{"type":40,"tag":142,"props":165,"children":166},{"style":149},[167],{"type":46,"value":168},"LETTA_BASE_URL",{"type":40,"tag":142,"props":170,"children":171},{"style":155},[172],{"type":46,"value":173},":-",{"type":40,"tag":142,"props":175,"children":176},{"style":149},[177],{"type":46,"value":178},"https",{"type":40,"tag":142,"props":180,"children":181},{"style":155},[182],{"type":46,"value":183},":\u002F\u002F",{"type":40,"tag":142,"props":185,"children":186},{"style":149},[187],{"type":46,"value":188},"api",{"type":40,"tag":142,"props":190,"children":192},{"style":191},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[193],{"type":46,"value":89},{"type":40,"tag":142,"props":195,"children":196},{"style":149},[197],{"type":46,"value":8},{"type":40,"tag":142,"props":199,"children":200},{"style":191},[201],{"type":46,"value":89},{"type":40,"tag":142,"props":203,"children":204},{"style":149},[205],{"type":46,"value":206},"com",{"type":40,"tag":142,"props":208,"children":209},{"style":155},[210],{"type":46,"value":211},"}\"\n",{"type":40,"tag":142,"props":213,"children":215},{"class":144,"line":214},2,[216,222,227,232,237,242,247],{"type":40,"tag":142,"props":217,"children":219},{"style":218},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[220],{"type":46,"value":221},":",{"type":40,"tag":142,"props":223,"children":224},{"style":155},[225],{"type":46,"value":226}," \"${",{"type":40,"tag":142,"props":228,"children":229},{"style":149},[230],{"type":46,"value":231},"LETTA_API_KEY",{"type":40,"tag":142,"props":233,"children":234},{"style":155},[235],{"type":46,"value":236},":?",{"type":40,"tag":142,"props":238,"children":239},{"style":149},[240],{"type":46,"value":241},"Set",{"type":40,"tag":142,"props":243,"children":244},{"style":149},[245],{"type":46,"value":246}," LETTA_API_KEY",{"type":40,"tag":142,"props":248,"children":249},{"style":155},[250],{"type":46,"value":211},{"type":40,"tag":142,"props":252,"children":254},{"class":144,"line":253},3,[255,259,263,268,272,276,281],{"type":40,"tag":142,"props":256,"children":257},{"style":218},[258],{"type":46,"value":221},{"type":40,"tag":142,"props":260,"children":261},{"style":155},[262],{"type":46,"value":226},{"type":40,"tag":142,"props":264,"children":265},{"style":149},[266],{"type":46,"value":267},"AGENT_ID",{"type":40,"tag":142,"props":269,"children":270},{"style":155},[271],{"type":46,"value":236},{"type":40,"tag":142,"props":273,"children":274},{"style":149},[275],{"type":46,"value":241},{"type":40,"tag":142,"props":277,"children":278},{"style":149},[279],{"type":46,"value":280}," AGENT_ID",{"type":40,"tag":142,"props":282,"children":283},{"style":155},[284],{"type":46,"value":211},{"type":40,"tag":49,"props":286,"children":287},{},[288,290,295,297,303],{"type":46,"value":289},"Use ",{"type":40,"tag":138,"props":291,"children":293},{"className":292},[],[294],{"type":46,"value":267},{"type":46,"value":296}," for yourself. Use ",{"type":40,"tag":138,"props":298,"children":300},{"className":299},[],[301],{"type":46,"value":302},"CONVERSATION_ID",{"type":46,"value":304}," for the current thread when it is available.",{"type":40,"tag":55,"props":306,"children":308},{"id":307},"inspect-first",[309],{"type":46,"value":310},"Inspect first",{"type":40,"tag":130,"props":312,"children":314},{"className":132,"code":313,"language":134,"meta":135,"style":135},"curl -sS \"$BASE_URL\u002Fv1\u002Fagents\u002F$AGENT_ID\" \\\n  -H \"Authorization: Bearer $LETTA_API_KEY\" | \\\n  jq '{id, model, context_window_limit, llm_config, model_settings, compaction_settings, system_chars: (.system | length)}'\n",[315],{"type":40,"tag":138,"props":316,"children":317},{"__ignoreMap":135},[318,362,397],{"type":40,"tag":142,"props":319,"children":320},{"class":144,"line":145},[321,327,332,337,342,347,352,357],{"type":40,"tag":142,"props":322,"children":324},{"style":323},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[325],{"type":46,"value":326},"curl",{"type":40,"tag":142,"props":328,"children":329},{"style":191},[330],{"type":46,"value":331}," -sS",{"type":40,"tag":142,"props":333,"children":334},{"style":155},[335],{"type":46,"value":336}," \"",{"type":40,"tag":142,"props":338,"children":339},{"style":149},[340],{"type":46,"value":341},"$BASE_URL",{"type":40,"tag":142,"props":343,"children":344},{"style":191},[345],{"type":46,"value":346},"\u002Fv1\u002Fagents\u002F",{"type":40,"tag":142,"props":348,"children":349},{"style":149},[350],{"type":46,"value":351},"$AGENT_ID",{"type":40,"tag":142,"props":353,"children":354},{"style":155},[355],{"type":46,"value":356},"\"",{"type":40,"tag":142,"props":358,"children":359},{"style":149},[360],{"type":46,"value":361}," \\\n",{"type":40,"tag":142,"props":363,"children":364},{"class":144,"line":214},[365,370,374,379,384,388,393],{"type":40,"tag":142,"props":366,"children":367},{"style":191},[368],{"type":46,"value":369},"  -H",{"type":40,"tag":142,"props":371,"children":372},{"style":155},[373],{"type":46,"value":336},{"type":40,"tag":142,"props":375,"children":376},{"style":191},[377],{"type":46,"value":378},"Authorization: Bearer ",{"type":40,"tag":142,"props":380,"children":381},{"style":149},[382],{"type":46,"value":383},"$LETTA_API_KEY",{"type":40,"tag":142,"props":385,"children":386},{"style":155},[387],{"type":46,"value":356},{"type":40,"tag":142,"props":389,"children":390},{"style":155},[391],{"type":46,"value":392}," |",{"type":40,"tag":142,"props":394,"children":395},{"style":149},[396],{"type":46,"value":361},{"type":40,"tag":142,"props":398,"children":399},{"class":144,"line":253},[400,405,410,415],{"type":40,"tag":142,"props":401,"children":402},{"style":323},[403],{"type":46,"value":404},"  jq",{"type":40,"tag":142,"props":406,"children":407},{"style":155},[408],{"type":46,"value":409}," '",{"type":40,"tag":142,"props":411,"children":412},{"style":191},[413],{"type":46,"value":414},"{id, model, context_window_limit, llm_config, model_settings, compaction_settings, system_chars: (.system | length)}",{"type":40,"tag":142,"props":416,"children":417},{"style":155},[418],{"type":46,"value":419},"'\n",{"type":40,"tag":55,"props":421,"children":423},{"id":422},"choose-the-api-target",[424],{"type":46,"value":425},"Choose the API target",{"type":40,"tag":427,"props":428,"children":429},"table",{},[430,459],{"type":40,"tag":431,"props":432,"children":433},"thead",{},[434],{"type":40,"tag":435,"props":436,"children":437},"tr",{},[438,444,449,454],{"type":40,"tag":439,"props":440,"children":441},"th",{},[442],{"type":46,"value":443},"Target",{"type":40,"tag":439,"props":445,"children":446},{},[447],{"type":46,"value":448},"Endpoint",{"type":40,"tag":439,"props":450,"children":451},{},[452],{"type":46,"value":453},"Persistence",{"type":40,"tag":439,"props":455,"children":456},{},[457],{"type":46,"value":458},"Use for",{"type":40,"tag":460,"props":461,"children":462},"tbody",{},[463,491],{"type":40,"tag":435,"props":464,"children":465},{},[466,472,481,486],{"type":40,"tag":467,"props":468,"children":469},"td",{},[470],{"type":46,"value":471},"Agent",{"type":40,"tag":467,"props":473,"children":474},{},[475],{"type":40,"tag":138,"props":476,"children":478},{"className":477},[],[479],{"type":46,"value":480},"PATCH \u002Fv1\u002Fagents\u002F$AGENT_ID",{"type":40,"tag":467,"props":482,"children":483},{},[484],{"type":46,"value":485},"Persistent across conversations",{"type":40,"tag":467,"props":487,"children":488},{},[489],{"type":46,"value":490},"model defaults, context window, system prompt, compaction settings",{"type":40,"tag":435,"props":492,"children":493},{},[494,499,508,513],{"type":40,"tag":467,"props":495,"children":496},{},[497],{"type":46,"value":498},"Conversation",{"type":40,"tag":467,"props":500,"children":501},{},[502],{"type":40,"tag":138,"props":503,"children":505},{"className":504},[],[506],{"type":46,"value":507},"PATCH \u002Fv1\u002Fconversations\u002F$CONVERSATION_ID",{"type":40,"tag":467,"props":509,"children":510},{},[511],{"type":46,"value":512},"Current conversation only",{"type":40,"tag":467,"props":514,"children":515},{},[516],{"type":46,"value":517},"temporary model\u002Fcontext\u002Freasoning experiments",{"type":40,"tag":55,"props":519,"children":521},{"id":520},"quick-patches",[522],{"type":46,"value":523},"Quick patches",{"type":40,"tag":525,"props":526,"children":528},"h3",{"id":527},"context-window-only",[529],{"type":46,"value":530},"Context window only",{"type":40,"tag":49,"props":532,"children":533},{},[534,540,542,548],{"type":40,"tag":138,"props":535,"children":537},{"className":536},[],[538],{"type":46,"value":539},"context_window_limit",{"type":46,"value":541}," is top-level. Do not put it inside ",{"type":40,"tag":138,"props":543,"children":545},{"className":544},[],[546],{"type":46,"value":547},"model_settings",{"type":46,"value":89},{"type":40,"tag":130,"props":550,"children":552},{"className":132,"code":551,"language":134,"meta":135,"style":135},"curl -sS -X PATCH \"$BASE_URL\u002Fv1\u002Fagents\u002F$AGENT_ID\" \\\n  -H \"Authorization: Bearer $LETTA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"context_window_limit\": 64000}'\n",[553],{"type":40,"tag":138,"props":554,"children":555},{"__ignoreMap":135},[556,601,628,652],{"type":40,"tag":142,"props":557,"children":558},{"class":144,"line":145},[559,563,567,572,577,581,585,589,593,597],{"type":40,"tag":142,"props":560,"children":561},{"style":323},[562],{"type":46,"value":326},{"type":40,"tag":142,"props":564,"children":565},{"style":191},[566],{"type":46,"value":331},{"type":40,"tag":142,"props":568,"children":569},{"style":191},[570],{"type":46,"value":571}," -X",{"type":40,"tag":142,"props":573,"children":574},{"style":191},[575],{"type":46,"value":576}," PATCH",{"type":40,"tag":142,"props":578,"children":579},{"style":155},[580],{"type":46,"value":336},{"type":40,"tag":142,"props":582,"children":583},{"style":149},[584],{"type":46,"value":341},{"type":40,"tag":142,"props":586,"children":587},{"style":191},[588],{"type":46,"value":346},{"type":40,"tag":142,"props":590,"children":591},{"style":149},[592],{"type":46,"value":351},{"type":40,"tag":142,"props":594,"children":595},{"style":155},[596],{"type":46,"value":356},{"type":40,"tag":142,"props":598,"children":599},{"style":149},[600],{"type":46,"value":361},{"type":40,"tag":142,"props":602,"children":603},{"class":144,"line":214},[604,608,612,616,620,624],{"type":40,"tag":142,"props":605,"children":606},{"style":191},[607],{"type":46,"value":369},{"type":40,"tag":142,"props":609,"children":610},{"style":155},[611],{"type":46,"value":336},{"type":40,"tag":142,"props":613,"children":614},{"style":191},[615],{"type":46,"value":378},{"type":40,"tag":142,"props":617,"children":618},{"style":149},[619],{"type":46,"value":383},{"type":40,"tag":142,"props":621,"children":622},{"style":155},[623],{"type":46,"value":356},{"type":40,"tag":142,"props":625,"children":626},{"style":149},[627],{"type":46,"value":361},{"type":40,"tag":142,"props":629,"children":630},{"class":144,"line":253},[631,635,639,644,648],{"type":40,"tag":142,"props":632,"children":633},{"style":191},[634],{"type":46,"value":369},{"type":40,"tag":142,"props":636,"children":637},{"style":155},[638],{"type":46,"value":336},{"type":40,"tag":142,"props":640,"children":641},{"style":191},[642],{"type":46,"value":643},"Content-Type: application\u002Fjson",{"type":40,"tag":142,"props":645,"children":646},{"style":155},[647],{"type":46,"value":356},{"type":40,"tag":142,"props":649,"children":650},{"style":149},[651],{"type":46,"value":361},{"type":40,"tag":142,"props":653,"children":655},{"class":144,"line":654},4,[656,661,665,670],{"type":40,"tag":142,"props":657,"children":658},{"style":191},[659],{"type":46,"value":660},"  -d",{"type":40,"tag":142,"props":662,"children":663},{"style":155},[664],{"type":46,"value":409},{"type":40,"tag":142,"props":666,"children":667},{"style":191},[668],{"type":46,"value":669},"{\"context_window_limit\": 64000}",{"type":40,"tag":142,"props":671,"children":672},{"style":155},[673],{"type":46,"value":419},{"type":40,"tag":49,"props":675,"children":676},{},[677],{"type":46,"value":678},"Conversation-scoped:",{"type":40,"tag":130,"props":680,"children":682},{"className":132,"code":681,"language":134,"meta":135,"style":135},": \"${CONVERSATION_ID:?Set CONVERSATION_ID}\"\n\ncurl -sS -X PATCH \"$BASE_URL\u002Fv1\u002Fconversations\u002F$CONVERSATION_ID\" \\\n  -H \"Authorization: Bearer $LETTA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"context_window_limit\": 64000}'\n",[683],{"type":40,"tag":138,"props":684,"children":685},{"__ignoreMap":135},[686,718,727,772,799,823],{"type":40,"tag":142,"props":687,"children":688},{"class":144,"line":145},[689,693,697,701,705,709,714],{"type":40,"tag":142,"props":690,"children":691},{"style":218},[692],{"type":46,"value":221},{"type":40,"tag":142,"props":694,"children":695},{"style":155},[696],{"type":46,"value":226},{"type":40,"tag":142,"props":698,"children":699},{"style":149},[700],{"type":46,"value":302},{"type":40,"tag":142,"props":702,"children":703},{"style":155},[704],{"type":46,"value":236},{"type":40,"tag":142,"props":706,"children":707},{"style":149},[708],{"type":46,"value":241},{"type":40,"tag":142,"props":710,"children":711},{"style":149},[712],{"type":46,"value":713}," CONVERSATION_ID",{"type":40,"tag":142,"props":715,"children":716},{"style":155},[717],{"type":46,"value":211},{"type":40,"tag":142,"props":719,"children":720},{"class":144,"line":214},[721],{"type":40,"tag":142,"props":722,"children":724},{"emptyLinePlaceholder":723},true,[725],{"type":46,"value":726},"\n",{"type":40,"tag":142,"props":728,"children":729},{"class":144,"line":253},[730,734,738,742,746,750,754,759,764,768],{"type":40,"tag":142,"props":731,"children":732},{"style":323},[733],{"type":46,"value":326},{"type":40,"tag":142,"props":735,"children":736},{"style":191},[737],{"type":46,"value":331},{"type":40,"tag":142,"props":739,"children":740},{"style":191},[741],{"type":46,"value":571},{"type":40,"tag":142,"props":743,"children":744},{"style":191},[745],{"type":46,"value":576},{"type":40,"tag":142,"props":747,"children":748},{"style":155},[749],{"type":46,"value":336},{"type":40,"tag":142,"props":751,"children":752},{"style":149},[753],{"type":46,"value":341},{"type":40,"tag":142,"props":755,"children":756},{"style":191},[757],{"type":46,"value":758},"\u002Fv1\u002Fconversations\u002F",{"type":40,"tag":142,"props":760,"children":761},{"style":149},[762],{"type":46,"value":763},"$CONVERSATION_ID",{"type":40,"tag":142,"props":765,"children":766},{"style":155},[767],{"type":46,"value":356},{"type":40,"tag":142,"props":769,"children":770},{"style":149},[771],{"type":46,"value":361},{"type":40,"tag":142,"props":773,"children":774},{"class":144,"line":654},[775,779,783,787,791,795],{"type":40,"tag":142,"props":776,"children":777},{"style":191},[778],{"type":46,"value":369},{"type":40,"tag":142,"props":780,"children":781},{"style":155},[782],{"type":46,"value":336},{"type":40,"tag":142,"props":784,"children":785},{"style":191},[786],{"type":46,"value":378},{"type":40,"tag":142,"props":788,"children":789},{"style":149},[790],{"type":46,"value":383},{"type":40,"tag":142,"props":792,"children":793},{"style":155},[794],{"type":46,"value":356},{"type":40,"tag":142,"props":796,"children":797},{"style":149},[798],{"type":46,"value":361},{"type":40,"tag":142,"props":800,"children":802},{"class":144,"line":801},5,[803,807,811,815,819],{"type":40,"tag":142,"props":804,"children":805},{"style":191},[806],{"type":46,"value":369},{"type":40,"tag":142,"props":808,"children":809},{"style":155},[810],{"type":46,"value":336},{"type":40,"tag":142,"props":812,"children":813},{"style":191},[814],{"type":46,"value":643},{"type":40,"tag":142,"props":816,"children":817},{"style":155},[818],{"type":46,"value":356},{"type":40,"tag":142,"props":820,"children":821},{"style":149},[822],{"type":46,"value":361},{"type":40,"tag":142,"props":824,"children":826},{"class":144,"line":825},6,[827,831,835,839],{"type":40,"tag":142,"props":828,"children":829},{"style":191},[830],{"type":46,"value":660},{"type":40,"tag":142,"props":832,"children":833},{"style":155},[834],{"type":46,"value":409},{"type":40,"tag":142,"props":836,"children":837},{"style":191},[838],{"type":46,"value":669},{"type":40,"tag":142,"props":840,"children":841},{"style":155},[842],{"type":46,"value":419},{"type":40,"tag":525,"props":844,"children":846},{"id":845},"agent-level-model-update",[847],{"type":46,"value":848},"Agent-level model update",{"type":40,"tag":49,"props":850,"children":851},{},[852,857,859,865],{"type":40,"tag":138,"props":853,"children":855},{"className":854},[],[856],{"type":46,"value":547},{"type":46,"value":858}," is usually treated as a replacement object, not a deep merge. Read the current agent first and include any existing settings you want to keep. Provider-specific examples live in ",{"type":40,"tag":860,"props":861,"children":863},"a",{"href":862},"references\u002Fmodel-settings.md",[864],{"type":46,"value":862},{"type":46,"value":89},{"type":40,"tag":130,"props":867,"children":869},{"className":132,"code":868,"language":134,"meta":135,"style":135},"curl -sS -X PATCH \"$BASE_URL\u002Fv1\u002Fagents\u002F$AGENT_ID\" \\\n  -H \"Authorization: Bearer $LETTA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"openai\u002Fgpt-5.2\",\n    \"context_window_limit\": 272000,\n    \"model_settings\": {\n      \"provider_type\": \"openai\",\n      \"parallel_tool_calls\": true,\n      \"reasoning\": { \"reasoning_effort\": \"medium\" },\n      \"max_output_tokens\": 128000\n    }\n  }'\n",[870],{"type":40,"tag":138,"props":871,"children":872},{"__ignoreMap":135},[873,916,943,966,982,990,998,1007,1016,1025,1034,1043,1052],{"type":40,"tag":142,"props":874,"children":875},{"class":144,"line":145},[876,880,884,888,892,896,900,904,908,912],{"type":40,"tag":142,"props":877,"children":878},{"style":323},[879],{"type":46,"value":326},{"type":40,"tag":142,"props":881,"children":882},{"style":191},[883],{"type":46,"value":331},{"type":40,"tag":142,"props":885,"children":886},{"style":191},[887],{"type":46,"value":571},{"type":40,"tag":142,"props":889,"children":890},{"style":191},[891],{"type":46,"value":576},{"type":40,"tag":142,"props":893,"children":894},{"style":155},[895],{"type":46,"value":336},{"type":40,"tag":142,"props":897,"children":898},{"style":149},[899],{"type":46,"value":341},{"type":40,"tag":142,"props":901,"children":902},{"style":191},[903],{"type":46,"value":346},{"type":40,"tag":142,"props":905,"children":906},{"style":149},[907],{"type":46,"value":351},{"type":40,"tag":142,"props":909,"children":910},{"style":155},[911],{"type":46,"value":356},{"type":40,"tag":142,"props":913,"children":914},{"style":149},[915],{"type":46,"value":361},{"type":40,"tag":142,"props":917,"children":918},{"class":144,"line":214},[919,923,927,931,935,939],{"type":40,"tag":142,"props":920,"children":921},{"style":191},[922],{"type":46,"value":369},{"type":40,"tag":142,"props":924,"children":925},{"style":155},[926],{"type":46,"value":336},{"type":40,"tag":142,"props":928,"children":929},{"style":191},[930],{"type":46,"value":378},{"type":40,"tag":142,"props":932,"children":933},{"style":149},[934],{"type":46,"value":383},{"type":40,"tag":142,"props":936,"children":937},{"style":155},[938],{"type":46,"value":356},{"type":40,"tag":142,"props":940,"children":941},{"style":149},[942],{"type":46,"value":361},{"type":40,"tag":142,"props":944,"children":945},{"class":144,"line":253},[946,950,954,958,962],{"type":40,"tag":142,"props":947,"children":948},{"style":191},[949],{"type":46,"value":369},{"type":40,"tag":142,"props":951,"children":952},{"style":155},[953],{"type":46,"value":336},{"type":40,"tag":142,"props":955,"children":956},{"style":191},[957],{"type":46,"value":643},{"type":40,"tag":142,"props":959,"children":960},{"style":155},[961],{"type":46,"value":356},{"type":40,"tag":142,"props":963,"children":964},{"style":149},[965],{"type":46,"value":361},{"type":40,"tag":142,"props":967,"children":968},{"class":144,"line":654},[969,973,977],{"type":40,"tag":142,"props":970,"children":971},{"style":191},[972],{"type":46,"value":660},{"type":40,"tag":142,"props":974,"children":975},{"style":155},[976],{"type":46,"value":409},{"type":40,"tag":142,"props":978,"children":979},{"style":191},[980],{"type":46,"value":981},"{\n",{"type":40,"tag":142,"props":983,"children":984},{"class":144,"line":801},[985],{"type":40,"tag":142,"props":986,"children":987},{"style":191},[988],{"type":46,"value":989},"    \"model\": \"openai\u002Fgpt-5.2\",\n",{"type":40,"tag":142,"props":991,"children":992},{"class":144,"line":825},[993],{"type":40,"tag":142,"props":994,"children":995},{"style":191},[996],{"type":46,"value":997},"    \"context_window_limit\": 272000,\n",{"type":40,"tag":142,"props":999,"children":1001},{"class":144,"line":1000},7,[1002],{"type":40,"tag":142,"props":1003,"children":1004},{"style":191},[1005],{"type":46,"value":1006},"    \"model_settings\": {\n",{"type":40,"tag":142,"props":1008,"children":1010},{"class":144,"line":1009},8,[1011],{"type":40,"tag":142,"props":1012,"children":1013},{"style":191},[1014],{"type":46,"value":1015},"      \"provider_type\": \"openai\",\n",{"type":40,"tag":142,"props":1017,"children":1019},{"class":144,"line":1018},9,[1020],{"type":40,"tag":142,"props":1021,"children":1022},{"style":191},[1023],{"type":46,"value":1024},"      \"parallel_tool_calls\": true,\n",{"type":40,"tag":142,"props":1026,"children":1028},{"class":144,"line":1027},10,[1029],{"type":40,"tag":142,"props":1030,"children":1031},{"style":191},[1032],{"type":46,"value":1033},"      \"reasoning\": { \"reasoning_effort\": \"medium\" },\n",{"type":40,"tag":142,"props":1035,"children":1037},{"class":144,"line":1036},11,[1038],{"type":40,"tag":142,"props":1039,"children":1040},{"style":191},[1041],{"type":46,"value":1042},"      \"max_output_tokens\": 128000\n",{"type":40,"tag":142,"props":1044,"children":1046},{"class":144,"line":1045},12,[1047],{"type":40,"tag":142,"props":1048,"children":1049},{"style":191},[1050],{"type":46,"value":1051},"    }\n",{"type":40,"tag":142,"props":1053,"children":1055},{"class":144,"line":1054},13,[1056,1061],{"type":40,"tag":142,"props":1057,"children":1058},{"style":191},[1059],{"type":46,"value":1060},"  }",{"type":40,"tag":142,"props":1062,"children":1063},{"style":155},[1064],{"type":46,"value":419},{"type":40,"tag":525,"props":1066,"children":1068},{"id":1067},"conversation-scoped-model-update",[1069],{"type":46,"value":1070},"Conversation-scoped model update",{"type":40,"tag":130,"props":1072,"children":1074},{"className":132,"code":1073,"language":134,"meta":135,"style":135},": \"${CONVERSATION_ID:?Set CONVERSATION_ID}\"\n\ncurl -sS -X PATCH \"$BASE_URL\u002Fv1\u002Fconversations\u002F$CONVERSATION_ID\" \\\n  -H \"Authorization: Bearer $LETTA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"model\": \"openai\u002Fgpt-5.2\",\n    \"context_window_limit\": 64000,\n    \"model_settings\": {\n      \"provider_type\": \"openai\",\n      \"parallel_tool_calls\": true,\n      \"reasoning\": { \"reasoning_effort\": \"low\" }\n    }\n  }'\n",[1075],{"type":40,"tag":138,"props":1076,"children":1077},{"__ignoreMap":135},[1078,1109,1116,1159,1186,1209,1224,1231,1239,1246,1253,1260,1268,1275],{"type":40,"tag":142,"props":1079,"children":1080},{"class":144,"line":145},[1081,1085,1089,1093,1097,1101,1105],{"type":40,"tag":142,"props":1082,"children":1083},{"style":218},[1084],{"type":46,"value":221},{"type":40,"tag":142,"props":1086,"children":1087},{"style":155},[1088],{"type":46,"value":226},{"type":40,"tag":142,"props":1090,"children":1091},{"style":149},[1092],{"type":46,"value":302},{"type":40,"tag":142,"props":1094,"children":1095},{"style":155},[1096],{"type":46,"value":236},{"type":40,"tag":142,"props":1098,"children":1099},{"style":149},[1100],{"type":46,"value":241},{"type":40,"tag":142,"props":1102,"children":1103},{"style":149},[1104],{"type":46,"value":713},{"type":40,"tag":142,"props":1106,"children":1107},{"style":155},[1108],{"type":46,"value":211},{"type":40,"tag":142,"props":1110,"children":1111},{"class":144,"line":214},[1112],{"type":40,"tag":142,"props":1113,"children":1114},{"emptyLinePlaceholder":723},[1115],{"type":46,"value":726},{"type":40,"tag":142,"props":1117,"children":1118},{"class":144,"line":253},[1119,1123,1127,1131,1135,1139,1143,1147,1151,1155],{"type":40,"tag":142,"props":1120,"children":1121},{"style":323},[1122],{"type":46,"value":326},{"type":40,"tag":142,"props":1124,"children":1125},{"style":191},[1126],{"type":46,"value":331},{"type":40,"tag":142,"props":1128,"children":1129},{"style":191},[1130],{"type":46,"value":571},{"type":40,"tag":142,"props":1132,"children":1133},{"style":191},[1134],{"type":46,"value":576},{"type":40,"tag":142,"props":1136,"children":1137},{"style":155},[1138],{"type":46,"value":336},{"type":40,"tag":142,"props":1140,"children":1141},{"style":149},[1142],{"type":46,"value":341},{"type":40,"tag":142,"props":1144,"children":1145},{"style":191},[1146],{"type":46,"value":758},{"type":40,"tag":142,"props":1148,"children":1149},{"style":149},[1150],{"type":46,"value":763},{"type":40,"tag":142,"props":1152,"children":1153},{"style":155},[1154],{"type":46,"value":356},{"type":40,"tag":142,"props":1156,"children":1157},{"style":149},[1158],{"type":46,"value":361},{"type":40,"tag":142,"props":1160,"children":1161},{"class":144,"line":654},[1162,1166,1170,1174,1178,1182],{"type":40,"tag":142,"props":1163,"children":1164},{"style":191},[1165],{"type":46,"value":369},{"type":40,"tag":142,"props":1167,"children":1168},{"style":155},[1169],{"type":46,"value":336},{"type":40,"tag":142,"props":1171,"children":1172},{"style":191},[1173],{"type":46,"value":378},{"type":40,"tag":142,"props":1175,"children":1176},{"style":149},[1177],{"type":46,"value":383},{"type":40,"tag":142,"props":1179,"children":1180},{"style":155},[1181],{"type":46,"value":356},{"type":40,"tag":142,"props":1183,"children":1184},{"style":149},[1185],{"type":46,"value":361},{"type":40,"tag":142,"props":1187,"children":1188},{"class":144,"line":801},[1189,1193,1197,1201,1205],{"type":40,"tag":142,"props":1190,"children":1191},{"style":191},[1192],{"type":46,"value":369},{"type":40,"tag":142,"props":1194,"children":1195},{"style":155},[1196],{"type":46,"value":336},{"type":40,"tag":142,"props":1198,"children":1199},{"style":191},[1200],{"type":46,"value":643},{"type":40,"tag":142,"props":1202,"children":1203},{"style":155},[1204],{"type":46,"value":356},{"type":40,"tag":142,"props":1206,"children":1207},{"style":149},[1208],{"type":46,"value":361},{"type":40,"tag":142,"props":1210,"children":1211},{"class":144,"line":825},[1212,1216,1220],{"type":40,"tag":142,"props":1213,"children":1214},{"style":191},[1215],{"type":46,"value":660},{"type":40,"tag":142,"props":1217,"children":1218},{"style":155},[1219],{"type":46,"value":409},{"type":40,"tag":142,"props":1221,"children":1222},{"style":191},[1223],{"type":46,"value":981},{"type":40,"tag":142,"props":1225,"children":1226},{"class":144,"line":1000},[1227],{"type":40,"tag":142,"props":1228,"children":1229},{"style":191},[1230],{"type":46,"value":989},{"type":40,"tag":142,"props":1232,"children":1233},{"class":144,"line":1009},[1234],{"type":40,"tag":142,"props":1235,"children":1236},{"style":191},[1237],{"type":46,"value":1238},"    \"context_window_limit\": 64000,\n",{"type":40,"tag":142,"props":1240,"children":1241},{"class":144,"line":1018},[1242],{"type":40,"tag":142,"props":1243,"children":1244},{"style":191},[1245],{"type":46,"value":1006},{"type":40,"tag":142,"props":1247,"children":1248},{"class":144,"line":1027},[1249],{"type":40,"tag":142,"props":1250,"children":1251},{"style":191},[1252],{"type":46,"value":1015},{"type":40,"tag":142,"props":1254,"children":1255},{"class":144,"line":1036},[1256],{"type":40,"tag":142,"props":1257,"children":1258},{"style":191},[1259],{"type":46,"value":1024},{"type":40,"tag":142,"props":1261,"children":1262},{"class":144,"line":1045},[1263],{"type":40,"tag":142,"props":1264,"children":1265},{"style":191},[1266],{"type":46,"value":1267},"      \"reasoning\": { \"reasoning_effort\": \"low\" }\n",{"type":40,"tag":142,"props":1269,"children":1270},{"class":144,"line":1054},[1271],{"type":40,"tag":142,"props":1272,"children":1273},{"style":191},[1274],{"type":46,"value":1051},{"type":40,"tag":142,"props":1276,"children":1278},{"class":144,"line":1277},14,[1279,1283],{"type":40,"tag":142,"props":1280,"children":1281},{"style":191},[1282],{"type":46,"value":1060},{"type":40,"tag":142,"props":1284,"children":1285},{"style":155},[1286],{"type":46,"value":419},{"type":40,"tag":525,"props":1288,"children":1290},{"id":1289},"safe-conversation-scoped-model-test",[1291],{"type":46,"value":1292},"Safe conversation-scoped model test",{"type":40,"tag":49,"props":1294,"children":1295},{},[1296,1298,1304,1306,1311],{"type":46,"value":1297},"A successful ",{"type":40,"tag":138,"props":1299,"children":1301},{"className":1300},[],[1302],{"type":46,"value":1303},"PATCH",{"type":46,"value":1305}," means the API accepted the configuration shape. It does ",{"type":40,"tag":83,"props":1307,"children":1308},{},[1309],{"type":46,"value":1310},"not",{"type":46,"value":1312}," always prove the selected model handle can generate at runtime for the current server, provider, account, or routing configuration. The first actual model call may still fail with a resolver\u002Fprovider error.",{"type":40,"tag":49,"props":1314,"children":1315},{},[1316],{"type":46,"value":1317},"For model experiments, prefer this bounded recipe:",{"type":40,"tag":1319,"props":1320,"children":1321},"ol",{},[1322,1327,1338,1343,1348],{"type":40,"tag":77,"props":1323,"children":1324},{},[1325],{"type":46,"value":1326},"Save or inspect the current agent\u002Fconversation configuration.",{"type":40,"tag":77,"props":1328,"children":1329},{},[1330,1332,1336],{"type":46,"value":1331},"Patch the ",{"type":40,"tag":83,"props":1333,"children":1334},{},[1335],{"type":46,"value":87},{"type":46,"value":1337},", not persistent agent defaults.",{"type":40,"tag":77,"props":1339,"children":1340},{},[1341],{"type":46,"value":1342},"Verify the response or re-fetch the conversation to confirm the config changed.",{"type":40,"tag":77,"props":1344,"children":1345},{},[1346],{"type":46,"value":1347},"Run a tiny low-risk runtime test in the same conversation.",{"type":40,"tag":77,"props":1349,"children":1350},{},[1351],{"type":46,"value":1352},"If the runtime test fails, revert the conversation to the saved known-good model\u002Fsettings.",{"type":40,"tag":49,"props":1354,"children":1355},{},[1356],{"type":46,"value":1357},"This keeps failed model-handle experiments from damaging the agent's persistent continuity or requiring the user to repair global defaults.",{"type":40,"tag":525,"props":1359,"children":1361},{"id":1360},"system-prompt-replacement",[1362],{"type":46,"value":1363},"System prompt replacement",{"type":40,"tag":49,"props":1365,"children":1366},{},[1367,1369,1375],{"type":46,"value":1368},"Only use ",{"type":40,"tag":138,"props":1370,"children":1372},{"className":1371},[],[1373],{"type":46,"value":1374},"system",{"type":46,"value":1376}," when the user explicitly asks to change the persistent system prompt. It is a full replacement, not an append.",{"type":40,"tag":130,"props":1378,"children":1380},{"className":132,"code":1379,"language":134,"meta":135,"style":135},"curl -sS \"$BASE_URL\u002Fv1\u002Fagents\u002F$AGENT_ID\" \\\n  -H \"Authorization: Bearer $LETTA_API_KEY\" | jq -r '.system'\n",[1381],{"type":40,"tag":138,"props":1382,"children":1383},{"__ignoreMap":135},[1384,1419],{"type":40,"tag":142,"props":1385,"children":1386},{"class":144,"line":145},[1387,1391,1395,1399,1403,1407,1411,1415],{"type":40,"tag":142,"props":1388,"children":1389},{"style":323},[1390],{"type":46,"value":326},{"type":40,"tag":142,"props":1392,"children":1393},{"style":191},[1394],{"type":46,"value":331},{"type":40,"tag":142,"props":1396,"children":1397},{"style":155},[1398],{"type":46,"value":336},{"type":40,"tag":142,"props":1400,"children":1401},{"style":149},[1402],{"type":46,"value":341},{"type":40,"tag":142,"props":1404,"children":1405},{"style":191},[1406],{"type":46,"value":346},{"type":40,"tag":142,"props":1408,"children":1409},{"style":149},[1410],{"type":46,"value":351},{"type":40,"tag":142,"props":1412,"children":1413},{"style":155},[1414],{"type":46,"value":356},{"type":40,"tag":142,"props":1416,"children":1417},{"style":149},[1418],{"type":46,"value":361},{"type":40,"tag":142,"props":1420,"children":1421},{"class":144,"line":214},[1422,1426,1430,1434,1438,1442,1446,1451,1456,1460,1465],{"type":40,"tag":142,"props":1423,"children":1424},{"style":191},[1425],{"type":46,"value":369},{"type":40,"tag":142,"props":1427,"children":1428},{"style":155},[1429],{"type":46,"value":336},{"type":40,"tag":142,"props":1431,"children":1432},{"style":191},[1433],{"type":46,"value":378},{"type":40,"tag":142,"props":1435,"children":1436},{"style":149},[1437],{"type":46,"value":383},{"type":40,"tag":142,"props":1439,"children":1440},{"style":155},[1441],{"type":46,"value":356},{"type":40,"tag":142,"props":1443,"children":1444},{"style":155},[1445],{"type":46,"value":392},{"type":40,"tag":142,"props":1447,"children":1448},{"style":323},[1449],{"type":46,"value":1450}," jq",{"type":40,"tag":142,"props":1452,"children":1453},{"style":191},[1454],{"type":46,"value":1455}," -r",{"type":40,"tag":142,"props":1457,"children":1458},{"style":155},[1459],{"type":46,"value":409},{"type":40,"tag":142,"props":1461,"children":1462},{"style":191},[1463],{"type":46,"value":1464},".system",{"type":40,"tag":142,"props":1466,"children":1467},{"style":155},[1468],{"type":46,"value":419},{"type":40,"tag":49,"props":1470,"children":1471},{},[1472],{"type":46,"value":1473},"Then send the complete replacement prompt:",{"type":40,"tag":130,"props":1475,"children":1477},{"className":132,"code":1476,"language":134,"meta":135,"style":135},"curl -sS -X PATCH \"$BASE_URL\u002Fv1\u002Fagents\u002F$AGENT_ID\" \\\n  -H \"Authorization: Bearer $LETTA_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"system\": \"\u003CFULL replacement system prompt. Preserve important existing instructions.>\"}'\n",[1478],{"type":40,"tag":138,"props":1479,"children":1480},{"__ignoreMap":135},[1481,1524,1551,1574],{"type":40,"tag":142,"props":1482,"children":1483},{"class":144,"line":145},[1484,1488,1492,1496,1500,1504,1508,1512,1516,1520],{"type":40,"tag":142,"props":1485,"children":1486},{"style":323},[1487],{"type":46,"value":326},{"type":40,"tag":142,"props":1489,"children":1490},{"style":191},[1491],{"type":46,"value":331},{"type":40,"tag":142,"props":1493,"children":1494},{"style":191},[1495],{"type":46,"value":571},{"type":40,"tag":142,"props":1497,"children":1498},{"style":191},[1499],{"type":46,"value":576},{"type":40,"tag":142,"props":1501,"children":1502},{"style":155},[1503],{"type":46,"value":336},{"type":40,"tag":142,"props":1505,"children":1506},{"style":149},[1507],{"type":46,"value":341},{"type":40,"tag":142,"props":1509,"children":1510},{"style":191},[1511],{"type":46,"value":346},{"type":40,"tag":142,"props":1513,"children":1514},{"style":149},[1515],{"type":46,"value":351},{"type":40,"tag":142,"props":1517,"children":1518},{"style":155},[1519],{"type":46,"value":356},{"type":40,"tag":142,"props":1521,"children":1522},{"style":149},[1523],{"type":46,"value":361},{"type":40,"tag":142,"props":1525,"children":1526},{"class":144,"line":214},[1527,1531,1535,1539,1543,1547],{"type":40,"tag":142,"props":1528,"children":1529},{"style":191},[1530],{"type":46,"value":369},{"type":40,"tag":142,"props":1532,"children":1533},{"style":155},[1534],{"type":46,"value":336},{"type":40,"tag":142,"props":1536,"children":1537},{"style":191},[1538],{"type":46,"value":378},{"type":40,"tag":142,"props":1540,"children":1541},{"style":149},[1542],{"type":46,"value":383},{"type":40,"tag":142,"props":1544,"children":1545},{"style":155},[1546],{"type":46,"value":356},{"type":40,"tag":142,"props":1548,"children":1549},{"style":149},[1550],{"type":46,"value":361},{"type":40,"tag":142,"props":1552,"children":1553},{"class":144,"line":253},[1554,1558,1562,1566,1570],{"type":40,"tag":142,"props":1555,"children":1556},{"style":191},[1557],{"type":46,"value":369},{"type":40,"tag":142,"props":1559,"children":1560},{"style":155},[1561],{"type":46,"value":336},{"type":40,"tag":142,"props":1563,"children":1564},{"style":191},[1565],{"type":46,"value":643},{"type":40,"tag":142,"props":1567,"children":1568},{"style":155},[1569],{"type":46,"value":356},{"type":40,"tag":142,"props":1571,"children":1572},{"style":149},[1573],{"type":46,"value":361},{"type":40,"tag":142,"props":1575,"children":1576},{"class":144,"line":654},[1577,1581,1585,1590],{"type":40,"tag":142,"props":1578,"children":1579},{"style":191},[1580],{"type":46,"value":660},{"type":40,"tag":142,"props":1582,"children":1583},{"style":155},[1584],{"type":46,"value":409},{"type":40,"tag":142,"props":1586,"children":1587},{"style":191},[1588],{"type":46,"value":1589},"{\"system\": \"\u003CFULL replacement system prompt. Preserve important existing instructions.>\"}",{"type":40,"tag":142,"props":1591,"children":1592},{"style":155},[1593],{"type":46,"value":419},{"type":40,"tag":55,"props":1595,"children":1597},{"id":1596},"safer-bundled-updater",[1598],{"type":46,"value":1599},"Safer bundled updater",{"type":40,"tag":49,"props":1601,"children":1602},{},[1603,1604,1610,1612,1617,1619,1625],{"type":46,"value":289},{"type":40,"tag":138,"props":1605,"children":1607},{"className":1606},[],[1608],{"type":46,"value":1609},"scripts\u002Fupdate-agent-settings.ts",{"type":46,"value":1611}," when you want a dry-runable patch that can optionally merge existing ",{"type":40,"tag":138,"props":1613,"children":1615},{"className":1614},[],[1616],{"type":46,"value":547},{"type":46,"value":1618}," or ",{"type":40,"tag":138,"props":1620,"children":1622},{"className":1621},[],[1623],{"type":46,"value":1624},"compaction_settings",{"type":46,"value":1626}," before updating.",{"type":40,"tag":130,"props":1628,"children":1630},{"className":132,"code":1629,"language":134,"meta":135,"style":135},"npx tsx \u003CSKILL_DIR>\u002Fscripts\u002Fupdate-agent-settings.ts \\\n  --target agent \\\n  --context-window-limit 64000 \\\n  --dry-run\n",[1631],{"type":40,"tag":138,"props":1632,"children":1633},{"__ignoreMap":135},[1634,1676,1693,1711],{"type":40,"tag":142,"props":1635,"children":1636},{"class":144,"line":145},[1637,1642,1647,1652,1657,1662,1667,1672],{"type":40,"tag":142,"props":1638,"children":1639},{"style":323},[1640],{"type":46,"value":1641},"npx",{"type":40,"tag":142,"props":1643,"children":1644},{"style":191},[1645],{"type":46,"value":1646}," tsx",{"type":40,"tag":142,"props":1648,"children":1649},{"style":155},[1650],{"type":46,"value":1651}," \u003C",{"type":40,"tag":142,"props":1653,"children":1654},{"style":191},[1655],{"type":46,"value":1656},"SKILL_DI",{"type":40,"tag":142,"props":1658,"children":1659},{"style":149},[1660],{"type":46,"value":1661},"R",{"type":40,"tag":142,"props":1663,"children":1664},{"style":155},[1665],{"type":46,"value":1666},">",{"type":40,"tag":142,"props":1668,"children":1669},{"style":191},[1670],{"type":46,"value":1671},"\u002Fscripts\u002Fupdate-agent-settings.ts",{"type":40,"tag":142,"props":1673,"children":1674},{"style":149},[1675],{"type":46,"value":361},{"type":40,"tag":142,"props":1677,"children":1678},{"class":144,"line":214},[1679,1684,1689],{"type":40,"tag":142,"props":1680,"children":1681},{"style":191},[1682],{"type":46,"value":1683},"  --target",{"type":40,"tag":142,"props":1685,"children":1686},{"style":191},[1687],{"type":46,"value":1688}," agent",{"type":40,"tag":142,"props":1690,"children":1691},{"style":149},[1692],{"type":46,"value":361},{"type":40,"tag":142,"props":1694,"children":1695},{"class":144,"line":253},[1696,1701,1707],{"type":40,"tag":142,"props":1697,"children":1698},{"style":191},[1699],{"type":46,"value":1700},"  --context-window-limit",{"type":40,"tag":142,"props":1702,"children":1704},{"style":1703},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1705],{"type":46,"value":1706}," 64000",{"type":40,"tag":142,"props":1708,"children":1709},{"style":149},[1710],{"type":46,"value":361},{"type":40,"tag":142,"props":1712,"children":1713},{"class":144,"line":654},[1714],{"type":40,"tag":142,"props":1715,"children":1716},{"style":191},[1717],{"type":46,"value":1718},"  --dry-run\n",{"type":40,"tag":49,"props":1720,"children":1721},{},[1722,1724,1729],{"type":46,"value":1723},"Examples and all flags are in ",{"type":40,"tag":860,"props":1725,"children":1727},{"href":1726},"references\u002Fapi-patch-examples.md",[1728],{"type":46,"value":1726},{"type":46,"value":89},{"type":40,"tag":55,"props":1731,"children":1733},{"id":1732},"compaction-settings",[1734],{"type":46,"value":110},{"type":40,"tag":49,"props":1736,"children":1737},{},[1738],{"type":46,"value":1739},"Compaction runs when message history grows too large for the context window. Letta replaces older messages with a summary while keeping recent messages in context. The summary appears before the remaining recent messages, so a custom compaction prompt should preserve enough background for the later messages to make sense.",{"type":40,"tag":49,"props":1741,"children":1742},{},[1743],{"type":46,"value":1744},"Customize compaction when the default summary loses important continuity, tone, relationship context, implementation details, or user feedback.",{"type":40,"tag":525,"props":1746,"children":1748},{"id":1747},"compaction-fields",[1749],{"type":46,"value":1750},"Compaction fields",{"type":40,"tag":427,"props":1752,"children":1753},{},[1754,1770],{"type":40,"tag":431,"props":1755,"children":1756},{},[1757],{"type":40,"tag":435,"props":1758,"children":1759},{},[1760,1765],{"type":40,"tag":439,"props":1761,"children":1762},{},[1763],{"type":46,"value":1764},"Field",{"type":40,"tag":439,"props":1766,"children":1767},{},[1768],{"type":46,"value":1769},"Use",{"type":40,"tag":460,"props":1771,"children":1772},{},[1773,1818,1835,1852,1868,1885,1902],{"type":40,"tag":435,"props":1774,"children":1775},{},[1776,1785],{"type":40,"tag":467,"props":1777,"children":1778},{},[1779],{"type":40,"tag":138,"props":1780,"children":1782},{"className":1781},[],[1783],{"type":46,"value":1784},"mode",{"type":40,"tag":467,"props":1786,"children":1787},{},[1788,1794,1796,1802,1803,1809,1811,1817],{"type":40,"tag":138,"props":1789,"children":1791},{"className":1790},[],[1792],{"type":46,"value":1793},"sliding_window",{"type":46,"value":1795},", ",{"type":40,"tag":138,"props":1797,"children":1799},{"className":1798},[],[1800],{"type":46,"value":1801},"all",{"type":46,"value":1795},{"type":40,"tag":138,"props":1804,"children":1806},{"className":1805},[],[1807],{"type":46,"value":1808},"self_compact_sliding_window",{"type":46,"value":1810},", or ",{"type":40,"tag":138,"props":1812,"children":1814},{"className":1813},[],[1815],{"type":46,"value":1816},"self_compact_all",{"type":46,"value":89},{"type":40,"tag":435,"props":1819,"children":1820},{},[1821,1830],{"type":40,"tag":467,"props":1822,"children":1823},{},[1824],{"type":40,"tag":138,"props":1825,"children":1827},{"className":1826},[],[1828],{"type":46,"value":1829},"prompt",{"type":40,"tag":467,"props":1831,"children":1832},{},[1833],{"type":46,"value":1834},"Custom summarization prompt.",{"type":40,"tag":435,"props":1836,"children":1837},{},[1838,1847],{"type":40,"tag":467,"props":1839,"children":1840},{},[1841],{"type":40,"tag":138,"props":1842,"children":1844},{"className":1843},[],[1845],{"type":46,"value":1846},"model",{"type":40,"tag":467,"props":1848,"children":1849},{},[1850],{"type":46,"value":1851},"Optional cheaper\u002Ffaster summarizer model.",{"type":40,"tag":435,"props":1853,"children":1854},{},[1855,1863],{"type":40,"tag":467,"props":1856,"children":1857},{},[1858],{"type":40,"tag":138,"props":1859,"children":1861},{"className":1860},[],[1862],{"type":46,"value":547},{"type":40,"tag":467,"props":1864,"children":1865},{},[1866],{"type":46,"value":1867},"Optional summarizer model settings.",{"type":40,"tag":435,"props":1869,"children":1870},{},[1871,1880],{"type":40,"tag":467,"props":1872,"children":1873},{},[1874],{"type":40,"tag":138,"props":1875,"children":1877},{"className":1876},[],[1878],{"type":46,"value":1879},"prompt_acknowledgement",{"type":40,"tag":467,"props":1881,"children":1882},{},[1883],{"type":46,"value":1884},"Optional boolean for summarizers that add acknowledgements\u002Fmeta-commentary.",{"type":40,"tag":435,"props":1886,"children":1887},{},[1888,1897],{"type":40,"tag":467,"props":1889,"children":1890},{},[1891],{"type":40,"tag":138,"props":1892,"children":1894},{"className":1893},[],[1895],{"type":46,"value":1896},"clip_chars",{"type":40,"tag":467,"props":1898,"children":1899},{},[1900],{"type":46,"value":1901},"Max summary length in characters. Default is 50000.",{"type":40,"tag":435,"props":1903,"children":1904},{},[1905,1914],{"type":40,"tag":467,"props":1906,"children":1907},{},[1908],{"type":40,"tag":138,"props":1909,"children":1911},{"className":1910},[],[1912],{"type":46,"value":1913},"sliding_window_percentage",{"type":40,"tag":467,"props":1915,"children":1916},{},[1917,1919,1925],{"type":46,"value":1918},"Fraction of messages to summarize in sliding-window modes. Docs default: ",{"type":40,"tag":138,"props":1920,"children":1922},{"className":1921},[],[1923],{"type":46,"value":1924},"0.3",{"type":46,"value":89},{"type":40,"tag":525,"props":1927,"children":1929},{"id":1928},"choose-a-compaction-mode",[1930],{"type":46,"value":1931},"Choose a compaction mode",{"type":40,"tag":73,"props":1933,"children":1934},{},[1935,1946,1957,1968],{"type":40,"tag":77,"props":1936,"children":1937},{},[1938,1939,1944],{"type":46,"value":289},{"type":40,"tag":138,"props":1940,"children":1942},{"className":1941},[],[1943],{"type":46,"value":1793},{"type":46,"value":1945}," by default. It summarizes older messages with a separate summarizer call and keeps recent messages intact.",{"type":40,"tag":77,"props":1947,"children":1948},{},[1949,1950,1955],{"type":46,"value":289},{"type":40,"tag":138,"props":1951,"children":1953},{"className":1952},[],[1954],{"type":46,"value":1808},{"type":46,"value":1956}," when the agent's own persona\u002Fsystem prompt is important for summary quality or prompt-cache reuse.",{"type":40,"tag":77,"props":1958,"children":1959},{},[1960,1961,1966],{"type":46,"value":289},{"type":40,"tag":138,"props":1962,"children":1964},{"className":1963},[],[1965],{"type":46,"value":1801},{"type":46,"value":1967}," only when maximum space reduction matters more than preserving recent raw messages.",{"type":40,"tag":77,"props":1969,"children":1970},{},[1971,1972,1977],{"type":46,"value":289},{"type":40,"tag":138,"props":1973,"children":1975},{"className":1974},[],[1976],{"type":46,"value":1816},{"type":46,"value":1978}," for all-message compaction with the agent system prompt included.",{"type":40,"tag":525,"props":1980,"children":1982},{"id":1981},"prompt-requirements",[1983],{"type":46,"value":1984},"Prompt requirements",{"type":40,"tag":49,"props":1986,"children":1987},{},[1988],{"type":46,"value":1989},"Every custom compaction prompt should:",{"type":40,"tag":73,"props":1991,"children":1992},{},[1993,1998,2003,2008,2013,2018,2023],{"type":40,"tag":77,"props":1994,"children":1995},{},[1996],{"type":46,"value":1997},"State whether evicted messages come from the beginning of the context window.",{"type":40,"tag":77,"props":1999,"children":2000},{},[2001],{"type":46,"value":2002},"Say the summary will appear before remaining recent messages.",{"type":40,"tag":77,"props":2004,"children":2005},{},[2006],{"type":46,"value":2007},"Say not to continue the conversation, answer transcript questions, or call tools.",{"type":40,"tag":77,"props":2009,"children":2010},{},[2011],{"type":46,"value":2012},"Require incorporation of any existing summary being evicted.",{"type":40,"tag":77,"props":2014,"children":2015},{},[2016],{"type":46,"value":2017},"Preserve exact user requests, names, IDs, URLs, file paths, dates, and quoted phrases when they matter.",{"type":40,"tag":77,"props":2019,"children":2020},{},[2021],{"type":46,"value":2022},"Include lookup hints for detailed content that cannot fit.",{"type":40,"tag":77,"props":2024,"children":2025},{},[2026],{"type":46,"value":2027},"End with \"Only output the summary.\"",{"type":40,"tag":49,"props":2029,"children":2030},{},[2031,2033,2038],{"type":46,"value":2032},"For complete prompt templates, read ",{"type":40,"tag":860,"props":2034,"children":2036},{"href":2035},"references\u002Fcompaction-prompt-patterns.md",[2037],{"type":46,"value":2035},{"type":46,"value":89},{"type":40,"tag":525,"props":2040,"children":2042},{"id":2041},"update-compaction-with-the-bundled-script",[2043],{"type":46,"value":2044},"Update compaction with the bundled script",{"type":40,"tag":130,"props":2046,"children":2048},{"className":132,"code":2047,"language":134,"meta":135,"style":135},"npx tsx \u003CSKILL_DIR>\u002Fscripts\u002Fupdate-compaction-prompt.ts \\\n  --prompt-file \u002Ftmp\u002Fcompaction-prompt.txt \\\n  --mode self_compact_sliding_window \\\n  --clip-chars 50000 \\\n  --dry-run\n",[2049],{"type":40,"tag":138,"props":2050,"children":2051},{"__ignoreMap":135},[2052,2088,2105,2122,2139],{"type":40,"tag":142,"props":2053,"children":2054},{"class":144,"line":145},[2055,2059,2063,2067,2071,2075,2079,2084],{"type":40,"tag":142,"props":2056,"children":2057},{"style":323},[2058],{"type":46,"value":1641},{"type":40,"tag":142,"props":2060,"children":2061},{"style":191},[2062],{"type":46,"value":1646},{"type":40,"tag":142,"props":2064,"children":2065},{"style":155},[2066],{"type":46,"value":1651},{"type":40,"tag":142,"props":2068,"children":2069},{"style":191},[2070],{"type":46,"value":1656},{"type":40,"tag":142,"props":2072,"children":2073},{"style":149},[2074],{"type":46,"value":1661},{"type":40,"tag":142,"props":2076,"children":2077},{"style":155},[2078],{"type":46,"value":1666},{"type":40,"tag":142,"props":2080,"children":2081},{"style":191},[2082],{"type":46,"value":2083},"\u002Fscripts\u002Fupdate-compaction-prompt.ts",{"type":40,"tag":142,"props":2085,"children":2086},{"style":149},[2087],{"type":46,"value":361},{"type":40,"tag":142,"props":2089,"children":2090},{"class":144,"line":214},[2091,2096,2101],{"type":40,"tag":142,"props":2092,"children":2093},{"style":191},[2094],{"type":46,"value":2095},"  --prompt-file",{"type":40,"tag":142,"props":2097,"children":2098},{"style":191},[2099],{"type":46,"value":2100}," \u002Ftmp\u002Fcompaction-prompt.txt",{"type":40,"tag":142,"props":2102,"children":2103},{"style":149},[2104],{"type":46,"value":361},{"type":40,"tag":142,"props":2106,"children":2107},{"class":144,"line":253},[2108,2113,2118],{"type":40,"tag":142,"props":2109,"children":2110},{"style":191},[2111],{"type":46,"value":2112},"  --mode",{"type":40,"tag":142,"props":2114,"children":2115},{"style":191},[2116],{"type":46,"value":2117}," self_compact_sliding_window",{"type":40,"tag":142,"props":2119,"children":2120},{"style":149},[2121],{"type":46,"value":361},{"type":40,"tag":142,"props":2123,"children":2124},{"class":144,"line":654},[2125,2130,2135],{"type":40,"tag":142,"props":2126,"children":2127},{"style":191},[2128],{"type":46,"value":2129},"  --clip-chars",{"type":40,"tag":142,"props":2131,"children":2132},{"style":1703},[2133],{"type":46,"value":2134}," 50000",{"type":40,"tag":142,"props":2136,"children":2137},{"style":149},[2138],{"type":46,"value":361},{"type":40,"tag":142,"props":2140,"children":2141},{"class":144,"line":801},[2142],{"type":40,"tag":142,"props":2143,"children":2144},{"style":191},[2145],{"type":46,"value":1718},{"type":40,"tag":49,"props":2147,"children":2148},{},[2149,2151,2156,2158,2163,2164,2169,2171,2176],{"type":46,"value":2150},"The script preserves existing ",{"type":40,"tag":138,"props":2152,"children":2154},{"className":2153},[],[2155],{"type":46,"value":1624},{"type":46,"value":2157}," fields unless flags override them. It uses ",{"type":40,"tag":138,"props":2159,"children":2161},{"className":2160},[],[2162],{"type":46,"value":231},{"type":46,"value":1795},{"type":40,"tag":138,"props":2165,"children":2167},{"className":2166},[],[2168],{"type":46,"value":267},{"type":46,"value":2170},", and ",{"type":40,"tag":138,"props":2172,"children":2174},{"className":2173},[],[2175],{"type":46,"value":168},{"type":46,"value":2177}," unless corresponding flags are provided.",{"type":40,"tag":55,"props":2179,"children":2181},{"id":2180},"sdk-examples",[2182],{"type":46,"value":2183},"SDK examples",{"type":40,"tag":49,"props":2185,"children":2186},{},[2187,2189,2193],{"type":46,"value":2188},"TypeScript and Python examples live in ",{"type":40,"tag":860,"props":2190,"children":2191},{"href":1726},[2192],{"type":46,"value":1726},{"type":46,"value":89},{"type":40,"tag":55,"props":2195,"children":2197},{"id":2196},"verify",[2198],{"type":46,"value":2199},"Verify",{"type":40,"tag":130,"props":2201,"children":2203},{"className":132,"code":2202,"language":134,"meta":135,"style":135},"curl -sS \"$BASE_URL\u002Fv1\u002Fagents\u002F$AGENT_ID\" \\\n  -H \"Authorization: Bearer $LETTA_API_KEY\" | \\\n  jq '{id, model, context_window_limit, llm_config_context_window: .llm_config.context_window, model_settings, compaction_settings, system_chars: (.system | length)}'\n",[2204],{"type":40,"tag":138,"props":2205,"children":2206},{"__ignoreMap":135},[2207,2242,2273],{"type":40,"tag":142,"props":2208,"children":2209},{"class":144,"line":145},[2210,2214,2218,2222,2226,2230,2234,2238],{"type":40,"tag":142,"props":2211,"children":2212},{"style":323},[2213],{"type":46,"value":326},{"type":40,"tag":142,"props":2215,"children":2216},{"style":191},[2217],{"type":46,"value":331},{"type":40,"tag":142,"props":2219,"children":2220},{"style":155},[2221],{"type":46,"value":336},{"type":40,"tag":142,"props":2223,"children":2224},{"style":149},[2225],{"type":46,"value":341},{"type":40,"tag":142,"props":2227,"children":2228},{"style":191},[2229],{"type":46,"value":346},{"type":40,"tag":142,"props":2231,"children":2232},{"style":149},[2233],{"type":46,"value":351},{"type":40,"tag":142,"props":2235,"children":2236},{"style":155},[2237],{"type":46,"value":356},{"type":40,"tag":142,"props":2239,"children":2240},{"style":149},[2241],{"type":46,"value":361},{"type":40,"tag":142,"props":2243,"children":2244},{"class":144,"line":214},[2245,2249,2253,2257,2261,2265,2269],{"type":40,"tag":142,"props":2246,"children":2247},{"style":191},[2248],{"type":46,"value":369},{"type":40,"tag":142,"props":2250,"children":2251},{"style":155},[2252],{"type":46,"value":336},{"type":40,"tag":142,"props":2254,"children":2255},{"style":191},[2256],{"type":46,"value":378},{"type":40,"tag":142,"props":2258,"children":2259},{"style":149},[2260],{"type":46,"value":383},{"type":40,"tag":142,"props":2262,"children":2263},{"style":155},[2264],{"type":46,"value":356},{"type":40,"tag":142,"props":2266,"children":2267},{"style":155},[2268],{"type":46,"value":392},{"type":40,"tag":142,"props":2270,"children":2271},{"style":149},[2272],{"type":46,"value":361},{"type":40,"tag":142,"props":2274,"children":2275},{"class":144,"line":253},[2276,2280,2284,2289],{"type":40,"tag":142,"props":2277,"children":2278},{"style":323},[2279],{"type":46,"value":404},{"type":40,"tag":142,"props":2281,"children":2282},{"style":155},[2283],{"type":46,"value":409},{"type":40,"tag":142,"props":2285,"children":2286},{"style":191},[2287],{"type":46,"value":2288},"{id, model, context_window_limit, llm_config_context_window: .llm_config.context_window, model_settings, compaction_settings, system_chars: (.system | length)}",{"type":40,"tag":142,"props":2290,"children":2291},{"style":155},[2292],{"type":46,"value":419},{"type":40,"tag":55,"props":2294,"children":2296},{"id":2295},"guardrails",[2297],{"type":46,"value":2298},"Guardrails",{"type":40,"tag":73,"props":2300,"children":2301},{},[2302,2307,2312,2317,2336,2341],{"type":40,"tag":77,"props":2303,"children":2304},{},[2305],{"type":46,"value":2306},"Ask before changing persistent agent defaults unless explicitly requested.",{"type":40,"tag":77,"props":2308,"children":2309},{},[2310],{"type":46,"value":2311},"Prefer conversation-scoped updates for experiments.",{"type":40,"tag":77,"props":2313,"children":2314},{},[2315],{"type":46,"value":2316},"Keep context windows only as large as needed. Bigger windows increase latency and cost.",{"type":40,"tag":77,"props":2318,"children":2319},{},[2320,2322,2327,2329,2334],{"type":46,"value":2321},"Preserve existing ",{"type":40,"tag":138,"props":2323,"children":2325},{"className":2324},[],[2326],{"type":46,"value":547},{"type":46,"value":2328}," and ",{"type":40,"tag":138,"props":2330,"children":2332},{"className":2331},[],[2333],{"type":46,"value":1624},{"type":46,"value":2335}," fields unless intentionally changing them.",{"type":40,"tag":77,"props":2337,"children":2338},{},[2339],{"type":46,"value":2340},"For self-compaction prompts, always forbid tool use and conversation continuation.",{"type":40,"tag":77,"props":2342,"children":2343},{},[2344,2346,2352],{"type":46,"value":2345},"If an update returns ",{"type":40,"tag":138,"props":2347,"children":2349},{"className":2348},[],[2350],{"type":46,"value":2351},"400",{"type":46,"value":2353},", first check model handle validity, provider type, and whether settings are in the expected shape.",{"type":40,"tag":2355,"props":2356,"children":2357},"style",{},[2358],{"type":46,"value":2359},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":2361,"total":2516},[2362,2378,2393,2405,2417,2431,2443,2454,2466,2480,2491,2501],{"slug":2363,"name":2363,"fn":2364,"description":2365,"org":2366,"tags":2367,"stars":2375,"repoUrl":2376,"updatedAt":2377},"acquiring-skills","discover and install agent skills","Discover and install skills from Hermes, ClawHub, GitHub, and other registries. Load this skill whenever a user asks for a capability you don't already have — image generation, social media, email, calendar, finance, DevOps, search, browser automation, etc.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2368,2369,2372],{"name":18,"slug":19,"type":16},{"name":2370,"slug":2371,"type":16},"Automation","automation",{"name":2373,"slug":2374,"type":16},"GitHub","github",2831,"https:\u002F\u002Fgithub.com\u002Fletta-ai\u002Fletta-code","2026-07-13T06:22:58.45767",{"slug":2379,"name":2380,"fn":2381,"description":2382,"org":2383,"tags":2384,"stars":2375,"repoUrl":2376,"updatedAt":2392},"context-doctor","Context Doctor","repair system prompt and memory degradation","Identify and repair degradation in system prompt, external memory, and skills preventing you from following instructions or remembering information as well as you should.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2385,2386,2389],{"name":18,"slug":19,"type":16},{"name":2387,"slug":2388,"type":16},"AI Context","ai-context",{"name":2390,"slug":2391,"type":16},"Debugging","debugging","2026-07-13T06:22:50.151002",{"slug":2394,"name":2394,"fn":2395,"description":2396,"org":2397,"tags":2398,"stars":2375,"repoUrl":2376,"updatedAt":2404},"converting-mcps-to-skills","connect MCP servers to create skills","Connect to MCP (Model Context Protocol) servers and create skills for repeated use. Load when a user wants to use an MCP server, connect to external tools via MCP, or when they mention MCP, model context protocol, or specific MCP servers.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2399,2400,2401],{"name":18,"slug":19,"type":16},{"name":2370,"slug":2371,"type":16},{"name":2402,"slug":2403,"type":16},"MCP","mcp","2026-07-13T06:23:37.646079",{"slug":2406,"name":2406,"fn":2407,"description":2408,"org":2409,"tags":2410,"stars":2375,"repoUrl":2376,"updatedAt":2416},"creating-mods","create and edit Letta Code mods","Creates and edits trusted local Letta Code mods, including tools, slash commands, local-only model providers, lifecycle\u002Fturn events, scoped conversation helpers, panels, and capability-gated behavior. Use when asked to make a mod, add an agent-callable tool, add a slash command, add a local provider\u002Fmodel adapter, transform turns, react to app events, or add lightweight mod UI outside the dedicated \u002Fstatusline flow.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2411,2412,2413],{"name":18,"slug":19,"type":16},{"name":2370,"slug":2371,"type":16},{"name":2414,"slug":2415,"type":16},"Coding","coding","2026-07-23T05:42:38.133565",{"slug":2418,"name":2418,"fn":2419,"description":2420,"org":2421,"tags":2422,"stars":2375,"repoUrl":2376,"updatedAt":2430},"creating-skills","create and update agent skills","Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Letta Code's capabilities with specialized knowledge, workflows, or tool integrations.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2423,2424,2427],{"name":18,"slug":19,"type":16},{"name":2425,"slug":2426,"type":16},"Documentation","documentation",{"name":2428,"slug":2429,"type":16},"Plugin Development","plugin-development","2026-07-13T06:22:56.998659",{"slug":2432,"name":2432,"fn":2433,"description":2434,"org":2435,"tags":2436,"stars":2375,"repoUrl":2376,"updatedAt":2442},"customizing-commands","create and manage Letta slash commands","Creates, edits, and enables Letta Code mod-provided slash commands. Use when the user asks to add a custom \u002Fcommand, slash command, command shortcut, scoped conversation-backed command, or command-driven panel behavior.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2437,2438,2439],{"name":18,"slug":19,"type":16},{"name":2370,"slug":2371,"type":16},{"name":2440,"slug":2441,"type":16},"CLI","cli","2026-07-13T06:23:18.266798",{"slug":2444,"name":2444,"fn":2445,"description":2446,"org":2447,"tags":2448,"stars":2375,"repoUrl":2376,"updatedAt":2453},"customizing-statusline","customize Letta Code statusline mods","Creates, edits, and migrates Letta Code statusline mods. Use when handling the \u002Fstatusline command or continuing work started by \u002Fstatusline.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2449,2450],{"name":2440,"slug":2441,"type":16},{"name":2451,"slug":2452,"type":16},"Engineering","engineering","2026-07-13T06:23:27.465985",{"slug":2455,"name":2455,"fn":2456,"description":2457,"org":2458,"tags":2459,"stars":2375,"repoUrl":2376,"updatedAt":2465},"dispatching-coding-agents","dispatch stateless coding agents","Dispatch stateless coding agents (Claude Code or Codex) via Bash. Use when you're stuck, need a second opinion, or need parallel research on a hard problem. They have no memory — you must provide all context.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2460,2461,2462],{"name":18,"slug":19,"type":16},{"name":2414,"slug":2415,"type":16},{"name":2463,"slug":2464,"type":16},"Multi-Agent","multi-agent","2026-07-26T05:46:56.388845",{"slug":2467,"name":2467,"fn":2468,"description":2469,"org":2470,"tags":2471,"stars":2375,"repoUrl":2376,"updatedAt":2479},"editing-letta-code-desktop-preferences","edit Letta Code Desktop preferences","Edits Letta Code Desktop (LCD) preferences by safely reading and updating ~\u002F.letta\u002Fdesktop_preferences.json. Use only when the user asks to change current Desktop\u002FLCD settings such as theme, default working directory, remote access preference, or remote environment name via the preferences JSON.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2472,2473,2476],{"name":14,"slug":15,"type":16},{"name":2474,"slug":2475,"type":16},"Desktop","desktop",{"name":2477,"slug":2478,"type":16},"Themes","themes","2026-07-13T06:23:41.407811",{"slug":2481,"name":2481,"fn":2482,"description":2483,"org":2484,"tags":2485,"stars":2375,"repoUrl":2376,"updatedAt":2490},"finding-agents","locate and manage agents on server","Find other agents on the same server. Use when the user asks about other agents, wants to migrate memory from another agent, or needs to find an agent by name or tags.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2486,2487],{"name":18,"slug":19,"type":16},{"name":2488,"slug":2489,"type":16},"Management","management","2026-07-16T06:02:17.297841",{"slug":2492,"name":2492,"fn":2493,"description":2494,"org":2495,"tags":2496,"stars":2375,"repoUrl":2376,"updatedAt":2500},"generating-mod-envs","generate Letta mod learning environments","Generates and reviews mod learning env JSON files for Letta Code local mods. Use when asked to teach, learn, or optimize a mod behavior; create, draft, validate, improve, or explain envs for `\u002Fmods learn --env`; or design evaluation scenarios, memory fixtures, requiredResultMarkers, requiredTraceMarkers, negative controls, and candidate diversity hints.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2497,2498,2499],{"name":18,"slug":19,"type":16},{"name":21,"slug":22,"type":16},{"name":14,"slug":15,"type":16},"2026-07-13T06:23:08.838181",{"slug":2502,"name":2502,"fn":2503,"description":2504,"org":2505,"tags":2506,"stars":2375,"repoUrl":2376,"updatedAt":2515},"image-generation","generate images from text prompts","Generate images from text prompts (and optionally edit\u002Fremix input images). Use when the user asks to create, generate, draw, render, or edit an image, illustration, logo, icon, diagram, or photo.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2507,2510,2513],{"name":2508,"slug":2509,"type":16},"Creative","creative",{"name":2511,"slug":2512,"type":16},"Graphics","graphics",{"name":2514,"slug":2502,"type":16},"Image Generation","2026-07-13T06:23:06.189403",69,{"items":2518,"total":2630},[2519,2533,2548,2567,2580,2601,2611],{"slug":2520,"name":2520,"fn":2521,"description":2522,"org":2523,"tags":2524,"stars":23,"repoUrl":24,"updatedAt":2532},"1password","manage secrets with 1Password CLI","Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading\u002Finjecting\u002Frunning secrets via op.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2525,2528,2529],{"name":2526,"slug":2527,"type":16},"Authentication","authentication",{"name":2440,"slug":2441,"type":16},{"name":2530,"slug":2531,"type":16},"Security","security","2026-07-13T06:24:39.504387",{"slug":2534,"name":2534,"fn":2535,"description":2536,"org":2537,"tags":2538,"stars":23,"repoUrl":24,"updatedAt":2547},"agent-slack","automate Slack messaging and workflows","Slack automation CLI — read\u002Fsend\u002Fsearch messages, browse threads and channels, manage channels, download attachments, look up users, and run workflows.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2539,2540,2541,2544],{"name":2370,"slug":2371,"type":16},{"name":2440,"slug":2441,"type":16},{"name":2542,"slug":2543,"type":16},"Messaging","messaging",{"name":2545,"slug":2546,"type":16},"Slack","slack","2026-07-13T06:23:51.908511",{"slug":2549,"name":2549,"fn":2550,"description":2551,"org":2552,"tags":2553,"stars":23,"repoUrl":24,"updatedAt":2566},"ai-news","fetch and summarize AI news","Fetch and summarize recent AI news from curated RSS feeds (Hugging Face, VentureBeat, The Verge, OpenAI, Anthropic, DeepMind, etc.) and YouTube channels (Yannic Kilcher, Two Minute Papers, AI Explained, etc.). Also fetches full transcripts for specific YouTube videos. Use when the user asks about recent AI news, what's happened in AI lately, summaries of AI research or product announcements, or wants a digest of what's going on in the AI space.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2554,2557,2560,2563],{"name":2555,"slug":2556,"type":16},"Communications","communications",{"name":2558,"slug":2559,"type":16},"LLM","llm",{"name":2561,"slug":2562,"type":16},"Research","research",{"name":2564,"slug":2565,"type":16},"Summarization","summarization","2026-07-13T06:24:20.520223",{"slug":2568,"name":2568,"fn":2569,"description":2570,"org":2571,"tags":2572,"stars":23,"repoUrl":24,"updatedAt":2579},"creating-letta-code-channels","build and debug Letta Code channels","Builds and debugs Letta Code channels, including first-party channel adapters and dynamic user channel plugins under ~\u002F.letta\u002Fchannels. Use when adding Telegram, WhatsApp, Bluesky, Slack, Discord, or custom channel support; testing channel routing, pairing, MessageChannel, runtime dependencies, or channel plugin manifests.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2573,2574,2577,2578],{"name":18,"slug":19,"type":16},{"name":2575,"slug":2576,"type":16},"API Development","api-development",{"name":2542,"slug":2543,"type":16},{"name":2545,"slug":2546,"type":16},"2026-07-13T06:25:55.843495",{"slug":2581,"name":2581,"fn":2582,"description":2583,"org":2584,"tags":2585,"stars":23,"repoUrl":24,"updatedAt":2600},"datadog","query Datadog observability data","Query Datadog observability data (logs, metrics, monitors, dashboards, hosts) via direct API. Use when investigating production issues, checking monitors, searching logs, or accessing Datadog data.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2586,2588,2591,2594,2597],{"name":2587,"slug":2581,"type":16},"Datadog",{"name":2589,"slug":2590,"type":16},"Logs","logs",{"name":2592,"slug":2593,"type":16},"Metrics","metrics",{"name":2595,"slug":2596,"type":16},"Monitoring","monitoring",{"name":2598,"slug":2599,"type":16},"Observability","observability","2026-07-13T06:24:27.990605",{"slug":2602,"name":2602,"fn":2603,"description":2604,"org":2605,"tags":2606,"stars":23,"repoUrl":24,"updatedAt":2610},"discord","automate Discord server and channel tasks","Discord automation CLI — send\u002Fread\u002Fsearch messages, manage channels and servers, react, create threads, pin messages, and look up users.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2607,2608,2609],{"name":2370,"slug":2371,"type":16},{"name":2440,"slug":2441,"type":16},{"name":2542,"slug":2543,"type":16},"2026-07-13T06:24:26.62387",{"slug":2612,"name":2612,"fn":2613,"description":2614,"org":2615,"tags":2616,"stars":23,"repoUrl":24,"updatedAt":2629},"doc","create and edit Word documents","Use when the task involves reading, creating, or editing `.docx` documents, especially when formatting or layout fidelity matters; prefer `python-docx` plus the bundled `scripts\u002Frender_docx.py` for visual checks.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[2617,2620,2623,2626],{"name":2618,"slug":2619,"type":16},"Documents","documents",{"name":2621,"slug":2622,"type":16},"DOCX","docx",{"name":2624,"slug":2625,"type":16},"Office","office",{"name":2627,"slug":2628,"type":16},"Word","word","2026-07-13T06:23:44.299568",45]