HomeVideos

Help AI Finally Understand You — in 13 Minutes

Now Playing

Help AI Finally Understand You — in 13 Minutes

Transcript

386 segments

0:00

Okay, today we're going to go over

0:01

something very, very simple and it has

0:03

to do with how you're talking to AI or

0:06

the information that you're giving AI.

0:08

Really, the words you're using will be

0:10

the important aspect. I'm going to keep

0:11

this pretty short, pretty simple, and

0:14

give you an example of basically showing

0:16

you that it really, really matters. This

0:18

will feel really remedial to a lot of

0:20

people, but hang on, you might actually

0:22

see something that you haven't quite

0:24

seen in action. It's just something that

0:25

you've intuited for now.

0:27

Okay, so what we're going to do is going

0:28

to go through a a simple example that I

0:30

show the classes that I teach all over

0:32

the place and it is kind of an

0:34

eye-opener for some people. So, let's

0:36

hang on. The real premise here is the

0:38

way you communicate with a model truly

0:41

matters. Now, a lot of us will say,

0:43

"Yeah, of course. Depending upon what

0:45

you say is what it does." But, I mean in

0:48

a really specific way. And also, I will

0:50

cover a little bit about those agent

0:52

files, the agents.md or claude.md

0:55

depending upon which agent you use to

0:57

better understand what's going on there,

1:00

when they're valuable, and really when

1:02

they're read. I know all of this sounds

1:04

kind of weird right now. Hang on, it's

1:07

going to be pretty quick. Let's dive

1:08

into Visual Studio Code so that I can

1:10

show you what I'm talking about. Okay,

1:12

very simply, what I'm going to do I've

1:14

created a folder called hello. I'm going

1:16

to open this folder

1:18

with Visual Studio Code. So, what I've

1:21

opened this project, the folder that we

1:23

saw, the hello folder, inside of Visual

1:25

Studio Code. The only reason is so that

1:27

we can see the files. I also came over

1:29

here and did new file. We have one

1:30

called data.txt. Inside of there, I said

1:33

the best color is purple. The reason I'm

1:35

doing this is imagine there's a bunch of

1:37

files over here with mixed information.

1:39

These are my notes. This is the stuff

1:41

that I'm trying to contextualize and we

1:43

come down here and we open Codex and we

1:46

simply ask Codex, "What is the best

1:49

color?" It tells me the best color for

1:52

most things is apparently deep teal. I

1:54

didn't know that. I thought it was

1:56

purple. Okay. So, what you're seeing

1:58

here is the fact that the system doesn't

2:02

know that you have files that have this

2:04

information in it, and they're not going

2:06

to go and read every single file inside

2:09

of your project. That's an important

2:11

detail for you to understand.

2:13

Secondarily, dependent upon how you talk

2:16

to this agent, it's very, very

2:18

important. So, let's create a new

2:19

context here, clean up, so that we have

2:21

a plain context and say, "Find the best

2:24

color." Okay. So, now we're talking

2:26

about verbs. I used the word find. Now,

2:29

find is obviously a very discrete verb

2:31

that's telling it something. It's kind

2:33

of an action that it can take. So, what

2:35

we expect is it will start looking

2:37

around inside of the system, and it will

2:40

find the data.txt file, it will look

2:42

inside of the data.txt file and tell us

2:44

purple. That one detail, what is the

2:47

best color versus find the best color,

2:49

how you use that word, what verbs you

2:52

use, those are incredibly important.

2:54

It's hard to describe how important

2:56

which word you use in your long

2:59

conversations and in your long intent

3:01

when you communicate to an

3:03

to a to an agent what it's going to do.

3:06

So, I know that sounds remedial, but if

3:08

English is your second language, or if

3:10

you find that you can't often describe

3:12

yourself all that well, then it's going

3:15

to be a little bit more difficult to get

3:16

the best out of this. So, number one tip

3:18

that I have for you, this is really the

3:20

best tip I've got, is pay attention

3:22

to the way you're describing things and

3:24

asking for things, and try to get a

3:25

little better. This is a learnable

3:27

skill. This absolutely can make a

3:29

difference. It will absolutely make a

3:31

difference using AI, but it'll make a

3:33

difference everywhere. So, your

3:34

communicative capability will, of

3:36

course, increase if you're paying

3:37

attention to what would be the verb I

3:40

would use here. What's a better Of

3:41

course, talk to your agent if you're

3:43

trying to get better at that. If you're

3:44

not getting the results back that you

3:46

want, and you think you asked for it

3:47

correctly, tell the agent, "I was

3:49

expecting you to do this and this and

3:50

this. How could I have asked for that?

3:53

And the agent will tell you, but pay

3:55

attention somewhat to the language. I

3:57

have a second tip here. It's kind of be

4:00

more verbose. If you're trying to say,

4:02

let's imagine we did it a different way.

4:05

And I'm going to use um kind of

4:06

speech-to-text here. So, I'm going to

4:08

turn on the speech-to-text. Hey, I have

4:10

files here that describe the best color.

4:13

What is the best color? So, now I'm just

4:16

giving it more context, more kind of

4:17

intent. I'm telling it what I believe is

4:20

inside of the project that has it has

4:22

access to. And it's very likely then to

4:25

say, "Oh, I see. You think inside of the

4:27

files I might find that information."

4:29

So, you might say, "In all of my

4:31

meetings, I think I asked a couple

4:33

questions of Jane. Can you find those?"

4:36

It's much more likely to give you that

4:38

answer back rather than just saying,

4:40

"What did I ask Jane?" So, those two

4:43

ways of asking that exact same question,

4:45

you're orienting the system. So, my

4:46

advice is talk. I cover this quite a bit

4:50

on my channel. Talk to your agent. Don't

4:52

type to your agent. Because if you type,

4:54

you're going to edit things and you're

4:55

going to make it very succinct and think

4:57

that's better, but you have to choose

4:59

the right words when you're typing. If

5:01

you're talking, it's much more likely

5:03

that you'll hit the kind of target area

5:05

that you're thinking the agent should

5:07

take as well. You don't need to tell it

5:09

what to do. You shouldn't say, "Read the

5:11

data.txt file and tell me what Well,

5:14

that will work perfectly if you know the

5:16

only place the best color is listed is

5:19

inside of data.txt. Fantastic. Then it

5:21

won't do a a broad search. It'll do a

5:23

narrow search. So, even that is a very

5:25

good clue. But if you're not really sure

5:27

and you're kind of thinking, you know,

5:29

somewhere in my data here, I described

5:31

the best color. Can you tell me what it

5:32

is? That will work as well. So, how you

5:35

communicate here is really, really

5:37

important. Okay, with that, I want to

5:39

add one more thing to this. I know this

5:41

is a pretty simple one. I want to talk

5:42

about one other version of how you talk

5:45

to your agent. It is kind of using these

5:48

agent files. If you haven't heard of an

5:50

agent file, we've called them many

5:51

things in the past, the memory file, the

5:53

Claude file, the Gemini file. All these

5:56

are kind of these main files that are

5:58

read when you start a conversation. So,

6:00

let me describe that to you. When you

6:02

start a new conversation in one of these

6:04

agents, the first thing those agents

6:06

look for is their memory file or their

6:09

agents file. Now, in something like

6:11

Codex or Cursor or Open Code or those

6:15

kinds of things, they're looking for a

6:16

file called agents.md in the root folder

6:20

project that you're that you're dealing

6:21

with. If you happen to be using Claude

6:23

Code, it's still the one that uses

6:25

Claude.md.

6:26

And if you're using something like

6:28

antigravity, then they're using, I

6:31

believe, agents.md by default these

6:33

days, but you can still use a Gemini.md

6:35

as well. Very complicated, I know. The

6:39

concept really is there's one file that

6:41

is kind of the first thing that's that's

6:43

brought in to a conversation. And the

6:45

way to describe this is let's drop that

6:47

back down into Visual Studio Code, and

6:50

I'll show you what it looks like. But I

6:51

want to tell you up front what's really

6:54

happening that you can't see, and you

6:55

can't see it intentionally. They're

6:56

hiding it only because it would be

6:58

confusing if they showed it to you.

7:00

When you do that {slash} new or start a

7:02

new conversation or open the agent the

7:04

first time, the first thing it does is

7:06

it takes the contents of that agents

7:08

file and sends it into the conversation

7:11

as if you would just typed it yourself.

7:13

So, the first thing it does is it

7:14

precedes the application or the

7:16

conversation with that information. It's

7:18

the best way to perceive of it is if I

7:20

wanted to

7:21

my system to know something, I would

7:23

type it out. Whatever I put in that

7:25

file, I'm always typing out at the

7:27

beginning of a conversation, so all

7:29

conversations have it. That's really the

7:31

cornerstone of what this file does. All

7:33

right, let's dive in and take a look at

7:34

this. We are in Visual Studio Code once

7:36

again, so easy. I do not yet have an

7:39

agents file. We're going to start an

7:41

agent here. We're going to go straight

7:42

into Codex and we're going to say, "What

7:45

is the best number?" So, at the

7:47

beginning of this conversation, we would

7:49

throw whatever's in that agent's file at

7:51

the top, but we don't have an agent's

7:53

file yet. So, let's add an agent's file

7:56

here and put in the best number is 1 2 3

7:59

and now ask that question one more time

8:03

and it picks some random number that it

8:05

Well, maybe not random, then maybe this

8:06

is its favorite number, 37. So, I wanted

8:09

to show you this. We added the agent's

8:11

file after the conversation had started

8:14

to just kind of show you that the

8:17

agent's file is thrown at the top of a

8:19

conversation that's new. If the If the

8:21

conversation's already happening and you

8:23

put something in the agent's file or you

8:24

create it, it won't sneak into the

8:27

conversation. So, let's create a new

8:29

conversation here. So, that's just like

8:31

we restarted Codex and ask the same

8:34

question and immediately responds with 1

8:37

2 3 because actually, you can imagine

8:40

what we just typed to the agent.

8:41

Everything that was sent to the LLM was,

8:44

"The best number is 1 2 3. What is the

8:45

best number?" And of course, the LLM

8:47

didn't have to do anything but 1 2 3.

8:49

So, it sent that right back. So, that's

8:52

what's really going on. Anything inside

8:53

of this agent's file is is kind of

8:56

prefixing everything inside of the

8:58

conversation. A new conversation gets

9:00

the agent's file. I just want to lock

9:02

that in because it's really meaningful.

9:03

The reason this file is so valuable is

9:06

if you keep doing certain things in a

9:08

project. The reason that I teach the

9:10

folder project as it is is each project

9:13

or each folder is kind of its own idea.

9:16

I was having a meeting yesterday about

9:18

XYZ. That might be its own folder or a

9:20

project that we've been working on and

9:22

we're going to have 10 meetings about.

9:23

I'm going to put all the meeting notes

9:25

here. That might be a folder. Or I'm

9:27

taking a trip this weekend to a new

9:29

location. I'm going to try out a new

9:30

hotel. I kind of want to know what's

9:32

near it. Those kinds of things. That

9:33

might be a folder. Each one of those has

9:36

its own real unique kind of localized

9:38

context, but you might not want to ask

9:41

the same things again and again. The

9:42

agents file is there as kind of uh

9:45

preceding

9:47

what you might type in so that the

9:49

system always understands what you want.

9:51

So, if I went to our agents file and

9:54

said, "Always precede all responses that

9:57

you give me with a robot emoji." And we

10:00

hit save. Now, of course, if we say

10:02

hello here, we don't expect that robot

10:04

emoji as we've just learned, but if we

10:07

say hello in a new context, then what we

10:10

anticipate is we will get the robot

10:11

emoji back. So, as you can imagine, you

10:14

start putting things in here. All of my

10:16

files that deal with my taxes are in

10:18

this folder. All of the information that

10:19

you might need to know about for Y might

10:21

be found over there. What I like to do

10:23

most in this environment is X. I always

10:26

commit after every change that we make

10:28

to I always run tests. All of those

10:30

kinds of things is what really work well

10:32

in this agents file. I don't advise you

10:34

clutter it with literally everything cuz

10:37

what you need to think about is, "What

10:39

do I really need the system to be able

10:41

to do or the workflow that I expect it

10:43

to do all of the time? Or you can put

10:46

something in like, "Every time I ask you

10:48

to commit, here's the steps I want you

10:50

to take." Now, that actually would be

10:52

probably better in a

10:54

local skill for this this folder or

10:57

maybe a command or something like that,

10:58

but it works perfectly fine in your

11:01

agents file. So, your agents file is the

11:02

first place for you to start exploring

11:05

how to systematize conversations or the

11:08

workflow inside of a project or even

11:10

tools. Here is a tool that I wrote. It's

11:12

this this this.sh. Use it if you ever

11:15

need to look up X, Y, and Z. That would

11:17

orient every conversation. If you ever

11:19

need to use something that that needs

11:21

that information, it will use that tool.

11:23

So, just it's a really useful useful uh

11:26

pattern to get used to, but

11:28

understanding why it's there and when

11:30

you can edit it. By the way, uh you can

11:32

say, "Remember that I really love

11:35

running and I hate sleeping. Put that in

11:39

my agent's file." And of course, what we

11:41

expect to see is it will go in, it will

11:44

find the agent's file itself, and it

11:46

says, "You really love running and hate

11:48

sleeping." And now, here's something

11:50

that I'll show you. Let's say, "I want

11:53

to do an activity right now. What should

11:54

I do?" Now, because we told the agent to

11:58

send that information, we also have that

12:01

information in our context. So, if

12:03

you're updating it locally and you're

12:04

telling the agent to update it, then

12:06

it'll already be in your context. You

12:08

don't have to start a new conversation

12:10

every time to get that information.

12:12

Seems obvious, just want to call that

12:13

out. But this agent's file is really a

12:15

really cool unlock. Okay, I just wanted

12:18

to show a few of the very, very simple

12:20

principles. How you communicate to your

12:22

agent truly matters, and it's one of the

12:24

reasons I highly advise talking instead

12:26

of typing, because you will put down a

12:29

context the agent has more purchase on,

12:31

has more chance to understand what

12:33

you're trying to ask for or do, or what

12:35

your intention is. That's the intent.

12:37

I'll shoot a whole video on intent. Hang

12:39

around if you want to see that. Um but

12:41

also the agent's file, or your kind of

12:44

agent's or Claude or Gemini or whatever

12:46

file that you might need, precedes all

12:48

of your conversation as if you had typed

12:51

it in. So, there's not any real magic

12:52

going on, it's just part of that

12:54

conversational text, but you just don't

12:56

see it at the top of your conversation.

12:58

In fact, I don't know what it was I

13:00

think Codex for a while was showing

13:02

exactly what's in that file at the top,

13:04

but I think it was confusing to a bunch

13:05

of people cuz usually it would be a

13:06

whole bunch of information about how to

13:08

run the project, how to build the

13:10

project, all this stuff that people

13:11

didn't think they

13:13

they needed to send to the model, they

13:15

were sending. It also will use up some

13:17

of your context, so keep it small and

13:20

only put the things in there that are

13:21

really useful. Figure out other ways,

13:23

like create another file called running

13:26

my system, and then you can say, "Hey,

13:28

use running my system to do whatever I

13:30

might need to do." That is something I

13:32

call promptware. Again, a different

13:34

video that I'm going to shoot. Hope this

13:36

helped. Thanks for coming along for the

13:38

ride on this one and I'll see you in the

13:39

next one.

Interactive Summary

This video explains the importance of how users communicate with AI models to achieve better results. It highlights that the choice of verbs, the level of detail, and the medium of communication (speaking vs. typing) significantly affect an agent's performance. Additionally, it introduces 'agent files' (like agents.md or claude.md), which serve as system-level context that precedes any new conversation, allowing users to define persistent instructions, preferences, or workflows for specific projects.

Suggested questions

3 ready-made prompts