Catalog PyPI
Back to packageRELEASE DETAILS

0.1.0

PyPI

agentsam-sdk

Stdlib-first Agent Sam repository/data CLI and local SAM client, with an optional Rich terminal UI.

agentsagentsamclirepositorysamsdk
Published19 Oct 2026
Direct dependencies1
Transitive dependenciesNot calculated

README

Version 0.1.0 documentation

agentsam-sdk (Python)

Core repository/data commands remain stdlib-only (dependencies = []). Rich is an optional renderer dependency used by the SDK's internal terminal preview lab; it is not exposed as an installed-user renderer command.

pip install agentsam-sdk            # stdlib-only core
pip install "agentsam-sdk[tui]"     # optional Rich terminal renderer
agentsam repository inventory --repo-root /path/to/repo --format json

Requires Python 3.10+. For development from a checkout: cd python && pip install -e . then python -m unittest discover -s tests -v.

AgentSamClient.invoke()

The repository, data, hooks and agentsam CLI tools run entirely in Python. The local SAM client (AgentSamClient) delegates to the Node SAM kernel, so it needs Node 20+ and the npm package in the project or a parent directory:

npm install @inneranimalmedia/agentsam-sdk

The bridge is found automatically from the working directory. It is read-only by design: write, D1, CMS and terminal operations are refused (sam_bridge_operation_not_allowed). Without the npm package, invoke() raises sam_bridge_not_installed.

Protocol: ../protocol/README.md.

Portable lifecycle hooks

agentsam_sdk.hooks implements the same agentsam.hook.v1 envelope as the JavaScript/TypeScript, Go, Rust, command, and HTTP adapters. It is stdlib-only:

from agentsam_sdk.hooks import HookRuntime

hooks = HookRuntime()
hooks.register("pre_tool_use", lambda envelope: {
    "permission_decision": "allow"
})
result = await hooks.dispatch("pre_tool_use", {
    "tool_name": "repository.snapshot", "tool_args": {}
})

See ../packages/agentsam-hooks/README.md for composition, permission, and subprocess transport rules.

Optional sibling packages (not part of stdlib core)

PackagePathNotes
agentsam-site-scrape../packages/agentsam-site-scrape/Optional/network (requests); crawl→R2. Dual-homed with IAM tools/agentsam-site-scrape/. Does not fold into agentsam_sdk.

Internal Rich renderer preview

The npm SDK owns the public interactive experience. For renderer development only:

cd ..
npm run ui:preview -- tour
npm run ui:preview -- thinking

The Python module can also be invoked directly after installing the optional extra:

cd python
pip install -e '.[tui]'
PYTHONPATH=. python -m agentsam_sdk.tui --scene dashboard --check

agentsam_sdk.tui is presentation-only. It does not define tools, execution policy, or public CLI vocabulary.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
rich
Environment
{
  "extras": "",
  "marker": "extra == \"tui\"",
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
rich>=13.7.0; extra == "tui"runtime

Distribution files

2 collected
agentsam_sdk-0.1.0-py3-none-any.whl

bdist_wheel · 80.72 KB · Python py3

Source file
agentsam_sdk-0.1.0.tar.gz

sdist · 75.95 KB · Python source

Source file

Repository

PENDING
samprimeaux/agentsam-sdk

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 23:16 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:00ca838f090e8bf93f37d392877be11add39d9e1b953a48d3dc3eba2a476d2f9

Other collected versions

View all collected versions →