Sedpack Installation
Installation of the Sedpack Python package.
Python Package Index
Section titled “Python Package Index”All one should need to install the package from PyPI is:
pip install sedpackIf you plan to use TensorFlow features (such as
the "tfrec" shard format or as_tfdataset), TensorFlow needs to be installed
as well:
pip install "sedpack[tf]"Note that this is the latest stable version of the package. If you want the bleeding edge features install from source instead.
Installing from Source
Section titled “Installing from Source”One can always opt for installation from the source.
Development dependencies:
- python-dev and gcc for xxhash
- Install Rust
Clone and create a Python virtual environment:
git clone https://github.com/google/sedpack # Clone the repositorypython3 -m venv my_env # Create Python virtual environmentsource my_env/bin/activate # Activate your virtual environmentcd sedpack/ # Change directory to the cloned git repository[optional] Install pinned Python dependencies:
python3 -m pip install --require-hashes -r requirements.txtCurrently the file requirements.txt is compiled for Linux and some
versions of PyPI packages might be different or even not existing
elsewhere. One can always recreate those:
python3 -m pip install pip-toolspython3 -m pip-compile --generate-hashes pyproject.toml > requirements_win.txtpython3 -m pip install --require-hashes -r requirements_win.txtCurrently the file requirements.txt is compiled for Linux and some
versions of PyPI packages might be different or even not existing
elsewhere. One can always recreate those:
python3 -m pip install pip-toolspython3 -m pip-compile --generate-hashes pyproject.toml > requirements_mac.txtpython3 -m pip install --require-hashes -r requirements_mac.txtInstall sedpack with development dependencies and TensorFlow:
python3 -m pip install --editable '.[dev,tf]'Or for a minimal installation without development or TensorFlow dependencies:
python3 -m pip install --editable .[optional] Run unit-tests (none should be skipped when TensorFlow is installed):
python -m pytest[optional] Rebuild the Rust library after a change:
maturin develop --releaseAI Agents and LLM Skills
Section titled “AI Agents and LLM Skills”Sedpack ships with instructions for both AI coding assistants using sedpack
in downstream projects (SKILL.md) and agents contributing to the sedpack
repository itself (AGENTS.md).
Using sedpack with Coding Agents (SKILL.md)
Section titled “Using sedpack with Coding Agents (SKILL.md)”The high-level sedpack.io API skill is bundled inside the sedpack Python
package at src/sedpack/.agents/skills/sedpack/SKILL.md on
GitHub.
Installing sedpack never mutates your home directory (~/) implicitly; use
standard skill managers below to link or copy the skill.
Project-Local vs. Global (~/) Installation
Section titled “Project-Local vs. Global (~/) Installation”| Approach | Auto-Updates on Upgrade? | Multi-Project .venv Safety |
Resilience to .venv Rebuilds |
Recommended When |
|---|---|---|---|---|
Project-Local Symlink (.agents/skills/sedpack -> .venv/...) |
Yes | High (matches the project’s .venv version) |
High (relative link resolves once .venv is installed) |
Default for Python projects using virtual environments |
Home-Directory Symlink (~/.agents/skills/sedpack -> path) |
Yes | Low (single global version across all repos) | Low (breaks if target .venv or Python minor version changes) |
Editable local checkouts (pip install -e) or global environments |
File Copy (--copy to .agents/skills/sedpack) |
No (re-run after upgrade) | High | High (no external target dependency) | Windows without Developer Mode symlink permissions |
-
Option 1 — Link from your Python environment via Library Skills (
library-skills) (recommended default): After installingsedpackinto your project’s environment (venv,virtualenv,uv,pdm,poetry,pipenv,hatch, orconda),library-skillsscanssite-packages(and editable installs) and creates a relative directory symlink in./.agents/skills/sedpack:Terminal window # Interactive discovery and installation (or use `pipx run library-skills`):uvx library-skills# Non-interactive install of the sedpack skill into .agents/skills/sedpack:uvx library-skills install --skill sedpack --yes# Also link into .claude/skills/sedpack, or copy files instead of symlinking:uvx library-skills install --skill sedpack --yes --claudeuvx library-skills install --skill sedpack --yes --copy# List discovered/installed skills, verify symlinks in CI, or repair links:uvx library-skills listuvx library-skills --checkuvx library-skills --yes# Remove the managed symlink:uvx library-skills remove sedpacklibrary-skillsautomatically discovers.venv,UV_PROJECT_ENVIRONMENT, andCONDA_PREFIXenvironments and creates a relative directory symlink tosedpack/.agents/skills/sedpackso runningpip install -U sedpackupdates the skill automatically. If your environment manager stores virtual environments outside the project root (such as Poetry’s default cache, Pipenv withoutPIPENV_VENV_IN_PROJECT=1, or Hatch), pass its path viaUV_PROJECT_ENVIRONMENT:Terminal window UV_PROJECT_ENVIRONMENT="$(poetry env info --path)" uvx library-skills install --skill sedpack --yesUV_PROJECT_ENVIRONMENT="$(pipenv --venv)" uvx library-skills install --skill sedpack --yesUV_PROJECT_ENVIRONMENT="$(hatch env find)" uvx library-skills install --skill sedpack --yes -
Option 2 — Install from GitHub via Agent Skills CLI (
npx skills): Readsskills.sh.jsonat the repository root and installs thesedpackskill directly fromgoogle/sedpack(or a local checkout) into project-local (.agents/skills/) or global (~/.agents/skills/with-g) directories across 40+ coding agents:Terminal window # Interactive project-local install from GitHub:npx skills add google/sedpack# Non-interactive project-local install (or target a specific agent):npx skills add google/sedpack --skill sedpack -ynpx skills add google/sedpack --skill sedpack --agent gemini-cli -ynpx skills add google/sedpack --skill sedpack --agent claude-code -y# Global user-level install into ~/.agents/skills/sedpack:npx skills add google/sedpack --skill sedpack -g -y# List available skills in the repository, or check/update installed skills:npx skills add google/sedpack --listnpx skills checknpx skills update -
Option 3 — Link with Gemini CLI: Link the bundled skill directory directly from the active Python environment (into
~/.gemini/skillsby default, or.gemini/skillswith--scope workspace):Terminal window gemini skills link "$(python -c 'import importlib.resources as r; print(r.files("sedpack") / ".agents/skills/sedpack")')"
Updating Skills When sedpack Updates
Section titled “Updating Skills When sedpack Updates”How your agent skill stays in sync when you upgrade sedpack depends on how it
was installed:
| Installation Method | Scope | Updates on pip install -U sedpack? |
What Happens on .venv Rebuild / Python Upgrade? |
How to Update or Repair |
|---|---|---|---|---|
uvx library-skills (symlink) |
Project-local (.agents/skills/sedpack) |
Automatic (points directly into .venv site-packages) |
Resolves automatically if same Python X.Y; breaks if python3.12 -> python3.13 |
uvx library-skills --yes (only needed after Python minor version change) |
uvx library-skills --copy |
Project-local (.agents/skills/sedpack) |
Manual (static file copy) | Unaffected (files live in repo) | rm -rf .agents/skills/sedpack && uvx library-skills install --skill sedpack --yes --copy |
Editable checkout (pip install -e .) |
Project-local or Global (~/) |
Automatic on git pull / branch switch |
Unaffected (points to git source tree) | git pull |
npx skills add google/sedpack |
Project-local or Global (-g in ~/.agents/skills) |
Manual (tracks GitHub main, decoupled from .venv) |
Unaffected (copied from GitHub) | npx skills check and npx skills update |
gemini skills link |
Global (~/.gemini/skills) or Local (--scope workspace) |
Automatic for in-place upgrade in the linked .venv |
Breaks if the linked .venv is deleted or changes Python X.Y |
Run /skills reload in Gemini CLI, or re-run gemini skills link if .venv moved |
-
Automatic updates with project-local
.venvsymlinks (library-skills): When linked viauvx library-skills,.agents/skills/sedpackis a directory symlink tosite-packages/sedpack/.agents/skills/sedpack. Runningpip install -U sedpack,uv sync --upgrade-package sedpack,poetry update sedpack, orconda updateupdatesSKILL.md(and any new companion files) immediately with zero extra steps, while keeping each project matched to its own.venvversion. -
Repairing
.venvsymlinks after a Python minor version upgrade: On Linux and macOS,site-packageslives under.venv/lib/pythonX.Y/. If you recreate.venvwith the same PythonX.Yversion, the relative symlink resolves again as soon assedpackis installed. If you upgrade frompython3.12topython3.13, repair the symlink (and check symlink health in CI) with:Terminal window uvx library-skills --yesuvx library-skills --check -
Manually updating a copied skill (
library-skills --copy): Because--copywrites regular files instead of a symlink, re-copy the skill after upgradingsedpack:Terminal window rm -rf .agents/skills/sedpackuvx library-skills install --skill sedpack --yes --copy -
Manually updating GitHub-installed skills (
npx skillslocal or global-g):npx skillsinstalls from thegoogle/sedpackGitHub repository and records the commit hash inskills-lock.jsonrather than reading.venv. Note that a global (-g) installation places a single version in~/.agents/skills/sedpackshared across all repositories on your machine, which can drift if different projects pin differentsedpackversions. To check for and pull the latest skill from GitHub:Terminal window npx skills checknpx skills update -
Reloading or re-linking in Gemini CLI (
gemini skills link): After an in-placepip install -U sedpackin the linked environment, run/skills reloadinside an active Gemini CLI session to pick up changes. If you recreated the environment under a new path or Python minor version, re-rungemini skills link.
Cross-Platform and Directory Casing Notes
Section titled “Cross-Platform and Directory Casing Notes”- Directory casing: Always use lowercase
.agents/skills,.gemini/skills, and.claude/skills(case-sensitive Linux filesystems will not discover.Gemini/skills). - Agent path conventions: Project-local
.agents/skills/is supported across modern coding agents (and.gemini/skills/or.claude/skills/for agent-specific local directories); for user-level global directories, Gemini CLI reads~/.gemini/skills/and Claude Code reads~/.claude/skills/.
Developing sedpack with Coding Agents (AGENTS.md)
Section titled “Developing sedpack with Coding Agents (AGENTS.md)”When working on the sedpack repository itself, coding agents automatically
read AGENTS.md at the
repository root for build, test (pytest), formatting (yapf, cargo fmt),
type-checking (mypy), linting (pylint, clippy, markdownlint), and
spell-checking (cspell) instructions.