Go from never having used a coding agent to working productively and safely with one. The learner should understand what an agent is and how it differs from a chat assistant. They should choose a tool, set up a protected first project, describe tasks the agent can do well, and follow and verify its work. They should recover from bad changes, manage context, and plan bigger changes. They should also use tests as the definition of done and run everyday workflows (bug fixes, features, writing tests, codebase exploration, scripts, small tools, refactors). Throughout, they should keep secrets and systems safe and keep their own understanding growing instead of outsourcing it.
Environment variables and where secrets live card 6 of 6

Remember this

builds on: Terminal basics: where you are and running things
Secrets reach a program from outside the code: environment variables, a `.env` file or a local config file. Those files stay out of git (through `.gitignore`) and out of anything you share. A leaked key counts as stolen, so you replace it.
Terms on this card
environment variables
Named text values (like `HOME` or `WEATHER_API_KEY`) that a program receives from the terminal or system that started it, and can read by name.
Secrets
Any value that grants access: API keys, passwords, tokens, or database addresses that include a password.
.env
A plain text file of `NAME=value` lines, usually in the project root, that a library or tool loads into environment variables.
git
A tool that records the full history of a project's files. Projects are often uploaded with it to sites like GitHub.
.gitignore
A text file listing file names git should ignore, so they are never recorded or uploaded.
Learn this step by step on Bytewise
Lesson goal: Explain how API keys and passwords usually reach a program: environment variables, `.env` files and config files. Explain why these files must stay out of git and out of anything you share. · the whole lesson