-
Book Overview & Buying
-
Table Of Contents
Agentic Coding with Claude Code
By :
We begin by creating a main Python file that calculates the Fibonacci function:
> write a main python file that calculated fibonacci function
Once this is in place, a Fibonacci implementation is available.

Figure 7.6 – Creating a Fibonacci script before invoking the review subagent
To demonstrate how a subagent is invoked and how it operates, a funny code review is run on @main.py:
funny review @main.py
This action causes the previously created review agent to be displayed and an instance of it to be spawned. The agent initializes, reads the contents of the file, and begins acting on it.
If another file were present, Claude could be opened again, and an additional instance of the same review agent could be created. This illustrates why agents are useful. Multiple instances of an agent can be created, and each instance runs in an isolated environment. One agent does not affect other agents that are running.
By expanding the...