Day 2 of 960 minCipher CadetHands-on lab

Day 2: Install Kiro, Sign In and Build Your First Project

Taught by Mr Elite Updated

By the end of today you can

  • Set up the Kiro workspace and find the explorer, chat and terminal
  • Open an empty folder as a project and run a first agent request
  • Read a proposed change line by line before accepting, editing or rejecting it
  • Redact secrets from text before pasting it into any AI tool

Warm-up

Answer from memory first, then tap to check. Recalling yesterday is what makes it stick.

Why is an empty practice folder the right place to learn a new agent tool?

The agent can only touch what is in the project, so mistakes cannot damage real work or expose real files.

Which part of an agent session is the best evidence of what it really did?

The tool calls, such as files read or written and commands run, not just its chat summary.

Picture a new developer who asks an AI agent for a quick website. The agent writes eight files, runs two commands, and the developer clicks accept on everything because it looks fine. A week later they find a line in one file that sends visitor details somewhere they never chose.

Today you build your first real project with Kiro, and you build the habit that stops that story: read before you accept. The site itself is simple. The skill is steering the agent and checking its work.

What you need before we start

Yesterday you met Kiro and had a first chat. Today we set the workspace up properly and make something. Everything runs on your own machine, in a folder you create, so nothing here touches anyone else's system.

Here is the plan for the hour. First a quick check of your tools. Then sign-in and a tour of the screen. Then we open a folder, make one careful request, and review what comes back. Last comes the lab on keeping secrets out of what you paste. Each part builds on the one before, so go in order.

IDE
Integrated development environment. One app where you view files, write code, run commands and chat with the agent.
Workspace
The folder Kiro has open. The agent works inside it.
Diff
A view that shows what changed in a file: removed lines and added lines side by side.
Terminal
A text window where you type commands instead of clicking. Kiro has one built in.

Requirements are light. You need Kiro installed from kiro.dev, a sign-in account (Kiro offers options such as Google, GitHub, AWS Builder ID or your organisation login, and the free tier or trial is enough), and a web browser. Node.js LTS and Git are on our tool list, but today's site needs neither. Check them anyway.

bash
node --version
git --version
Each prints a version number if installed, for example v20.11.0 and git version 2.43.0. Your numbers will differ.

If a command says not found or is not recognised, that is fine for today. Install Node.js LTS from nodejs.org and Git from git-scm.com before Day 4. Use the default options in both installers, then close and reopen the terminal and run the checks again.

Sign in and tour the workspace

Before you ask an agent to do anything, learn where everything lives on screen. When something looks odd later, you will know exactly where to look. Take your time with this part.

Notice that you now have three views of one session. The explorer shows what files exist. The chat shows what the agent says it is doing. The terminal shows what commands really ran. When the three agree, you can relax. When they disagree, stop and investigate.

Quick check

Where should you look to confirm which commands the agent actually ran?

Open a folder as a project

An agent works inside whatever folder you open. So we make a new empty folder first. This is the same rule as Day 1: a clean practice folder keeps the agent away from anything private. If you opened Documents or your home folder, the agent could read everything in it.

bash
pwd
Prints the current folder on macOS and Linux, for example /Users/you/Documents/my-portfolio. On PowerShell use Get-Location. The path should end in my-portfolio.

Watch me do it: your first agent request

Now the main event. I will show you the request I would write, then how I read the result. A good request names the output, the files, and the limits. Vague requests give the agent room to guess, and every guess is something you must then review.

text
Create a one-page personal portfolio site using only index.html and style.css.
Sections: a header with the name Alex Example, a short about paragraph, three project cards with placeholder text, and a contact section with the placeholder email alex@example.com.
No external scripts, fonts or images. No JavaScript. Do not run any commands.
The prompt. It fixes the files, the content, and what is off limits. Placeholder name and email keep your real details out of the exercise.

Notice what the prompt does. It names two files, so the agent should not create a third. It gives the content, so nothing needs inventing. It bans outside resources and commands, which are the two riskiest things an agent can add to a simple page.

Here is what a clean index.html tends to look like near the top. You are checking for a link tag pointing to style.css and nothing pointing at a web address.

html
<head>
  <meta charset="utf-8">
  <title>Alex Example</title>
  <link rel="stylesheet" href="style.css">
</head>
A safe head section. The only link is the local file style.css. A src or href starting with https:// would be an outside load to question.

Quick check

The agent proposes a file you did not ask for. What do you do first?

Try it yourself, then use the lab

Now you steer. Make three follow-up requests in chat, one at a time, reading each diff before you accept it. First, change the colour scheme. Second, add a dark header. Third, make the cards sit in a row on wide screens.

Before you paste anything real into an AI tool, you need to know what not to paste. The lab below covers that. Developers often paste stack traces and logs into chatbots, and those can contain keys and passwords. The same care applies to Kiro's chat.

Your turn

Secrets in the Context Window

Today you gave an agent a request and read what came back. The lab covers the other direction: what you send in. You will take a realistic stack trace, config snippet and log extract and redact every secret before it would go to a public AI chatbot.

Open the lab in a new tab

What to try

What to notice

  • Secrets hide in unexpected places, such as URLs and error messages, not only in config files.
  • A redacted paste can still let the AI help, because the bug rarely depends on the secret itself.
  • Once text is sent, you cannot take it back.

If it did not work

Clicking accept on every change without reading

Open each diff and run the four questions: did I ask for it, does it call outside, does it hold personal data, does it run commands.

Opening a large folder like Documents or your home directory as the project

Open only the empty my-portfolio folder. The agent can read what is inside the workspace.

Writing a vague request such as make me a nice website

Name the files, the sections, and the limits, including what the agent must not do.

Putting your real email or phone number into the prompt

Use placeholders while learning. You can swap in real details yourself later.

Recap

  • Open only a dedicated project folder, never a broad one
  • Explorer, chat and terminal are your three windows on what the agent is doing
  • A good request names files, content and limits
  • Read every diff before accepting, and watch for outside links and unexpected files
  • Rejecting or editing a change is a normal, healthy part of working with an agent
  • Redact secrets before pasting text into any AI tool

Cheat sheet

File, Open Folder
Sets the project the agent works inside
Terminal, New Terminal
Opens a command line in the workspace
Diff
Shows exactly what a change adds or removes
Vibe mode
Quick chat style requests, used today
pwd / Get-Location
Prints the current folder so you can confirm your location
Four review questions
Asked? Calls outside? Personal data? Commands?

Before the next day

Mission: Ship your portfolio page

Build a one-page personal portfolio site in your my-portfolio folder using placeholder details, open it in your browser, and practise real review. The point is to catch at least one change worth rejecting or editing, and to say why.

About 30 min

You are done when: A screenshot of the portfolio page in your browser plus a short note describing one change you rejected or edited and your reason.

Want more? Ask the agent to explain every line of style.css in plain words, then check three of its claims by changing the values yourself and refreshing the page.

Quiz

4 questions. Your score is saved with your progress.

1. Why do we open an empty folder instead of Documents as the project?

2. Which line in a proposed index.html should make you stop and look closer?

3. What makes a request to the agent strong?

4. You are about to paste a log into a public chatbot. What should you do first?

Finish the day

Mark the day complete to save your progress.

Go to Day 3

Next: On Day 3 we move from quick prompts to specs: requirements, design and tasks for a login feature. Today's habit of reading what the agent produces is exactly what you will apply to a spec.

Tell someone you are doing this:WhatsAppXLinkedIn

Your notes

Private to this device. Write what you want to remember from today.