Build your own AI agent (Easy)

A friendly chat agent with memory, commands and a calculator tool. Your first agent, one small step at a time.

ChatGPT, Claude and every chatbot run this same loop: read a message, ask the model, maybe use a tool, remember, answer.

About 300 minutes across 12 stages. Skills: Agent loop, Memory, Tools, Parsing, Clean code.

The guides are part of licode Club.

Stages

  1. Split each script line into a kind and a text.
  2. Let the model answer every message.
  3. Make the script reader forgiving.
  4. Give the agent its own commands.
  5. Remember every message, and show or clear the memory.
  6. Give the agent a personality with a system prompt.
  7. Let the model use a calculator tool.
  8. Build a real toolbox with more tools.
  9. Teach calc full expressions with brackets.
  10. Stop a model that keeps calling tools.
  11. Keep only the newest messages in memory.
  12. Count what happened and say goodbye properly.