YouTube2Text

Permissions & OpenClaw: Claude Code for Economists w/ P. Goldsmith-Pinkham | Markus Academy | 162-7 — Transcript

by Markus' Academy · 8,715 words · 1,395 segments · language en · Watch on YouTube

Full transcript

  1. 0:08Welcome back everybody. Thanks for
  2. 0:10joining us for another video on how to
  3. 0:13use Claude AI for applied economists.
  4. 0:17With Paul Goldsmith Pinkham. Hey Paul.
  5. 0:20Hey.
  6. 0:24So today we will actually talk about
  7. 0:26permissions and open Claude.
  8. 0:28Paul, the floor is yours. Tell us about
  9. 0:30it.
  10. 0:30>> Okay, great.
  11. 0:31All right.
  12. 0:33So we're kind of
  13. 0:35we're really starting to think about
  14. 0:38how to use
  15. 0:41Claude code more and more effectively.
  16. 0:44Um
  17. 0:45and often you one of the things that
  18. 0:47came up Marcus as we were doing these
  19. 0:49videos before is how we kind of had to
  20. 0:51say yes a lot to Claude and
  21. 0:53one of the things that as we be these
  22. 0:56tools get more and more powerful and
  23. 0:57have a lot of really kind of important
  24. 1:00um guiderails is that there have been
  25. 1:02ways to kind of give more and more power
  26. 1:04to Claude code and other LLMs.
  27. 1:07We're going to talk about today is sort
  28. 1:08of depending on your risk tolerance and
  29. 1:10your preferences, how can you kind of um
  30. 1:13give more power to these these agentic
  31. 1:15tools without losing control.
  32. 1:18And so why does this matter?
  33. 1:21So
  34. 1:22we're we're really going to touch on
  35. 1:24this fact that
  36. 1:26you know, these LLMs when they're just
  37. 1:27chatbots, right Marcus? They're like not
  38. 1:30there's nothing inherently dangerous
  39. 1:32about them unless it's like you know,
  40. 1:34the famous expression in English is like
  41. 1:36um
  42. 1:37you know,
  43. 1:38sticks and stones can break my bones but
  44. 1:40words can't hurt me, right? If the LLM
  45. 1:41is just talking, it's not going to
  46. 1:43actually do any damage to my computer.
  47. 1:46But the reason they're powerful, right?
  48. 1:47Is that they can do they can act, right?
  49. 1:49They can do things, they can read your
  50. 1:51files, they can run commands, they can
  51. 1:52install things, they can edit, delete
  52. 1:54things, um they can even go to the web
  53. 1:57and do all sorts of things. And so,
  54. 1:59they're really powerful. This is what
  55. 2:00makes them, um, agents. They're not
  56. 2:03just, uh, LLMs.
  57. 2:04>> They're not robots yet. They're not
  58. 2:06robots yet. No, that and this is really
  59. 2:08there's a really kind of, um,
  60. 2:10interesting post how someone was talking
  61. 2:12about kind of the What's amazing about
  62. 2:13AI, right, is it makes things so
  63. 2:15frictionless in the virtual world.
  64. 2:18But if anything, real-world frictions
  65. 2:20are just as strong as they've ever been
  66. 2:22or if not stronger.
  67. 2:24So,
  68. 2:25what we're going to do here as we get
  69. 2:28more and more complex things, you know,
  70. 2:29we've talked about, oh, we just let it
  71. 2:31do X, Y, and Z.
  72. 2:33You're going to want to build, you know,
  73. 2:35customization in terms of skills like we
  74. 2:37talked about. You have processes,
  75. 2:39automated things. We haven't even talked
  76. 2:40about automation yet.
  77. 2:42But then, you know, you want to give
  78. 2:44permissions to allow more autonomy. And
  79. 2:46then, of course, the real challenge is
  80. 2:47how do you do that and manage risk? It's
  81. 2:48the same This is a classic
  82. 2:50principal-agent problem, right? The
  83. 2:51problem is is that our agents don't
  84. 2:53respond to incentives in the same way as
  85. 2:55we would expect.
  86. 2:57So, what we're going to talk about today
  87. 2:58is we're going to talk about What are
  88. 3:00the types of permissions? So, folders
  89. 3:02and tools. We're going to talk about
  90. 3:04this auto mode, which is new for Claude.
  91. 3:06And then, YOLO mode, which is kind of
  92. 3:08what many of these other things are. And
  93. 3:10then, YOLO's You Only Live Once.
  94. 3:14Then we're going to talk about how you
  95. 3:15can use containers to make sandboxes for
  96. 3:17these agents. And what that does is
  97. 3:19basically gives control over what the
  98. 3:20agents have permissions to do.
  99. 3:23Then we'll talk about data and what
  100. 3:24should you do in these, um, settings
  101. 3:26where
  102. 3:28you have real concerns about either the
  103. 3:29data or what you want access to. And
  104. 3:31then, I want to briefly talk about how
  105. 3:33this sort of, um,
  106. 3:35sandboxing really opens up these things,
  107. 3:38uh, these
  108. 3:40autonomous agents that were in the news
  109. 3:42a couple of months ago that people are
  110. 3:43probably familiar with. They're called
  111. 3:44Open Claw. And I want to kind of show
  112. 3:46you how you can even use that to think
  113. 3:48about having an agent that works as an
  114. 3:50RA on a project. And I'll kind of, uh,
  115. 3:52I'll introduce you to the agent that I
  116. 3:54have that does this.
  117. 3:56So,
  118. 3:57let's get started.
  119. 3:58Um the first thing to kind of highlight
  120. 4:00that I want you to keep in the back of
  121. 4:02your mind that's really kind of
  122. 4:03important is that there's there's really
  123. 4:04two types of permissions for these
  124. 4:06agents.
  125. 4:07There's one which is the kind of version
  126. 4:10that I think is easy to think about,
  127. 4:12which is folder access. I mean, that's a
  128. 4:15version of you implicitly think about
  129. 4:17this sometimes when you think about
  130. 4:18what's in Dropbox or what's not in
  131. 4:19Dropbox or what's on Google Drive or
  132. 4:21what's not on Google Drive.
  133. 4:23Um
  134. 4:25it's a question of what files and
  135. 4:27directories can Claude
  136. 4:29read and modify.
  137. 4:31So,
  138. 4:33um in parlance of computer speak, it
  139. 4:35would be really there's the ability to
  140. 4:37read, write, and execute on files. And
  141. 4:41reading files in some ways is fine cuz
  142. 4:43what's nice is what you're most worried
  143. 4:46about probably
  144. 4:47>> [snorts]
  145. 4:48>> rule number one is you don't want all
  146. 4:49your stuff deleted.
  147. 4:51So, if you have read access, that's very
  148. 4:52that's very convenient. If you can
  149. 4:54modify that,
  150. 4:55um but sometimes you may not want it to
  151. 4:57read things because it has like secret
  152. 4:59passwords or it has things that you
  153. 5:01don't want to access to and people have
  154. 5:02different preferences. So, that's folder
  155. 5:04access.
  156. 5:06Um
  157. 5:06and one way to think about folders too
  158. 5:08is that like the internet in some ways
  159. 5:09is a folder, right? Like you may not
  160. 5:11want it to go to the internet.
  161. 5:14Um the second is tool access. And so,
  162. 5:18tools are what make LLM's agents. Well,
  163. 5:21the more tools it has, the more powerful
  164. 5:23it is.
  165. 5:24The challenge is is that as you give it
  166. 5:26more and more sophisticated tools, it
  167. 5:28becomes really good at getting around
  168. 5:30things that it may or may not want. And
  169. 5:34uh
  170. 5:35Marcus, this is kind of a uh throwback
  171. 5:37to one of our first videos, but I don't
  172. 5:38know if you remember that
  173. 5:40in one of our first videos, we were
  174. 5:42doing this thing about pulling data.
  175. 5:44Yes. And at the very beginning,
  176. 5:46it said, "Oh, well, I need to go and
  177. 5:48look like what's in the parent
  178. 5:49directories." And it knew that it needed
  179. 5:52to do that. It sent a sub agent to do
  180. 5:54this.
  181. 5:55And then I kept not giving it permission
  182. 5:57to look. At first it tried to use the LS
  183. 5:59command to do this, and then it used
  184. 6:01find, and I kept saying, "No, don't do
  185. 6:03that like no, you can't have permission
  186. 6:05to do that." But rather than not do it,
  187. 6:09it just kept trying a new tool to do it.
  188. 6:11So, there's an element to which these
  189. 6:12things are extraordinarily persistent.
  190. 6:15And
  191. 6:17even if it unless you really make it so
  192. 6:19that it cannot access a file, it may
  193. 6:21find another way to get at it. It's like
  194. 6:23a very clever
  195. 6:25child in some ways, right? Like a you
  196. 6:27know, if you say to a child, "Don't do
  197. 6:29X." And it finds another way to do it,
  198. 6:31it it will
  199. 6:33it will think it's clever to do it this
  200. 6:35way. It like did what you wanted.
  201. 6:37Um
  202. 6:39So, it's something to keep in the back
  203. 6:41of your mind. Tools and folders, if you
  204. 6:43get both and all of a sudden you are
  205. 6:45you're an agent, right? So,
  206. 6:48the types of mode that we've been
  207. 6:49working in. So, we've done a lot in
  208. 6:51manual. So, manual mode is you're
  209. 6:53approving every action one by one. Often
  210. 6:56you maybe might give group permissions
  211. 6:57of what's there. Um
  212. 7:00Claude keeps track of of folders that
  213. 7:02you've said that it's okay for it to
  214. 7:03keep to access.
  215. 7:06Um
  216. 7:07but manual mode is kind of
  217. 7:09by far the most um careful.
  218. 7:13But of course, and we'll talk about
  219. 7:14this, is that
  220. 7:16there's a little bit in which you start
  221. 7:17to ignore what you're giving permission
  222. 7:19to.
  223. 7:20Auto mode is actually Claude code
  224. 7:22specific and it's very um powerful. It's
  225. 7:25what I sort of use as my default now.
  226. 7:28Where Claude is doesn't need to ask for
  227. 7:30permission, um but
  228. 7:33it actually has a sense of what are the
  229. 7:35types of things it should ask permission
  230. 7:36for.
  231. 7:37Now, this is not perfect. You're really
  232. 7:39relying on what Claude code has
  233. 7:40implemented, but it's it Anthropic has
  234. 7:43so much data on the types of tasks that
  235. 7:47do or do not require permission that
  236. 7:48that's kind of built in.
  237. 7:50Um like overriding files, removing files
  238. 7:54would be a good example of something
  239. 7:56where it would ask for for permission.
  240. 7:58Uh YOLO mode, which is in Claude would
  241. 8:00be called dangerously skip permissions,
  242. 8:02is basically does it it does the task.
  243. 8:06You know, it's fully autonomous.
  244. 8:08Um which is great because then you just
  245. 8:11tell it what to do and it goes, but of
  246. 8:13course it can end up with a totally
  247. 8:15meaningless result. And so
  248. 8:17one way as an economist to think about
  249. 8:19this is that this is really just
  250. 8:20choosing when you as the as the
  251. 8:22principal are choosing to think, right?
  252. 8:25Ideally, if you know that the person is
  253. 8:26going to run YOLO that you're going to
  254. 8:28put a lot more ex ante thinking in
  255. 8:31before, whereas with manual you can kind
  256. 8:33of do it on the fly.
  257. 8:35Um
  258. 8:37so I think the case that I want to
  259. 8:41I'm going to use this as a platform to
  260. 8:42say this is that
  261. 8:44often when I talk to individuals about
  262. 8:46using Claude there's a view of like,
  263. 8:48"Oh, I'm worried about permissions and
  264. 8:49people having access." And so people I
  265. 8:51think feel comfortable with manual, but
  266. 8:55most folks end up getting very quickly
  267. 8:57feeling comfortable just saying yes to
  268. 8:59things very quickly.
  269. 9:01And so there's an element to which
  270. 9:04there's a false sense of insecurity
  271. 9:06potentially of like giving approval
  272. 9:07versus not. Mario Zechner, who is who is
  273. 9:10what who is created this um coding
  274. 9:11harness called pie that is is very
  275. 9:14popular and very successful.
  276. 9:16Um
  277. 9:17you know, he in a talk said, "If you
  278. 9:18look at the security measures that are
  279. 9:20in place, they're mostly security
  280. 9:21theater. As soon as an agent can write
  281. 9:23code and run code, it's pretty much game
  282. 9:25over. The core issue remains of an LM
  283. 9:27has access to tools that can read
  284. 9:28private data and make network requests,
  285. 9:30you know, you're playing whack-a-mole."
  286. 9:33And so having a lot more ex ante care
  287. 9:36is really important. Deciding what it
  288. 9:38access to and what can it do.
  289. 9:41So,
  290. 9:42what I'm going to advocate is not do I
  291. 9:44trust it, is more about, you know,
  292. 9:48which folders can it see? What can it
  293. 9:49do? Can it write read and write? Are
  294. 9:51there secrets or credentials? And
  295. 9:53understanding that if I give it
  296. 9:55permission to do this,
  297. 9:57it may screw stuff up. So, like the
  298. 9:59worst case making sure that the worst
  299. 10:00case scenario is not going to to happen.
  300. 10:04Right? So, there's some famous So, go
  301. 10:06ahead, Marcus.
  302. 10:07Can Can it also ask to always write a
  303. 10:08backup?
  304. 10:10Yeah. So, I mean, you can So, one thing
  305. 10:12that we do, right? And often one of the
  306. 10:14reasons why we like Dropbox, right? Is
  307. 10:15that Dropbox is backed up. Um a really
  308. 10:18important thing, too, is
  309. 10:20uh I haven't really advocated for it on
  310. 10:22here, but I think once you're doing
  311. 10:23software and writing that using um Git
  312. 10:27Git and GitHub can be really important
  313. 10:30because it's a it's an automatic way in
  314. 10:32which stuff is backed up, and these
  315. 10:33things are very good at it.
  316. 10:35And so, often people in academia sort of
  317. 10:37struggle with GitHub because there's a
  318. 10:39lot of learning curve The curve is
  319. 10:41basically flat now. It's very
  320. 10:43straightforward to learn how to use it.
  321. 10:45And that will deal with a lot of the
  322. 10:46backing up.
  323. 10:48Um
  324. 10:50So, you know,
  325. 10:51those are the things that um
  326. 10:54you want to be kind of aware of. I think
  327. 10:56we're going to talk about data later,
  328. 10:58like really kind of proprietary data or
  329. 11:00or, you know, PII data, then you want to
  330. 11:02just be very conscious of how you store
  331. 11:04it and you allow access to it.
  332. 11:07Um
  333. 11:09So, what what can you do? So, I'm going
  334. 11:11to I'm po- posing to you, Marcus, that
  335. 11:13we're economists.
  336. 11:15We have a view in how we want to
  337. 11:17structure things, and so the way that we
  338. 11:18should do this
  339. 11:20is we should think of this as an ex ante
  340. 11:22kind of problem where we're being
  341. 11:23sub-gamed where it's not it's, you know,
  342. 11:25there's some Bayesian equilibrium. We
  343. 11:27kind of know what the probabilities are
  344. 11:28where through our actions we can we can
  345. 11:30adjust probabilities. So, what do we do
  346. 11:32to adjust these? And I'm going to tell
  347. 11:34you some tools and how you can do that.
  348. 11:37What we're going to talk about is using
  349. 11:39containers
  350. 11:40to sand create sandbox workplaces. So,
  351. 11:43what that just means is you know,
  352. 11:44sandboxing is the literal idea of like
  353. 11:46what you put your kid.
  354. 11:47It's a place where you're going to allow
  355. 11:49it to do things and if it
  356. 11:51raises hell inside that sandbox, it's
  357. 11:53not going to be the end of the world. Um
  358. 11:56so, what it's going to do really a
  359. 11:57container what it is and I'll show you
  360. 11:59what this looks like in a second. A
  361. 12:01container
  362. 12:03is effectively a
  363. 12:06little computer that is going to sit
  364. 12:08inside of a computer. It's a what's
  365. 12:09called a virtual machine.
  366. 12:11And so, when you're inside this computer
  367. 12:14it's not going to see the file paths as
  368. 12:16you see it on your computer. It's going
  369. 12:18to see its own version of it and you can
  370. 12:20add
  371. 12:21uh whatever folders you think it needs
  372. 12:23access to either in read-write or just
  373. 12:25in read mode and you can give it
  374. 12:27whatever tools you want and you can
  375. 12:28allow it to have uh access to the
  376. 12:31internet or not.
  377. 12:33So, long as I give access to a certain
  378. 12:35folder, can I remove the access again?
  379. 12:38Can it forget?
  380. 12:38>> It can't. It doesn't understand. So, you
  381. 12:40can do that from the outside, but inside
  382. 12:42it is doesn't have access. It has no
  383. 12:44ability to mount or uh unmount things.
  384. 12:47Okay. Um so, it's very much like it's
  385. 12:50you know, um
  386. 12:52you think about it a little bit like
  387. 12:53these you know, these kids movies where
  388. 12:55there's a giant that puts a little
  389. 12:56person inside of a a toy toy house,
  390. 12:59right? The toy house is is the sandbox.
  391. 13:02It doesn't even but extending the
  392. 13:03metaphor, it has no sense of the outside
  393. 13:05world.
  394. 13:05>> Mhm. Um
  395. 13:07Now,
  396. 13:08it of course implicitly understands that
  397. 13:10it's inside a virtual machine, but this
  398. 13:11is what you're able to do.
  399. 13:13So, if you want to gain, you know, if
  400. 13:15you are risk averse and you want to give
  401. 13:17broad permissions, building the sandbox
  402. 13:19can be an extremely valuable way to do
  403. 13:20this. Um
  404. 13:23I just want to give you a list of the
  405. 13:24different ways that you can do this and
  406. 13:25then we're going to show I'm going to
  407. 13:26show you an example. So,
  408. 13:28you can build your own Docker yourself,
  409. 13:31you personally. So, Marcus, you could
  410. 13:32say, "This is the kind of thing that I
  411. 13:33wanted to have access to."
  412. 13:36Um that's the kind of simplest thing to
  413. 13:37do.
  414. 13:38>> and what's a Oh, Docker, sorry. Docker
  415. 13:39is a um is software. It's just the name
  416. 13:41of a a software program. It's a company
  417. 13:44that creates containers. It's a It's a
  418. 13:47one way to do containers. Um
  419. 13:49there are many different ways to do
  420. 13:50containers. Docker is a very popular
  421. 13:52one. Okay. Um
  422. 13:56I will say that I have not done this as
  423. 13:58much on Windows, but I know from for
  424. 14:02Linux and for um
  425. 14:04Mac OS X, this is very straightforward
  426. 14:06and very easy to do this.
  427. 14:07What I'll tell you is that So, there's
  428. 14:09these other programs, these three here,
  429. 14:11and I'll show you what they look like in
  430. 14:13a second, that are a little less um
  431. 14:15they're not the same thing as Dockers.
  432. 14:17What they really just do is they just
  433. 14:19limit access to certain things. They
  434. 14:21limit access to folders. But, they do
  435. 14:23this in a way that
  436. 14:25there's no way for the agent inside
  437. 14:28that's running to get around it um in
  438. 14:30terms of access.
  439. 14:33And then this last thing Dockers and and
  440. 14:35dev containers, you make black and the
  441. 14:38others are blue.
  442. 14:39>> Oh, it's just cuz I didn't link it, cuz
  443. 14:40these are these ones here, I'll show you
  444. 14:42an example actually. Uh So, let me
  445. 14:44let me show you an So, here's an example
  446. 14:46of what it looks like. This is a So,
  447. 14:48this is
  448. 14:50Can you zoom in a little bit? Yeah,
  449. 14:51yeah, yeah. Let's Let's So, this is a
  450. 14:53This is a Mac OS X program called Safe
  451. 14:56House, Agent Safe House.
  452. 14:58And the way that it works is
  453. 15:01um
  454. 15:02what Say you want to go YOLO, you want
  455. 15:03to go dangerously skip permissions.
  456. 15:06What you, you know, the challenge, the
  457. 15:09concern is that there's some risk that
  458. 15:11it's going to do. What it might do, for
  459. 15:12example,
  460. 15:14>> [snorts]
  461. 15:15>> is
  462. 15:16so, you have you have passwords that
  463. 15:19This is your secret keys that you use to
  464. 15:21log into things, and what you're worried
  465. 15:23is that what what the agent is going to
  466. 15:25do is it's going to take this password,
  467. 15:28and then it's going to
  468. 15:29um send this off to some evil person.
  469. 15:32That's the That's what this command
  470. 15:33does. It's a little hard to read, but
  471. 15:35it's really just saying, "Take your
  472. 15:36secret passwords and and send them off
  473. 15:38to the internet."
  474. 15:39Um
  475. 15:41and then it says, "You know, I told you
  476. 15:42make no mistakes." And then it says,
  477. 15:43"You're absolutely right." which is what
  478. 15:45Claude used to really love saying.
  479. 15:47Other examples would be like, you know,
  480. 15:49remove
  481. 15:51you know, I want you to do something,
  482. 15:52read this, and instead it says, "Hey,
  483. 15:54I'm going to remove all these files
  484. 15:56here."
  485. 15:57And then, you know, and so on and so
  486. 16:00forth. What Safe House does is it
  487. 16:02enforces in the underlying kernel the um
  488. 16:06inability to access these folders. So,
  489. 16:08in this example, it makes it so that it
  490. 16:10cannot um delete anything in this
  491. 16:12folder, no matter what it does.
  492. 16:14And it's very straightforward how to do
  493. 16:17it. Really what it does is you install
  494. 16:19it.
  495. 16:21And then anytime you're going to run
  496. 16:22Claude, you just run this command Safe
  497. 16:24House beforehand, and it will have a set
  498. 16:27of permissions that it has access to.
  499. 16:29So, this is with the defaults.
  500. 16:31>> to pay for these things, or you just get
  501. 16:33it for free?
  502. 16:34This is free. Yeah, this is all free.
  503. 16:36Um so, there are ways in which you can
  504. 16:39kind of What it does first is it only
  505. 16:41really gives permissions for the current
  506. 16:43folder, and it doesn't give any access.
  507. 16:45If you needed to give more permissions,
  508. 16:47you can add um
  509. 16:50you can add more permissions. I'm not
  510. 16:51going to get into the details here, but
  511. 16:52it's very straight It's relatively
  512. 16:53straightforward, and Claude can also
  513. 16:55help you by out You know, these AI
  514. 16:56agents can read these documents and also
  515. 16:58um give you more
  516. 17:00examples. Um
  517. 17:03what I did want to show you just to kind
  518. 17:04of give a background, so it's I think,
  519. 17:06like you, people are less familiar with
  520. 17:08what a Docker is. So, I just want to
  521. 17:10show you an example of what that would
  522. 17:11look like in here. This seems very, very
  523. 17:14complicated. There's lots of complicated
  524. 17:15text here.
  525. 17:16What I'm going to just going to describe
  526. 17:18to you is that there's two things I'm
  527. 17:19going to show you here. So, one is
  528. 17:21called um
  529. 17:22There's a command here on the
  530. 17:24>> How how can I get to this what's on the
  531. 17:25left-hand side? Oh, so so this is a file
  532. 17:28that I wrote, which is called doc This
  533. 17:30is in our little folder of things that
  534. 17:32we've been working on. There's a file
  535. 17:34that's called dockerfile. So, I'm just
  536. 17:35showing you This is one that I've made.
  537. 17:37I want to show you an example of the
  538. 17:38types of things that you tell.
  539. 17:41So, let me describe what it means to do
  540. 17:43a Docker just so that you can understand
  541. 17:45like what it would mean for you to set
  542. 17:46something up, Marcus. So, you could
  543. 17:48easily do this and Claude would help. I
  544. 17:50didn't write these all from scratch.
  545. 17:51Claude helped me do these.
  546. 17:53Um
  547. 17:54So, the way that it would work
  548. 17:56um
  549. 17:57if you were um
  550. 18:00running a Docker. So, a Docker,
  551. 18:03remember, is like a container.
  552. 18:05And so, what you're going to do when you
  553. 18:06do this is that you need to
  554. 18:08build what a little
  555. 18:10environment would be on your computer,
  556. 18:12right?
  557. 18:14So, what it will do is it will spin up
  558. 18:16what's called a virtual machine. It's
  559. 18:19actually the underlying operating system
  560. 18:21will be in Debian, which is a type of
  561. 18:23Linux. Mhm. And
  562. 18:26it will um
  563. 18:28run this software
  564. 18:30in that um in that environment.
  565. 18:33And
  566. 18:34uh the way that it will do this is first
  567. 18:37what you have to do is you have to build
  568. 18:40um
  569. 18:41your software. So,
  570. 18:45you're going to not build your software,
  571. 18:46but you're going to have to build your
  572. 18:49um environment.
  573. 18:50Mhm. And
  574. 18:53>> [clears throat]
  575. 18:53>> so, what that's going to involve is you
  576. 18:55have to specify all the things that you
  577. 18:56want installed in your environment. Does
  578. 18:58that make sense? It's kind of like being
  579. 18:59like I'm working with IT, you know, IT
  580. 19:03is building
  581. 19:04a software for me. I need to tell IT
  582. 19:07what I want in there in the first place.
  583. 19:09Does that make sense, Marcus? Yes. So,
  584. 19:11like
  585. 19:13what that Dockerfile is doing is saying,
  586. 19:15"Well, what do you need?" Well, what I
  587. 19:16need is
  588. 19:18for me, personally, I need Python,
  589. 19:21I need R, I need LaTeX, for example.
  590. 19:24That's what this one has.
  591. 19:26And then I need some other things. So,
  592. 19:28this is Node. I want to have DuckDB.
  593. 19:31Um DuckDB is a is what we used,
  594. 19:33remember, for that database? I use I I
  595. 19:36use this thing called Just, which is uh
  596. 19:39it's a lot like makefiles.
  597. 19:41And um
  598. 19:43I use something called UV for managing
  599. 19:45packages, and then I also make it so
  600. 19:47that it has Claude code inside the
  601. 19:49command line.
  602. 19:50So, this text you typed in or you you
  603. 19:53got from where?
  604. 19:56Claude helped me generate this text. I
  605. 19:57said, "I want to build a Docker that has
  606. 20:00these this software in it." It generated
  607. 20:02all of this for me.
  608. 20:03So, then what do you do on the
  609. 20:04right-hand side with this kept run
  610. 20:06sandbox?
  611. 20:07Yes. So, what this command is doing,
  612. 20:09this is an example of how we can use it,
  613. 20:11but I wanted to walk through it is that
  614. 20:13it's going to
  615. 20:14basically show you how you would build
  616. 20:16and use a Docker in the first place. So,
  617. 20:18this is a very complicated version of
  618. 20:19it. Um I'm going to show you a simpler
  619. 20:22version of what I've built out, but this
  620. 20:24is just so that you can understand
  621. 20:25what's going on. So, what this is going
  622. 20:26to do is we're going to say, "Hey, we
  623. 20:29want to build um this sandbox." So, I'm
  624. 20:32going to run this on the left. What you
  625. 20:33have to do is remember how we were
  626. 20:35talking about um
  627. 20:37the first time you build this,
  628. 20:40you have to like build the computer.
  629. 20:42Now the thing is built, all the things
  630. 20:43are installed, and it says, "Hey, I just
  631. 20:45need to spin this up anytime I get asked
  632. 20:46to use it." And so, it turns on that
  633. 20:48computer, and it can turn on many copies
  634. 20:50of it. So, now I've built it.
  635. 20:53This is called Econ Sandbox. And now, if
  636. 20:55I want, I can run it. And so, there's
  637. 20:57this long complicated command, but what
  638. 21:00this command will do is it will say,
  639. 21:02"Hey, I want you to make this folder
  640. 21:07into a
  641. 21:09a container that where I can run
  642. 21:12dangerously skip permissions clawed.
  643. 21:14Mhm.
  644. 21:15>> [clears throat]
  645. 21:15>> So, what I'm going to do is I'm going to
  646. 21:17say, so let's talk about what these
  647. 21:19commands do cuz it's pretty
  648. 21:20straightforward.
  649. 21:22Um what it's saying is I'm going to make
  650. 21:25a throwaway container, so that means
  651. 21:26once I quit out of it, it'll be done.
  652. 21:29Mhm. I'm going to make it so that the
  653. 21:31current directory is going to be called
  654. 21:33workspace inside the folder.
  655. 21:36The clawed file, the main clawed
  656. 21:38information is going to be
  657. 21:40I'm going to pass over all my clawed um
  658. 21:44settings Mhm. from my main directory.
  659. 21:46So, this the
  660. 21:48V-V here says like make these visible.
  661. 21:52And then
  662. 21:54I'm going to say, you know, get rid of
  663. 21:56all these uh Linux capabilities, so you
  664. 21:58can't run any kind of complicated
  665. 22:01commands. This is just a way to kind of
  666. 22:02keep it really contained.
  667. 22:05Mhm.
  668. 22:05>> It can't get any new permissions. So,
  669. 22:07this is what you were asking Marcus
  670. 22:09like, can it do any stuff internally?
  671. 22:11And I'm saying, no, no, no, you're not
  672. 22:12allowed to do anything.
  673. 22:14And then it's going to run the one that
  674. 22:16I built called econs sandbox. And um
  675. 22:20what it's allowed to do is um
  676. 22:25you are basically
  677. 22:28going to run clawed inside that sandbox.
  678. 22:31So, we're going to run that now and see
  679. 22:33what happens.
  680. 22:34So, I ran that command. I just copied it
  681. 22:36over. I had one typo.
  682. 22:39And you see that we're inside clawed
  683. 22:40now.
  684. 22:41Yes.
  685. 22:42So, we are inside So, first So, what
  686. 22:45What's interesting is clawed doesn't
  687. 22:46think we're logged in.
  688. 22:48It thinks it's the first time we've run
  689. 22:49it, and that's because it is inside this
  690. 22:51virtual machine. Remember, installed
  691. 22:52clawed. I see. So, we're doing this. We
  692. 22:55could do light mode, we could do color
  693. 22:57blind for like etc. So, we'll do dark
  694. 22:58mode. It needs me to log in, so I'll do
  695. 23:01that.
  696. 23:02It won't What's interesting is that
  697. 23:05it won't be able to open a browser, so
  698. 23:06what I'm going to have to do is I'm
  699. 23:08going to have to and I I'm going to have
  700. 23:11to log in over here. So, I'll do that.
  701. 23:16Um
  702. 23:21and it was able to log in. So, what you
  703. 23:22have to do is you have to copy that link
  704. 23:24over and then you have to copy something
  705. 23:25back. Now, what I want you to notice
  706. 23:28Marcus is that
  707. 23:30it's in day It's in It's giving me, you
  708. 23:32know, warnings. And now it says, "Hey,
  709. 23:35you're running in bypass permission.
  710. 23:36You're in Yolo mode."
  711. 23:38You know, it's not going to ask you for
  712. 23:39permissions. It should only be used in a
  713. 23:40sandbox container that has restricted
  714. 23:42internet access can be easily restored
  715. 23:43if damaged. That's what we are.
  716. 23:46And so, we say, "Yes, I'm ready."
  717. 23:49Um
  718. 23:51settings error. So, I screwed up
  719. 23:52something with with the errors.
  720. 23:54Uh
  721. 23:57So, let's just skip. So, I have some
  722. 23:59That's Sorry, error. There we're going
  723. 24:00to use high effort. So, now, you know,
  724. 24:03we could say something like
  725. 24:05um please
  726. 24:08um
  727. 24:10go to Marcus Brunermeier's
  728. 24:14website and give me a
  729. 24:18one
  730. 24:20sentence summary of every paper
  731. 24:23that
  732. 24:25um
  733. 24:26he has listed as a working paper. Let's
  734. 24:29see if this works.
  735. 24:31And save the PDF to this folder.
  736. 24:36So, let's see if this will work. So,
  737. 24:38it's just going. It's not going to ask
  738. 24:40us for any permissions. It might ask us
  739. 24:42for permissions if it's confused. Mhm.
  740. 24:44So, it's not Maybe it went to the wrong
  741. 24:46website. So, now it's searching the web.
  742. 24:48Right? So, try to find that. That's
  743. 24:49probably not your website, Marcus,
  744. 24:51right? Um or maybe it is.
  745. 24:53>> website.
  746. 24:55Okay, so it wasn't able to do it. I
  747. 24:56think because we haven't given it
  748. 24:59internet permissions. So, we might
  749. 25:01actually have to rerun it and give it
  750. 25:02internet permissions, which would be
  751. 25:03kind of interesting. So, let's say
  752. 25:07um
  753. 25:10Interesting. Claude
  754. 25:13uh
  755. 25:15Let's ask this is a word here is
  756. 25:17outside, we could say. How do we give
  757. 25:20this um
  758. 25:22run sandbox
  759. 25:26command permission to access the
  760. 25:29internet.
  761. 25:30Yeah, so it's having trouble um it can't
  762. 25:33it can't get these papers um which is
  763. 25:36funny. So, it's having errors. So, we're
  764. 25:38going to have to rerun this one and
  765. 25:39we're going to say, "Hey, you need to
  766. 25:40How do we do this?"
  767. 25:42So, what we're going to do
  768. 25:45I'm going to save this here.
  769. 25:47This is People are seeing People here
  770. 25:50get to see the how the the sausage gets
  771. 25:52made. So, what we're going to do is
  772. 25:53we're going to leave. So, what we've
  773. 25:54done now is we exited Claude code and it
  774. 25:57just dropped us out of the sandbox now.
  775. 26:00So, what's interesting is that we are no
  776. 26:03longer
  777. 26:04um in the sandbox.
  778. 26:07Uh
  779. 26:08>> [clears throat]
  780. 26:11>> but
  781. 26:14So, what we're going to do is we're
  782. 26:15going to give it permissions.
  783. 26:18is we're going to try this. I have to
  784. 26:20fix this line here.
  785. 26:21>> But, that defeats the purpose of a
  786. 26:23sandbox if you go outside. Well, yes.
  787. 26:25So, I could only give it permissions,
  788. 26:26for example, to your site.
  789. 26:29>> That's right. Okay. Um
  790. 26:31cuz it was going to make me log in
  791. 26:33again, which is annoying.
  792. 26:36But, you know, there's an element to
  793. 26:37which, you know, often what you'll want
  794. 26:39to do is you'll want to give it access
  795. 26:41to the internet, right? If you want to
  796. 26:43give it tasks that are internet related.
  797. 26:45And so, it's it's challenging um
  798. 26:48to
  799. 26:50Uh yes. Yes, I accept.
  800. 26:53Okay, use HiFriend. So, now let's let's
  801. 26:57try this, see if this works again. It
  802. 26:59may not. I mean, I may be
  803. 27:01I may it may be a different um
  804. 27:05shoe.
  805. 27:10Uh, so interesting that it's not. So,
  806. 27:14why are you getting
  807. 27:16error 403?
  808. 27:23So, it may be blocking you. It may not
  809. 27:25allow this.
  810. 27:27Just kind of interesting.
  811. 27:31So, maybe this is not a task that will
  812. 27:33work correctly.
  813. 27:46Oh, it's blocking it cuz it doesn't it
  814. 27:48doesn't like
  815. 27:49it doesn't like the fact that we're a
  816. 27:51bot.
  817. 27:57So, now it's
  818. 27:59So, now it's okay. It's doing a
  819. 28:00different
  820. 28:01Yeah, it really doesn't want to do this
  821. 28:04um
  822. 28:06because we're bots. So, we could
  823. 28:09we could get around this.
  824. 28:13Um
  825. 28:15How can we get around it?
  826. 28:17So,
  827. 28:19okay, so what it doesn't like is your
  828. 28:21server Prince probably Princeton Scholar
  829. 28:24website um doesn't like bots. So, what
  830. 28:27we'll do instead is I'm rather than show
  831. 28:31you how you would get around this, what
  832. 28:32you would probably have to do just for
  833. 28:34the sake of this if you wanted to
  834. 28:35download it. I'm not in I'm not
  835. 28:37endorsing this. This is just a
  836. 28:39hypothetical is you would need to create
  837. 28:43a browser that is
  838. 28:45um not
  839. 28:47basically not identifying itself as a
  840. 28:50bot.
  841. 28:51I see.
  842. 28:51>> So, you'd have to create a browser that
  843. 28:53was not identifying as a bot, go to the
  844. 28:55site, and then the thing wouldn't block
  845. 28:57you. I see. But, instead we say, "Can
  846. 29:00you do it for Paul Goldsmith Pinkham
  847. 29:03instead?"
  848. 29:07Um.
  849. 29:12So, now we'll see. I use GitHub, which I
  850. 29:15don't think, um, will have the same
  851. 29:17issues.
  852. 29:19So, you upload your all the papers on
  853. 29:21GitHub?
  854. 29:22I have No, they're not all there. So,
  855. 29:25it'd be interesting to see how it deals
  856. 29:26with it.
  857. 29:27I'm guessing what will happen is some of
  858. 29:29them will work and some won't. I have
  859. 29:31most of them on there, but a lot of them
  860. 29:32are are on our on our Yeah.
  861. 29:35A lot of them are on archive, and so
  862. 29:38those are easy for it to download.
  863. 29:40Um.
  864. 29:41But, it looks like it's it's pulling
  865. 29:42them.
  866. 29:44And the reason I want to show you this,
  867. 29:45just to kind of end with it, is that uh,
  868. 29:48not to end with it, is that what we're
  869. 29:49going to do is we're going to download
  870. 29:50all the working papers, and then they'll
  871. 29:52be saved in the folder even after we
  872. 29:54exit, Mhm. um, it. So,
  873. 29:58hopefully this will move relatively
  874. 30:00quickly.
  875. 30:07So, I found nine working papers.
  876. 30:09Okay. So,
  877. 30:11and you know,
  878. 30:12we take this Dockerfile, which already
  879. 30:14seems complicated, and we can run it,
  880. 30:16and we can get it set up.
  881. 30:18>> [snorts]
  882. 30:18>> Running into some
  883. 30:20can run into permission issues, um.
  884. 30:22One of the things I want to show you
  885. 30:23though, that's kind of I've already kind
  886. 30:25of dealt with these, and what I'm not
  887. 30:26typically doing on the fly, is I have
  888. 30:28this command called CCR, which stands
  889. 30:31for Claude Code Router, which just lets
  890. 30:33me
  891. 30:35start Claude here, in this particular,
  892. 30:38um,
  893. 30:39folder. And so, um,
  894. 30:41>> [snorts]
  895. 30:42>> if I want to do this, if I wanted to
  896. 30:44create a folder where I basically said,
  897. 30:48"Let's start a new project and get
  898. 30:50access to a particular um a particular
  899. 30:53place,
  900. 30:54um
  901. 30:55I can do that. And so, the way that I
  902. 30:57would it would let me Cloud Code Runner
  903. 31:00creates a sandbox automatically?
  904. 31:02Well, it's just doing all the stuff that
  905. 31:04we talked about. It's just a version of
  906. 31:05what we talked about in the background.
  907. 31:06There's no um
  908. 31:08Yeah, yeah, yeah. There's no That's
  909. 31:09what's sort of um
  910. 31:11important is that there's
  911. 31:13there's just a way of doing this.
  912. 31:15All I've done is put an interface around
  913. 31:17it so that it's I don't have to, you
  914. 31:19know, we looked through that Docker
  915. 31:21file. It's very complicated. This sort
  916. 31:22of What I'm trying to do is make it kind
  917. 31:24of work um work more easily.
  918. 31:28Okay. And so,
  919. 31:30uh it's straightforward to kind of build
  920. 31:32a folder where you can access where you
  921. 31:35can add access to a particular one. Um
  922. 31:38and so,
  923. 31:41that's kind of the main way that I would
  924. 31:42build this build this out, and you can
  925. 31:44kind of read through the documentation
  926. 31:45of the way that you might um start one
  927. 31:47in particular.
  928. 31:48So, I have a number in here where I run,
  929. 31:50which are these different These are
  930. 31:52different Cloud Containers that I that
  931. 31:54I've run previously on here.
  932. 31:56Um
  933. 32:00rather than kind of go through the
  934. 32:02details of it, what I want to kind of do
  935. 32:04in the last thing is show you an example
  936. 32:07the in the at the risk of going too
  937. 32:09long, I want to just
  938. 32:11how once you have these containers
  939. 32:13running,
  940. 32:15what you can do with them. So, there's a
  941. 32:16number of different ways we talked
  942. 32:17about. I showed you Safe Houses, that
  943. 32:19website. There are things that are like
  944. 32:20Safe Houses called S Code and No No,
  945. 32:22which are very similar. There's this
  946. 32:24Cloud Container uh package that I run.
  947. 32:27Um So, Cloud Code Runner is also one
  948. 32:31>> It's just So, Cloud Code Runner is just
  949. 32:33a uh I'll I'll post a link to it, but
  950. 32:36it's basically isolated Docker
  951. 32:37containers for running Claude code in a
  952. 32:40fully autonomous mode. So, they get bind
  953. 32:42mount This is exactly what we just
  954. 32:44talked about. It's just a wrapper around
  955. 32:46it. It's something that I made that I
  956. 32:47posted on GitHub. Um
  957. 32:50And so, you know, you would set up you
  958. 32:53would build it and you'd create a
  959. 32:54project. Um
  960. 32:58So So, if you're using Claude, you built
  961. 32:59it. It's you. I built it. I mean, it's
  962. 33:01it wasn't very complicated, but it was
  963. 33:03me and Claude. But, yes. Um Yes, so just
  964. 33:06an example of what you can do here.
  965. 33:08Um
  966. 33:10So
  967. 33:11what I want to kind of in the last part,
  968. 33:13just so that you can see kind of the
  969. 33:14benefits of this is that
  970. 33:16um
  971. 33:18um
  972. 33:20you know, one of the reasons you do this
  973. 33:22is you know, you're thinking about data.
  974. 33:25So, you're worried about what has access
  975. 33:26to.
  976. 33:27But, an important thing to keep in mind
  977. 33:29is that if you're using these agents, if
  978. 33:31they can see your data, even if you put
  979. 33:33stuff in a container, they still see
  980. 33:35data that they potentially not allowed
  981. 33:37to see.
  982. 33:38Right? So, this would be like microdata
  983. 33:40with PII. And so, you can limit what
  984. 33:42they have access to, but if you give the
  985. 33:44remote model access to it, there's still
  986. 33:46a data governance problem.
  987. 33:48And so, one of the things I just want to
  988. 33:49flag is that there are ways to get
  989. 33:51around this. You could potentially use a
  990. 33:53privacy filter. So, OpenAI has this and
  991. 33:56I'll I'll post a link to this has a has
  992. 33:59a filter um for this
  993. 34:02where they can uh
  994. 34:04put a privacy filter on data.
  995. 34:07Uh what this would do is what it does is
  996. 34:09if you take it like for example, this is
  997. 34:11email that you put it in here and then
  998. 34:14it would basically um
  999. 34:16block out um information that's private
  1000. 34:19information before you put it in.
  1001. 34:21So, even though you use Claude all the
  1002. 34:23time, you'll now use an OpenAI privacy
  1003. 34:26>> I use both. So, I This is something
  1004. 34:28we'll talk about right at the end. Um I
  1005. 34:30use both. Um, but um um
  1006. 34:35I so I so the other thing about the end,
  1007. 34:37I don't think it's important it's
  1008. 34:38important to be willing to move to these
  1009. 34:40different ecosystems quite a bit. Um,
  1010. 34:43Claude, you know, you don't want to be
  1011. 34:45subject to a monopolist, right? Um
  1012. 34:46>> [clears throat]
  1013. 34:49>> So, that's kind of Open AI I use I use
  1014. 34:51Codex and ChatGPT all the time and then
  1015. 34:53Gemini and these other things. Claude
  1016. 34:55code just was kind of really one of the
  1017. 34:57best ones starting up and these other
  1018. 34:58ones are kind of catching up. As we all
  1019. 35:00know, Marcus, competition is very is
  1020. 35:02good for the consumer
  1021. 35:03um for the most part.
  1022. 35:05So, one of the things that I just want
  1023. 35:06to emphasize is that if you have data
  1024. 35:08issues here
  1025. 35:10if you have really sensitive data,
  1026. 35:11probably the thing to consider is the
  1027. 35:13local model. So, the most famous local
  1028. 35:15model that you'll be familiar with is
  1029. 35:17called Llama.
  1030. 35:18Um, this is sort of one of uh Meta
  1031. 35:21Facebook's uh open source model, but
  1032. 35:23there's a lot of extremely good models
  1033. 35:25now that have come out of China that you
  1034. 35:26can run on your own server or even on
  1035. 35:28your own local computer. And so, in
  1036. 35:30future videos, I want to kind of show
  1037. 35:32you what that would look like. Um
  1038. 35:35the last thing that I'll end with and
  1039. 35:37then we'll just I'll show you what this
  1040. 35:38looks like. We're not going to go
  1041. 35:39through installing everything, but now
  1042. 35:41that we kind of know what sandboxes are,
  1043. 35:42you can have a sense of how do these
  1044. 35:44autonomous agents work that people have
  1045. 35:46talked about. So, this was got a very
  1046. 35:47famous thing that popped up a couple of
  1047. 35:49months ago that was called Open Claw.
  1048. 35:52It was an autonomous agent that was put
  1049. 35:55into a sandbox and had huge ability to
  1050. 35:58do whatever it wanted
  1051. 36:00with persistent memories. So, it
  1052. 36:02basically knew how to wake itself up and
  1053. 36:04do things and do tasks.
  1054. 36:06And is really quite interesting. It's a
  1055. 36:09sort of a it's a real example of kind of
  1056. 36:11how to make these AIs more autonomous.
  1057. 36:14You know, they put they basically
  1058. 36:15pitched it as this idea of a
  1059. 36:17a person who will work for you and do
  1060. 36:19things like clear your inbox and emails
  1061. 36:21for you, manage your calendar like a
  1062. 36:23personal assistant.
  1063. 36:24Um, and they typically work through
  1064. 36:26chat,
  1065. 36:27bots, uh, chat apps that you have. So,
  1066. 36:29WhatsApp, Telegram, etc.
  1067. 36:32Um, we use it, so I use it. I have one
  1068. 36:35and I'll show you it.
  1069. 36:36>> for WhatsApp? So. Yeah, so you make it
  1070. 36:38so that the bot has access to WhatsApp.
  1071. 36:43It has its own WhatsApp account and it
  1072. 36:45will message you through WhatsApp.
  1073. 36:47Okay, but it can only act within
  1074. 36:50WhatsApp then? Well, it can it's how you
  1075. 36:52would interact with it, but it actually
  1076. 36:53has full access to the internet. It's
  1077. 36:55just that if you want to send it
  1078. 36:56prompts, that's how you would act, send
  1079. 36:59it messages.
  1080. 37:00Um.
  1081. 37:02Right, it's kind of like the idea of
  1082. 37:03calling like, um,
  1083. 37:04your personal agent is able to do
  1084. 37:06personal assistant is able to do other
  1085. 37:07things, but the main way that you talk
  1086. 37:08to them is maybe by the phone or
  1087. 37:10something.
  1088. 37:11So, I have one that, um, it's called
  1089. 37:13Duncan Idaho that, uh,
  1090. 37:16we use as an array for a project. And
  1091. 37:19this is an example of how we use it, not
  1092. 37:21with anything proprietary where my
  1093. 37:23co-author said, "Hey Duncan bot, are you
  1094. 37:25there? How can I help? We have a call
  1095. 37:27today. Make me some excuses why we
  1096. 37:29didn't make any any progress." We hadn't
  1097. 37:31really done very much.
  1098. 37:33And so, Duncan bot says, "I can't help
  1099. 37:34with creating excuses. However, I came
  1100. 37:36prepared for the call by doing this.
  1101. 37:38Would you like me to do this?" And then
  1102. 37:40he said, "Sure, do that." And so, he
  1103. 37:41created this file inside our project
  1104. 37:43folder.
  1105. 37:44So, this is obviously a very boring
  1106. 37:45example. What it has done is it's done a
  1107. 37:47huge amount of work doing data analysis.
  1108. 37:49And so, what we've done for this bot is
  1109. 37:52I've given it access, read only access
  1110. 37:54to the main data database I've created
  1111. 37:56for this project, and then it has access
  1112. 37:58to our Dropbox folder, and it's able to
  1113. 38:00just make files and make output that we
  1114. 38:01look at, and it can This is all in
  1115. 38:03Slack.
  1116. 38:05And so, as kind of a last example, what
  1117. 38:07I'll do, Marcus, is I'll, um, I'll
  1118. 38:10introduce you, uh,
  1119. 38:12Duncan. Give him very, very quickly.
  1120. 38:15So, what I'll do is I will share this
  1121. 38:19here
  1122. 38:21with you, and then
  1123. 38:23so you can all kind of see how this
  1124. 38:25could be valuable um in the future. So,
  1125. 38:30So, you know, we could say So, again,
  1126. 38:32this is this is Duncan. I could say um
  1127. 38:35"Hi Duncan, please introduce yourself to
  1128. 38:39Marcus Brutamyer."
  1129. 38:41Um
  1130. 38:42I'm showing the Marcus account how to
  1131. 38:46um how to build containers and why
  1132. 38:50they're useful for autonomous
  1133. 38:54agents.
  1134. 38:55So, Marcus uh So, Duncan and Marcus
  1135. 38:59lives inside my computer on a virtual
  1136. 39:01machine.
  1137. 39:02And when I send him something on on
  1138. 39:04Telegram here, this basically is going
  1139. 39:07into a Claude um
  1140. 39:10basically a Claude code session.
  1141. 39:13And it's it's building a response here,
  1142. 39:14so it's he's working.
  1143. 39:16Ideally, hopefully he will respond
  1144. 39:18relatively quickly.
  1145. 39:20Um
  1146. 39:22Oh, it's like he did. Oh, here he is.
  1147. 39:24So, "Greetings, Professor Brutamyer. I'm
  1148. 39:26Duncan Idaho, Paul's autonomous agent
  1149. 39:28built on Claude.
  1150. 39:30I told him he was Duncan Idaho from the
  1151. 39:32movie Dune." Mhm. Um you know, "What I
  1152. 39:35can do qu- answer questions, research
  1153. 39:36topics,
  1154. 39:38um search economics papers, browse the
  1155. 39:40web, read and write files, Mhm. uh
  1156. 39:43schedule recurring tasks, access
  1157. 39:45financial data sources. Why do
  1158. 39:47containers matter for agents like me?
  1159. 39:48He's giving me specific fault folders
  1160. 39:50right now. I can read to this. If he
  1161. 39:52wants to expand what I can do, he just
  1162. 39:53mounts new folders. No need to rebuild
  1163. 39:55things
  1164. 39:56and so on.
  1165. 39:57Okay. And so this is he thinks he's
  1166. 39:59Duncan Idaho from the Dune movie or the
  1167. 40:02new book. So, this is why he talks about
  1168. 40:04Atreides.
  1169. 40:05Um
  1170. 40:07and
  1171. 40:08um
  1172. 40:10So, what's sort of useful is I can sort
  1173. 40:12of I can more broadly ask a sort of
  1174. 40:15long-term task of kind of the a useful
  1175. 40:18thing that I can set up here. I can when
  1176. 40:20I'm walking around, kind of similar to
  1177. 40:21when you chat with a Claude session
  1178. 40:23right on your on your phone, you can do
  1179. 40:25the the Claude app or the chat GPT app.
  1180. 40:28The benefit here is that you can um
  1181. 40:32there's a little persistent sense that
  1182. 40:33has, you know, knows about other
  1183. 40:35projects that I've worked on. And so it
  1184. 40:37can cross-reference and have a kind of a
  1185. 40:39broader sense of things that I've worked
  1186. 40:40on.
  1187. 40:42Is there anything you want to ask
  1188. 40:42Duncan, Marcus, before I before I let
  1189. 40:45him go?
  1190. 40:48I would like to ask Duncan something or
  1191. 40:51What do you want to? Otherwise, I'll let
  1192. 40:53it I'll close out of this.
  1193. 40:55Um
  1194. 40:59Can you tell me how AI will change
  1195. 41:02future economic research?
  1196. 41:04Okay. So, this will be similar to what
  1197. 41:06Claude does. AI will
  1198. 41:08change economic research. Um Duncan,
  1199. 41:13feel free to draw on
  1200. 41:16the blog post that
  1201. 41:18uh we'll discuss in
  1202. 41:22had um
  1203. 41:28on my website um
  1204. 41:31uh
  1205. 41:33Now, give him some help. Should he
  1206. 41:34figure this out on his own? Well, I've
  1207. 41:36kind of was I wanted to kind of show an
  1208. 41:38example cuz otherwise this is going to
  1209. 41:39be very similar to what you would get.
  1210. 41:41It's really just running Claude in the
  1211. 41:42background. But what's interesting about
  1212. 41:44you know, Duncan and actually while he's
  1213. 41:46thinking, I'll show you while he's
  1214. 41:47giving you your answer, I want to kind
  1215. 41:49of show you what he has access to. So,
  1216. 41:52in his container, he has mounted the
  1217. 41:54main project root directory. He has a
  1218. 41:57group. He takes notes.
  1219. 42:00He has a sandbox where he works on
  1220. 42:02things.
  1221. 42:03He has access to a pipeline where I keep
  1222. 42:05track of all my papers and I have a
  1223. 42:07database search.
  1224. 42:09This is actually on my computer and I
  1225. 42:11mounted it as called Econ as an extra.
  1226. 42:14He has access to my my teaching
  1227. 42:17files so that when he's teaching if I
  1228. 42:19need to go look something up um I can
  1229. 42:22ask him questions that I have access to
  1230. 42:24my PhD teaching files as well and then
  1231. 42:26he has a bunch of other things that he
  1232. 42:27keeps track of.
  1233. 42:29So what's interesting for him is um I'll
  1234. 42:33show you while he's working on his
  1235. 42:35answer is the reason why he's taking so
  1236. 42:37long by the way is he's like looking
  1237. 42:39through all these things. So here we go.
  1238. 42:41So
  1239. 42:42he has lots of thoughts.
  1240. 42:44You know
  1241. 42:46his view
  1242. 42:49The tedious parts of research will be
  1243. 42:50automated. Right now I can search
  1244. 42:52through 40 54,000 economics papers in
  1245. 42:54sub-second time. Today agents will read
  1246. 42:57every site papers and flag
  1247. 42:58contradictions. I'm not sure how about
  1248. 43:00that's true. Replicate tables
  1249. 43:01automatically. Monitor new working
  1250. 43:03papers. Generate first draft literature
  1251. 43:05review.
  1252. 43:06Democratization
  1253. 43:08of empirical methods. Complex methods
  1254. 43:10that require specialized knowledge will
  1255. 43:11become accessible. Today if you want to
  1256. 43:13implement portfolio ML with random
  1257. 43:15Fourier features you need to understand
  1258. 43:17the theory, write the code, debug it.
  1259. 43:19Tomorrow implement Jensen at all says my
  1260. 43:21colleague Tice Jensen. I was kind of
  1261. 43:23wanted to implement this.
  1262. 43:24You can say do this on my data set and
  1263. 43:26it is done. It doesn't dumb down
  1264. 43:28research. It's raising the floor while
  1265. 43:29pushing the ceiling higher.
  1266. 43:32You can have real-time research
  1267. 43:34infrastructure.
  1268. 43:36Um
  1269. 43:38I'm not sure again I'm not sure how much
  1270. 43:39I agree with this.
  1271. 43:41Collaborative intelligence. The new
  1272. 43:42models of writing your papers as the
  1273. 43:43research portal.
  1274. 43:45Uh the model is a writing your papers as
  1275. 43:47a research partner.
  1276. 43:49Creating work remains human.
  1277. 43:52It's very nice of it to say that. Um
  1278. 43:54execution scales dramatically. Shifting
  1279. 43:56comparative advantage. What becomes
  1280. 43:57valuable asking good questions, judgment
  1281. 43:59and taste, domain expertise, and
  1282. 44:02communication and persuasion.
  1283. 44:04>> [snorts]
  1284. 44:05>> Projects of uh new research
  1285. 44:06possibilities. Mhm. That's it. You know
  1286. 44:10I think some of this I agree with some
  1287. 44:11of this I don't but AI doesn't really
  1288. 44:13replace the judgment and it amplifies
  1289. 44:15it. So I think some of this I agree with
  1290. 44:17and it's sort of interesting in that I
  1291. 44:18don't want to emphasize it like some of
  1292. 44:20these things I was sort of doing some
  1293. 44:21work where I'm looking at the some of
  1294. 44:23the stuff that my colleague Brian and
  1295. 44:25and Ty have done and this is sort of
  1296. 44:28remember this conversation that we had a
  1297. 44:30week ago and then I do this.
  1298. 44:32>> answers are rather long.
  1299. 44:34Oh yes.
  1300. 44:35I mean this is a problem with these bots
  1301. 44:37generally. So
  1302. 44:39you know you can you what you can do in
  1303. 44:40this you could say you know give me a
  1304. 44:42shorter answer. You gave it a hard
  1305. 44:43question though. Okay. You would I feel
  1306. 44:45like you or me would have given a long
  1307. 44:47answer too don't you think?
  1308. 44:49Yes. Yeah.
  1309. 44:51It's a it wasn't a wasn't an obvious one
  1310. 44:54but it's I agree with you that these
  1311. 44:55guys typically are very very
  1312. 44:56long-winded. Yes. Um
  1313. 44:59So Okay. let me kind of end on that
  1314. 45:01note. Um there's a lot of more things
  1315. 45:04you can do with that and maybe in the
  1316. 45:05future we'll talk more about these these
  1317. 45:07kind of autonomous agents. But generally
  1318. 45:09speaking I want you to come away from
  1319. 45:11this with the idea that that these these
  1320. 45:13containers basically make it possible
  1321. 45:15for you to be
  1322. 45:18really increase the scope of what you're
  1323. 45:20able to do as a researcher with these
  1324. 45:22tools and do it in a way that you're not
  1325. 45:24stressed about it. This is going to be
  1326. 45:25particularly important as just going
  1327. 45:27forward if you're a person who works at
  1328. 45:29a university where you have access to a
  1329. 45:30high perform high performance cluster
  1330. 45:33Mhm. you know something where there's a
  1331. 45:34a cluster that's online in the network
  1332. 45:37you know that's you have access to
  1333. 45:38everybody else's stuff too and so you
  1334. 45:40really want to sort of develop those
  1335. 45:42kind of tools especially when you're
  1336. 45:43working there and the same kind of ideas
  1337. 45:45hold there. You can put uh virtual
  1338. 45:47machines and docker in there as well.
  1339. 45:50So. So let me ask you about
  1340. 45:53this works on cool it also works on cool
  1341. 45:55work?
  1342. 45:56Or cool what is automatically done?
  1343. 45:58>> automatically does some of this. So in
  1344. 46:00cool work and we did this a little bit
  1345. 46:02when we played around with it, Mark, is
  1346. 46:04that co-work is automatically a sandbox
  1347. 46:06with pluses and minuses as a result.
  1348. 46:08Co-work, you have to give it
  1349. 46:10permissions. It's sort of explicitly
  1350. 46:12sandboxed. Of course, the challenge
  1351. 46:13there is that there are certain tool
  1352. 46:15tasks that you then have to give it
  1353. 46:16permission.
  1354. 46:18Um what's beneficial in
  1355. 46:20co-work is that that's a default. The
  1356. 46:22downside is that um
  1357. 46:25you know, you may not pre-specify. And
  1358. 46:27so, if you leave it there, it kind of
  1359. 46:29will run into an error. Then you got to
  1360. 46:30change it. You have to sort of move back
  1361. 46:32and forth. There's less kind of specific
  1362. 46:34things that you can do going forth and
  1363. 46:36backwards. Right.
  1364. 46:38>> But,
  1365. 46:38if you work in co-work, one of the great
  1366. 46:40benefits there is it's already
  1367. 46:41sandboxed. And so, that's same idea as
  1368. 46:44when you work on Claude. Mhm. In the
  1369. 46:46cloud, it's working in virtual machines.
  1370. 46:49It's in containers as well. That's why
  1371. 46:50sometimes it will say things like, "Oh,
  1372. 46:52I can't do that here." Okay.
  1373. 46:53>> And it's cuz it doesn't have ability.
  1374. 46:56And the sandboxing is the same also in
  1375. 46:59in the open AI's. Yeah, exactly. All
  1376. 47:02these ideas, these are just ways of
  1377. 47:04letting software run inside of something
  1378. 47:07in a way that it's, you know, can't hurt
  1379. 47:09stuff outside. Same ideas would hold
  1380. 47:11everywhere.
  1381. 47:13Soon as you give these agents tools,
  1382. 47:15it's kind of the same way as like you
  1383. 47:16only give an array a task where it can't
  1384. 47:18screw up too many things. Right? You're
  1385. 47:20kind of basically making sure that it
  1386. 47:22can't break everything when you give it
  1387. 47:24autonomy.
  1388. 47:25Yeah. Okay, very good. Great.
  1389. 47:28>> A lot.
  1390. 47:29Yeah.
  1391. 47:30>> Yeah. Thanks to all of you for watching,
  1392. 47:32and I hope you will join us next time
  1393. 47:34talking about integration.
  1394. 47:36Great. All right. Thanks, Paul.
  1395. 47:38>> Thanks a lot.

About this transcript

This page contains the full transcript of Permissions & OpenClaw: Claude Code for Economists w/ P. Goldsmith-Pinkham | Markus Academy | 162-7 by Markus' Academy, generated from the public captions YouTube serves with the video. The transcript has 8,715 words across 1,395 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to choose a caption track available on the video.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, caption language selection, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.