diff --git a/src/agent/subagents/builtin/history-analyzer.md b/src/agent/subagents/builtin/history-analyzer.md index 4680142..edb3838 100644 --- a/src/agent/subagents/builtin/history-analyzer.md +++ b/src/agent/subagents/builtin/history-analyzer.md @@ -94,8 +94,8 @@ Key updates: ... Generated-By: Letta Code -Agent-ID: $LETTA_AGENT_ID -Parent-Agent-ID: $LETTA_PARENT_AGENT_ID" +Agent-ID: +Parent-Agent-ID: " ``` **Commit type** — pick the one that fits: @@ -107,9 +107,16 @@ Parent-Agent-ID: $LETTA_PARENT_AGENT_ID" - `chore(history-analyzer): ingest Claude Code history 2025-09 ⏳` - `refactor(history-analyzer): reorganize memory by project domain ⏳` -**Trailers:** Omit `Agent-ID` or `Parent-Agent-ID` if the -corresponding environment variable is unset (don't write -the literal variable name). +**Trailers:** Before writing the commit, resolve the actual +ID values by running: +```bash +echo "AGENT_ID=$LETTA_AGENT_ID" +echo "PARENT_AGENT_ID=$LETTA_PARENT_AGENT_ID" +``` +Use the printed values (e.g. `agent-abc123...`) in the +trailers. If a variable is empty or unset, omit that +trailer entirely. Never write a literal variable name like +`$LETTA_AGENT_ID` in the commit message. ## Important diff --git a/src/agent/subagents/builtin/reflection.md b/src/agent/subagents/builtin/reflection.md index 7370429..39e267c 100644 --- a/src/agent/subagents/builtin/reflection.md +++ b/src/agent/subagents/builtin/reflection.md @@ -224,8 +224,8 @@ Updates: - Generated-By: Letta Code -Agent-ID: -Parent-Agent-ID: " +Agent-ID: +Parent-Agent-ID: " ``` **Commit type** — pick the one that fits: @@ -240,9 +240,16 @@ Parent-Agent-ID: " - `fix(reflection): correct stale user preference note 🔮` - `feat(reflection): add new project context block 🔮` -**Trailers:** Omit `Agent-ID` or `Parent-Agent-ID` if the -corresponding environment variable is unset (don't write -the literal variable name). +**Trailers:** Before writing the commit, resolve the actual +ID values by running: +```bash +echo "AGENT_ID=$LETTA_AGENT_ID" +echo "PARENT_AGENT_ID=$LETTA_PARENT_AGENT_ID" +``` +Use the printed values (e.g. `agent-abc123...`) in the +trailers. If a variable is empty or unset, omit that +trailer entirely. Never write a literal variable name like +`$LETTA_AGENT_ID` in the commit message. **Step 5b: Pull + merge to main**