WEBVTT

00:00:00.080 --> 00:00:03.680
I gotta talk about yet another coding

00:00:03.900 --> 00:00:07.800
agent. And I know, I know,
I already created videos and

00:00:07.900 --> 00:00:11.700
courses on Cloud Code and on Codex

00:00:11.800 --> 00:00:15.660
because they are both amazing,
and you also have, of course,

00:00:15.720 --> 00:00:19.340
Cursor and GitHub Copilot,
and I got a course on that too,

00:00:19.420 --> 00:00:22.720
below. But today, I wanna talk about the

00:00:22.900 --> 00:00:26.720
Pi coding agent also because

00:00:26.800 --> 00:00:30.500
it's so much more than just a- a coding

00:00:30.860 --> 00:00:34.700
agent. Now, again,
all these tools will get you

00:00:34.740 --> 00:00:37.480
there. There is no wrong or right choice.

00:00:37.520 --> 00:00:40.760
And I totally get
that this can all feel like the

00:00:41.170 --> 00:00:44.680
framework wars,
the JavaScript framework wars from

00:00:44.880 --> 00:00:48.800
2019 again, where every week,
a new shiny tool is

00:00:48.840 --> 00:00:52.790
coming out. And yeah, to some extent,
it kind of

00:00:52.880 --> 00:00:56.670
is like that, I guess. But then again,
just like back

00:00:56.880 --> 00:01:00.640
then, if we're very honest,
it doesn't matter that much

00:01:00.660 --> 00:01:04.550
which one you choose. This
is also not a sponsored video,

00:01:04.580 --> 00:01:07.860
and I don't have a course on that.
I just genuinely think

00:01:07.940 --> 00:01:11.720
this Pi coding agent
is a tool you also might

00:01:11.780 --> 00:01:15.720
wanna look into. Now, unlike Codex
and Cloud Code, or

00:01:15.900 --> 00:01:19.620
OpenCode, for example,
this doesn't come with a

00:01:19.680 --> 00:01:23.400
subscription you can get. With OpenCode,
of

00:01:23.480 --> 00:01:27.280
course,
you can also use it without a subscription

00:01:27.340 --> 00:01:31.080
subscription,
like your Codex subscription,

00:01:31.100 --> 00:01:34.840
With the Pi coding agent,
you only have the option of paying per

00:01:35.040 --> 00:01:38.420
use or of using another subscription.

00:01:38.460 --> 00:01:42.300
Uh, for example, here, if I started,
I installed it on my system,

00:01:42.440 --> 00:01:46.400
I'm using it with my Codex subscription,
which I could use with the Codex

00:01:46.480 --> 00:01:49.580
app, the Codex CLI, but
which I can also use here.

00:01:49.620 --> 00:01:53.280
I think you can also use it with the
Anthropic, the Cloud Code subscription,

00:01:53.340 --> 00:01:57.120
but, uh, you maybe heard
that they don't like that, and

00:01:57.160 --> 00:02:00.860
account banned as far as I know.
Now what's so special about

00:02:00.870 --> 00:02:04.270
this Pi thing?
Why would you use it instead of the

00:02:04.680 --> 00:02:08.669
Codex CLI? Couple of reasons. For one,

00:02:08.740 --> 00:02:10.699
Pi, this agent, is

00:02:11.820 --> 00:02:15.360
super lean and simple in a- a positive

00:02:15.620 --> 00:02:17.710
way. It has a very

00:02:18.640 --> 00:02:20.700
minimal system prompt,

00:02:21.580 --> 00:02:25.160
and it only comes with a few tools.

00:02:25.200 --> 00:02:29.160
Essentially, as far as I know, if
that hasn't changed, it only comes

00:02:29.240 --> 00:02:33.000
with read, write, edit, and a

00:02:33.040 --> 00:02:36.600
bash tool. And the bash tool, of course,
is the powerful one

00:02:37.020 --> 00:02:39.980
because if you have a bash tool,
you essentially

00:02:40.020 --> 00:02:43.740
have access to everything because you

00:02:43.800 --> 00:02:47.540
can, of course,
control your entire system, your entire

00:02:47.580 --> 00:02:51.140
machine with just the bash,
with just the command line in the

00:02:51.220 --> 00:02:54.340
end,
because you can invoke a bunch of other

00:02:54.360 --> 00:02:58.040
And as it turns out,
and as I also covered in another video,

00:02:58.200 --> 00:03:01.920
CLIs seem to be, at least right now, the

00:03:02.080 --> 00:03:06.020
main thing you wanna expose to your
agents,

00:03:06.030 --> 00:03:09.530
to your coding agents because they
are really good at using

00:03:09.620 --> 00:03:12.329
CLIs, even ones they haven't seen before.

00:03:12.360 --> 00:03:16.260
And of course, through CLIs,
through command line interfaces or

00:03:16.300 --> 00:03:20.220
tools, uh, written by other people,
your agents can do a bunch of

00:03:20.360 --> 00:03:23.310
stuff on your computer.
They can send HTTP requests.

00:03:23.340 --> 00:03:26.829
They can r- spin up scripts
and execute scripts.

00:03:26.880 --> 00:03:30.460
They can parse JSON data.
They can do all kinds of

00:03:30.640 --> 00:03:34.200
stuff.
And that's kind of the philosophy of this

00:03:34.240 --> 00:03:38.150
Very minimal,
but give it access to the most powerful

00:03:38.200 --> 00:03:40.240
it can essentially do everything.

00:03:40.260 --> 00:03:43.760
And combined with a very minimal lean
system prompt

00:03:43.840 --> 00:03:47.650
that's baked in, you get an agent that has

00:03:48.800 --> 00:03:52.580
a-
a context window that's not cluttered up

00:03:53.100 --> 00:03:56.760
flexible to do whatever you want it to do,
so to say.

00:03:56.780 --> 00:04:00.740
And their whole philosophy really is
that instead

00:04:00.780 --> 00:04:04.769
of packing a lot of stuff in there,
you get an agent that

00:04:04.800 --> 00:04:08.500
is super extensible.
You can install a thing that's called

00:04:08.540 --> 00:04:10.680
Extensions. We'll get back to that.

00:04:10.760 --> 00:04:14.520
You can use Agent Skills. So here,
I'm talking

00:04:14.600 --> 00:04:18.519
about this official standard, which
is kind of a standard, I guess.

00:04:18.620 --> 00:04:22.480
Uh,
certain tools implement it differently,

00:04:22.560 --> 00:04:26.000
course, behind Agent Skills is
that you have skill

00:04:26.060 --> 00:04:29.900
directories and skill MD files,
and you have prompts

00:04:29.960 --> 00:04:33.720
in there, or extra context,
however you wanna name it,

00:04:33.780 --> 00:04:37.540
and those are loaded on demand,
not eagerly, but instead

00:04:37.600 --> 00:04:41.520
lazily on demand depending on
which task your agent is

00:04:41.600 --> 00:04:45.560
working on. Uh, for example,
here in this running Pi

00:04:45.760 --> 00:04:49.340
session here,
I have a bunch of skills loaded,

00:04:49.350 --> 00:04:53.320
skills I set up, uh,
where I played around with certain

00:04:53.340 --> 00:04:56.860
skills, and certain skills
that come in really handy,

00:04:57.120 --> 00:05:01.100
skill, for example. And if I
were to take a look at that,

00:05:01.140 --> 00:05:03.180
Markdown file with a name, a description.

00:05:03.200 --> 00:05:06.480
A description is, of course,
super important with those skills because

00:05:06.520 --> 00:05:10.500
the end,
what gets an agent to actually activate a

00:05:10.560 --> 00:05:14.140
a skill. Um,
it then loads the rest of this file

00:05:14.240 --> 00:05:18.000
only if, uh, it decides that the skill
is relevant for the given

00:05:18.100 --> 00:05:20.910
task based on this name
and description here.

00:05:20.920 --> 00:05:24.880
And then, well, again,
that's just some extra context,

00:05:24.940 --> 00:05:28.780
where, in this case,
for my code research skill,

00:05:28.840 --> 00:05:32.180
agent is interested, like Pi,
but also Codex if it loads this

00:05:32.240 --> 00:05:36.160
skill, how to do code research,
how I want it to do that,

00:05:36.200 --> 00:05:39.340
that it should use the MCPorter tool by
Peter

00:05:39.440 --> 00:05:43.140
Steinberger to use other MCP servers like
the

00:05:43.200 --> 00:05:47.100
DeepWiki MCP server, which is a-
an MCP server that can be

00:05:47.200 --> 00:05:51.140
used to explore GitHub repositories
and learn more about them, and some

00:05:51.220 --> 00:05:54.020
other tools it should use to do research.

00:05:54.040 --> 00:05:57.580
And that's another important thing here,
talking about MCPs.

00:05:57.640 --> 00:06:00.820
The Pi agent has no support for MCP.

00:06:00.860 --> 00:06:04.740
The reason for that is
that MCPs tend to really fill

00:06:04.900 --> 00:06:08.580
up your context window because there's a
lot of information about the available

00:06:08.660 --> 00:06:12.060
MCP tools and resources
that must be put into the

00:06:12.380 --> 00:06:15.826
context window for the AI to be aware of
it. And we-...

00:06:15.836 --> 00:06:19.436
that, that, that team or the person, uh,
behind Pye

00:06:19.656 --> 00:06:21.876
doesn't want. That,
that's the reasoning here.

00:06:21.936 --> 00:06:25.856
It's an opinion shared by many other
people, like myself too,

00:06:26.096 --> 00:06:29.956
kind of solutions like MCP Search for
that, but still, no MCP support

00:06:29.996 --> 00:06:33.956
here, and you don't need it
if you use something like this

00:06:34.096 --> 00:06:38.076
MC-Porter tool. And when I say use,
I mean I'm

00:06:38.096 --> 00:06:42.056
telling (laughs) the AI how to invoke this
MC-Porter tool on

00:06:42.116 --> 00:06:45.676
the fly when it wants to actually work
with the MCP so that

00:06:46.016 --> 00:06:49.776
this is not something
that needs to be installed

00:06:49.816 --> 00:06:53.716
window. So, you get the idea.
It's really minimal and lean,

00:06:53.736 --> 00:06:57.326
entire, uh,
story or the main thing of this Pye

00:06:57.476 --> 00:07:01.125
coding agent. I already mentioned it,
one other

00:07:01.316 --> 00:07:04.945
great thing about this agent, though,
is its extensibility, and that's not

00:07:05.076 --> 00:07:08.956
just skills. It is first and foremost,
I think,

00:07:09.016 --> 00:07:12.716
extensions.
And the idea behind extensions is

00:07:12.796 --> 00:07:16.316
coding agent has, uh,
first-party support for

00:07:16.396 --> 00:07:20.076
extending it,
for hooking into different parts of the

00:07:20.156 --> 00:07:23.776
agent,
hooking into different steps of the

00:07:23.876 --> 00:07:27.656
loop, so when the agent is working,
and allowing you to do

00:07:27.736 --> 00:07:31.726
all kinds of stuff
and extending this agent in all kinds

00:07:31.776 --> 00:07:35.316
of way. And you could, for example,
add MCP support if you

00:07:35.436 --> 00:07:39.296
wanted to. Now,
I got a bunch of extensions, uh,

00:07:39.336 --> 00:07:42.576
here. For example,
I added a plan mode through an extension.

00:07:42.616 --> 00:07:46.496
You can do that. Uh, there
is no plan mode built in by default,

00:07:46.516 --> 00:07:50.376
but it's so extensible
that you can add one that blocks the

00:07:50.436 --> 00:07:54.326
agent from using write or edit tools
if it's still in,

00:07:54.436 --> 00:07:58.076
um, plan mode. It-
this extension allows you to set up a

00:07:58.136 --> 00:08:01.536
shortcut that allows you to switch into
that plan mode.

00:08:01.556 --> 00:08:05.516
It allows you to update the UI,
the terminal UI, to show the

00:08:05.576 --> 00:08:09.036
user that you're in plan mode.
You can also add extra

00:08:09.196 --> 00:08:12.986
slash commands, like, uh, slash plan,
which switches me in

00:08:13.036 --> 00:08:16.996
plan mode, gives me this indicator here,
and now, for example, certain tools

00:08:17.016 --> 00:08:20.616
would be, uh, blocked,
and I can switch out of it again.

00:08:20.676 --> 00:08:24.396
So that's the kind of stuff you can do
with extensions, and there also is

00:08:24.496 --> 00:08:28.486
an kind of official extensions
marketplace, because this

00:08:28.516 --> 00:08:32.416
Pye agent also has the idea of allowing
you to package up

00:08:32.496 --> 00:08:35.376
your extensions or skills
and share them with others.

00:08:35.386 --> 00:08:38.846
And other people, like you and me,
we can install those packages to,

00:08:38.856 --> 00:08:41.126
install extensions built by other people.

00:08:41.126 --> 00:08:44.956
And there are things like sub-agents,
which you can add, uh, through

00:08:45.436 --> 00:08:49.336
a package that includes an extension for
adding the sub-agents, or

00:08:49.416 --> 00:08:53.216
the web access package, which is great,
which gives the agent

00:08:53.376 --> 00:08:57.136
extra tools for doing web research
and fetching website

00:08:57.256 --> 00:09:00.016
content efficiently. So, you get the idea.

00:09:00.056 --> 00:09:03.856
It's really extensible.
You get a very minimal core,

00:09:03.896 --> 00:09:07.716
extend it in any way you want,
add any skills and any extensions you

00:09:07.776 --> 00:09:11.156
want, and that is, uh, on its own, already

00:09:11.256 --> 00:09:14.796
really interesting, because of course,
with Cloud Code and with

00:09:14.896 --> 00:09:18.416
Codex and all these other tools,
you get pre-built

00:09:19.296 --> 00:09:22.856
tools that are way more powerful out of
the box,

00:09:23.436 --> 00:09:26.996
but also less extensible. With Pye,
it's the

00:09:27.096 --> 00:09:30.736
opposite idea. You get a minimal core,
and you can then

00:09:30.776 --> 00:09:32.896
convert it into anything you want.

00:09:32.916 --> 00:09:36.396
And you can do that globally,
but also on a per-project basis,

00:09:36.676 --> 00:09:40.456
because all these skills,
all these extensions can be installed

00:09:40.576 --> 00:09:43.596
globally or per project, and
that makes it so

00:09:43.676 --> 00:09:47.156
versatile,
and that's why it might be worth a look.

00:09:47.256 --> 00:09:51.236
I've been using it over the past weeks in
addition to Cloud Code and Codex.

00:09:51.256 --> 00:09:55.036
I'm switching all the time, uh,
also because these tools are evolving so

00:09:55.156 --> 00:09:59.016
quickly, and I really like Pye. Now,
here's

00:09:59.076 --> 00:10:02.936
the interesting thing, though. You
are not limited to

00:10:03.076 --> 00:10:06.896
just using Pye for coding. It is

00:10:06.976 --> 00:10:10.616
called a, a coding agent, and that is

00:10:10.696 --> 00:10:14.636
first and foremost what you will probably
use it for, and what I've

00:10:14.696 --> 00:10:18.396
been using it for, but that
is not something you're limited to.

00:10:18.436 --> 00:10:22.396
So for example,
I did install the web access package here,

00:10:22.496 --> 00:10:26.336
uh,
and wired that up to my Gemini API key to

00:10:26.356 --> 00:10:30.136
this Pye agent, uh, full access to, to web

00:10:30.216 --> 00:10:34.056
research based on the Gemini API,
and therefore, I could run

00:10:34.096 --> 00:10:37.496
this agent outside of any project,
outside of any coding project.

00:10:37.505 --> 00:10:41.356
And I could give my agent a task like
this: Do some research on the

00:10:41.396 --> 00:10:45.386
last seven days of the Apple
and NVIDIA stocks, fetch their prices, and

00:10:45.476 --> 00:10:48.716
do an analysis on their seven-day
performances.

00:10:48.736 --> 00:10:52.236
And if I do that, it'll go ahead and do

00:10:52.296 --> 00:10:55.436
that, and it'll figure out a way of

00:10:56.136 --> 00:10:59.396
fetching price data for these stocks.

00:10:59.436 --> 00:11:02.776
It will do a, a web search,
maybe visit their

00:11:02.876 --> 00:11:06.696
investor relation pages, we'll see,
and it will

00:11:06.776 --> 00:11:09.776
then also, of course, do the actual

00:11:09.916 --> 00:11:13.596
calculations, uh,
spin up a temporary script

00:11:13.636 --> 00:11:17.476
We'll see what it does. For example, here,
it activated a web

00:11:17.536 --> 00:11:21.396
research skill I added where I give it
more details on how it should conduct

00:11:21.436 --> 00:11:24.496
web research,
and then it tries to do that.

00:11:24.536 --> 00:11:28.486
Now, facing a problem here,
because I don't have Python installed, or

00:11:28.576 --> 00:11:32.316
not the Python executable like this,
it would have been python3, and it

00:11:32.376 --> 00:11:36.316
figured that out too,
and then wrote a script where it,

00:11:36.436 --> 00:11:40.136
um, well,
fetched some data from a website with help

00:11:40.236 --> 00:11:44.196
temporary script, which it executed here,
and looks like it got some

00:11:44.396 --> 00:11:48.216
stock prices here.
And then it will very likely also

00:11:48.236 --> 00:11:51.576
write a little script that allows it to do

00:11:51.636 --> 00:11:55.276
calculations based on that and, uh,
calculate

00:11:55.336 --> 00:11:57.416
the, the movement in the stock price.

00:11:57.516 --> 00:12:01.396
And after a while of working
and doing a bunch of research on all kinds

00:12:01.456 --> 00:12:04.145
of things, including some news research,
it is

00:12:04.196 --> 00:12:08.036
done,
and it gives me the last seven days for

00:12:08.136 --> 00:12:12.016
Apple and NVIDIA,
showing me how their stocks developed over

00:12:12.076 --> 00:12:16.016
days.
Gives me some performance summaries here,

00:12:16.056 --> 00:12:19.516
it gives me some, uh, verbal analysis

00:12:19.616 --> 00:12:23.426
here, where it, uh,
kind of summarizes its results for

00:12:23.456 --> 00:12:27.208
me to read through them,
like an executive report.And all

00:12:27.328 --> 00:12:31.278
that was done by this PyCoding agent with
the extensions and skills I

00:12:31.308 --> 00:12:34.868
gave it, but nothing else.
No code from my side, no

00:12:34.968 --> 00:12:38.268
specific instructions
which sites to visit.

00:12:38.348 --> 00:12:42.308
It did that all on its own.
And you could absolutely

00:12:42.368 --> 00:12:46.038
do that with Claude Code or Codex too,
because in the end,

00:12:46.068 --> 00:12:49.748
these are all AI agents that have a-
a bunch of tools to get

00:12:49.828 --> 00:12:53.788
stuff done,
and whilst they're primarily built for

00:12:53.828 --> 00:12:57.608
can, of course,
kind of abuse them to do all kinds of

00:12:57.668 --> 00:13:01.508
because in the end, of course,
this task also involved fetching some

00:13:01.548 --> 00:13:04.968
websites and writing some scripts,
which is very similar to coding

00:13:05.048 --> 00:13:08.938
projects where you also might want it to
fetch some docs and write some

00:13:09.028 --> 00:13:12.698
code, right? So,
it can do a bunch of other things as well.

00:13:12.728 --> 00:13:16.628
The reason why Py, in my opinion,
is a bit better for tasks like this

00:13:16.848 --> 00:13:20.548
than maybe Codex or Claude, is
that it has this minimal core and

00:13:20.628 --> 00:13:24.508
can be extended to be exactly the tool you
want it to be,

00:13:24.588 --> 00:13:27.388
even on a per project basis
if you want to.

00:13:27.428 --> 00:13:31.318
So,
you could have one project on your system

00:13:31.328 --> 00:13:35.208
another project, uh, that has,
I don't know, a- a stocks

00:13:35.328 --> 00:13:39.128
research expert, and a third project
that has a totally different,

00:13:39.228 --> 00:13:43.028
uh, expert,
an expert for analyzing your system

00:13:43.128 --> 00:13:45.928
utilization, where... I don't know.
Anything like that.

00:13:45.948 --> 00:13:49.868
And that's also the reason, probably,
why OpenClaw

00:13:50.108 --> 00:13:53.748
is using Py internally. So, here,
I'm on Deep Wiki for the

00:13:53.808 --> 00:13:57.668
OpenClaw repository.
In case you don't know it,

00:13:57.728 --> 00:13:59.608
learning more about GitHub repositories.

00:13:59.648 --> 00:14:03.608
It analyzes them and then gives you, like,
a on-the-fly created documentation

00:14:03.628 --> 00:14:07.268
based on the code it sees there,
and you can also chat, uh, with the

00:14:07.328 --> 00:14:11.168
repository, so to say. And here,
I could ask, "Is OpenClaw using the

00:14:11.188 --> 00:14:15.028
PyCoding agent internally? If yes,
how?" And it will analyze

00:14:15.038 --> 00:14:18.608
that code, which it has already loaded,
and it tells me, "Yes,

00:14:18.648 --> 00:14:22.238
OpenClaw is using the PyCoding agent,"
and it then tells me how

00:14:22.328 --> 00:14:25.808
exactly that is implemented. So yeah,
that's the

00:14:25.828 --> 00:14:29.588
PyCoding agent,
and I just felt like sharing it.

00:14:29.598 --> 00:14:32.888
Again, not because, uh,
I'm earning anything off that.

00:14:33.468 --> 00:14:35.008
Don't have a course, have nothing.

00:14:35.018 --> 00:14:38.788
But it is a great tool, especially
if you're

00:14:39.268 --> 00:14:42.848
planning or if you wanna play around with
agents for

00:14:42.908 --> 00:14:46.748
noncoding tasks, but of course,
just to be very clear about this too,

00:14:46.848 --> 00:14:49.368
also for coding tasks. It can do both.

00:14:49.408 --> 00:14:53.348
It's a very versatile AI agent.
You can even build

00:14:53.408 --> 00:14:57.208
your own tools on top of them,
as you'll see with OpenClaw,

00:14:57.288 --> 00:15:01.128
all these things with Codex too,
but again, the minimal core really is

00:15:01.188 --> 00:15:05.008
amazing here. So, in addition to Codex or

00:15:05.088 --> 00:15:08.848
Claude Code, or instead of them,
this might be worth a look

00:15:09.008 --> 00:15:12.808
and, uh, yeah. It's something I have, uh,
had a lot of fun with over the

00:15:12.868 --> 00:15:16.628
last weeks,
and I'm excited to see where all this

00:15:16.888 --> 00:15:18.768
and what we can do with them in a year
from now.

00:15:18.808 --> 00:15:21.948
It's also a bit scary, I will say,
but also very, very

00:15:22.528 --> 00:15:24.408
interesting. A- a weird mixture