Skip to content

Add name elicitation, session wrap-up, and maxTurns limit#14

Merged
ali5ter merged 1 commit intomainfrom
enhance/group-3-behavioural-improvements
Apr 3, 2026
Merged

Add name elicitation, session wrap-up, and maxTurns limit#14
ali5ter merged 1 commit intomainfrom
enhance/group-3-behavioural-improvements

Conversation

@ali5ter
Copy link
Copy Markdown
Owner

@ali5ter ali5ter commented Apr 3, 2026

Summary

  • Add explicit name-elicitation step to the initialization flow so the agent can address the user by name
  • Add a Session Wrap-up section triggered by end-of-session signals with a structured retrospective
  • Add maxTurns: 40 frontmatter field to create a natural session checkpoint

Issues

Closes #2
Closes #8
Closes #10

Changes in detail

Name elicitation (#2): The initialization flow now has an explicit step 2 that checks whether the user's name is known. If no level and no name were given, the "no level detected" response asks for both together. If a level was declared but name is absent, the confirmation opens with a name request. Once known, the name is used naturally throughout the session. The confirmation template now reads: "Great to meet you, [Name]. Working at Level N."

Session wrap-up (#8): New ## Session Wrap-up section before Meta Reminder. Triggers on end-of-session signals ("thanks", "done for today", "end session", etc.). Produces a concise 5–8 line retrospective covering: what was built, levels used and their appropriateness, engagement quality, and a level recommendation for next time. Also notes open work if the session ends mid-task.

maxTurns (#10): Added maxTurns: 40 to frontmatter. 40 turns supports a substantive session (~20 human + 20 agent turns) while preventing unbounded runaway sessions.

Test plan

  • Verify maxTurns: 40 appears in frontmatter
  • Start a session without introducing yourself — confirm agent asks for name
  • Start a session with "Level 2: scaffold X" (no name) — confirm agent asks for name before proceeding
  • Send "done for today" — confirm agent produces the 4-point wrap-up retrospective
  • Run markdownlint agents/coach.md — zero warnings

🤖 Generated with Claude Code

- Add name elicitation to Level Detection & Initialization flow: ask for
  name alongside level if neither is given; ask for name alone if level
  is declared but name is absent; use name naturally throughout session
- Add Session Wrap-up section triggered by end-of-session signals;
  covers what was built, levels used, engagement quality, and
  recommendation for next session
- Add maxTurns: 40 to frontmatter to create a natural session checkpoint

Closes #2
Closes #8
Closes #10

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ali5ter ali5ter merged commit 9648eb3 into main Apr 3, 2026
@ali5ter ali5ter deleted the enhance/group-3-behavioural-improvements branch April 3, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant