On this page
hidden-moves
Prev: engl | Up: projects | Next: function-sequence
Rel: wispsy, Composition, function-sequence, recipes
Ref: wispsy on GitHub | hidden_moves Issues
Tags: #public #wispsy #project #composition #tier/core
Role
Describe, discover, bind, and expose typed Python capabilities (0.2.0, Python 3.11+)—providing a small registry, per-object target binding, JSON-schema CapabilityCatalog, the hidden-moves (hm) CLI, and an optional [composition] extra integrating with function-sequence for contracted composite capabilities and selected-provider workflows.
Install
python -m pip install hidden-moves==0.2.0
# Optional Function Sequence composition integration:
python -m pip install "hidden-moves[composition]==0.2.0"
Quickstart
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")
catalog = CapabilityCatalog(moves, ["text.repeat"])
assert catalog.invoke("text.repeat", {"value": "hello"}) == "hello hello"
When to Reach for It
- Registering, discovering, and binding reusable capabilities across independent packages or plugins.
- Keeping capability definitions decoupled from how they are surfaced (Python, CLI, MCP, OpenAI function tools, or function-sequence).
Gotchas & Pitfalls
- Consolidation (
0.2.0) & optional[composition]extra: Core capability registration andCapabilityCataloghave zero base deps on Python>=3.11, while composite capabilities require the[composition]extra (integrating function-sequence0.2.0). - Per-object binding: Bound capabilities capture their target instance explicitly—avoid sharing a single mutable bound handle across unrelated request contexts.
- Schema-first surface: Tool exports (CLI, MCP, OpenAI function schemas) derive directly from typed signatures and docstrings, so incomplete type annotations degrade generated schemas.
Pairs With
- function-sequence — Optional
[composition]extra (function-sequence>=0.2.0,<0.3.0) resolving selected catalogs for pipelines and workflows. - expose-interface — Powers the
hidden-moves/hmCLI surface. - hypnosis — Uses
hidden-moves[composition]==0.2.0for selected tools and composite tool budgets.
Metadata
type: project-card
slug: hidden-moves
org: wispsy
repo: wispsy/hidden-moves
package: hidden-moves
import_name: hidden_moves
version: 0.2.0
requires_python: ">=3.11"
layer: composition
topic: wispsy-composition
status: active
language: python
source_docs: README.md, docs/
Linked from
Related notes
- wiki/projects/function-sequence Linked here; links to this page; shared tags: #composition, #project, #tier, #wispsy
- wiki/projects/engl Linked here; links to this page; shared tags: #project, #tier, #wispsy
- wiki/projects/expose-interface Linked here; links to this page; shared tags: #project, #tier, #wispsy
- wiki/projects/hypnosis Linked here; links to this page; shared tags: #project, #tier, #wispsy
- wiki/stack/composition Linked here; links to this page; shared tags: #composition, #tier, #wispsy
- wiki/projects Linked here; links to this page; shared tags: #wispsy
- wiki/recipes Linked here; links to this page; shared tags: #wispsy
- wiki/projects/ellainng links to this page; shared tags: #project, #tier, #wispsy
- wiki/projects/wispsy links to this page; shared tags: #project, #tier, #wispsy
- wiki/choosing links to this page; shared tags: #tier, #wispsy