Repository navigation
Conversation
A long-running `limbo gateway` connects chat apps to agents. Each chat gets its own Conversation (daily posture by default), owners-only access, streamed replies where the channel can edit, attachments in both directions (send_file tool), and per-chat session switching. - conversation.rs: frontend-neutral Conversation<S: Sink> extracted from headless, shared by headless and gateway workers - channels/: Channel trait, Markdown rendering/splitting, credential and cursor store, hand-written Telegram Bot API client, WeChat iLink client (QR login, AES-128-ECB CDN media) - gateway/: router (dedup, owners, group addressing), per-chat workers, renderer, outbox (rate limits, retries, context parking), send_file, launchd (macOS) and systemd (Linux) service install - background: per-session routing so subagent events reach the right chat - docs/gateway.md, AGENTS.md, CONTEXT.md, README Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014BrrmXNfubbsTMK4xeEmP5
|
Graphify reviews are paused for this workspace because nobody has used it in 7 days. A workspace owner can resume reviews from the Repositories page: https://app.graphify.com/angus-lab/repositories |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by jack mini · project thread
Summary
Adds
limbo gateway, a long-running process that lets owners talk to limbo from Telegram (hand-written Bot API client) and personal WeChat (iLink bot protocol, QR login). It also addslimbo gateway install, which sets up a launchd agent on macOS or a systemd user unit on Linux.How it works:
/sessionsand/resume <id>switch between that chat's sessions./stopinterrupts it.send_filetool (providerchannel, effectmutate).ask_usershows inline buttons on Telegram and a numbered list on WeChat.~/.limbo/channels/: credentials (mode 0600), polling cursors, the chat → session map, and a single-instance lock.Structure
src/conversation.rs:Conversation<S: Sink>is pulled out ofheadless.rs. It is frontend-neutral and shared by headless mode and the gateway workers.src/channels/:Channeltrait and message types;telegram.rs;weixin/(api, cdn, login).src/gateway/:worker,render,outbox,sessions,send_file;service.rs(launchd and systemd).background.rs: events can now be routed per session, so subagent events reach the right chat; without a route they fall back to the global channel.limbo gateway [run|install|uninstall]andlimbo channels login|logout|status.[gateway],[channels.telegram],[channels.weixin].aes,md-5,qrcode.docs/gateway.md; updates toAGENTS.md,CONTEXT.mdandREADME.Test plan
cargo fmt --check,cargo clippy --all-targets -- -D warnings,cargo test(163 pass)send_file/statusanswers.launchctl bootstrapitself was not run.Generated by Claude Code