From 2fbfe1d4ca7acbba67af819b20074ed7a7dde6f6 Mon Sep 17 00:00:00 2001 From: Charles Packer Date: Sun, 21 Dec 2025 18:39:34 -0800 Subject: [PATCH] feat: increase loaded_skills block limit to 100k characters (#335) Co-authored-by: Letta --- src/agent/memory.ts | 7 +++++++ src/agent/prompts/loaded_skills.mdx | 1 + 2 files changed, 8 insertions(+) diff --git a/src/agent/memory.ts b/src/agent/memory.ts index 55ecc19..2c248b2 100644 --- a/src/agent/memory.ts +++ b/src/agent/memory.ts @@ -104,6 +104,13 @@ async function loadMemoryBlocksFromMdx(): Promise { block.description = frontmatter.description; } + if (frontmatter.limit) { + const limit = parseInt(frontmatter.limit, 10); + if (!Number.isNaN(limit) && limit > 0) { + block.limit = limit; + } + } + // Set read-only for skills blocks (managed by Skill tool, not memory tools) if ((READ_ONLY_BLOCK_LABELS as readonly string[]).includes(label)) { block.read_only = true; diff --git a/src/agent/prompts/loaded_skills.mdx b/src/agent/prompts/loaded_skills.mdx index 052fbd3..3ec5134 100644 --- a/src/agent/prompts/loaded_skills.mdx +++ b/src/agent/prompts/loaded_skills.mdx @@ -1,6 +1,7 @@ --- label: loaded_skills description: A memory block to store the full instructions and capabilities from each loaded SKILL.md file in this block. Do not manually edit this block - use the Skill tool to load and unload skills. +limit: 100000 --- [CURRENTLY EMPTY]