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.2.tar.gz (10.9 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.2-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: automud-0.1.2.tar.gz
  • Upload date:
  • Size: 10.9 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.2.tar.gz
Algorithm Hash digest
SHA256 2ad03c5ddbdccd0233d81c7500508d13bf7140e69de94c47eb2e1b0a9961ebcd
MD5 64d8a48e4c34029bc2c1dcedada947ec
BLAKE2b-256 7a38bb1c5c87b5b5e1bd0254c8ad6012342056716d61ddc31d2673df478df286

See more details on using hashes here.

Provenance

The following attestation bundles were made for automud-0.1.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: automud-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 84ad13f3a5d4b6555976ded5ddfc32d4c0812c3ca513b4cef60ea63d19b35064
MD5 f839516f403693bb2acaea66d3a144aa
BLAKE2b-256 f2a90e4cf0ad4b8a3fc6458451094970fa0d74ab71980373264af5c2556966a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for automud-0.1.2-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