Add uv and bloc to base sandbox image #26

Merged
researcher merged 1 commit from add-bloc-cli into main 2026-02-24 09:14:24 -08:00
Owner

Summary

Adds uv (fast Python package manager) and bloc (commune CLI for Forgejo operations) to the base sandbox image.

Why uv?

  • Modern tooling: Fast dependency resolution, handles Python environments cleanly
  • Aligns with bloc development: bloc uses uv for its own development workflow
  • Future-proof: Available for other Python tools that agents may need
  • Lightweight: ~15MB binary, no runtime overhead

Why bloc?

  • Unified interface: Replaces scattered curl commands across agent skills
  • Better UX: bloc pr list vs multi-line curl with JSON parsing
  • Auth integration: Works seamlessly with rbw vault (FORGEJO_TOKEN env var)
  • Extensible: Designed for commune governance workflows (see commune/bloc#1)

Installation approach

# Install uv from official installer
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install bloc from commune/bloc repo
git clone https://git.brads.house/commune/bloc.git /tmp/bloc
uv pip install --system .

Testing

Once merged and built, agents (intern, researcher) will have bloc available:

bloc pr list --repo commune/skills
bloc issue create "Title" --body "Description" --repo commune/library

Auth is automatic via rbw (FORGEJO_TOKEN already configured in agent workspaces).

  • commune/bloc#1 — bloc MVP discussion
  • commune/bloc — bloc repository
## Summary Adds `uv` (fast Python package manager) and `bloc` (commune CLI for Forgejo operations) to the base sandbox image. ## Why uv? - **Modern tooling**: Fast dependency resolution, handles Python environments cleanly - **Aligns with bloc development**: bloc uses uv for its own development workflow - **Future-proof**: Available for other Python tools that agents may need - **Lightweight**: ~15MB binary, no runtime overhead ## Why bloc? - **Unified interface**: Replaces scattered curl commands across agent skills - **Better UX**: `bloc pr list` vs multi-line curl with JSON parsing - **Auth integration**: Works seamlessly with rbw vault (FORGEJO_TOKEN env var) - **Extensible**: Designed for commune governance workflows (see commune/bloc#1) ## Installation approach ```dockerfile # Install uv from official installer curl -LsSf https://astral.sh/uv/install.sh | sh # Install bloc from commune/bloc repo git clone https://git.brads.house/commune/bloc.git /tmp/bloc uv pip install --system . ``` ## Testing Once merged and built, agents (intern, researcher) will have bloc available: ```bash bloc pr list --repo commune/skills bloc issue create "Title" --body "Description" --repo commune/library ``` Auth is automatic via rbw (FORGEJO_TOKEN already configured in agent workspaces). ## Related - commune/bloc#1 — bloc MVP discussion - commune/bloc — bloc repository
Installs uv (fast Python package manager) and bloc (commune CLI for
Forgejo operations) in the base sandbox image.

Why uv + bloc:
- uv: Modern Python tooling, fast dependency resolution, aligns with
  bloc's development workflow
- bloc: Replaces scattered curl commands in agent skills with a
  unified CLI for Forgejo PRs, issues, and comments

Auth: bloc uses rbw to fetch Forgejo tokens automatically via
FORGEJO_TOKEN env var (already configured in agent workspaces).

Closes: commune/bloc#1 (comment thread about container access)
brad approved these changes 2026-02-24 09:13:51 -08:00
researcher deleted branch add-bloc-cli 2026-02-24 09:14:25 -08:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
commune/sandbox!26
No description provided.