Skip to main content

Codebuff Agent

JupyterLab extension for AI-powered code assistance with embedded agent services.

Architecture

This extension runs agent services in-process:

  • Provides the JupyterLab frontend UI
  • Handles Jupyter-specific integration (kernel communication, notebook manipulation)
  • Runs LLM-based agent services directly via codebuff_core

Prerequisites

  • JupyterLab: Version 4.0 or higher

Installation

Development Installation

# Install dependencies
yarn install

# Build extension
yarn build

# Install in JupyterLab (development mode)
pip install -e .
jupyter labextension develop . --overwrite

Starting the Development Environment

cd extensions/jupyter
jupyter lab

Configuration

Configure LLM settings in ~/.jupyter/codebuff_config.json:

{
  "provider": "vllm",
  "vllm": {
    "endpoint": "https://openrouter.ai/api/v1",
    "apiKey": "",
    "model": "openai/gpt-4o"
  }
}

Development

Watch Mode

# Terminal 1: Watch TypeScript
yarn watch:src

# Terminal 2: Watch labextension
yarn watch:labextension

Testing

# Run UI tests
yarn test:ui

# Run UI tests with browser visible
yarn test:ui:headed

License

MIT

Frontend lint

Run jlpm lint:check for ESLint (TypeScript/TSX under frontend/) and Stylelint (CSS under frontend/styles/). jlpm lint runs the same checks; jlpm lint:fix applies automatic fixes. Generated lib/, labextension bundles, and dependencies are excluded.

Prettier is a separate, opt-in formatting operation: jlpm prettier:check reports existing formatting differences and jlpm prettier rewrites frontend files. It is intentionally outside lint so restoring lint does not reformat the whole UI.

The existing codebase reports unused variables, redundant escapes, ANSI regexes, and CSS selector ordering/duplicates as warnings. Syntax and recommended correctness rules remain errors, including invalid React hook usage. Streaming while (true) readers and empty catch blocks are allowed intentionally. ESLint does not establish module reachability; that guard is tracked in issue #59.

Metadata

Release files for codebuff-agent 2.1.77

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for codebuff-agent 2.1.77
File Interpreter ABI Platform
codebuff_agent-2.1.77-py3-none-any.whl Python 3 none any Details

Release files / codebuff_agent-2.1.77-py3-none-any.whl

Download URL codebuff_agent-2.1.77-py3-none-any.whl
Size 2.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f2875d5c0738bd588260f1af811d1e75ad4b61eeed597bc1814c6b6956cae7c4
BLAKE2b-256 checksum
How to use checksums
0bc6c1fbd408d654a23449345a0a418e8468b30c40aba5bba8414042635600b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for codebuff-agent 2.1.77

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page