GEO INFER COMMS

From ActiveInferenceInstitute/GEO-INFER · View interactive version

GEO INFER COMMS is an AI agent skill from the GitHub repository ActiveInferenceInstitute/GEO-INFER. Communication systems for geospatial coordination. Use when implementing spatial messaging, multi-channel notifications, event streaming, spatial message routing, or subscriber management for geographic broadcasts.

How to use this skill

Skill file

GEO-INFER-COMMS

Instructions

Core Capabilities

Key Imports

from geo_infer_comms import GeospatialCommunicationSystem, get_communication_system
from geo_infer_comms.core.messaging import MessageBroker, MessageRouter
from geo_infer_comms.core.notifications import NotificationManager, AlertSystem, AlertRule
from geo_infer_comms.core.channels import ChannelManager, ChannelPermissionManager
from geo_infer_comms.core.events import EventManager, EventScheduler, EventFilter
from geo_infer_comms.core.spatial_routing import (
    AdvancedSpatialRouter, GeospatialLoadBalancer, SpatialRoutingOptimizer,
)
from geo_infer_comms.core.streaming import StreamManager
from geo_infer_comms.api.rest_api import CommunicationAPI, create_api_server
from geo_infer_comms.api.websocket_api import WebSocketAPIManager

Examples

End-to-end with the unified system (recommended):

from geo_infer_comms import GeospatialCommunicationSystem

system = GeospatialCommunicationSystem({"enable_persistence": False})
system.start()
try:
    system.message_broker.subscribe("user_1", print)
    system.send_message(content="Alert: flood detected", recipients=["user_1"])
finally:
    system.stop()

Broker with an explicit broadcast recipient resolver (required for

channel/role/location_based target types):

from geo_infer_comms.core.messaging import MessageBroker

broker = MessageBroker(
    recipient_resolver=lambda target_type, criteria: registry.lookup(target_type, criteria)
)

Alert rules are dataclass objects, not dicts:

from geo_infer_comms.core.notifications import AlertRule

rule = AlertRule(
    name="High Temperature Alert",
    description="Alert when temperature exceeds threshold",
    conditions={"temperature": {"min": 35.0}},
    alert_title="High Temperature Warning",
    alert_content="Temperature has exceeded safe threshold",
    recipients=["admin@geo-infer.org"],
)
rule_id = system.alert_system.create_alert_rule(rule)

Agent interfaces

Use uv run --frozen geo-infer catalog COMMS to discover public source

APIs, then geo-infer describe before calling a selected target. Scripts use

geo_infer_api.agent_runtime.AgentSession; the optional stdio MCP server is

geo-infer-mcp. See requests, native objects and composition.

The adapter retains this module's dependencies and authorization requirements.

Guidelines

Integrations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.