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.
Unknown and invented packages card 5 of 6

Declining and redirecting

builds on: Outdated knowledge and invented APIs
An excerpt from the session. You decline, check the registry in your own terminal, then give a precise instruction. `pip index versions` asks PyPI which versions of a name exist. pip marks this command as experimental, so it may print a warning first.
⚙ Run: pip install pdf-table-extractor
[Approve? yes / no / always]  no

$ pip index versions pdf-table-extractor
ERROR: No matching distribution found
for pdf-table-extractor

▸ You: pdf-table-extractor isn't on PyPI.
Use pdfplumber, already in
requirements.txt. Don't install any new
package without asking me first.
Terms on this card
registry
The public online catalogue packages are downloaded from: PyPI for Python, npm's registry for JavaScript. Anyone can publish there.
PyPI
The Python Package Index, the public registry `pip` installs Python packages from. Each package has a page at `pypi.org/project/<name>`.
pip
Python's package manager. `pip install <name>` downloads a package from PyPI and installs it.
pip index versions
A pip command that asks PyPI which versions of a named package exist. Useful as a quick existence check. pip marks it as experimental.
command
A line of text that tells the computer to run a program, typed in a terminal, for example `python src/cart.py`.
Learn this step by step on Bytewise
Lesson goal: Explain why an agent may suggest a package that does not exist or is a malicious look-alike, which attackers register on purpose. Check name, publisher, popularity and need before approving an install. · the whole lesson