Skip to main content

hearthside

The chat terminal for hobkin: the seat by the fire where you talk to it.

hobkin is one standard-library file, and its own hobkin chat is deliberately plain, for when nothing else can be installed: lines in, output printed as it comes. Install hearthside beside it and hobkin chat uses it instead:

pip install hearthside        # or: pip install "hobkin[chat]"
hobkin chat
  • Input that's yours. Enter sends. Alt+Enter starts a new line (so does Shift+Enter, in terminals that tell it apart from Enter: kitty, WezTerm, recent iTerm2 and Windows Terminal; Ctrl+J works everywhere). A paste lands as one block you can edit before sending, however many lines it has. Up arrow walks your history.
  • Output above, never through. What the agent says appears above your prompt while you type.
  • A status bar with what the agent's doing right now.
  • Help on F1 (and /help): every command, a line each; /help model for one in full.
  • Commands complete as you type, with what each does beside it. /model then Tab is a model picker: your configured models, each with its service, the one in use, and any rate limit it's waiting out. Pick the same model on another service when one runs out of quota, and the switch happens at once.
  • Code blocks in colour, by the language their fence names (Pygments).
  • Tab completes file paths as you type them in a message, from the folder you started the chat in.
  • Not full-screen, on purpose: your terminal's scrollback, search and copying work as they always do. To copy a code block the agent wrote, /copy (hobkin's) puts it on your clipboard; /copy 2 the one before.

Ctrl-C clears what you've typed, Ctrl-D leaves. HOBKIN_CHAT=plain hobkin chat gives you hobkin's plain chat even with hearthside installed.

For other programs

hearthside never imports hobkin. Anything that can hand it a few callables can use it:

import hearthside

hearthside.chat(
    "s1",                       # who you're talking to
    recent_lines,               # shown first (ANSI colour is fine)
    poll,                       # poll() -> new output lines; called from a thread
    send,                       # send(text): a message, newlines and all
    status=status,              # status() -> what it's doing, or None when it's waiting for you
    history="~/.my_history",    # input history (hearthside's own format)
    commands={"/stop": "finish and exit"},   # or just a list of words
    local={"/copy": copy, "/help": help},     # answered here, never sent: fn(rest) -> text to print ("/help" is F1)
    arguments={"/model": models},             # models() -> [(value, what it is)]: the menu after "/model "
)

Development

python3 tests/test_hearthside.py drives chat with typed keys (no terminal needed). Releases: publishing a GitHub release vX.Y.Z matching __version__ uploads to PyPI.

Metadata

Release files for hearthside 0.2.0

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

Source distribution (sdist)

Source distribution for hearthside 0.2.0
File Size Uploaded Provenance Actions
hearthside-0.2.0.tar.gz 8.4 kB With provenance Details for hearthside-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 15.5 kB

Release files / hearthside-0.2.0.tar.gz

Download URL hearthside-0.2.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0377d35d3dc5dde241a1e404b959cae028c6949e39fb7df79d8e9170c4cd27e4
BLAKE2b-256 checksum
How to use checksums
c411dac84ea2e4c7d6e49cf3354b44ada3cb17695a0c80cd35663d569998879f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / hearthside-0.2.0-py3-none-any.whl

Download URL hearthside-0.2.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a87bb051dae65eb173167df1223055f4404c142658aee4d8e3d9c50d8fda1565
BLAKE2b-256 checksum
How to use checksums
c390fb94a189a1bfd2149ff24a2057e3b82c00796163ac410640a8d5c356d69c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for hearthside 0.2.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hearthside-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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