Skip to main content

Jarvis Core

Validate Release PyPI Python License: MIT

jarvis-agent-core is a small, typed, dependency-free Python library for building portable AI-agent runtimes. It provides reusable contracts and deterministic runtime primitives without requiring a particular model vendor, application, database, deployment platform, user interface or operating-system sandbox.

The package is designed to be useful standalone. Any Python application can install it, implement the provider protocol, and reuse the shared runtime contracts.

Install

Python 3.10+ is required. The current release is 0.12.0.

python -m pip install "jarvis-agent-core==0.12.0"

For development:

git clone https://github.com/abdullahalrifat/jarvis-core.git
cd jarvis-core
python -m pip install -e . -r requirements-dev.txt
python -m pytest

What Core provides

Core contains provider-neutral building blocks for:

  • model requests, responses, usage and tool calls;
  • provider capability and routing primitives;
  • token accounting, budgets and context compaction;
  • artifacts and content-addressed references;
  • evidence, verification and completion requirements;
  • failure classification, recovery and retry policy;
  • multi-agent tasks, teams and orchestration;
  • instructions, memory and MCP permission vocabulary;
  • schedules, remote-run and execution-state contracts;
  • leases, permissions and execution-proof records;
  • repository/developer-intelligence primitives;
  • evaluation cases, benchmarks and tracing;
  • review/change transactions and verification policy;
  • reusable sandbox policy and host-boundary validation.

Provider-neutral model boundary

Core defines the model boundary but never ships a model-provider SDK.

Your application
      │
      │ implements ModelProvider
      ▼
┌──────────────────────────────┐
│        jarvis-agent-core     │
│                              │
│ ModelRequest                 │
│ ModelResponse                │
│ ModelUsage                   │
│ ToolCall                     │
│ ModelProvider                │
│ normalization helpers        │
│ runtime contracts/primitives │
└──────────────────────────────┘
      ▲
      │
      ├── hosted model adapter
      ├── local model adapter
      ├── OpenAI-compatible adapter
      └── any future provider

ModelRequest, ModelResponse, ModelUsage and ToolCall are dependency-free data contracts. normalize_usage(), normalize_tool_call(), normalize_tool_calls() and make_model_response() provide common normalization semantics without coupling Core to any provider SDK.

Concrete HTTP transports, SDK clients, credentials, endpoint-specific request formatting, retries and provider-specific error handling remain application responsibilities.

What Core deliberately does not do

Core does not:

  • call model APIs;
  • store API keys or credentials;
  • execute shell commands or arbitrary repository changes;
  • provide a database or persistence backend;
  • provide a web server, CLI or user interface;
  • start MCP processes;
  • enforce operating-system isolation;
  • provide a cloud-worker implementation;
  • impose tenancy, deployment or organization policy.

This boundary keeps the package portable and safe to embed in different applications.

Compatibility and release policy

  • semantic versioning is used while the pre-1.0 API stabilizes;
  • patch releases should remain compatible within a minor line;
  • breaking public contracts require a new minor version while the API remains pre-1.0;
  • releases are immutable once published;
  • PyPI publication uses GitHub Actions Trusted Publishing;
  • the package README is the PyPI project description, so documentation changes intended for PyPI require a new package version.

Release flow

code/docs change
    -> CI
    -> merge to main
    -> validate exact merged SHA
    -> build wheel + sdist
    -> clean-environment install check
    -> checksums + provenance
    -> GitHub Release
    -> PyPI Trusted Publishing

Consumers should depend on a published PyPI version rather than a mutable Git branch. During local development, an editable checkout may be used explicitly.

Development checks

black --check src tests
ruff check src tests --select E9,F63,F7,F82
pytest -q --cov=jarvis_core --cov-report=term-missing --cov-fail-under=85
python -m build
python -m twine check dist/*

See docs/contract-boundaries.md, docs/releasing.md, CONTRIBUTING.md and SECURITY.md.

License

Jarvis Core is available under the MIT License.

Metadata

Release files for jarvis-agent-core 0.12.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 jarvis-agent-core 0.12.0
File Size Uploaded
jarvis_agent_core-0.12.0.tar.gz 51.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for jarvis-agent-core 0.12.0
File Interpreter ABI Platform
jarvis_agent_core-0.12.0-py3-none-any.whl Python 3 none any Details

Total release size: 103.4 kB

Release files / jarvis_agent_core-0.12.0.tar.gz

Download URL jarvis_agent_core-0.12.0.tar.gz
Size 51.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2a53c5d517a7872eeba5a3295ff0c6f6c184117b1ea44706ea4fd171ae9fb129
BLAKE2b-256 checksum
How to use checksums
28665c7740e4a9b042758bda13b25fa6c4f363ad59f2162c95af315cdaae02ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 12, 2026.

Transparency log

Release files / jarvis_agent_core-0.12.0-py3-none-any.whl

Download URL jarvis_agent_core-0.12.0-py3-none-any.whl
Size 51.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c947c98fdc57d88de961998780aa7026ec8977a2ed349b82227a43c5795d04a0
BLAKE2b-256 checksum
How to use checksums
38d20f9180ef21bfb6019ec4314655ab5bb9431adf8934124b37273b32aa4ee4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 12, 2026.

Transparency log

Release history Release notifications | RSS feed

0.16.1

2 release files

0.16.0

2 release files

0.15.0

2 release files

0.14.0

2 release files

0.13.0

2 release files

This release

0.12.0 This release

2 release files

0.11.0

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.5

2 release files

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