Logo von Self Configuration

Self Configuration

Organisation
letta-ai
self-configuration

Konfiguriert das Laufzeitverhalten von Letta-Agenten, einschließlich Modell, Kontextfenster, System-Prompt, Schlussfolgerungen, Gesprächsüberschreibungen, Komprimierungseinstellungen und Komprimierungs-Prompts. Verwenden Sie diesen Skill, wenn ein Agent oder Nutzer sich selbst ändern, Zusammenfassungen oder Komprimierung anpassen, Identität oder Systemanweisungen ändern, Modelleinstellungen anpassen oder gesprächsbezogene Überschreibungen testen möchte.

Add to TypingMind

Übersicht

Herausgeberletta-ai
Repositoryskills
Skill-Nameself-configuration
Sterne
144
Forks
25
Mitgelieferte Dateien
5
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • Mitgelieferte Dateien: 5

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von letta-ai auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Self Configuration in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/letta-ai/skills/tree/main/letta/self-configuration
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/letta-ai/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/letta/self-configuration .claude/skills/self-configuration
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Self Configuration in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Self Configuration automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Self Configuration nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Letta self-configuration

Use the Letta API when an agent needs to change its own persistent defaults or the current conversation's temporary runtime settings.

Safety rule

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.

Decision tree

  • Need a temporary model/context experiment? Patch the current conversation.
  • Need persistent model, system prompt, or compaction behavior? Patch the agent.
  • Need better summaries after context eviction? Use the Compaction settings section and prompt patterns.
  • Need provider keys, BYOK setup, or server deployment env vars? Use the broader Letta configuration/API skills instead.
  • Need to design a new agent from scratch? Use the agent-development skill.

Environment

bash
BASE_URL="${LETTA_BASE_URL:-https://api.letta.com}"
: "${LETTA_API_KEY:?Set LETTA_API_KEY}"
: "${AGENT_ID:?Set AGENT_ID}"

Use AGENT_ID for yourself. Use CONVERSATION_ID for the current thread when it is available.

Inspect first

bash
curl -sS "$BASE_URL/v1/agents/$AGENT_ID" \
  -H "Authorization: Bearer $LETTA_API_KEY" | \
  jq '{id, model, context_window_limit, llm_config, model_settings, compaction_settings, system_chars: (.system | length)}'

Choose the API target

TargetEndpointPersistenceUse for
AgentPATCH /v1/agents/$AGENT_IDPersistent across conversationsmodel defaults, context window, system prompt, compaction settings
ConversationPATCH /v1/conversations/$CONVERSATION_IDCurrent conversation onlytemporary model/context/reasoning experiments

Quick patches

Context window only

context_window_limit is top-level. Do not put it inside model_settings.

bash
curl -sS -X PATCH "$BASE_URL/v1/agents/$AGENT_ID" \
  -H "Authorization: Bearer $LETTA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"context_window_limit": 64000}'

Conversation-scoped:

bash
: "${CONVERSATION_ID:?Set CONVERSATION_ID}"

curl -sS -X PATCH "$BASE_URL/v1/conversations/$CONVERSATION_ID" \
  -H "Authorization: Bearer $LETTA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"context_window_limit": 64000}'

Agent-level model update

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/model-settings.md.

bash
curl -sS -X PATCH "$BASE_URL/v1/agents/$AGENT_ID" \
  -H "Authorization: Bearer $LETTA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5.2",
    "context_window_limit": 272000,
    "model_settings": {
      "provider_type": "openai",
      "parallel_tool_calls": true,
      "reasoning": { "reasoning_effort": "medium" },
      "max_output_tokens": 128000
    }
  }'

Conversation-scoped model update

bash
: "${CONVERSATION_ID:?Set CONVERSATION_ID}"

curl -sS -X PATCH "$BASE_URL/v1/conversations/$CONVERSATION_ID" \
  -H "Authorization: Bearer $LETTA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-5.2",
    "context_window_limit": 64000,
    "model_settings": {
      "provider_type": "openai",
      "parallel_tool_calls": true,
      "reasoning": { "reasoning_effort": "low" }
    }
  }'

Safe conversation-scoped model test

A 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/provider error.

For model experiments, prefer this bounded recipe:

  1. Save or inspect the current agent/conversation configuration.
  2. Patch the current conversation, not persistent agent defaults.
  3. Verify the response or re-fetch the conversation to confirm the config changed.
  4. Run a tiny low-risk runtime test in the same conversation.
  5. If the runtime test fails, revert the conversation to the saved known-good model/settings.

This keeps failed model-handle experiments from damaging the agent's persistent continuity or requiring the user to repair global defaults.

System prompt replacement

Only use system when the user explicitly asks to change the persistent system prompt. It is a full replacement, not an append.

bash
curl -sS "$BASE_URL/v1/agents/$AGENT_ID" \
  -H "Authorization: Bearer $LETTA_API_KEY" | jq -r '.system'

Then send the complete replacement prompt:

bash
curl -sS -X PATCH "$BASE_URL/v1/agents/$AGENT_ID" \
  -H "Authorization: Bearer $LETTA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"system": "<FULL replacement system prompt. Preserve important existing instructions.>"}'

Safer bundled updater

Use scripts/update-agent-settings.ts when you want a dry-runable patch that can optionally merge existing model_settings or compaction_settings before updating.

bash
npx tsx <SKILL_DIR>/scripts/update-agent-settings.ts \
  --target agent \
  --context-window-limit 64000 \
  --dry-run

Examples and all flags are in references/api-patch-examples.md.

Compaction settings

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.

Customize compaction when the default summary loses important continuity, tone, relationship context, implementation details, or user feedback.

Compaction fields

FieldUse
modesliding_window, all, self_compact_sliding_window, or self_compact_all.
promptCustom summarization prompt.
modelOptional cheaper/faster summarizer model.
model_settingsOptional summarizer model settings.
prompt_acknowledgementOptional boolean for summarizers that add acknowledgements/meta-commentary.
clip_charsMax summary length in characters. Default is 50000.
sliding_window_percentageFraction of messages to summarize in sliding-window modes. Docs default: 0.3.

Choose a compaction mode

  • Use sliding_window by default. It summarizes older messages with a separate summarizer call and keeps recent messages intact.
  • Use self_compact_sliding_window when the agent's own persona/system prompt is important for summary quality or prompt-cache reuse.
  • Use all only when maximum space reduction matters more than preserving recent raw messages.
  • Use self_compact_all for all-message compaction with the agent system prompt included.

Prompt requirements

Every custom compaction prompt should:

  • State whether evicted messages come from the beginning of the context window.
  • Say the summary will appear before remaining recent messages.
  • Say not to continue the conversation, answer transcript questions, or call tools.
  • Require incorporation of any existing summary being evicted.
  • Preserve exact user requests, names, IDs, URLs, file paths, dates, and quoted phrases when they matter.
  • Include lookup hints for detailed content that cannot fit.
  • End with "Only output the summary."

For complete prompt templates, read references/compaction-prompt-patterns.md.

Update compaction with the bundled script

bash
npx tsx <SKILL_DIR>/scripts/update-compaction-prompt.ts \
  --prompt-file /tmp/compaction-prompt.txt \
  --mode self_compact_sliding_window \
  --clip-chars 50000 \
  --dry-run

The 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.

SDK examples

TypeScript and Python examples live in references/api-patch-examples.md.

Verify

bash
curl -sS "$BASE_URL/v1/agents/$AGENT_ID" \
  -H "Authorization: Bearer $LETTA_API_KEY" | \
  jq '{id, model, context_window_limit, llm_config_context_window: .llm_config.context_window, model_settings, compaction_settings, system_chars: (.system | length)}'

Guardrails

  • Ask before changing persistent agent defaults unless explicitly requested.
  • Prefer conversation-scoped updates for experiments.
  • Keep context windows only as large as needed. Bigger windows increase latency and cost.
  • Preserve existing model_settings and compaction_settings fields unless intentionally changing them.
  • For self-compaction prompts, always forbid tool use and conversation continuation.
  • If an update returns 400, first check model handle validity, provider type, and whether settings are in the expected shape.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Self Configuration?

Konfiguriert das Laufzeitverhalten von Letta-Agenten, einschließlich Modell, Kontextfenster, System-Prompt, Schlussfolgerungen, Gesprächsüberschreibungen, Komprimierungseinstellungen und Komprimierungs-Prompts. Verwenden Sie diesen Skill, wenn ein Agent oder Nutzer sich selbst ändern, Zusammenfassungen oder Komprimierung anpassen, Identität oder Systemanweisungen ändern, Modelleinstellungen anpassen oder gesprächsbezogene Überschreibungen testen möchte.

Warum Self Configuration in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Self Configuration besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Self Configuration in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/letta-ai/skills/tree/main/letta/self-configuration ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Self Configuration nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Self Configuration verwenden?

So viele Sie möchten. In TypingMind können Sie Self Configuration mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Self Configuration kostenlos?

Ja. Der Skill wird von letta-ai auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇