Syncs agentic coding sessions to Weights & Biases
Project description
Hivemind
Daemon for syncing agentic coding sessions to Weights & Biases.
Installation
# Via Homebrew (macOS)
brew install wandb/taps/hivemind
# Via pip
pip install hivemind
Usage
# Run the daemon (watches for new sessions)
hivemind run
# Check status
hivemind status
# Fork a previous session
hivemind fork <session_id>
# View logs
hivemind logs
hivemind logs -f # Follow logs
Authentication
# Login (auto-detects best method)
hivemind login
# Check authentication status
hivemind whoami
# Logout
hivemind logout
Importing Existing Sessions
For development or initial setup, import existing sessions:
# Import ALL sessions found on disk
hivemind import
# Import sessions from the last 24 hours
hivemind import --since 1d
# Import sessions from the last 2 hours
hivemind import --since 2h
# Import sessions since a specific date
hivemind import --since 2024-01-15
# Dry run to preview what would be imported
hivemind import --dry-run
# Import from specific paths
hivemind import --path ~/projects/myapp
# Custom endpoint override
hivemind import --endpoint https://api.example.com
Force Re-sync
If you need to re-import all sessions for a specific agent (e.g., after fixing sync issues or to apply updated normalization):
# Re-sync all Cursor sessions
hivemind resync cursor
# Preview what would be deleted
hivemind resync cursor --dry-run
# Skip confirmation prompt
hivemind resync cursor --yes
Supported agent types: claude, claude_web, cursor, codex, gemini, opencode
Warning: This permanently deletes your session data from the server. The data will be re-imported from your local session files.
Rate limiting: You can resync each agent type once per hour.
Configuration
Configuration file: ~/.hivemind/config.toml
# View current config and where values come from
hivemind config show
# Set endpoint (e.g., for QA testing)
hivemind config set server.endpoint https://hivemind.qa.wandb.tools
# Get a specific value
hivemind config get server.endpoint
# Reset to defaults
hivemind config reset
# Show config file path
hivemind config path
Example config file:
[server]
endpoint = "https://hivemind.qa.wandb.tools"
Configuration Priority
Settings are resolved in this order (highest to lowest):
- Config file (
~/.hivemind/config.toml) - user's explicit preference - Environment variable (
HIVEMIND_ENDPOINT) - for testing/CI overrides - Default (
https://hivemind.wandb.tools)
The daemon automatically reloads when the config file changes.
Environment Variables
HIVEMIND_ENDPOINT- Backend API endpoint (overridden by config file)HIVEMIND_IMPORT_SINCE- Default --since filter for imports
Troubleshooting
Resync Issues
"Cannot modify state: daemon is running" The resync command will automatically signal the running daemon. If you see this error, the signaling mechanism may have failed. Try stopping the daemon and running resync again.
"Rate limit exceeded" You can only resync each agent type once per hour. Wait for the time shown in the error message.
"Backend cleanup succeeded but local state update failed" Your server data has been deleted. The path to your state.json file is shown in the error. You can manually remove the sessions for that agent type, or simply restart the daemon - it will re-discover and re-sync all sessions.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 wandb_hivemind-0.6.1-py3-none-any.whl.
File metadata
- Download URL: wandb_hivemind-0.6.1-py3-none-any.whl
- Upload date:
- Size: 183.9 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 |
f3e3fc0c2357b12cd4a80775b9caf74a948b10fc886934066761d6c9ce66ab6f
|
|
| MD5 |
b69d7c14855b35be3f661604a134b130
|
|
| BLAKE2b-256 |
17a14fcd045d62ede940e4b0dc4e69890d70c4435d85b1132830314d25fbc0a1
|
Provenance
The following attestation bundles were made for wandb_hivemind-0.6.1-py3-none-any.whl:
Publisher:
release.yml on wandb/agentstream
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wandb_hivemind-0.6.1-py3-none-any.whl -
Subject digest:
f3e3fc0c2357b12cd4a80775b9caf74a948b10fc886934066761d6c9ce66ab6f - Sigstore transparency entry: 1365937631
- Sigstore integration time:
-
Permalink:
wandb/agentstream@c9dc6b995aaac2a13f8d922427814dd2a664807d -
Branch / Tag:
refs/tags/v0.6.1 - Owner: https://github.com/wandb
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c9dc6b995aaac2a13f8d922427814dd2a664807d -
Trigger Event:
push
-
Statement type: