Skip to main content

ARCHIVED: clikernel itself now has the features of conkernel.

conkernel

conkernel gives an LLM agent a persistent, real Jupyter kernel: send code, wait for the result, read concise text, and keep the Python state. It is the sibling of clikernel, which wraps a tiny in-process shell; conkernel runs a full kernel (ipymini by default) in its own process, driven through conkernelclient, so interrupt and restart are real protocol operations and the kernel process is fully isolated from the server.

There are two frontends over one core:

  • conkernel -- a plain stdin/stdout process using clikernel's delimiter protocol, for harnesses that drive background terminals.
  • conkernel-mcp -- an MCP server exposing execute, restart, interrupt, and eval_expr tools.

Picking a kernel

No kernelspecs. A kernel is just a Python module launchable as python -m <module> -f <connection_file> -- ipymini (the default) and ipykernel_launcher both qualify. Pass --kernel <module> to either frontend, or set a default in $XDG_CONFIG_HOME/conkernel/kernel (a one-line file naming the module).

The CLI protocol

clikernel's, including its loading banner: please wait, loading..., then loading complete. first delimiter:, then the random per-session delimiter signalling readiness (launching the kernel process can take a moment, so the banner reports progress before the delimiter arrives). Then one line per request (or a -- block for multiline code, terminated by the delimiter), a . acknowledgement before execution, rendered outputs, then the delimiter. exit() or quit() on its own line stops the worker. SIGINT interrupts the running code -- state survives, and an idle kernel ignores it.

Development

pip install -e .[dev]

Versioning

Version lives in conkernel/__init__.py as __version__. Bump it with:

ship-bump --part 2   # patch
ship-bump --part 1   # minor
ship-bump --part 0   # major

Release

  1. Ensure your GitHub issues are labeled (bug, enhancement, breaking).
  2. Run:
ship-gh
ship-pypi

Release files for conkernel 0.1.1

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

Source distribution (sdist)

Source distribution for conkernel 0.1.1
File Size Uploaded
conkernel-0.1.1.tar.gz 13.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for conkernel 0.1.1
File Interpreter ABI Platform
conkernel-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 25.8 kB

Release files / conkernel-0.1.1.tar.gz

Download URL conkernel-0.1.1.tar.gz
Size 13.8 kB
Tags Source
SHA-256 checksum
How to use checksums
de0d41342d20f7de4e275bf7bd6598e3f9942061b708c6df41cc01ec7db5b4e8
BLAKE2b-256 checksum
How to use checksums
117e2471870115e12cbef1f39ee575638c70222e3bdbb3317cf5b169fdc1e184
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Release files / conkernel-0.1.1-py3-none-any.whl

Download URL conkernel-0.1.1-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e48a884168db2425cab69ac5280c8c15419f78cd42803122703252912c39fc9
BLAKE2b-256 checksum
How to use checksums
598ae14a22bb7e628e0c77ed7cab56b187001662949a1d0fa59b43a902572ba0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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