Hidden Moves
Describe, discover, bind, and expose typed Python capabilities. Ordinary functions and clients own their behavior; Hidden Moves supplies a small registry, schemas, per-object binding, and explicitly selected consumer interfaces.
The API and provider contract are experimental. See the plugin contract, catalog guide, and usage guide.
For agent workflows, use the portable Hidden Moves skill and the local capability implementation plan. The workspace plugin supplies bounded numbered excerpts and literal search over an explicitly selected set of local files.
Installation and CLI
Python 3.11 or newer is required. The source CLI uses expose-interface as the
core distribution's only runtime dependency. Registry, schema, and catalog
modules use the standard library. See the CLI migration notes
for the change from the initial release.
python -m pip install hidden-moves==0.1.0
hidden-moves --help
hidden-moves plugins list
hidden-moves moves list --json
The initial 0.1.0 release is experimental. The core package is published
independently; the MCP, function-tool, and GitHub Projects adapters remain
source installations until their separate package releases. See the
release notes for the release and verification contract.
For development and the source-only example below, run uv sync --locked
from a checkout.
The registry starts empty. Installing a provider advertises it; loading it is an explicit choice. Install the source-only text example to try the generic CLI:
uv pip install --python .venv/bin/python ./examples/text-plugin
uv run hidden-moves --plugin example-text moves show example.text.repeat
uv run hm --plugin example-text moves call example.text.repeat \
--arguments '{"value": "hello", "count": 3}'
hm aliases hidden-moves. The shipped command groups are plugins list and
moves list/show/call. An unconfigured CLI can inspect target-bound definitions;
an application host must bind their target before structured invocation.
The JSON transport contract adds bounded --stdin
calls, explicit --input-key wrapping for scalar or record outputs, and optional
machine-readable call errors. Results stay on stdout; diagnostics use stderr.
Ordinary functions
Your functions remain directly usable without registration:
from hidden_moves import Moves
from hidden_moves.adapters import CapabilityCatalog
def repeat(value: str, count: int = 2) -> str:
return " ".join([value] * count)
moves = Moves()
moves.learn(repeat, namespace="text")
assert moves.text.repeat("hello", 3) == repeat("hello", 3)
catalog = CapabilityCatalog(moves, ["text.repeat"])
assert catalog.invoke("text.repeat", {"value": "hello"}) == "hello hello"
The catalog validates structured arguments before execution and serializes supported finite JSON results. Non-recursive dataclasses and TypedDicts retain typed Python behavior through supported model conversion.
Per-object binding
Reusable MoveSet groups collect namespaced definitions and install them atomically into a registry. Groups preserve binding/schema metadata and remain separate from workflow execution.
bind_target=True supplies the container's target as the first positional argument.
Definitions can be shared while each container retains its own target:
from hidden_moves import Moves, Registry, MoveSpec
def prefix(target: str, value: str) -> str:
return target + value
registry = Registry()
registry.register(MoveSpec("prefix", prefix, namespace="text", bind_target=True))
first = Moves("first: ", registry=registry)
second = Moves("second: ", registry=registry)
assert first.text.prefix("hello") == "first: hello"
assert second.text.prefix("hello") == "second: hello"
Existing bound client methods can be learned without additional target injection. Applications configure clients, credentials, timeouts, and resources. Inspection does not invoke capabilities or include target/context values.
Consumers and inspection
moves.moves()lists definitions;knows(name)checks registration.resolve(name)supplies the callable;describe(name)andexplain(name)inspect it.- Async results remain awaitable; consuming applications own their event loop.
- Metadata is copied deeply and kept immutable; behavioral annotations are hints.
- Discovery reads installed entry-point metadata; provider activation is explicit.
The optional MCP adapter serves a selected catalog through a local stdio host. The separate function-tool adapter exports Responses function tools and supports offline dispatch. Both use the same structured contract. Applications own authorization, transport, concurrency, and resource cleanup.
The GitHub Projects consumer provides a standalone typed read-only client and optional configured provider/host. Its fixture proof returns equivalent data through Python, catalog, actual stdio MCP, and function tools; a separate bounded live read verifies existing GitHub authorization.
The installed text provider demonstrates ordinary imports, explicit activation, and target binding. The interoperability example proves equivalent behavior through Python, CLI, MCP, and function tools.
Verification
PYTHONPATH=src .venv/bin/python -m unittest discover -s tests
uvx ruff check src tests
CI builds, inspects, and installs wheels and the example provider, checks both executables and module execution, and runs the complete behavior suites on Linux, macOS, and Windows with Python 3.11/3.13. See the compatibility policy. MCP tests include an actual stdio handshake/list/call. Network clients use synthetic fixtures and function-tool checks make no model API call.
Experimental import changes
The framework no longer ships prototype kit, notes, logs, palette, presets,
or connectors namespaces, automatic built-in assembly, CommandSet, or specialized
text/JSON/shell commands. Applications register their ordinary typed functions or
load explicit providers instead. Historical implementations remain recoverable
from Git. See migration notes.
Metadata
Release files for hidden-moves 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hidden_moves-0.1.1.tar.gz | 17.9 kB | With provenance |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hidden_moves-0.1.1-py3-none-any.whl | Python 3 | none | any |
Total release size: 44.7 kB
Security for hidden-moves 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.