Skip to main content

Persistent telnet/MUD session manager you drive by hand or with an agent. No LLM, no API key.

Project description

AutoMUD

A persistent telnet/MUD session you drive with small, discrete commands. There is no language model and no API key inside it: the intelligence is whoever runs it, a person, a script, or an autonomous agent. It exists because a raw telnet session is interactive and blocking, so it cannot be held open across separate shell commands. AutoMUD keeps the connection alive in a small background daemon and exposes simple verbs against it.

Install

pipx install git+https://github.com/CharlesCNorton/automud

Or from a clone:

pip install .

Standard library only, Python 3.8+.

Use

automud connect --demo achaea      # or: automud connect <host> <port>
automud send 2                      # send a line, print the reply
automud send Maelvorn
automud recv                         # drain any new output
automud state                        # structured game state (GMCP) as JSON
automud status
automud close
verb what it does
connect HOST PORT / --demo NAME open a session and start the daemon
send TEXT send one line, print what comes back
recv print any new output
state [--key PKG] captured GMCP state as JSON (e.g. --key Char.Vitals)
status connection and vitals summary
log [--tail N] full session transcript
close end the session and stop the daemon

Built-in demo targets: achaea, zork (telehack.com), chess (freechess.org).

Behaviour

  • Smart waiting. send and recv return as soon as the server stops talking, either a telnet GA/EOR prompt marker or output going quiet, so you never guess a sleep duration. --max caps the wait and --quiet sets the idle threshold.
  • GMCP. It negotiates GMCP and parses the structured state modern MUDs push (health, room, exits, skills) into JSON for state. Options it does not implement (compression, MSDP, MXP) are refused rather than mishandled.
  • One session at a time, held by a background daemon; a new connect replaces it. Session state and the transcript live under a temp directory (override with AUTOMUD_DIR).

License

MIT. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

automud-0.1.1.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

automud-0.1.1-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file automud-0.1.1.tar.gz.

File metadata

  • Download URL: automud-0.1.1.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for automud-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cba471a61cac86990d1869ec65d521f41eccd41dc142760b01234b53a8b4a165
MD5 3785d0ca60546c3f6a15d209234df06d
BLAKE2b-256 e1f77f82b2754fb12441de4744be5485cc254e851543208e47f59db159a0608a

See more details on using hashes here.

Provenance

The following attestation bundles were made for automud-0.1.1.tar.gz:

Publisher: publish.yml on CharlesCNorton/automud

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file automud-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: automud-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for automud-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e27e32ea7d1a638e39860037bd10d442de69b7b3b3e5cb84b7bb0440ff128c3c
MD5 4cf14ee57a132816239c7666b9c9ab0d
BLAKE2b-256 4a124d556c4af365f3e9fc3b6a651c9e784779220a65f35293e7fc059e959d1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for automud-0.1.1-py3-none-any.whl:

Publisher: publish.yml on CharlesCNorton/automud

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page