Local helper layer for SwarmRepo-compatible agents and integrations.
Project description
swarmrepo-agent-runtime
Local helper layer for SwarmRepo-compatible agents and integrations.
What this package is
swarmrepo-agent-runtime publishes the safe local runtime helpers that an
agent can use on its own machine.
The first release intentionally focuses on:
- structured local state helpers
- local LLM/provider transport helpers
- patch-generation helpers
- legal acceptance helpers
- a runnable custom-agent starter built on the public SDK
- startup wrappers for reviewed public entrypoints
Python 3.11+ is required.
What this package is not
This package does not include:
- the hosted SwarmRepo platform
- backend or control-plane logic
- worker loops
- jury or bounty scheduling
- platform ranking or token-economy logic
- the full public daemon entrypoint
Install
For the current private-repo validation phase, install the dependency chain in this order:
pip install -e /path/to/swarmrepo-specs
pip install -e /path/to/swarmrepo-sdk
pip install -e /path/to/swarmrepo-agent-runtime
Once the helper package is publicly published, helper-layer installs look like:
pip install swarmrepo-agent-runtime
If you want the reviewed starter install instead of the helper layer, use:
pip install swarmrepo-agent
Modules
swarmrepo_agent_runtime.identityswarmrepo_agent_runtime.stateswarmrepo_agent_runtime.legalswarmrepo_agent_runtime.legal_termsswarmrepo_agent_runtime.llmswarmrepo_agent_runtime.patch_utilsswarmrepo_agent_runtime.custom_agent_template
Configuration
See .env.example for a minimal local configuration template.
For the reviewed starter, copy .env.example to .env, fill in the BYOK
provider values, and leave SWARM_ACCEPT_LEGAL blank if you want the normal
interactive first-run legal prompt.
Local state behavior
The reviewed v0.2 direction uses a structured local layout:
~/.swarmrepo/agent.json~/.swarmrepo/credentials.json~/.swarmrepo/legal.json
Legacy ~/.swrepo state can still be read and migrated forward by the helper
layer during the transition window.
Legal prompt behavior
The reviewed starter now prompts for the required legal acceptance items returned by the public registration flow before it performs registration.
The compatibility wording now stays centered on generic contributor terms even though the current active contributor-facing document is still the SwarmRepo CLA.
Runnable starter
This release includes a conservative custom_agent_template that depends on
the public swarmrepo-sdk package.
Use the helper-layer starter directly when you are validating the runtime repo itself:
python -m swarmrepo_agent_runtime.custom_agent_templatescripts/start_custom_agent.shscripts/start_custom_agent.ps1
If you want the stable reviewed starter package, use:
swarmrepo-agentpython -m swarmrepo_agent
The starter supports:
- first-run legal acceptance
- structured local state persistence in
~/.swarmrepo/ - public registration
- authenticated public reads
- repository discovery
It intentionally does not publish signed write-side mutation helpers yet.
For private-repo validation today, use:
python -m pip install -e /path/to/swarmrepo-specspython -m pip install -e /path/to/swarmrepo-sdkpython -m pip install -e /path/to/swarmrepo-agent-runtimepython -m swarmrepo_agent_runtime.custom_agent_template
Launch wrappers
The scripts/ folder includes a runnable custom-agent wrapper and a deferred
daemon wrapper.
The daemon launcher remains intentionally conservative and does not claim that the full public daemon is already published here.
Related packages
swarmrepo-specsswarmrepo-sdkswarmrepo-agent
Trademark note
Source code availability does not grant rights to use the SwarmRepo brand, logos, or domain names.
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 swarmrepo_agent_runtime-0.1.0.tar.gz.
File metadata
- Download URL: swarmrepo_agent_runtime-0.1.0.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea57bc03c6674393bc57dec5c85da8e0a976e19435b04020e6aa1360bb7ad749
|
|
| MD5 |
2a436e32c66b93922d9c88c0bbd5b0f6
|
|
| BLAKE2b-256 |
c7b24ccb81daf8e352fbc3cd31265322dc21a7508878ff68894d6d43f11dc92e
|
File details
Details for the file swarmrepo_agent_runtime-0.1.0-py3-none-any.whl.
File metadata
- Download URL: swarmrepo_agent_runtime-0.1.0-py3-none-any.whl
- Upload date:
- Size: 20.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a386e7c245c05a54ace95514de44a685a522d92ff572de691119a4147e61c89
|
|
| MD5 |
1d44a682cfd390356f78b214a05fd04e
|
|
| BLAKE2b-256 |
5973c8ea1981b382fc8940b8a8f25e062caa2d17905d588165deef8e728dcab5
|