In the last lesson, you saw that your agent works only from what entered this session. That leaves a question you’ll face on day two: What happens to all of that when the session ends?
In this lesson, you’ll make a decision with your agent, start a new session, and check what’s left of it. Then you’ll write the decision where every session reads it, and choose between keeping a session going, resuming an old one, compacting, and starting fresh. Start with a small job that leads to a decision.
Make a Decision, Then Start a New Session
Project decisions often come up mid-job, in a sentence you type to the agent.
If your agent is still running from the last lesson, type /exit and start it again in the warm-up folder. That way, this lesson begins with a new session. Type this ready-made task:
Write a Node script, check-words.js, that reads words.txt
and sound-sheet.md and prints each word that breaks a sound
rule, with the rule it breaks. Then run it.
Answer the agent’s requests as in the last two lessons. The script should report nolem, which doesn’t end in a vowel, and sadku, which has two hard consonants in a row. Its wording will differ from anyone else’s.
Those two words are in the list on purpose, and the game group wants to keep them. Tell your agent so, in the same session:
The group keeps nolem and sadku in words.txt on purpose, as
examples of broken rules. Scripts only report words that
break a rule. They never remove or fix words in words.txt.
That message now goes to the model with every step of this session, so the agent will likely keep to it. Nothing enforces it, though, the way a permission setting would, so still check what changes.
Now end the session with /exit, and start your agent again in the same folder. This is a new session, not a continuation. Hand it the group’s next job, worded the way you’d say it to someone who was there:
The group made up two new words, kadto and silu. Add them to
words.txt, run check-words.js, and handle the words that
break a rule the way we agreed.
Before you press Enter, predict what your agent has to go on for the agreement your task mentions. Then send it. If it asks to remove or change any other word in words.txt, answer no. Compare what happened with your prediction: