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.
  • Scroll back and search: PgUp opens the whole conversation full-screen (PgUp/PgDn and the arrows to move), Ctrl-F searches it (Enter to stop at a match, n and N for the next and the one before), and Esc or q brings you back to the chat with what you were typing. Ctrl-F from the chat opens it searching.
  • Tables lined up in columns, and list bullets tidied, in the chat and in the scrollback.
  • Drafts kept: a half-written message survives leaving the chat or a dropped connection, and is there to finish when you come back (beside the history file, as HISTORY.draft, until it's sent or cleared with Ctrl-C).
  • 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 "
    backlog=whole_conversation,               # backlog() -> lines, for PgUp (default: what this chat has shown)
)

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.3.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.3.0
File Size Uploaded Provenance Actions
hearthside-0.3.0.tar.gz 13.1 kB With provenance Details for hearthside-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 23.2 kB

Release files / hearthside-0.3.0.tar.gz

Download URL hearthside-0.3.0.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
876960ad893874a0a41aeddbefbb6ffd8a5b4a34ebb3390cbc63b77df331f588
BLAKE2b-256 checksum
How to use checksums
a57da6fec705315987018ed9d9d26e3f84608a9c680e4486c7f6f178606dea88
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.3.0-py3-none-any.whl

Download URL hearthside-0.3.0-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
582e8c2f42e211623392a7a7bd6087aa8e72918b48e195c6b46906583cdd7854
BLAKE2b-256 checksum
How to use checksums
b885bb955fa49f3cdf92836e200ec502baa2d7692f99097d72a74d95fadc61d1
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.3.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.3.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