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 PyPI 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.1.tar.gz (71.5 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.1-py3-none-any.whl (49.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: priorart_agent-0.1.1.tar.gz
  • Upload date:
  • Size: 71.5 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.1.tar.gz
Algorithm Hash digest
SHA256 af346c59534bebff942f20edbc8c442c33ceb8842b23b6cdeb5ac89c1044b095
MD5 0fd45e618ac5614b89616be3cc5a4abc
BLAKE2b-256 6414c2e160d5e53860b4df2eaad6c76be6014d32254e06b59479413ff53d0425

See more details on using hashes here.

Provenance

The following attestation bundles were made for priorart_agent-0.1.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: priorart_agent-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 49.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c5294a2af9c52c4dd03aeaab553acdcb66f28db675922c07dd8e09ab75798250
MD5 b8bf54c3925656f9b49cf27a2de761e1
BLAKE2b-256 d1c02dca2fa4460aa77613f7d54185ec09061f755f9221585cee829e5bac538c

See more details on using hashes here.

Provenance

The following attestation bundles were made for priorart_agent-0.1.1-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