Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

ctxbrew

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ctxbrew

CLI for packaging docs/source into versioned context bundles for AI agents.

npmnpm
Version
0.1.3
Version published
Weekly downloads
60
140%
Maintainers
1
Weekly downloads
 
Created
Source

ctxbrew

ctxbrew packages repo context into versioned markdown slices and reads those slices from installed npm dependencies.

Install

npm install -g ctxbrew
ctxbrew --version

Author workflow

Initialize config and publish wiring:

ctxbrew init

This creates ctxbrew.yaml, updates package.json (files, scripts.prepack) and adds generated-artifact markers.

Build artifacts:

ctxbrew build

Validate without writing files:

ctxbrew build --check

Generated files:

  • ctxbrew/index.yaml
  • ctxbrew/<slice-id>.md

Consumer workflow

Discover installed packages with context:

ctxbrew list
ctxbrew list @acme/ui

Read one slice:

ctxbrew get @acme/ui components

Search across slices:

ctxbrew search "dialog focus trap"
ctxbrew search "theming" --limit 5

Config format (ctxbrew.yaml)

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.
  • id must be unique kebab-case.
  • include is required and non-empty.
  • compress is optional and defaults to false; when enabled, JS/TS files are reduced to top-level signatures.
  • Overlap policy: first matching slice owns the file.

Setup for agents

ctxbrew setup
ctxbrew skill --agent cursor

Exit codes

  • 0 success
  • 1 not found
  • 2 validation error
  • 64 usage error

Keywords

cli

FAQs

Package last updated on 25 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts