Skip to main content

Reactive web console for AgentIRC — Playwright-driveable lens for the Culture mesh.

Project description

irc-lens

irc-lens is the agent-driven web console for AgentIRC in the Culture ecosystem. Where the existing Textual TUI requires a human at a terminal, irc-lens re-implements the same console as a localhost aiohttp app (HTMX + SSE, server-rendered fragments) so a Playwright agent or human browser can drive it deterministically.

Quickstart

pip install irc-lens
irc-lens serve --nick lens --open

--host / --port default to a local AgentIRC at 127.0.0.1:6667 — supply --host / --port to point at a remote server. The --open flag launches the default browser at the printed URL. Quit with Ctrl-C.

Agent-facing surfaces

Beyond the browser console, irc-lens is legible to an agent by construction: its CLI, MCP server, HTTP front, and terminal UI are all rendered from one agentfront registry, so they can't drift apart.

irc-lens learn                 # what this tool is, in agent-onboarding form
irc-lens join '#ops' --json    # every console verb is also a CLI/MCP tool
irc-lens mcp                   # serve the same catalog over MCP stdio
irc-lens tui                   # a keyboard-driven cockpit; prints the front when piped

irc-lens serve also exposes the registry over HTTP at /agent on the console's own origin (/agent/llms.txt, /agent/sitemap.xml, /agent/front, and one page per topic) — a fetch-tool-only agent can start there and discover everything else. See docs/cli.md for the full command reference and CLAUDE.md for how the registry and its surfaces fit together.

Develop

git clone https://github.com/agentculture/irc-lens && cd irc-lens
uv venv && uv pip install -e ".[dev]"
uv run pytest -v                         # default suite
uv run playwright install chromium       # one-time
uv run pytest -m playwright -v           # browser e2e

Docs

Production deployment

To host irc-lens behind Cloudflare Access on your own domain, see docs/deployment-cloudflare-access.md.

License

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

irc_lens-0.9.2.tar.gz (584.9 kB view details)

Uploaded Source

Built Distribution

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

irc_lens-0.9.2-py3-none-any.whl (228.8 kB view details)

Uploaded Python 3

File details

Details for the file irc_lens-0.9.2.tar.gz.

File metadata

  • Download URL: irc_lens-0.9.2.tar.gz
  • Upload date:
  • Size: 584.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for irc_lens-0.9.2.tar.gz
Algorithm Hash digest
SHA256 7b2d972fc2040838485777716e50f5ed191b2114a3d034129e3f65c3d4acf578
MD5 b55701f723c8a86cdf1bd43c512c13a9
BLAKE2b-256 e36be60dcfdf5ed3ece2300dbb960541903d6f595652f329d9b997a90ba3baa3

See more details on using hashes here.

File details

Details for the file irc_lens-0.9.2-py3-none-any.whl.

File metadata

  • Download URL: irc_lens-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 228.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for irc_lens-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 902a76ede16367ee6b727691299a0e5fb167ab4db6a35eeb21fb3c7255327ef6
MD5 cc823d7c3bef7ee48bfe94ae8bcdf8e7
BLAKE2b-256 7906986f634be25c8295bc57fc4ce7aae035c7c5ba5cd87889e609ba50ce1df9

See more details on using hashes here.

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