惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Vercel News
Vercel News
N
Netflix TechBlog - Medium
C
Check Point Blog
MyScale Blog
MyScale Blog
The GitHub Blog
The GitHub Blog
Blog — PlanetScale
Blog — PlanetScale
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
博客园 - Franky
MongoDB | Blog
MongoDB | Blog
I
InfoQ
Hugging Face - Blog
Hugging Face - Blog
Recent Announcements
Recent Announcements
人人都是产品经理
人人都是产品经理
腾讯CDC
V
Visual Studio Blog
Engineering at Meta
Engineering at Meta
T
The Blog of Author Tim Ferriss
V
V2EX
云风的 BLOG
云风的 BLOG
Microsoft Azure Blog
Microsoft Azure Blog
U
Unit 42
B
Blog

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - artem-mangilev/ctxbrew: 📦 Ship & Use AI-friendly...
mangilev · 2026-04-26 · via Hacker News: Show HN

ctxbrew logo

Ship & Use AI-friendly package context.

ctxbrew is a CLI and protocol for shipping and consuming AI-friendly library context.

It helps:

  • library authors ship context with minimal effort and configuration
  • library users get better AI responses to prompts related to their dependencies.

✨ Features

  • 🧑‍💻 Simple authoring: define a ctxbrew.yaml, build context artifacts, and publish them with your package.
  • 🤖 Simple consumption: install ctxbrew, generate an agent skill, and let the LLM discover context from installed libraries.
  • 📦 No extra hosting: ship context as part of your library.
  • 🏷️ Version correctness: read context from the installed package version.
  • Fast local access: extract context from local package files with no network calls.
  • 🪄 Token efficiency: split context into focused slices and compress supported sources into top-level signatures.

🗺️ Roadmap

  • JavaScript ecosystem support
  • Python and pip support
  • Go modules support
  • Rust and Cargo support
  • Java and Gradle support
  • C# and NuGet support
  • PHP and Composer support
  • Ruby and RubyGems support
  • Dart and pub.dev support
  • Homebrew support
  • Community context registry for packages without first-party support
  • Website

🚀 Quick Start

🧑‍🍳 Library Author Workflow

  1. Install ctxbrew and create a config:
npm install ctxbrew --save-dev
npx ctxbrew init

This creates ctxbrew.yaml.

  1. Edit ctxbrew.yaml and describe context slices.

Each slice may cover one focused feature, workflow, or concept. Smaller slices help agents request only the context they need and keep token usage lower.

  1. Validate and build the context:
# Validate config and input files without writing artifacts.
npx ctxbrew build --check

# Generate ctxbrew/index.yaml and ctxbrew/<slice-id>.md files.
npx ctxbrew build
  1. Publish the generated ctxbrew/ folder with your package.

The exact setup depends on your release pipeline. You can see an example integration.

🧭 Library Consumer Workflow

  1. Install ctxbrew globally to use it across repositories:
npm install -g ctxbrew
  1. Set up agent skills:
# Generate ctxbrew skills in supported agent locations.
ctxbrew setup

# OR print the skill markdown to stdout.
ctxbrew skill
  1. Let the generated skill guide your agent:
# List packages with ctxbrew context in node_modules.
ctxbrew list

# List slices for one package.
ctxbrew list @org/library

# Read one slice.
ctxbrew get @org/library components

# Search slices by id and description.
ctxbrew search "dialog focus trap"

🧩 Config Format

ctxbrew.yaml describes the context artifacts that will be generated into ctxbrew/.

version: 1
slices:
    - id: overview
      description: High-level architecture
      include:
          - README.md

    - id: components
      title: Components
      description: UI components and usage
      compress: true
      include:
          - src/components/**
          - docs/components/**

✅ Rules

  • version is required and currently must be 1.
  • slices must contain at least one slice.
  • id must be unique kebab-case.
  • description is required and is used by ctxbrew search.
  • include is required and must match at least one file during build.
  • title is optional; when omitted, it is generated from id.
  • compress is optional and defaults to false. When enabled, supported files are reduced to top-level signatures.

🛠️ CLI Reference

ctxbrew init [--cwd <dir>] [--force]
ctxbrew build [--check] [--cwd <dir>]
ctxbrew list [package]
ctxbrew get <package> <slice>
ctxbrew search <query> [--limit <n>]
ctxbrew setup [--cwd <dir>]
ctxbrew skill

🧪 Development

bun install
bun run dev -- --help
bun test
bun run typecheck
bun run build

📄 License

This project is licensed under the MIT License.