Claude Code + Karpathy's Autoresearch = GOD MODE!

AI Andy www.youtube.com

Tóm tắt ngắn gọn

Video này trình bày cách xây dựng một hệ thống tự động cải thiện nội dung bằng cách sử dụng Auto Research của Andre Carpathy. Hệ thống này tạo ra năm video mỗi ngày, thu thập dữ liệu thực tế, phân tích hiệu quả và tự động viết lại các prompt để cải thiện liên tục. Các điểm chính bao gồm:

  • Sử dụng Auto Research để tối ưu hóa các prompt nội dung dựa trên số lượt xem thực tế trên mạng xã hội.
  • Xây dựng một vòng lặp tự động để thu thập dữ liệu, đánh giá hiệu suất và cải thiện prompt.
  • Ứng dụng các tiêu chí đánh giá rõ ràng, có thể đo lường được để đảm bảo tính khách quan.
  • Tự động hóa quy trình để chạy hàng ngày và liên tục cải thiện nội dung.

Giới thiệu

Video giới thiệu về việc sử dụng Auto Research của Andre Carpathy để xây dựng một hệ thống tự động cải thiện nội dung. Hệ thống này tạo ra năm video mỗi ngày, đăng tải chúng, thu thập dữ liệu thực tế, xác định những gì hiệu quả và không hiệu quả, sau đó viết lại các prompt để cải thiện mỗi ngày một cách tự động. Tác giả sẽ hướng dẫn cách xây dựng hệ thống này và cung cấp template miễn phí.

Auto Research là gì?

Andre Karpathy đã phát hành một repo có tên là Auto Research, cho phép một AI agent thay đổi một file, nhận hướng dẫn về những gì cần tối ưu hóa và cách đo lường sự cải thiện. Agent sẽ điều chỉnh code, chạy nó, kiểm tra xem kết quả có cải thiện không, giữ lại các thay đổi nếu có và loại bỏ chúng nếu không, sau đó lặp lại. Điều này không chỉ dành cho machine learning mà còn có thể áp dụng cho bất kỳ thứ gì có đầu ra có thể đo lường được. Tác giả đã áp dụng nó cho quy trình tạo nội dung của mình, trong đó prompt là train.py, hướng dẫn là program MD và đánh giá là số lượt xem thực tế từ Instagram và Facebook.

Thu thập dữ liệu

Tác giả đã sử dụng Claude Code để xác nhận tính khả thi của việc sử dụng repo này với phản hồi từ số lượt xem trên mạng xã hội. Công việc thực tế là thu thập dữ liệu từ Instagram và Facebook để phân tích và tạo ra đánh giá (eval) dựa trên dữ liệu thực tế. Tác giả đã sử dụng AI avatar để đăng tải nội dung lên Instagram và Facebook, và một số video đã đạt được hơn 100.000 lượt xem mà không cần phải quay phim. Mục tiêu là xác định các tiêu chí cho những video có lượt xem cao. Tác giả đã sử dụng metagraph API để thu thập dữ liệu từ 30 reels gần nhất trên Instagram, được sắp xếp theo lượt xem. Các video có yếu tố "wow" và các bản demo trực quan hoạt động tốt, trong khi nội dung về Claude Code hoặc năng suất hoạt động kém hơn. Sau đó, tác giả đã thu thập 200 reels trên Instagram và bắt đầu nhận thấy các mẫu quan trọng về những gì hiệu quả và không hiệu quả. Vì Instagram khác với Facebook, dữ liệu cũng được thu thập từ Facebook để có thể sandbox dựa trên cả hai nền tảng này.

Xây dựng Eval

Phần lớn mọi người thất bại trong Auto Research vì họ tạo ra các tiêu chí đánh giá (eval) mơ hồ. Thay vào đó, cần có một câu hỏi "có/không" rõ ràng, không có vùng xám. Các tiêu chí đánh giá bao gồm: hook có mô tả kết quả hoặc sự chuyển đổi không, hook có giới thiệu một người hoặc câu chuyện không, nội dung có tập trung vào những gì bạn có thể làm không, script có tránh nghe như một thông cáo báo chí không, và khung hình đầu tiên của video có khiến ai đó dừng cuộn không. Đây là những câu hỏi nhị phân có thể được trả lời dễ dàng. Có thể đưa một script vào Gemini và hỏi nó 10 câu hỏi này để có được điểm số trên 10, không có tính chủ quan.

Kết nối vòng lặp

Hệ thống thực tế bao gồm một vòng lặp Auto Research với 1.000 dòng code. Đầu tiên, hệ thống thu thập số lượt xem từ Facebook và Instagram. Sau đó, nó khớp và cập nhật số lượt xem vào Airtable, là hệ thống sản xuất của tác giả. Hệ thống cũng prescore các ý tưởng mới bằng cách thu thập dữ liệu từ mạng xã hội và sử dụng một eval dựa trên các nguồn này. Nếu ý tưởng đạt trên 5 điểm, nó sẽ được đưa vào hàng đợi tạo. Tiếp theo, hệ thống chấm điểm các script đã xuất bản bằng cách sử dụng Gemini để trả lời 10 câu hỏi eval "có/không" và đưa ra điểm số cho mỗi short đã xuất bản. Sau đó, hệ thống tương quan giữa eval cao và số lượt xem cao để xác định những người chiến thắng đã được xác thực. Eval cao nhưng số lượt xem thấp cho thấy các kết quả dương tính giả, điều này có nghĩa là cần phải sửa eval. Cuối cùng, hệ thống tạo và đẩy nội dung, viết một prompt được cải thiện từ dữ liệu tương quan (người chiến thắng và thất bại) và đẩy prompt mới vào quy trình làm việc Nano thông qua API. Vòng lặp tự cải thiện diễn ra mỗi 24 giờ, bắt đầu lúc 8 giờ sáng.

Cách nó phát triển

Prompt ban đầu bao gồm hook, chi tiết, tông giọng, kết thúc và ngân sách từ. Sau đó, nó bắt đầu định hình lại từ thông báo thành một yếu tố kích thích sự tò mò, trở nên rộng hơn và kịch tính hơn. Nó cố gắng làm sâu sắc thêm tính cá nhân hóa bằng cách thêm ngôn ngữ thay đổi cuộc sống. Hook chuyển từ các sự kiện sang những khám phá phổ quát và vượt thời gian. Cuối cùng, hook được làm sắc nét với những bí mật sắp được tiết lộ. Hệ thống đã trải qua năm lần sửa đổi có ý nghĩa trong hai ngày và tất cả đều được ghi lại trong file JSON prompt Auto Research, được cập nhật mỗi ngày dựa trên các tiêu chí.

Cách chạy nó hàng ngày

Để làm cho nó hoạt động mà không cần can thiệp, script chạy mỗi sáng lúc 8 giờ sáng thông qua Launchd (trình khởi chạy tác vụ của Mac OS). Mỗi ngày, nó thu thập số lượt xem của ngày hôm qua và thực hiện tất cả các bước trên. Cuối cùng, nó cung cấp một bản tóm tắt hoặc báo cáo hàng ngày về Auto Research, bao gồm những người biểu diễn hàng đầu, các bản cập nhật prompt và các thay đổi đã thực hiện. Hiện tại, một thành viên trong nhóm đang sử dụng Contentmate v2.0.3 để thực hiện thủ công, và Contentmate v2.1 có tính năng tự động cải thiện này được tích hợp. Mỗi ngày, năm video được tạo ra và đồng nghiệp của tác giả sẽ xem video và phê duyệt hoặc từ chối, và AI sẽ học hỏi từ điều này. Điều này làm cho quy trình gần như hoàn toàn tự động, ngoại trừ việc kiểm tra chất lượng. Vòng lặp liên tục cải thiện, xuất bản năm shorts mỗi ngày và kiểm tra lại sau 24 giờ để xem điều gì đã xảy ra. Các prompt trở nên tốt hơn một chút sau mỗi lần lặp lại. Tất cả các thay đổi đều được ghi lại với dữ liệu đã gây ra chúng. Khi một mô hình thông minh hơn xuất hiện vào tháng tới, tác giả sẽ cung cấp cho nó nhật ký nghiên cứu để nó có thể tiếp tục từ nơi nó đã dừng lại. Nhật ký nghiên cứu có thể là tài sản giá trị nhất. Bạn có thể áp dụng điều này cho bất kỳ thứ gì, chẳng hạn như prompt thumbnail, chuỗi email và trang đích. Nếu một prompt có đầu ra có thể đo lường được, Auto Research có thể cải thiện nó. Tác giả cung cấp miễn phí Contentmate, template Nano và vòng lặp tự động cải thiện trong cộng đồng School miễn phí của mình. Nếu bạn muốn triển khai điều này dễ dàng hơn và tùy chỉnh nó cho doanh nghiệp của mình, hãy tham gia cộng đồng AIMAT Plus. Tác giả sẽ thực hiện một video trong một tháng nữa để cho thấy kết quả chính xác và những gì đã xảy ra.

Summarize any YouTube video in seconds

Get summaries like this one for any video, in your language, with the free Summ app.

Download on the Apple Store
Get it on Google Play

Transcript

YouTube Transcript Generator

0:00 I used Andre Carpathy's auto research to build an automatically improving content machine. It makes five videos per day, publishes them, gathers real data, figures out what worked and what didn't, then rewrites its own prompts to get better every single day automatically. Let me show you how I built it, and I'll give you the entire template for free. But before that, just let me show you how it works. So what is auto research? So a couple weeks ago, Andre Karpathy, one of the founding members of OpenAI and former head of AI at Tesla, released this repo that is called Auto Research. And the idea is dead simple. You give an AI agent three things, a file to change,

0:48 instructions on what to optimize, and a way to measure whether it got better. Then you just let it run. And in his case, he was optimizing for machine learning training scripts. So his experiment right here, the agent would tweak the code, run it, check if the results improved, then kept the changes if they did, throw them out if they didn't, and repeat. He ran hundreds of experiments overnight, and got an 11% improvement. But here's what most people miss. This isn't just for machine learning. You can apply this to literally anything that has a measurable output. I looked at this and thought my content pipeline has all three of these. The prompt is my train.py. The loop

1:34 instructions are my program MD and the eval is real views from Instagram and Facebook. I built it and here's how you can do it too. Pulling the data. So, it all started when I posted this repo into Claude Code and asked if it was actually possible to use this repo with a feedback of views taken from social media instead because I kind of wanted to selfoptimized based on views. After a quick confirmation that it wouldn't be exactly the same cuz this has a slow loop using 24 hours as the time base, I kind of started getting obsessed and just had to figure out if I could do it. So the actual work was to pull Instagram

2:19 data and Facebook data to analyze it and start creating my eval basically what to optimize for based on real data. I have fully unleashed my AI avatar to Instagram and Facebook using my AI clone. And as you can see, most of the views are a,000, but some actually get over 100,000 views without me having to film anything. And the real question was, what are the criteria that are basically 198 views, right? So, I set this all up through a metagraph API, which is completely free. I made a new app and then I went to the tools, the graph API explorer, added some Instagram

3:05 basic permissions and read pages and just like that he found our 30 last reels sorted by views as top performers and the bottom performers as well. It said a clear pattern already jumping out. the wow factor visual demos crush it where clawed code or productivity content underperforms and I was like that doesn't really make sense can you actually pull a lot more data and just like that it pulled 200 Instagram reels and started getting even more key patterns of what was working and what was underperforming but because Instagram is a bit different than Facebook we had to pull from there as well so we can actually sandbox it based

3:51 on just Instagram and Facebook, no other social media platforms now that it had all the data, but we had to build the eval. So, this is where most people screw up auto research. They make the eval criteria something like, is this engaging or does it sound good? That's just vibes. And what we need is a clear yes no question, no gray area. And please roast me in the comments. I would love for this to improve by you guys improving it as well. But here are the e vowels that we ended up with. This is no vibes. It's just a yes no. Does the hook describe a result or transformation? Not just a feature. Does the hook feature a person or story, not just a company?

4:37 Those are for the hook quality and the content framing. Is the short framed around what you can do, not what it is. Does the script avoid sounding like a press release or change log? Right? So, you can see these are yes no questions that can be answered easily. Would the first frame of this video make someone stop scrolling? These were the 10 questions that we ended up with. And the key is that binary criteria are machine readable. You can feed a script into Gemini and ask it these 10 questions and you get a score out of 10. No subjectivity, no rate this on a scale of 1 to 10, just on vibes. It's just yes, no. But now that we had all of these, we started on wiring the loop. Here is the

5:24 actual system. I'll show you in a minute. Here is the actual code that it wrote. 1,000 lines, a auto research loop that is working exactly like this. The first thing is that we pull our views from Facebook and Instagram. This is really important cuz every morning maybe we got views, maybe we didn't. Then we match an update with views to our air table. This is kind of our production system. It looks like this right now. And this is essentially where we make all the videos. And here is where the videos are stored as well. As you can see, stop everything. Robots are now mastering your favorite sports just by watching our messy YouTube clips.

6:10 Pretty cool. And as you can see, we have the database here for the Eval score performance tier, etc. And the automation in the back end, just to show you, looks a bit like this. And AI can improve this by itself over time. But I'm getting ahead of myself. Next, we prescore new ideas. So we scrape social media every single morning. We have an eval that is actually based on just the sources as well. Even before creating. So there's two sets of evals here. And if it gets above a five score, it answers the creation queue. Next, we score published script. So Gemini reads each script and answers 10 yes no eval questions. That's the one you just saw.

6:56 And outputs a score for every published short. Next we correlate with high eval plus high views equal validated winners. High eval plus low views false positives. That means we have to fix the eval plus handle rankings plus approval rate tracking. As you can see it's getting smarter. Then we generate and push. We write an improved prompt from correlation data winners failures. push new prompt to nan workflow via API and selfimprovement loop is going every 24 hours starting at 8 a.m. my time. All fully automated with one Python script, but you might be wondering how it evolved. As you can see, we started with

7:41 the original prompt that had a hook, detail, tone, close, word budget, and etc. Then it started reframing it from announcement to a curiosity trigger. It pushed it to be broader, more dramatic. Then it tried to deepen the personalization with lifealtering language added. The hook scoped away from events more into universal and timeless discoveries. And we ended up at hoop framing sharpened with secrets about to be revealed. So it went through five meaningful revisions across two days and we can see it all here in this auto research prompt JSON that get updated every single day based on the criteria. But the last part I had to

8:28 figure out was how to run it daily. The last piece is making it hands off. So the script runs every morning at 8:00 a.m. via Launchd. So that's Mac OS's task launcher. Every day it pulls yesterday's views counts and it does all these things right and at the end it actually gives me a summary or auto auto research daily report. Here it has the top performers that we have done the prompt updates with a bunch of changes that it's done with top handles and human approval as well. Currently I have a team member that is using contentmate.2.0.3 0.3 where he is using it himself manually and we got content mate v2.1 now that has this auto improvement

9:13 feature built into it and literally every single day five videos get made and my coworker what he does is watch the video and if it's good he puts this one on schedule if it's not good he just says no and AI learns from this as well making it almost 100% fully automated besides quality inspection. And the beautiful thing is that it never stops getting better. Every day, the pipeline publishes five shorts. 24 hours later, the loop checks back in what happened. The prompts get slightly better. After a week and seven iterations, after a month, 30. Unlike manual tweaking, every single change is logged with the data

10:00 that cost it. So when a smarter model comes out next month, I hand it that research log and it picks up exactly where it last left off. And Karpathy said this himself, the research log might be the most valuable asset. And you can apply this to anything. Your thumbnail prompts, your email sequences, your landing pages. If a prompt has a measurable output, auto research can improve it. This is the coolest thing that I found in a long while, and I'm giving it all away for free. If you want Contentmate, if you want the Nan template and you want the auto improvement loop, head to our free school community where I give away all the resources here inside of the AI clone automation. But I can understand that it is maybe a little bit technical

10:46 for some people. So if you want to implement this way easier, customize it for your business, head into the AIMAT Plus community where I will help you more hands-on. Now I guess all we need to do is wait. I want to make a video in a month from now showing the exact results and what ended up happening. So, subscribe. Maybe it's gotten better or it's posting corn. Who knows? But it's going to be fun. Anyways, thanks for watching and I'll see you tomorrow at

Share

YouTube Video Summaries