Skip to main content

proposer

CI PyPI Python versions Licence

Assistants that read and propose but never act.

Many pipelines are driven by a declarative input: a manifest, a config file, a form. Filling it in is the slow part. Someone reads a paper or a download page, finds the files, checks that the links work, and writes it all down in the pipeline's own terms.

proposer gives that job to a language model without giving it the pipeline. The model can only read (papers, folder listings, tables, the current config) and propose values. The server validates every proposal, checks every URL, drops what fails and words the result itself. The user sees a card and decides whether to apply it. Nothing is saved, run or deleted by the model.

It works with small local models (it was developed against qwen3:8b and qwen3:14b on Ollama), because the server, not the model, is what makes a proposal trustworthy.

Packs

The engine is the same in every domain. A pack makes it an assistant for one thing.

Pack Describes A proposal is applied by
tersect A genomics dataset for Tersect Browser: reference genome, one VCF per accession, build options The dataset wizard's form
opentargets New inputs for the Open Targets pipeline: copy tasks and version pins in pis/config.yaml A maintainer reviewing a patch

Install

pip install proposer-llm

The package is published as proposer-llm; it is imported as proposer and its command is proposer. It needs Python 3.11 or later.

Try it

You need an OpenAI-compatible model endpoint that supports tool calling, for example a local Ollama:

export PROPOSER_URL=http://localhost:11434/v1
export PROPOSER_MODEL=qwen3:14b

proposer chat --pack opentargets

Then describe what you want added:

> Reactome also publishes gene sets at
  https://reactome.org/download/current/ReactomePathways.gmt.zip. Add it as an input.

┌─ [1] Add 1 input to reactome
│ 1 reachable
│ Source: https://reactome.org/download/current/ReactomePathways.gmt.zip
│ ✓ https://reactome.org/download/current/ReactomePathways.gmt.zip 293.1K
│
│ +    - name: copy Reactome gene sets
│ +      source: https://reactome.org/download/current/ReactomePathways.gmt.zip
│ +      destination: input/reactome/ReactomePathways.gmt.zip
└─
Add to patch — "Add 1 input to reactome"? [y/N]

What you accept is collected into out/opentargets-inputs.patch, which applies in the pipeline repository with git apply. By default the pack reads pis/config.yaml from the main branch on GitHub; point it at a checkout with --set config=/path/to/pipeline/pis/config.yaml.

To serve a pack over HTTP for a web client (server-sent events):

proposer serve --pack tersect

Writing a pack

A pack is a subclass of proposer.pack.Pack:

It says With
What is being described, in a few lines role, goal, brief, rules
The current state start_turn() to load it, describe() to summarise it
How to look at it read tools: run(args, turn) -> str
What can be proposed propose tools: run(args, turn) -> (proposal, summary)
How an accepted card is applied apply() and export(), or the pack's own client

Every pack also gets the standard read tools: read_paper, list_directory, read_table and check_urls.

The work in a pack is in its propose tools. Each one takes the model's values as a pydantic model and does what a careful reviewer would do: check them against the current state, check the links, leave out what failed, and raise ToolError with a message the model can act on when the whole proposal is wrong. src/proposer/packs/opentargets/ is the shorter of the two examples.

Run a pack of your own with --pack your.module:factory.

Skills

A skill is a method plus the read tools that go with it. When a pack pins one (Pack.skills), its instructions are added to the prompt and its tools join the ones the model may call for that turn.

The pack decides which skills are in force, and may decide by state (a wizard step, a failed build). The model never chooses a skill, cannot search for tools and cannot run one by name. Skills can only add ways to read: one that brings a propose tool is refused, and at most 16 skill tools fit in a turn.

from proposer.skill import Skill

class MyPack(Pack):
    def skills(self, turn):
        return [Skill('find-the-data', instructions='…', tools=[…])]

Tools and skills from ToolUniverse

ToolUniverse defines a few thousand tools over scientific databases, and skills written in terms of them. proposer.sources.tooluniverse turns the ones a pack names into read tools:

from proposer.sources.tooluniverse import Catalogue

catalogue = Catalogue.installed()          # or Catalogue('/path/to/ToolUniverse')
tools = catalogue.tools(['Zenodo_search_records', 'Zenodo_get_record_files'])
skill = catalogue.skill('tooluniverse-dataset-discovery',     # from a checkout
                        sections=['search strategy'], limit=8)

Tool types that run code, call other models, start remote compute or write files are refused whoever names them. Results are stripped of markup, cut to a budget and marked as untrusted text. ToolUniverse's own skill texts are written for large models that can search the catalogue and run code, so a pack will often take the tools and write the method in its own words.

The Open Targets pack does that. With the extra installed it can find where a dataset is published before proposing it:

pip install "proposer-llm[tooluniverse]"
proposer chat --pack opentargets --set tooluniverse=installed

> The OTRec paper published its disease-target predictions on Zenodo.
  Find the record and add its data as an input.

The extra is large (about 300 MB installed) and is only needed to run the tools; reading the catalogue needs just its JSON files.

What the Open Targets pack does and does not do

It proposes:

  • copy tasks (one file each) in an existing or new step, with any new version pins their URLs use;
  • a new value for an existing version pin, after checking the sources that use it at the new value.

It checks that URLs exist (public gs:// objects included), that ${pins} are known, that a source is not already copied, and that a destination is under input/ and not already written. It surfaces the comment above a pin and will not offer a change the config says not to make.

It does not propose other task types (copy_many, explode, API downloads), transformation code for the pts stage, or orchestration changes, and it cannot verify objects in private buckets. It says so on the card rather than guessing.

The config is edited as text, so comments, banners and quoting stay as the maintainers wrote them, and every edit is verified by parsing the result.

Settings

Variable Meaning Default
PROPOSER_URL OpenAI-compatible endpoint, including /v1 none (required)
PROPOSER_MODEL Model name qwen3:14b
PROPOSER_API_KEY Bearer token, if the endpoint needs one none
PROPOSER_CONTEXT_CHARS Prompt budget in characters 24000
PROPOSER_TIMEOUT Seconds allowed per turn 600
PROPOSER_REASONING reasoning_effort sent by default none
PROPOSER_ALLOW_PRIVATE_URLS Let the readers reach private addresses off
PROPOSER_OPENTARGETS_CONFIG Path or URL of pis/config.yaml main on GitHub

An application that embeds proposer can keep its own variable names: settings.alias('MYAPP_ASSISTANT_') makes MYAPP_ASSISTANT_URL stand for PROPOSER_URL, and so on.

Development

uv sync
uv run pytest          # no network or model needed
uv run ruff check .

The tests drive the engine with a scripted fake model and canned URL checks. Set PROPOSER_NETWORK_TESTS=1 to also run the few that read real papers.

Licence

Copyright 2026 David Oluwasusi. Licensed under Apache-2.0; see LICENSE and NOTICE.

Metadata

Release files for proposer-llm 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for proposer-llm 0.1.0
File Size Uploaded Provenance Actions
proposer_llm-0.1.0.tar.gz 84.7 kB With provenance Details for proposer_llm-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for proposer-llm 0.1.0
File Interpreter ABI Platform Actions
proposer_llm-0.1.0-py3-none-any.whl Python 3 none any Details for proposer_llm-0.1.0-py3-none-any.whl

Total release size: 162.2 kB

Release files / proposer_llm-0.1.0.tar.gz

Download URL proposer_llm-0.1.0.tar.gz
Size 84.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d6852d0f86172218183aa32ccadb9141c5f9e14bc756bf609857e2903a92c91f
BLAKE2b-256 checksum
How to use checksums
5ff3dc12d714fd166f6b7c803acd2c63f3ac6711e492080319f7bfb3d0856cbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / proposer_llm-0.1.0-py3-none-any.whl

Download URL proposer_llm-0.1.0-py3-none-any.whl
Size 77.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
291907829696576200e780a95c7201526bff49ad8702b3b31d1df72d6dc93a5d
BLAKE2b-256 checksum
How to use checksums
a35927dc66cbe74e9046e3c44f1005761c20eafc0faf3b694323e8153f34056f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for proposer-llm 0.1.0

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.

Select from 2 files

Attestation for proposer_llm-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page