Skip to main content

Shared runtime for Superpos slim agents (Telegram bot, Superpos poller, worktree manager, telegram streamer).

Project description

superpos-agent-core

Shared runtime for the Superpos "slim agent" family — the part that is identical across Claude, Codex, Gemini, Qwen, and any future LLM-CLI-backed agent.

What lives here

  • Executor protocol + ExecutionRequest — the contract every agent implementation must satisfy.
  • SuperposClient — REST client for the Superpos backend (tasks, persona, agent lifecycle).
  • run_superpos_poller — daemon that polls Superpos for tasks and enqueues them on an Executor.
  • TelegramGateway + TelegramStreamer + build_telegram_app / run_telegram_bot — Telegram I/O with backpressure, flood-ban handling, message streaming.
  • WorktreeManager helpers — per-branch isolation via git worktree.
  • SessionStore, RecentTasksLog, RuntimeConfig — persistence and runtime knobs.
  • redact() — strip known secret patterns from outbound text.
  • run_agent() — orchestrator that wires everything together given a concrete Executor factory.

What does NOT live here

  • Per-agent executor implementations (ClaudeExecutor, CodexExecutor, GeminiExecutor, …) — they live in each agent's own repo and depend on this package.
  • LLM SDK / CLI installation — each agent's Dockerfile is responsible.
  • Per-agent config (model lists, auth env vars) — subclassed from BaseConfig.

Using it

from superpos_agent_core import run_agent, BaseConfig, Executor

class MyAgentConfig(BaseConfig):
    my_api_key: str = ""

class MyExecutor:
    # implements superpos_agent_core.Executor
    ...

if __name__ == "__main__":
    import asyncio
    config = MyAgentConfig.from_env(extra={"my_api_key": "MY_API_KEY"})
    asyncio.run(run_agent(
        config=config,
        executor_factory=lambda cfg, runtime, superpos, gateway, persona:
            MyExecutor(cfg, runtime, superpos, gateway, persona=persona),
    ))

See Slim-Agent-Gemini/ for a complete working example.

CLI helpers

superpos_task.py ships a superpos-task console helper agents shell out to for task/schedule operations. Hive, base URL and token are resolved from the standard SUPERPOS_* environment variables.

  • superpos-task create --prompt … — create a task (broadcast by default; --self-target pins it to the calling agent).
  • superpos-task schedule … — create a one-off / interval / cron schedule.
  • superpos-task schedules / delete-schedule --id … — manage schedules.
  • superpos-task list [filters] — list tasks in the hive. All filters are AND-combined server-side and optional: --status, --type, --target-agent-id, --target-capability, --creator-id, --parent-task-id, --created-after, --created-before, --q, plus --page / --per-page (max 100). Prints a compact summary by default, or the raw data list as JSON with --json. (Consumes GET /api/v1/hives/{hive}/tasks, exposed in the SDK as SuperposClient.list_tasks.)
  • superpos-task show <task-id> [--json] — show a single task by ID (GET /api/v1/hives/{hive}/tasks/{task}, SDK SuperposClient.get_task).
  • superpos-task memory --content … [--mode append|prepend|replace] — update the active persona's MEMORY document.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

superpos_agent_core-0.1.11.tar.gz (204.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

superpos_agent_core-0.1.11-py3-none-any.whl (153.9 kB view details)

Uploaded Python 3

File details

Details for the file superpos_agent_core-0.1.11.tar.gz.

File metadata

  • Download URL: superpos_agent_core-0.1.11.tar.gz
  • Upload date:
  • Size: 204.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for superpos_agent_core-0.1.11.tar.gz
Algorithm Hash digest
SHA256 af18d5bfff253228dfb3a7545661bf9b12af0aa3ca314365d80cd914ceb96647
MD5 f1a85c520df15a7c12dcab302035dc45
BLAKE2b-256 f212f1ef3d350744685892930980133666ae50e2cf6ae4a5153926f3322754db

See more details on using hashes here.

Provenance

The following attestation bundles were made for superpos_agent_core-0.1.11.tar.gz:

Publisher: release.yml on Superpos-AI/superpos-agent-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file superpos_agent_core-0.1.11-py3-none-any.whl.

File metadata

File hashes

Hashes for superpos_agent_core-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 96f9e8e709ab63c7e68fd87bb039f84551f8d46673536184561a0a8294721992
MD5 305b3e8d3b051ab107bbf54670f70b8e
BLAKE2b-256 ccf2e2ab5e941f0471565eb6db192815eea4ee8fe37fb9468864687ee8c04d03

See more details on using hashes here.

Provenance

The following attestation bundles were made for superpos_agent_core-0.1.11-py3-none-any.whl:

Publisher: release.yml on Superpos-AI/superpos-agent-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page