# How I automate my own job at Hugging Face using agents — Niels Rogge, Hugging Face

AI Engineer · 2026-08-20

<https://aiengineer.podhood.com/09f0c148-4ca2-4c6d-9294-ecc3ffc6f70d>

Niels Rogge, machine learning engineer on Hugging Face's community science team, explains how he automated his own job: agents ask researchers to publish paper artifacts on the Hub instead of Google Drive, Dropbox, or Zenodo. The outreach is a deterministic nightly workflow on GitHub Actions cron jobs with LangFuse tracing; follow-ups run as a fully autonomous Claude Agents SDK loop, with each GitHub issue in its own Modal container using Bash and one Hugging Face CLI skill. Thousands of issues have drawn only two negative replies, and he doesn't disclose the bot because recipients reply to the same messages he used to send. He argues open models like GLM 5.2 can replace closed ones, and cites his Daily Papers X account (90,000 followers) and a Papers with Code revival at paperswithcode.co.

## Questions this episode answers

### Why did Niels Rogge build his first Hugging Face outreach automation as a deterministic workflow instead of an agent?

Niels says he chose a deterministic workflow because Anthropic's 'Building Effective Agents' post at the time advised avoiding agents unless truly needed, starting with a single LLM API and no frameworks. He replicated his manual outreach path using LLM API calls at each step, which made it predictable and controllable.

[5:58](https://aiengineer.podhood.com/09f0c148-4ca2-4c6d-9294-ecc3ffc6f70d?t=358000)

### What tools does Niels use to run and trace his nightly automated workflow?

He runs a Python script with LLM APIs as a cron job on GitHub Actions, once every night, to read hundreds of arXiv papers and open GitHub issues or pull requests. He uses LangFuse for tracing, to inspect inputs, outputs, prompts, cost, and latency.

[6:59](https://aiengineer.podhood.com/09f0c148-4ca2-4c6d-9294-ecc3ffc6f70d?t=419000)

### Why did Niels switch from a workflow to a fully autonomous agent for following up on GitHub issues?

Niels switched because an Anthropic workshop on the Claude Agents SDK at AI Engineer in New York said agents might be better than workflows, since models have become so good. His follow-up is a fully autonomous loop using the Claude Agents SDK, with Bash as its main tool, one Hugging Face CLI skill, and a sandbox, using batch processing to give every GitHub issue its own parallel container.

[9:14](https://aiengineer.podhood.com/09f0c148-4ca2-4c6d-9294-ecc3ffc6f70d?t=554000)

### Why does Niels not tell researchers that his GitHub issues are written by an agent?

Niels does not disclose that the outreach is an agent because people tend to close bot-created issues unread, and the agent sends exactly the same requests he used to send manually. Out of thousands of issues created on Hugging Face, he says only two negative comments have appeared.

[14:01](https://aiengineer.podhood.com/09f0c148-4ca2-4c6d-9294-ecc3ffc6f70d?t=841000)

## Key moments

- **[0:00] Intro**
- **[0:58] Community problem**
  - [1:46] Niels Rogge calls Hugging Face's community science team the 'Google Drive to the hub team' — it moves paper weights off Google Drive, Dropbox, Zenodo onto the Hub.
- **[3:46] Automation**
  - [4:22] Niels Rogge's manual outreach workflow: find the paper's GitHub URL, read the README, check for artifacts, open an issue or PR, then follow up with the author.
- **[5:08] Workflow vs agents**
- **[5:58] Deterministic workflow**
  - [6:11] Niels Rogge built a deterministic workflow instead of an agent in 2024 because Anthropic's 'Building Effective Agents' post advised avoiding agents unless you genuinely need one.
- **[6:59] Cron and tracing**
  - [7:19] Niels Rogge runs his outreach workflow as a nightly cron job on free GitHub Actions, opening hundreds of GitHub issues automatically while he sleeps.
  - [7:56] Niels Rogge uses LangFuse to trace every nightly agent run, inspecting prompts, cost, and latency for the hundreds of issues his workflow opens.
- **[8:15] Follow-up**
- **[9:14] Autonomous agent**
  - [9:14] Niels Rogge automated follow-up on GitHub issues with a fully autonomous agent after the Anthropic Claude Agents SDK workshop at AI Engineer NYC.
- **[10:22] Architecture**
  - [10:22] Niels Rogge replaced thousands of lines of custom code with an agent using Bash, one Hugging Face CLI skill, and a sandbox — following Cursor's 200-line skill talk.
  - [10:55] Niels Rogge uses open-source GLM 5.2 via Hugging Face inference providers because GLM 5.2 beats Opus 4.8 on post-training bench and is cheaper.
  - [12:03] Niels Rogge deploys the follow-up agent on Modal batch processing, which spins up one container per GitHub issue so each issue gets its own agent loop.
- **[13:45] Results**
  - [14:01] "I don't disclose that it's an agent. Why? Because I think if people know it's a bot, then they might quickly, like, close the issue."
  - [14:34] Only two negative replies came from thousands of GitHub issues opened by Niels Rogge's agents; one researcher asked to close the 'slop' issue.
  - [15:17] Niels Rogge's agents convinced Google DeepMind to publish a 400-gigabyte dataset and PaddleOCR to migrate OCR models to Hugging Face.
  - [16:45] Niels Rogge's most popular agent-created GitHub issue — Tiny Recursive Models — got more than 60 upvotes and led to the model's release on Hugging Face.
- **[17:33] Evals and next**
  - [18:06] Niels Rogge's conclusion: open models like GLM 5.2 and DeepSeek V4 are now good enough to replace closed-source models in his agent setup.
  - [18:58] Niels Rogge's Daily Papers Twitter account crossed 90,000 followers with no involvement from him, using the same agent workflow and Gemini to pick tweet visuals.
  - [19:44] Niels Rogge is reviving Papers with Code at paperswithcode.co, adding benchmarks and educational explainers like mid-training and on-policy distillation.

## Speakers

- **Niels Rogge** (guest)

## Topics

Autonomous Agents, Agent Skill Design, Developer Productivity

## Mentioned

GitHub (company), Hugging Face (company), Claude agents SDK (product), Cursor (product), Daily Papers (product), Dropbox (product), GLM (product), GitHub Actions (product), Google Drive (product), Hugging Face CLI (product), Langfuse (product), Model (product), Papers with Code (product), Slack (product), arXiv (product)

## Transcript

### Intro

**Niels Rogge** [0:17]
Okay. Allright. Hello everyone, thanks for coming by. Today I'll talk about how I automate my own job, uh, at Hugging Face using agents. Um, short introduction: I'm just, uh, Niels from Belgium, the land of beer, fries, and chocolate.

I studied at KU Leuven, uh, and I'm a machine learning engineer at Hugging Face for 5 years now.

Uh, today I'll talk about the community science team at Hugging Face, which is the team I'm part of. Uh, then I'll talk about how I automate large parts of the community science team, and finally, I'll also discuss some other efforts, uh, that we do at Hugging Face.

### Community problem

**Niels Rogge** [0:58]
So let's start with the community science team at Hugging Face. So basically, this started when I was sen- uh, I was seeing, like, trending research, uh, po- passing by on GitHub. And a lot of times when I saw new interesting work, um, the weights were not available on Hugging Face, sadly.

Like, researchers use either Google Drive or they use GitHub releases. They use Dropbox, they use Zenodo, or other servers to put their, um, artifacts on, and this hurts, uh, discoverability of their work. It's, like, not easily, uh, visible or discoverable.

And when I then open a GitHub issue to say, like, "Actually, you could put your weights on Hugging Face for free," most of the time people, uh, reply to me like, "Yeah, migrating the weights, uh, from Google Drive to Hugging Face actually makes perfect sense."

So, yeah, the community science team can also, uh, be described as the Google Drive to the hub team. Um, why? Because on Hugging Face we have these paper pages, uh, and every single paper is sourced from arXiv, and then on theright side you can basically list the linked artifacts, like the, the linked models or datasets, so people can easily, uh, reproduce your paper or find the models or datasets.

So, yeah, you can see them on theright side. Um, this improves the discoverability of your work because we have these metadata tags or filters on the hub, so you can easily find, for example, a depth estimation model, uh, an LLM if you're interested.

You can find them by language, you can tag them, uh, with the library they are compatible with, and so on. So this improves the discoverability of your work. So these are, yeah, the metadata tags that you can add to every single model on Hugging Face or every single, uh, dataset.

So, yeah, this is, like, the main problem that we saw. Like, uh, lots of people, lots of researchers are, like, using third-party services to publish their work. We have the Hugging Face platform, which is like a centralized place where people can find machine learning artifacts.

Uh, it also improves with documentation because you can add a model card or a dataset card. We have tooling so you can easily upload or download stuff from Hugging Face. Uh, and it might also help res uh, researchers in promoting their work.

So it's basically a win-win, uh, both for researchers and then other people using the research. So, yeah, these are the typical GitHub issues that I was opening. Uh, I always had, like, the same template. I just asked, "Could you please release these checkpoints on Hugging Face?

Could you please release this dataset on Hugging Face?" And then I also opened PRs, pull requests, on Hugging Face to add dataset cards or model cards to improve the documentation of those artifacts. But there's a problem. Uh, it's not really scalable for me to open all these GitHub issues or pull requests because every single day there are, like, hundreds of research papers coming out on arXiv, especially now with the AI boom.

Um, yeah, also NURIPS, for example, a major AI conference, they are seeing a massive amount of papers. So can we automate this? Can we scale the community science team with agents? So that's the second part of my talk.

### Automation

**Niels Rogge** [3:59]
How can we, yeah, scale this, uh, to a massive amount of research papers? So the idea is pretty simple. Uh, we should have an AI agent which can help me do this outreach to all these researchers which publish, uh, models or datasets, uh, as part of their research work, and then, yeah, do the outreach in an automated way.

So this is the typical workflow that I was following. So basically, whenever I saw a research paper, I first tried to find the GitHub URL, uh, of that paper, if it's available. Then I, I read the README of that GitHub, uh, file, and then I basically check if there's anything new, uh, interesting to be shared on Hugging Face.

Uh, it could be that it's on Hugging Face already. In that case, I check whether the model cards or dataset cards are already properly, uh, present, whether the metadata tags, for example, are there. If, uh, not, then I might open a pull request.

Otherwise, if the artifacts are not yet on Hugging Face, I open a GitHub issue. And then finally, I also follow up with the author. So that's kind of the workflow that I had to automate, uh, with agents. And there are several ways to solve this.

Uh, you could, uh, go with a workflow. Uh, these pictures are, by the way, taken from the blog post, "Building Effective Agents by Anthropic," which is a really great read, uh, read. Um, so on the left side you see, yeah, a workflow which is more deterministic.

### Workflow vs agents

**Niels Rogge** [5:22]
You basically use LLM APIs within steps of a predefined path or pipeline, uh, which is more predictable. It's more deterministic. You have more control over it. Of course, it's less flex-flexible. And then on the other hand, you could have a fully fledged auto- uh, autonomous agent, which is an LLM in a loop that calls tools until it's done, which is more flexible but also less, uh, predictable.

Uh, at the time, yeah, of course, it doesn't have to be a binary story. Uh, you can have a workflow on one hand. You can have a fully autonomous agent on the other hand. But you could, you could, of course, also mix and match these type of things, uh, for your use case.

In my case, I went for, um, a pretty deterministic workflow. Uh, why? Because at the time that I was building this, this was in 2024. It was at the time that Anthropic, uh, wrote their blog post, "Building Effective Agents."

### Deterministic workflow

**Niels Rogge** [6:11]
And there they actually said, "Try to avoid building agents if you really don't have to. Start simple. Start with a single LLM API. Uh, avoid frameworks." Uh, and actually, I think those were great tips. So at the time, I started building a workflow which basically replicated the workflow that I was doing when I was doing this outreach.

So, yeah, this is the whole, uh, pipeline. This is created using the Xcali Draw MCP server and cursor. It's pretty nice to create a visualization of your code. Uh, I'm not gonna go into the details, but basically it just replicates, uh, the workflow that I, I was doing when doing the outreach.

And I use LLM APIs in each of the steps without any framework, without any agent framework. So it made it quite, uh, deterministic, and I had a lot of control over, uh, how this goes.

### Cron and tracing

**Niels Rogge** [6:59]
Um, in terms of deployment of this, uh, workflow, it's a simple cron job. So a cron is just something that runs regularly. In my case, I run it once every night. So when I'm sleeping, there is this agent, but technically it's just a cron job, a, a Python script with an LLM API which is gonna read all these hundreds of arXiv papers.

Uh, and then it might open GitHub issues, or it might open pull requests on Hugging Face. I'm using GitHub Actions for this. Uh, I saw this very nice blog post, "Free cron jobs with GitHub Actions." And actually, it's probably the best entry point if you wanna set up cron jobs, uh, because GitHub has a pretty generous tier if you wanna get started with, like, putting simple cron jobs, uh, up there.

And, yeah, it makes it really easy for me, uh, in the UI to manage all these cron jobs. And so, yeah, every night I have, uh, hundreds of, uh, GitHub issues being, uh, created. For the tracing part, um, I'm using LangFuse.

Uh, yeah, LangFuse also has a, a boot here. Um, LangFuse is pretty great. Um, I use it mostly for the tracing part, the observability part, just to see what is the LLM doing, what are the inputs, what are the outputs, what are the prompts, uh, how much does it cost, latency, and so on.

Um, so, yeah, uh, I definitely recommend it. Um, but, yeah, as my agents are opening so many GitHub issues every night, I then end up with a l a massive amount of unread GitHub notifications because people reply to those GitHub issues.

### Follow-up

**Niels Rogge** [8:31]
And that's, uh, a lot of work to then reply to all of those issues. It's kind of like going through your, uh, mailbox. So you could wonder, could we also, um, automate the follow-up to those GitHub, uh, issues?

Because initially I was still the GitHub issue creation was done, uh, by an agent, but I was still the one involved in then doing the follow-up. Uh, now a few months ago I also automated the, the follow-up to those GitHub issues.

Again, you could think, how should you solve this? Should you go for a more deterministic workflow, or can you go for a fully autonomous agent, uh, an LLM in a loop which runs with some tools and skills? Um, well, here I went for kind of a fully autonomous agent, uh, so it's kind of flexible.

### Autonomous agent

**Niels Rogge** [9:14]
It's a bit less predictable, but it works quite well. Um, I went for this because, uh, in November of last year at AI Engineer in New York, there was a pretty nice workshop by Anthropic on the Claude agents SDK.

And there they were actually saying that agents might be better than workflows. So they so they were kind of contradicting themselves. But they also said that models have become so good that you might actually now start to work with fully autonomous agents rather than a workflow.

So this is why I went with this approach, and I actually am using the Claude, uh, agents SDK for this use case. Uh, there was another pretty nice talk, uh, by Cursor, also at AI Engineer. This was in the European version in London, uh, a few months ago.

There they talked about how they replaced 12,000 lines of custom code, pretty sophisticated workflow, with a very simple 200 lines of code skill. Uh, actually, it's pretty similar for me. Like, I can rep uh, replace a lot of custom code, thousands of lines of code, with nowadays just a simple agent with maybe a CLI as a tool, uh, and a skill, and that's it.

Um, 'cause the models have become so good. So, yeah, in terms of the, uh, architecture, this is a bit what it looks like. Um, so it's actually just the Claude agents SDK, which is, I would say, a pretty good Python SDK for building an agent.

### Architecture

**Niels Rogge** [10:37]
Initially I was using the Claude models, uh, but then I since actually this week I'm using the GLM 5.2 model via Hugging Face inference providers. So Hugging Face does offer, uh, a service, uh, which basically wraps a lot of inference providers like Together.ai, Fireworks, Cerebras, and so on.

So you can use a lot of open models, uh, in a unified way. It's OpenAI compatible, uh, or Anthropic compatible. And then, uh, I deploy this on a model. Model is also present here today. Um, and it's mainly using, uh, Bash as a tool, so the terminal, to, uh, basically, um, do Hugging Face commands because it's using the Hugging Face CLI quite a bit.

So I, I combine it with the Hugging Face CLI skill, which is actually all it needs. And then, um, it might con-comment something on GitHub as a follow-up. And it also actually does the posting on Slack because eventually I also want to see the final results on our Slack channel, uh, from Hugging Face.

So, yeah, given that there's also a lot of hype on GLM 5.2 recently, for example, Cursor, uh, saw great performance on their Cursor bench. Post-training bench is another one, uh, where it actually beats Opus 4.8, and it's cheaper.

So, yeah, there's no reason not to use GLM 5.2, uh, especially given that I work at Hugging Face now. Um, for the deployment, as I said before, I used model. Um, it's pretty great if you wanna deploy agents.

Uh, in my case, I'm using the batch processing feature. So they allow you to spin up a massive amount of containers all in parallel. Every single container is basically one agent loop that is processing one GitHub issue. Uh, it's super easy to use, I have to say.

Um, and the startups are also pretty fast. So I definitely recommend it if you're building, uh, agents that are, like, for example, running in the background, running overnight, for example. Um, and then the way I invoke it, yeah, technically I could also just, uh, deploy this as a cron job.

Model, for example, has support for this. But typically the follow-up on the GitHub issues, I still do that actually manually by invoking it as a skill. So I created a skill for this in Cursor. Uh, I call it process_unread_model.

And then what it's gonna do is it's actually gonna invoke an agent, in this case Composer 2.5, which is, like, the agent that I'm mostly using in Cursor, which is again gonna invoke all the other agents. So that's this is kind of the loop that people are talking about.

And then finally it's gonna post, uh, all the results on our Slack channel. Uh, so, yeah, and this is actually what it just posts. So what it does is it basically just posts a huge amount of Hugging Face papers, uh, which are these research papers which people can, uh, make available on Hugging Face because every time someone mentions it in a model card or dataset card, we index it on the hub.

And then it just posts all the artifacts that people have been uploading based on the outreach that we do via GitHub. Um, so, yeah, I do this still, uh, in a manual form. So I just invoke the skill, and then after a few minutes these messages, uh, appear on our Slack channel.

Um, yeah, I just included some fun results because, to be honest, it's quite fun to see people interacting with the agents. Um, to be honest, I don't disclose that it's an agent. Why? Because I think if people know it's a bot, then they might quickly, like, close the issue.

### Results

**Niels Rogge** [14:01]
And to be honest, they post exactly the same stuff as I was doing before manually. So I don't actually see any reason to, to do that. Um, so and then you see replies like this, uh, "Hi, Niels. Thanks a lot for your suggestion and the clear guidance."

I actually also oftentimes see people using an agent to reply to my agents. Uh, so it's kind of the dead internet nowadays. Uh, but people, yeah, make all their artifacts available on Hugging Face. And out of the thousands of issues that are being created on Hugging Face, actually so far I've only had two, uh, negative comments.

One guy saying, uh, "Yeah, please close this slope." So he closed the issue. And then another one. But most of the people, they just say, "Yeah, actually it makes perfect sense to make my weights or my datasets available on Hugging Face.

Like, why didn't I think of this?" Um, so it's kind of a win-win, I would say. Uh, I oftentimes al-also post fun results on our Slack channel. Like, for example, one time someone, a researcher from Apple, uh, sent me a DM like, "I saw you reached out to me."

But yeah, technically it's my agent just posting a GitHub issue, uh, regarding publishing a new Apple, uh, the artifacts of an Apple paper on Hugging Face. Or, for example, it reaches out to Google DeepMind to, uh, publish, um, mathematics datasets.

Um, so a lot of times, like, I receive emails, the one on theright side, where, yeah, they want to publish a 400 gigabyte dataset on Hugging Face, but this was also my agent just, uh, opening GitHub issues. Um, yeah, this is another fun result.

So, uh, Paddle OCR, it's like a Chinese, uh, company. They migrated all their OCR models to Hugging Face based on outreach by, uh, the agents that create is-issues for me. So, um, yeah, it's pretty nice. Another fun result is, like, when it when it completes the default templates of model cards on Hugging Face.

So, uh, Mac Mitchell, who also works at, uh, Hugging Face, she has a famous paper called Model Cards for Model Reporting, making sure that anyone documents their models, uh, in a proper way. And so we do provide this template, which you can see on the left side in the Git diff.

And then, uh, the agent is just completing that template based on the content that it finds based on that paper, like the GitHub README, uh, the PDF itself, and so on.

Um, yeah, it's also quite funny to see, for example, in this case that it, uh, included me in, uh, the model card. It said, uh, "Model Card authors: Niels, part of the Hugging Face community science team." I never prompted it this way, but it's pretty fun to see.

Or people, uh, replying, "Thank you for helping me fix my mistakes." So those are all done by, uh, the agents.

Uh, I think the most popular GitHub issue that was created was this, uh, paper, uh, "Tiny Recursive Models," which you might have seen was quite trending, uh, both on Hugging Face but also on Twitter. Uh, so, yeah, more than 60 people actually upvoted that issue so that the model was released on Hugging Face.

So this is, again, I think the win-win. So it's both a win for the researcher making their research more discoverable on Hugging Face, but it's also, yeah, better for the people then who want to build on top of that research and want to use them.

Uh, so, yeah, I, I have hundreds of GitHub issues where I think I can show, uh, nice results, um, where people interact with the agents. You might also wonder, yeah, how to avoid slop because you might think, okay, you have an agent, uh, spamming the whole internet with your GitHub issues.

### Evals and next

**Niels Rogge** [17:33]
Like, should you even do this? Again, I already talked about the win-win. Um, but a blog post that I highly recommend if you wanna avoid that your agent is just posting slop is, um, the LLM Evals FAQ, uh, by Hamel Hussein.

Uh, I would say he's, like, the main expert when it comes to LLM evaluation. He also has, like, a paid course, but he also publishes a lot of stuff for free online, including this blog post. So I highly recommend to go through it if you wanna learn more about how to evaluate your agents.

So my conclusion would be, um, that open models are actually getting great, especially now with GLM 5.2. You have DeepSeek V4 and so on. So, um, yeah, we, we are able to now replace closed-source models by open ones.

Uh, for my use case, I would say agents are actually better than, uh, workflows. Uh, they only need a single CLI, which is the Hugging Face CLI. They need a single skill, the Hugging Face CLI skill, and a sandbox, and that's all they need to do their work.

And finally, yeah, don't forget about evaluation. Um,

finally, uh, I can also discuss some other efforts that we do as part of the community science, uh, team, um, very shortly. Um, so I have a Twitter account that I created. It's called Daily Papers. And it actually uses the exact same workflow as my agents behind the scenes to post interesting research papers on X.

It, uh, recently crossed 90,000 followers without any involvement of me. I just deployed this, uh, and it posts interesting research papers and artifacts from Hugging Face every four hours or every time someone, uh, releases something cool on Hugging Face.

Um, so, yeah. And I have, like, Gemini, uh, determining the best visual to tweet or to include in the tweet. Like, for example, this recent tweet, uh, where it tweeted out that Nvidia released an optimized version of GLM 5.2, got more than 2,000 likes.

So that's pretty cool, uh, to see. And a final effort that I'm working onright now is a revival of, uh, Papers with Code, which is a website that once existed. Then it was acquired by Meta, uh, and then sadly it, uh, died.

So I'm, I'm trying to re-revive it in making a research and state-of-the-art easier accessible. Um, for now it lives at paperswithcode.co. Uh, so, yeah, you can find benchmarks over there. Uh, for example, for OCR models, all OCR benches like Popular Benchmark.

But I'm also, uh, making it an educational resource so that people can learn about technical terms like mid-training, uh, on-policy distillation, and so on. So, yeah, uh, that was it for my talk. I hope, uh, you learned something.

Thanks all for your attention.

---

This library is powered by PodHood (https://podhood.com), the podcast website platform.
