-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Feature: MorpheusAI Integration - Decentralized AI Access for Communication-Denied Regions #1002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…untry restrictions
…try restrictions, allowing global access for all users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 90143cdb65
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…a mesh network and usage instructions for public and private queries.
| let geohash = getCurrentGeohash?() ?? "" | ||
|
|
||
| // Only check location restriction if we have a geohash | ||
| if !geohash.isEmpty && !MorpheusAIService.shared.isLocationAllowed(geohash: geohash) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is intentional. Country restrictions have been removed from this implementation - the isLocationAllowed() method now always returns true.
The rationale: one of the primary use cases for this feature is providing AI access to users in communication-denied regions (Iran, Myanmar, disaster scenarios, etc.). Geographic restrictions would undermine this humanitarian purpose.
The geohash check remains in the code structure for potential future use (e.g., if specific deployments want to add restrictions), but by default all locations are allowed.
Addresses review feedback: conversation history was keyed by nickname, which could cause context leakage if two peers share the same nickname. Now keyed by PeerID to ensure proper isolation between users. Co-Authored-By: Claude Opus 4.5 <[email protected]>
|
Addressed the PeerID feedback in commit 80c5088: Conversation context is now keyed by |
Summary
Integrates BitChat with the Morpheus decentralized AI network, enabling offline AI access through the Bluetooth mesh network.
Related: #1003
Motivation
In regions with restricted internet or during communication blackouts—such as those experienced in Iran, Myanmar, or disaster scenarios—people lose access not just to communication but to critical knowledge. This integration enables:
How It Works
Changes
New Files
Modified Files
Usage
For users (no setup required):
For bridge operators:
```bash
/ai-key YOUR_API_KEY # Get key at https://app.mor.org
/ai-bridge on # Activate bot
```
Features
Testing
🤖 Generated with Claude Code