Skip to content

Latest commit

Β 

History

History
26 lines (17 loc) Β· 535 Bytes

File metadata and controls

26 lines (17 loc) Β· 535 Bytes

Step 2 - Self-Modifying System Prompt

Adds the system_prompt tool, enabling the agent to rewrite its own identity.

Run

pip install -r requirements.txt
python agent.py

Try this

πŸ¦† view your system prompt
πŸ¦† from now on, always reply in haiku. update your prompt permanently.
πŸ¦† what's 2+2?                        # expect a haiku

[exit and restart]

πŸ¦† what's 2+2?                        # still a haiku - persisted via .prompt file

πŸ¦† reset your system prompt

Next β†’ step-03-memory.