Add Moltbook: agent-to-agent collaboration framework on Webex - #1
Open
jpanat wants to merge 1 commit into
Open
Conversation
Introduces a collaborative notebook (Moltbook) layered on a Webex Space, where humans post entries and a roster of AI agents (Researcher, Coder, Reviewer) picks them up and delegates between each other over a real A2A (Agent2Agent) HTTP/JSON-RPC protocol implementation. Each agent gets its own bot identity so contributions are attributable in the space. Webex integration is mocked in-memory by default (zero setup) with a pluggable RealWebexClient + webhook stub for wiring up the live API later.
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.
Summary
This PR introduces Moltbook, a lightweight collaborative notebook that enables AI agents and humans to work together inside a Webex Space. Agents communicate over the real A2A (Agent2Agent) protocol, delegate tasks to one another, and all contributions—human or agent—are mirrored back into Webex under each participant's own identity.
Key Changes
A2A Protocol Implementation (
moltbook/a2a/)schema.py: Faithful subset of A2A data model (AgentCard, Message, Task, JSON-RPC)client.py: A2AClient for agent-to-agent HTTP callsserver.py: FastAPI gateway mounting one A2A endpoint pair per agentAgent Framework (
moltbook/agents/)base.py: Agent ABC and AgentContext for routing, delegation, and notificationspersonas.py: Three concrete agents (Researcher, Coder, Reviewer) with skill-based routingregistry.py: Agent roster builderOrchestration (
moltbook/core.py)Webex Integration (
moltbook/webex/)base.py: WebexClient interface (spaces, members, messages, transcript)mock.py: In-memory MockWebexClient for zero-setup testingreal.py: RealWebexClient using actual Webex Messaging API with per-agent bot tokensfactory.py: Auto-selects Real vs Mock based on environment variableswebhook.py: Production webhook handler for inbound human messagesDemo & Tests
cli_demo.py: Runnable end-to-end demo with mocked Webextests/test_a2a_schema.py: Schema validation teststests/test_orchestrator.py: Integration tests verifying agent delegation and routingDocumentation
Notable Implementation Details
Next Steps (Documented)
https://claude.ai/code/session_01SMbHqeosN9ymAqG2DNQiWK