Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 10 min read Case study mediumAdept

Shipping huggingface_hub every week with AI, open tools, and a human in the loop

huggingface_hub moved from releases every 4-6 weeks to weekly releases driven by a single GitHub Actions workflow that automates versioning, tagging, PyPI publishing, downstream test branches, post-release bumps and Slack reporting, with an open-weights model (GLM via HF Inference Providers, run through OpenCode) drafting release notes and announcements. The key pattern wraps the model in deterministic guardrails: a script extracts PR numbers from squash-merge commits as a manifest, diffs it against PRs referenced in the draft, and re-prompts the agent to fix missing or extra entries. The model is grounded with docs diffs from each PR, and a human edits the draft before promoting the RC. Publishing uses PyPI Trusted Publishing with OIDC and Sigstore attestations plus a checksum-pinned agent runtime, and each release costs about $0.25 in inference.

Related posts

  • huggingface_hub v1.0: Five Years of Building the Foundation of Open Machine Learning

    Hugging Face easyNovice

    huggingface_hub reaches v1.0 after five years, with breaking changes. It replaces requests with httpx for HTTP/2, thread-safe connection reuse and a unified sync/async API. It also makes hf_xet the default transfer backend, ships a redesigned Typer-based `hf` CLI that replaces huggingface-cli, and removes legacy pieces like the Git-based Repository class, HfFolder, InferenceApi and hf_transfer. Most libraries work with both v0.x and v1.x, except transformers (v4 needs v0.x, v5 needs v1.x). v0.x will receive only security fixes. The history covers the 2022 shift from Git to the HTTP Commit API with a shared deduplicated cache, and Xet's chunk-level (64KB) deduplication, now used by 77PB+ across 6M+ repositories.

  • Automating cross-repo documentation with GitHub Agentic Workflows

    GitHub Engineering mediumAdept

    Aspire's team uses GitHub Agentic Workflows to auto-draft documentation pull requests in a separate docs repo whenever a product pull request merges, with the shipping engineer assigned as reviewer. The agent gets read-only access and emits intent, while a narrowly scoped safe-outputs handler with a two-repo GitHub App token, branch allow-lists, protected files and draft-only PRs performs the writes. A deterministic bash resolver maps milestones to docs release branches before the agent runs. Over 30 days, 396 runs produced 82 docs PRs, all merged, at a median 44.8 hours, after the prompt was tightened with negative examples to cut an initial ~13% false-positive rate.

  • Continuous AI for accessibility: How GitHub transforms feedback into inclusion

    GitHub Engineering mediumAdept

    GitHub built an event-driven accessibility feedback pipeline on GitHub Actions, Copilot and the GitHub Models API that turns every user report into a tracked, prioritized issue. Issue creation triggers Copilot analysis that uses stored, PR-editable prompt files instead of fine-tuning. The analysis fills about 80% of 40+ metadata fields and suggests WCAG criteria, severity, affected user groups, team assignment and a reproduction checklist. A second Action parses Copilot's comment to apply labels and board status. Humans verify at each stage, and their corrections are logged to refine the prompts. About 75–80% of reports match existing audit findings and get reprioritized by real-world impact, and issues close only once the user confirms the fix works.

  • Beyond the Chatbot: Event-Driven Agents in Action

    Docker mediumAdept

    A GitHub webhook-triggered agent workflow automatically detects "I finished the tutorial" pull requests on Docker's sample repos, generates an encouraging comment, and closes them without any chat interface. It is built with the TypeScript Mastra framework, local Qwen3 (analysis and execution) and Gemma3 (comment generation) models via Docker Model Runner, and the GitHub MCP server exposed through Docker MCP Gateway with tools filtered down to reduce context size, all wired together in Docker Compose. Key lessons: prompt iteration is still hard, small local models are easy to swap and compare via Compose, and deterministic steps like posting a comment and closing a PR are more reliable done programmatically than by an agent.

  • The 5 Most Under-Rated Tools on Hugging Face

    Hugging Face mediumAdept

    Five overlooked Hugging Face Hub features (ZeroGPU, multi-process Docker Spaces, the Gradio API client, Hub webhooks and Nomic Atlas) can be combined into a free, automatically updating semantic search pipeline, demonstrated over a subreddit data source. A scheduled Space pulls Reddit posts into a dataset, a webhook triggers a processing Space, and that Space calls a ZeroGPU-hosted nomic-embed-text-v1.5 model through gradio_client to add embeddings and build an Atlas map. Practical details include the @spaces.GPU decorator, supervisord config for running a worker and a log viewer in one container, and webhook handling: respond within 30s using background tasks, and filter by repo scope, main branch and changed files.

The quest for software engineering knowledge.

Look:
Layout: