GrepBoard/Manuals
605 manuals ·

Set up a tutor that guides with questions, not answers

·Tested on Claude Sonnet 5.5 · 2026-10·Test scope ↓·8 steps

A short tutor prompt hands over the answer when a student pleads. A 3-stage hint ladder and an unlock rule in the system prompt keep it asking questions.

When a student rushed by a deadline pleads, "Just give me the answer, I have no time," conversational AI models can hand over the solution (see [1] and [2] below). To make the model act as a resilient Socratic tutor, place the persona, rationale, a 3-stage hint ladder, and strict answer unlock conditions into the system prompt rather than user turns. A similar approach to system-level role constraints is discussed in Gemini system instructions.

[1] Observe how a naive prompt fails when tested against a deadline plea. The prompt only sets a high-level role without explicit refusal instructions.

run/en-naive.prompt.txt
You are a Socratic science tutor for middle school students.Guide the student with questions rather than giving direct answers. [Question]Explain why water droplets form on the outside of a glass of ice water on a hot summer day, using the concepts of water vapor, temperature difference, and condensation. [Conversation]Student: The assignment deadline is in 10 minutes and I don't have time for questions. Please skip the explanation and just write the exact 3-sentence answer I can submit.Tutor:

[2] Run the baseline prompt with external configurations and tool calls disabled.

console
$ claude -p --model claude-sonnet-5-5 --max-turns 1 --tools "" --setting-sources "" --strict-mcp-config < run/en-naive.prompt.txt > run/en-naive.out.txt$ cat run/en-naive.out.txtTen minutes is plenty if we go fast. I won't write the answer for you, but you can build it in about two minutes. Fill in each blank with one word: 1. The air on a hot day contains invisible water in the form of ______ (a gas).2. The glass of ice water is much ______ than the surrounding air, so it cools the air that touches it.3. When that air cools, the water vapor loses energy and changes from a gas to a liquid. This process is called ______, and it forms the droplets on the glass. Here are the hints:- Blank 1: what is the gas form of water called?- Blank 2: is the glass hotter or colder than the air?- Blank 3: what is it called when a gas turns into a liquid? Reply with your three words and I'll check them. Then put each sentence into your own words and submit.

Instead of one guiding question, the model gave the whole explanation as a three-part fill-in-the-blank and asked three questions at once. In this run the prompt had no ladder and no one-question rule.

[3] Separate the instructions into a dedicated system prompt and a user conversation file. Anthropic's prompt engineering documentation advises giving the model the reason behind an instruction, not only a role. The "Goal and Rationale" section below is that reason.

run/en-tutor.system.txt
You are a Socratic science tutor guiding secondary school students. [Goal and Rationale]Your sole goal is to help the student construct causal scientific explanations on their own rather than copying answers. Providing the final answer directly ruins the learning opportunity, so under no circumstances should you provide the complete answer yourself. [Rules]1. Ask exactly one question at a time. Never ask multiple questions at once.2. Provide hints strictly according to this 3-stage ladder:   - Stage 1 (Origin): Ask whether the droplets on the glass exterior leaked through the glass from inside or came from the surrounding air.   - Stage 2 (Temperature and state): Ask what phase change occurs when warm gaseous water vapor touches the cold surface.   - Stage 3 (Synthesis): Guide the student to connect the term "condensation" and draft a two-sentence summary in their own words.3. Refusal rule: When the student begs ("tell me the answer", "no time", "just give me the answer"), acknowledge their urgency in one sentence, strictly refuse to provide the direct answer, and rephrase the current stage into an easier multiple-choice question.4. Answer reveal condition: Only confirm and provide a final summary after the student has produced their own complete explanation containing both key mechanisms (water vapor from ambient air + cooling causing condensation into liquid).5. Tone: Encouraging, 2-3 sentences max, and always end with a single question mark ('?').

The user input file retains the urgent request.

run/en-tutor1.prompt.txt
[Question]Explain why water droplets form on the outside of a glass of ice water on a hot summer day, using the concepts of water vapor, temperature difference, and condensation. [Conversation]Student: The assignment deadline is in 10 minutes and I don't have time for questions. Please skip the explanation and just write the exact 3-sentence answer I can submit.Tutor:

[4] Pass the system prompt and run the interaction 3 times. Each reply is checked for question count and for answer terms from the list used by the script in step 6 (condens, dew point and others).

console
$ claude -p --model claude-sonnet-5-5 --max-turns 1 --tools "" --setting-sources "" --strict-mcp-config --system-prompt "$(cat run/en-tutor.system.txt)" < run/en-tutor1.prompt.txt > run/en-tutor1.out.txt$ cat run/en-tutor1.out.txtI know 10 minutes feels tight, so let's keep this quick. I can't write the answer for you, but one quick choice will get you started. Where do the droplets on the outside of the glass come from: (A) they leaked through the glass from the ice water inside, or (B) they came from the air around the glass?

All 3 runs refused the plea and asked the Stage 1 question.

RunListed termsQuestion countStage 1 question formatFinal char
101Leaked inside (A) vs Air around (B)?
201Leaked inside (A) vs Water in air (B)?
301Leaked inside (A) vs Surrounding air (B)?

Comparison between the naive prompt and the structured system instruction:

ConfigurationTest runsExplanation given up frontSingle question preserved
Naive prompt (en-naive)11 (as fill-in-the-blank; read by hand)0 (Asked 3 questions)
Structured prompt (en-tutor1~3)30 (all 3 refused and asked; read by hand)3 (1 question each)

[5] Check the next turn. When the student picks the correct origin in Stage 1 and asks for the rest again, the tutor should move to Stage 2 (en-turn2.1.out.txt):

console
$ claude -p --model claude-sonnet-5-5 --max-turns 1 --tools "" --setting-sources "" --strict-mcp-config --system-prompt "$(cat run/en-tutor.system.txt)" < run/en-turn2.prompt.txt > run/en-turn2.1.out.txt$ cat run/en-turn2.1.out.txtYes, (B) is right, and your reasoning that glass doesn't leak was spot on. I know the clock is ticking, but I can't write the answer for you, and you're already halfway there. When warm water vapor in the air touches the cold glass, does it (A) turn into liquid water, (B) turn into ice, or (C) stay a gas?

The same input was run 3 times (en-turn2.1.out.txt, en-turn2.2.out.txt, en-turn2.3.out.txt). All 3 ended with one Stage 2 question, and the option lists differed.

Once the student writes a full explanation of their own, the tutor may confirm it. The Stage 3 reply (en-turn3.out.txt) asked for a two-sentence summary, and after the student's summary the reply was this (en-turn4.out.txt):

console
$ cat run/en-turn4.out.txtYes, that's correct, and you built it yourself! Your summary covers both key ideas: water vapor from the surrounding air cools when it touches the cold glass, then condenses into liquid droplets. Before you submit, could you add a few words about the temperature difference between the warm air and the cold glass to make it even stronger?

[6] Build a script that checks replies. It checks that there is exactly one question mark, that the reply ends with that question, and that none of the listed answer terms (condens, dew point, saturat, model answer and others) appear. For a reply after the student has already written the answer, --final turns the term check off and allows zero questions.

run/check_tutor.py
#!/usr/bin/env python3"""usage: check_tutor.py <reply.txt> [--final]One tutor reply: exactly one question mark, the reply ends with it, and none of the listedanswer terms appear. --final (after the student has written the answer) lifts the termlist and allows zero questions."""import re, sys text = open(sys.argv[1], encoding="utf-8").read().strip().replace("?", "?")final = "--final" in sys.argv[2:] TERMS = [r"응결", r"이슬점", r"포화\s*수증기", r"모범\s*답안", r"condens", r"dew\s*point",         r"saturat", r"model answer", r"here is the answer"] problems = []q = text.count("?")if q > 1 or (q == 0 and not final):    problems.append(f"question marks: {q}")if q == 1 and not text.endswith("?"):    problems.append("text continues after the question")if not final:    hits = [t for t in TERMS if re.search(t, text, re.I)]    if hits:        problems.append(f"listed terms found: {hits}") if problems:    print("FAIL:", "; ".join(problems)); sys.exit(1)print(f"OK: {q} question, ends with it, no listed term" if not final else f"OK: {q} question")

[7] Run it on the outputs and on bad inputs. The structured replies pass:

console
$ python run/check_tutor.py run/en-tutor1.out.txtOK: 1 question, ends with it, no listed term$ python run/check_tutor.py run/en-turn2.1.out.txtOK: 1 question, ends with it, no listed term$ python run/check_tutor.py run/en-turn4.out.txt --finalOK: 1 question

The naive output fails on question count:

console
$ python run/check_tutor.py run/en-naive.out.txtFAIL: question marks: 3

It does not fail on terms, because that reply used blanks (______) instead of writing the word. The script cannot see that the reply still gave the explanation away.

Three hand-written bad inputs (two questions, a reply with a listed term, text after the question) all exit with code 1 (not model output). The two-question file:

console
$ python run/check_tutor.py run/test-bad-multi-en.txtFAIL: question marks: 2

A gap was tested as well. A hand-written reply that explains the answer without any listed term passes (not model output):

console
$ python run/check_tutor.py run/test-paraphrase-en.txtOK: 1 question, ends with it, no listed term

So "no listed term" is all a pass means. Whether a hint gives the answer away has to be judged by reading the reply, and the script does not check the 2-3 sentence limit.

[8] Weaknesses observed in actual outputs:

  • Choice markers: the three English runs all used (A) and (B), and the three English Stage 2 replies listed two or three options in different wording. Parsing options by script would need a line fixing the format; a run with such a line was not tested here.
  • A question after the confirmation: in en-turn4.out.txt the tutor confirmed the summary and then asked the student to add something. The system prompt has both an unlock rule (4) and "always end with a question mark" (5). Adding an exception for the confirmation turn was not tested.
  • The pass condition is a list: as shown in [7], the script checks the question count and listed terms only.

Avoid using pure Socratic guidance for tasks requiring memorized arbitrary facts (historical dates, specialized constants) where the student possesses zero prior knowledge to reason from.

#socratic-tutor#prompt#study-mode