Skip to main content

Build-vs-borrow intelligence for agentic workflows - helps AI agents discover and evaluate open source packages

Project description

Prior Art Logo

Python FastMCP Click License

priorart is a deterministic package evaluation tool for build-vs-borrow decisions. Given a natural language task description and target language, it queries package registries directly, collects quantitative signals from GitHub and deps.dev, and produces a scored recommendation based on configurable, research-informed heuristics.

Research Inspiration

Noise-floor thresholds for registry metrics are informed by Koch et al. (MADWeb 2024), which quantified the weak, language-dependent correlation between GitHub stars and downstream adoption. Abandonment detection follows Coelho & Valente (ESEC/FSE 2017) on categorizing open-source project failure modes. Adoption saturation curves for committer diversity and reverse-dependency counts reference Borges & Valente (JSS 2018) and Zerouali et al. (ICSR 2018) on technical lag in dependency networks. Health dimensions are aligned with the CHAOSS Project metrics framework.

Pipeline

  1. Taxonomy Mapping — Maps task descriptions to curated, language-specific registry search queries.
  2. Registry Discovery — Fetches candidates from PyPI, npm, crates.io, or pkg.go.dev, ranked by download count.
  3. Signal Collection — Enriches each candidate with GitHub repository metrics (stars, forks, MTTR, commit regularity) and deps.dev dependency health data.
  4. Multidimensional Scoring — Computes weighted scores across reliability, adoption, versioning, activity regularity, and dependency health.
  5. Decision Classification — Classifies packages as use_existing (≥75), evaluate (50–74), or build (<50).

Properties

  • Registry-first discovery — Queries registries directly; does not rely on GitHub search.
  • Latency — 50–200 ms cached, 3–5 s cold.
  • Deterministic — Scoring is fully quantitative; no LLM-generated recommendations.
  • Supply-chain checks — Identity verification (typosquatting), copyleft license detection, and dependency vulnerability flags.

Documentation

  • SETUP.md: Installation, environment configuration, and MCP server setup.
  • API.md: Comprehensive guide to the CLI, Python API, and MCP tool definitions.
  • ARCHITECTURE.md: Deep dive into the scoring algorithms, data flow, and cache design.
  • STYLE.md: Project coding standards and architectural invariants.
  • TESTING.md: Guidelines for running unit and integration tests.
  • AGENT_CONFIG.md: Specific protocols for AI agents using priorart in autonomous workflows.
  • TAXONOMY.md: Guide for contributing new package categories and search terms.

License

See LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

priorart_agent-0.1.0.tar.gz (71.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

priorart_agent-0.1.0-py3-none-any.whl (49.2 kB view details)

Uploaded Python 3

File details

Details for the file priorart_agent-0.1.0.tar.gz.

File metadata

  • Download URL: priorart_agent-0.1.0.tar.gz
  • Upload date:
  • Size: 71.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for priorart_agent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d39987f81cc671e91a1848f0a52adfb52761f6e9ce6bc11b6409397774091624
MD5 a507a9c24d474bf8dd410d855fe43437
BLAKE2b-256 b3a83f676df98b9f35ec502bd1d5bae85d0a059f23c5c04ec9505d8eefa6d9cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for priorart_agent-0.1.0.tar.gz:

Publisher: publish.yml on akshatvasisht/prior-art

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file priorart_agent-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: priorart_agent-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 49.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for priorart_agent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e78d9aefee621b0010bfe49bbc7b9d9d30af2b79e3ead93806a8947e4839d930
MD5 8b005d9578854e37bca5f7609d1d31da
BLAKE2b-256 f7bd10fe1696f6e8e87a835abcdb4c6183af2fc6f3823127ebebdd427fcc6e00

See more details on using hashes here.

Provenance

The following attestation bundles were made for priorart_agent-0.1.0-py3-none-any.whl:

Publisher: publish.yml on akshatvasisht/prior-art

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page