Skip to content

fix(lettacode): warn about every subagent name Letta Code reserves - #3906

Merged
dyoshikawa merged 3 commits into
mainfrom
resolve-issue-3673-letta-reserved-names
Nov 20, 2026
Merged

dyoshikawa merged 3 commits into
mainfrom
resolve-issue-3673-letta-reserved-names

Conversation

@dyoshikawa

Copy link
Copy Markdown
Owner

Refs #3673

Summary

Letta Code v0.34.66 skips a custom subagent named letta, claude-code, codex, opencode or cursor (RESERVED_EXTERNAL_SUBAGENT_NAMES in src/agent/subagents/index.ts), and the same loader also skips one named memory. rulesync only warned about claude-code and codex, so the other four were written with no warning and then silently ignored by Letta Code.

  • Extend LETTACODE_RESERVED_AGENT_NAMES in src/features/subagents/lettacode-subagent.ts to all six names. The subagent is still written as authored; only the warning changes.
  • Update the reserved-name sentence in the Letta Code subagents note of docs/reference/file-formats.md (and the regenerated src/generated/docs-content.ts).

Remaining in #3673

  • Hooks deprecation tracking: keep emitting Letta Code settings hooks while the loader still ships (it does at v0.34.66), and drop the adapter once upstream removes it. That is why this PR uses Refs rather than Closes.

Tests

  • Added a parameterized test that each of the six reserved names triggers the "reserved by Letta Code" warning.
  • pnpm cicheck passes. src/utils/glob.test.ts timed out once under parallel load and passes when rerun alone.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4

dyoshikawa and others added 3 commits November 20, 2026 08:46
Letta Code now skips custom subagents named letta, claude-code, codex,
opencode or cursor (RESERVED_EXTERNAL_SUBAGENT_NAMES) and memory, as of
v0.34.66. Extend the reserved-name set so rulesync warns about all of them,
and update the Letta Code subagents note in the file-formats docs.

Refs #3673

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…tta-reserved-names

# Conflicts:
#	src/generated/docs-content.ts
@dyoshikawa
dyoshikawa merged commit 3e5341a into main Nov 20, 2026
10 checks passed
@dyoshikawa
dyoshikawa deleted the resolve-issue-3673-letta-reserved-names branch November 20, 2026 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant