Skip to content
Back to skills

GEO INFER APP

ASecurity

Agent UI and management layer for GEO-INFER. Use when building agent control widgets, agent configuration forms, geospatial agent visualization (GeoJSON map features), or managing in-process agent lifecycles (create/start/stop/command) via AgentManager.

  • 18 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 1, 2026
datapythongogitapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add ActiveInferenceInstitute/GEO-INFER --skill GEO-INFER-APP --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of GEO INFER APP?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for GEO INFER APP
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/activeinferenceinstitute-geo-infer-app/badge)](https://www.skillsdirectory.com/skills/activeinferenceinstitute-geo-infer-app)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: geo-infer-app
description: Agent UI and management layer for GEO-INFER. Use when building agent control widgets, agent configuration forms, geospatial agent visualization (GeoJSON map features), or managing in-process agent lifecycles (create/start/stop/command) via AgentManager.
prerequisites:
  required: []
  recommended:
    - geo-infer-agent
difficulty: intermediate
estimated_time: 45min
examples_dir: ../GEO-INFER-EXAMPLES/examples/
---

# GEO-INFER-APP

## Instructions

### Core Capabilities

- **Agent management**: create/start/stop/delete/query in-process agents via `AgentManager` / `AgentAPIClient` (JSON-file persistence, status callbacks, metrics counters)
- **Agent widgets**: `AgentWidget` / `WebAgentWidget` — async-refreshed status widgets that render agent state as HTML
- **Configuration**: schema-driven validation of agent config (`AgentConfiguration`, `ConfigFieldType`) and form payloads (`AgentConfigForm`)
- **Visualization**: `AgentVisualization` converts `AgentState` into GeoJSON map features ([lng, lat] ordering) and dashboard data
- **Factory**: `AgentFactory` creates `AgentInterface` implementations by `AgentType` (BDI ships today; other types raise `ValueError`)

### Key Imports

```python
from geo_infer_app import AgentManager, AgentFactory, AgentType
from geo_infer_app.models.interfaces.bdi_interface import BDIAgentInterface
from geo_infer_app.models.agent_visualization import AgentVisualization
from geo_infer_app.components.agent_widget import AgentWidget, WebAgentWidget
from geo_infer_app.components.agent.agent_config_form import AgentConfigForm
from geo_infer_app.models.agent_configuration import AgentConfiguration, ConfigFieldType
```

## Examples

Create and drive an in-process BDI agent through the manager:

```python
import asyncio
from geo_infer_app import AgentManager

async def main():
    manager = AgentManager(config={
        "api_config": {"agents_config_path": "/tmp/agents.json"}
    })
    await manager.initialize()

    agent_id = await manager.create_agent(
        agent_type="bdi",
        name="Spatial Monitor",
        config={"name": "Spatial Monitor", "description": "Monitors a location"},
    )
    await manager.start_agent(agent_id)
    result = await manager.send_command(agent_id, "query", {})
    print(result["result"])  # {"id": ..., "type": "bdi", "status": "running", ...}

    await manager.shutdown()

asyncio.run(main())
```

Render an agent state as a GeoJSON map feature:

```python
from geo_infer_app import AgentFactory, AgentType, AgentVisualization

interface = AgentFactory.create_interface(AgentType.BDI)
agent_id = interface.create_agent(AgentType.BDI, {
    "name": "Explorer",
    "initial_location": {"lat": 40.7128, "lng": -74.0060},
})
state = interface.get_agent_state(agent_id)
feature = AgentVisualization.state_to_map_feature(state)  # GeoJSON Point, [lng, lat]
```

### Non-goals (not part of this module)

- `geo_infer_app.core.dashboard` / map & dashboard components (MapView, DashboardBuilder): design docs only — see `docs/api_schema.yaml` (a design spec; no HTTP server ships).
- Agent interface types beyond BDI (`active_inference`, `reinforcement_learning`, `rule_based`, `hybrid`): `AgentFactory.create_interface` raises `ValueError` for them.

### Agent interfaces

Use `uv run --frozen geo-infer catalog APP` 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](../GEO-INFER-INTRA/docs/integration/agent_interfaces.md).
The adapter retains this module's dependencies and authorization requirements.

## Guidelines

- Agent types for `AgentAPIClient.create_agent` are `AgentType` values: `bdi`, `active_inference`, `reinforcement_learning`, `rule_based`, `hybrid` (`rl` is accepted as an alias of `reinforcement_learning`; unknown types raise `ValueError`).
- `AgentAPIClient` is an in-process registry — there is no HTTP transport.
- HTML form inputs use standard `placeholder` attributes (legitimate usage).
- Map features and dashboard widgets are independent JSON snapshots. Dates and
  other non-JSON native values stringify consistently; nonfinite floating values
  raise `ValueError` before a payload is returned. Prepare missing values in the
  caller when needed rather than sending NaN/Infinity to a browser.

### Integrations

- Integrates with AGENT via an optional `geo_infer_agent` import (graceful fallback when absent)
- Test: `uv run python GEO-INFER-TEST/run_unified_tests.py --module APP`

Files in this skill

  • AGENTS.md1.5 KB
  • README.md1.2 KB
  • SKILL.md1.7 KB
  • docs/AGENTS.md1.2 KB
  • docs/README.md768 B
  • docs/agent_integration_guide.md1.9 KB
  • docs/api_schema.yaml25.9 KB
  • examples/AGENTS.md1.2 KB
  • examples/README.md858 B
  • examples/agent_examples/AGENTS.md1.2 KB
  • examples/agent_examples/README.md798 B
  • examples/agent_examples/bdi_agent_example.py3.9 KB
  • examples/agent_integration.py14.1 KB
  • pyproject.toml3.2 KB
  • requirements.txt78 B
  • setup.py1.5 KB
  • src/AGENTS.md1.1 KB
  • src/README.md734 B
  • src/geo_infer_app/AGENTS.md1.2 KB
  • src/geo_infer_app/README.md792 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.