Skip to content
Proyek

Tentang

Registry-governed agent harness with typed PetriNet execution

Alat pengembangan

Cara angka ini diukur

281 bintang0 Fork +8 dalam 24 jam

Yang dapat Anda lakukan

  • Compose agents, tools and workflow modules. Define supported workflows directly or use the built-in Designer. Connect registered operations through typed dependencies, parallel branches and all-input joins, and compose reusable modules through explicit interfaces.
  • Coordinate independent tasks through versioned resources. Run tasks with their own Registry and result. Give agents explicit access to the materials and resource versions they need for each handoff.
  • Review and merge workflow definitions. Propose and compare supported definition revisions, resolve conflicts, then explicitly adopt a chosen revision into a run.
  • Package and reuse a working method. Share supported definitions with their inputs and environment requirements, so another project can prepare and run them with its own Registry, local configuration and authorization.

Pertumbuhan bintang terukur

dalam 24 jam
+8
dalam 7 hari
Mengumpulkan riwayat
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

RPNH v0.1.0 is the stable GitHub release. The pinned npm package [email protected] passed anonymous first install on WSL2 x86_64 / Basic.

RPNH Harness

English | 中文

RPNH is a provider-neutral agent execution framework for building, running and reusing workflows that combine language models and native tools.

A typed PetriNet makes task dependencies and resource requirements executable: a step can run only after its declared prerequisites are satisfied, and settled outputs feed later work. A durable Registry connects workflow definitions, resource versions, execution records and checkpoints.

First run · Technical report · Examples · Documentation · Repository map

Quick start: install from npm

For this verified WSL2 Linux x86_64 / Basic first install, use Node.js 20+ with npm, uv, and persistent CPython 3.12.13 with venv available as python3. In the same WSL terminal that will run npm, check that command -v uv finds the executable. If uv is already installed but not found, add its installation directory to this shell's PATH or open a new shell and check again before starting.

npm exec [email protected] -- rpnh

Run in a terminal. Confirm npm's first download if prompted, then type UPDATE to install and activate Basic. The original rpnh init starts automatically. Enter your provider and exact model configuration, then choose basic. Initialization saves configuration without signing in or calling a model. Use the managed rpnh launcher path printed after activation for later commands.

The exact-version command above passed an anonymous first install into a new root, including Basic activation, setup and version readback. npm dist-tags list latest=0.1.0 and next=0.1.0-rc.9. The unpinned command was checked for version resolution and status on the already installed generation, not for a second first install. The verified scope excludes upgrades, rollback, macOS, native Windows and optional frontends such as DSH.

Release notes and install scope.

What you can do

  • Compose agents, tools and workflow modules. Define supported workflows directly or use the built-in Designer. Connect registered operations through typed dependencies, parallel branches and all-input joins, and compose reusable modules through explicit interfaces.
  • Coordinate independent tasks through versioned resources. Run tasks with their own Registry and result. Give agents explicit access to the materials and resource versions they need for each handoff.
  • Review and merge workflow definitions. Propose and compare supported definition revisions, resolve conflicts, then explicitly adopt a chosen revision into a run.
  • Package and reuse a working method. Share supported definitions with their inputs and environment requirements, so another project can prepare and run them with its own Registry, local configuration and authorization.

The technical report explains composition, definition-specific merge contracts and how revisions enter execution.

Inspect and continue real runs. The read-only Viewer shows structure, recorded inputs, outputs and workspace versions. Resume owner-stopped work from its latest committed checkpoint, or explicitly reopen a checkpoint in the active net lineage. Earlier history is retained; reopening does not undo external effects.

Alternative: install from source

Requires Linux/WSL2, Python 3.11+ with venv, Git, curl and Bash. Review the installer, then run:

bash -c 'set -e; installer=$(mktemp); curl -fsSL https://raw.githubusercontent.com/Deng-0119/RPNH/main/scripts/install.sh -o "$installer"; bash "$installer"; rm -- "$installer"'

This installs current public source and the demo plugin into ~/.local/share/rpnh/{source,venv}. It refuses an existing destination, uses no sudo, and changes neither system Python nor shell startup files. Network access is needed; no model is called. Custom directory, pinned commit and manual installation.

Example: add two numbers and inspect the run

After the source installation above, run this zero-model example. Local subprocess and Unix-socket permissions are required:

cd "$HOME/.local/share/rpnh/source"
. ../venv/bin/activate
RUN_DIR="$(mktemp -d)/add-run"
rpnh plugins --config examples/native_plugin/plugins.json run demo/add \
  --input examples/native_plugin/input.json --run-dir "$RUN_DIR"
rpnh net --run "$RUN_DIR" --view --no-open

The input is 2 + 3; expected output contains output.value: 5 and a terminal-evidence reference. The last command prints the local read-only Viewer URL. Keep the run directory for later inspection.

Recorded native-add run in the PetriNet Viewer

Existing capture of a completed native-tool run, not a model run or a new test of this revision. Example details · More workflows.

For conversation, configure your provider and exact model with the model guide, then run rpnh --frontend basic. No provider is preselected.

See RPNH in a complete project

Project Recorded result Reproduce it
Terminal-Bench 2 multi-source data merge The source and independent receiver each passed 3/3 original Python assertions, with only the output paths adapted. See the 2026-11-24 RC9 result. RC9 on WSL2. npm installs Basic; the business runs use the same published wheel in a separate Python environment with pandas, PyArrow and an authorized model profile. The upstream test.sh was not run.
Ten-operation electricity billing The historical native run produced 2.000 kWh / CNY 1.70 after the owner adopted two sequential contributions. Its business inputs are synthetic. Run the billing example and open its Viewer. Use a compatible source checkout and a fresh work directory. No model or provider calls. The older recording does not certify RC9.

RC9 data merger: source project's business PetriNet

The image shows the source project in the recorded RC9 run. Its separate receiver view and result record show what each project did. For a smaller model–program workflow, see Hybrid summary. For independent roles around a shared resource Source, see Multi-user release handoff.

Compatibility and releases

See v0.1.0 release notes for the WSL2 x86_64 / Basic installation scope. The October 30 v0.1.0rc3 wheel and DSH plugin do not include the November 1 source fixes; see the source/release boundary.

  • Codex: default 0.163.0; 0.166.0 and 0.171.0 are explicitly selected candidates. The 0.171.0 WSL2 live batch-summary-v1 task and nonempty same-root reopen passed; see the exact model and validation scope.
  • OpenCode: default 1.19.4; 2.2.5 is only an opt-in REST/authentication/non-durable events subset, not a complete native frontend. The existing 2.2.6 opt-in supports one bound ordinary-text session; it does not grant native tool execution or full-client certification.
  • DSH Web frontend: default 0.2.2-alpha.2 official Web UI bound to one RPNH MainSession; 0.2.2-rc.1 is an existing opt-in. The 0.2.2-rc.5 candidate passed scoped WSL2 checks without model calls. A separately approved live task with a new input set and same-root read-only reopening passed; the earlier driver-stopped unknown submission remains separate historical evidence. Follow the Web guide.
  • Stock DSH operator plugin: manual pairing with DSH 0.2.2-alpha.2 to inspect existing RPNH tasks, with optional controls; not a qualified managed upgrade. Follow the operator guide.

These integrations have bounded compatibility, not blanket support across versions.

Explicit managed-tool scheduling

Controlled managed tools documents opt-in parallel execution for explicitly bound managed operations under the selected policy and effect/conflict limits. Mixed builtin/managed turns retain sequential execution. The shared capacity applies within one run, not as a cross-run lock. Selecting a policy does not grant additional business authority.

Learn more

Documentation · Examples · Registry materials and annotated controls · Technical report · Architecture · Contributing

License

MIT. Third-party components retain their own licenses; see third-party notices.

Jelajahi proyek terkait

Memuat…