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
Executorprotocol +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 anExecutor.TelegramGateway+TelegramStreamer+build_telegram_app/run_telegram_bot— Telegram I/O with backpressure, flood-ban handling, message streaming.WorktreeManagerhelpers — per-branch isolation viagit 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 concreteExecutorfactory.
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-targetpins 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 rawdatalist as JSON with--json. (ConsumesGET /api/v1/hives/{hive}/tasks, exposed in the SDK asSuperposClient.list_tasks.)superpos-task show <task-id> [--json]— show a single task by ID (GET /api/v1/hives/{hive}/tasks/{task}, SDKSuperposClient.get_task).superpos-task memory --content … [--mode append|prepend|replace]— update the active persona's MEMORY document.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file superpos_agent_core-0.1.12.tar.gz.
File metadata
- Download URL: superpos_agent_core-0.1.12.tar.gz
- Upload date:
- Size: 214.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
875f9706559bd377a067da384630b1e43a4d71a63028b20ff40a4c0827292899
|
|
| MD5 |
b7801ede9bbe15f76bc55239cd4a5220
|
|
| BLAKE2b-256 |
67828900b1b2d154262229008422643716d74a9b54599fdd9a0ab6711f8b7a89
|
Provenance
The following attestation bundles were made for superpos_agent_core-0.1.12.tar.gz:
Publisher:
release.yml on Superpos-AI/superpos-agent-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
superpos_agent_core-0.1.12.tar.gz -
Subject digest:
875f9706559bd377a067da384630b1e43a4d71a63028b20ff40a4c0827292899 - Sigstore transparency entry: 1818449699
- Sigstore integration time:
-
Permalink:
Superpos-AI/superpos-agent-core@9bd5d7f3ab43106486b089872dc3c46e097f8f5e -
Branch / Tag:
refs/tags/v0.1.12 - Owner: https://github.com/Superpos-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9bd5d7f3ab43106486b089872dc3c46e097f8f5e -
Trigger Event:
push
-
Statement type:
File details
Details for the file superpos_agent_core-0.1.12-py3-none-any.whl.
File metadata
- Download URL: superpos_agent_core-0.1.12-py3-none-any.whl
- Upload date:
- Size: 161.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cbbaac3081e1f551586639a7ff7b8dcf3bc2515e5aa30a1c2585bd03a8cff40
|
|
| MD5 |
f8b9a5358a97c9564e8b9d6420cafa85
|
|
| BLAKE2b-256 |
a838797eeb6b7cce8a7e2b53af4bac9be3ca8c2b2a9bd1a6ec165e164fc5803c
|
Provenance
The following attestation bundles were made for superpos_agent_core-0.1.12-py3-none-any.whl:
Publisher:
release.yml on Superpos-AI/superpos-agent-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
superpos_agent_core-0.1.12-py3-none-any.whl -
Subject digest:
5cbbaac3081e1f551586639a7ff7b8dcf3bc2515e5aa30a1c2585bd03a8cff40 - Sigstore transparency entry: 1818449717
- Sigstore integration time:
-
Permalink:
Superpos-AI/superpos-agent-core@9bd5d7f3ab43106486b089872dc3c46e097f8f5e -
Branch / Tag:
refs/tags/v0.1.12 - Owner: https://github.com/Superpos-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@9bd5d7f3ab43106486b089872dc3c46e097f8f5e -
Trigger Event:
push
-
Statement type: