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.75

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.75
File Interpreter ABI Platform
codebuff_agent-2.1.75-py3-none-any.whl Python 3 none any Details

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

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

Release history Release notifications | RSS feed

This release

2.1.75 This release

1 release file

2.1.74

1 release file

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