jarviscore-framework README

README проекта с github.com/Prescott-Data/jarviscore-framework. Одним файлом markdown: README.md.

JarvisCore

PyPI Python Docs Discord License

pip install jarviscore-framework

JarvisCore is a runtime where AI agents operate as a fleet of equal peers. Agents discover one another by capability, execute tasks from a shared ledger, and authenticate to every external service through a zero-trust broker, never with their own keys.

Two blueprints side by side. A, a central orchestrator: one box that plans, routes and holds state, with arrows out to scout, coder, browser and writer, marked as a single point of failure; if it stops, everything stops. B, the JarvisCore peer mesh: scout, coder, browser and writer connected to each other, an analyst shown stopped, each live peer linked to a shared ledger of steps, claims and results in Redis, and coder and browser linked to the Nexus zero-trust broker; a node stops and a peer claims its step from the ledger.

Most agent frameworks put one orchestrator in charge: it plans, routes every request and holds the state, so the system is only as available as that one process. On a JarvisCore mesh, every agent is a peer. Peers find each other by what they can do (SWIM gossip), take steps from a shared ledger (Redis) and record what they did there, so when one stops, another claims its step and the work goes on. None of them holds a credential: the Nexus broker places it at the call.

Video overview

Watch the JarvisCore overview on YouTube (2:07): an open-source runtime for AI agents that work as a mesh of equal peers.

The whole idea in two minutes: discovery by capability, the shared ledger, and the zero-trust broker, on a real mesh.

Contents

Components

JarvisCore puts eight components around the model: AutoAgent, CustomAgent, the Kernel, the mesh, memory, Nexus, integrations, and people in the loop, with rooms for teams. You write the agents; the rest handles context, tools, credentials, durable state, coordination and approvals around every call the model makes.

The model at the top, connected to four groups of components. Write: AutoAgent (role, capabilities, prompt) and CustomAgent (plain Python in execute_task). Run: the Kernel (roles, budgets, done check) and the mesh (peers, shared ledger, pools). Remember and reach: memory (notes, episodes, Athena), Nexus (credentials placed at the call) and integrations (typed atoms, auth injected). People: people in the loop (approve once, then it runs) and rooms (shared files, Slack), new in 2.3. You write the first column; the runtime supplies the rest.

Start in two minutes

Use Python 3.10 or later and one model key. In a new folder:

pip install jarviscore-framework
jarviscore init
cp .env.example .env    # add AZURE_API_KEY, CLAUDE_API_KEY, GEMINI_API_KEY or LLM_ENDPOINT
jarviscore check --validate-llm

Then run your first agent. It needs no database, broker or Docker:

import asyncio
from jarviscore import AutoAgent, Mesh


class Researcher(AutoAgent):
    role = "researcher"
    capabilities = ["research"]
    system_prompt = "You find primary sources, read them, and cite every fact."


async def main():
    mesh = Mesh()
    mesh.add(Researcher)
    await mesh.start()
    result = await mesh.run_task(
        agent="researcher",
        task="What changed in the EU AI Act's final text for open-source models?",
    )
    print(result["result_summary"])  # the answer
    print(result["evidence"])        # what the tools actually saw
    await mesh.stop()

asyncio.run(main())

Add capabilities as you need them: a browser ([browser]), durable workflows and crash recovery ([redis] with REDIS_URL), agents on several machines ([p2p]), or everything ([full]). Prefer plain Python? A CustomAgent runs on the same mesh. See Getting Started for the full walkthrough.

What people build with it

A research team, live in the Desk

Play the recording: the JarvisCore Desk running a three-agent research mesh. The request is typed, the Scout searches the web and reads official docs, the Analyst compares the options and hands its comparison to the Writer, and the Writer delivers a decision brief with source links as a document.

Three agents on one mesh: a scout reads official docs on the live web, an analyst compares, a writer delivers the brief with its sources. A real run, idle time trimmed. Play the video to pause and scrub. The Desk ships with JarvisCore Agents, with four complete blueprints to run in it.

The whole team is 30 lines of Python:

class Scout(AutoAgent):
    role = "scout"
    capabilities = ["web_research"]
    default_kernel_role = "researcher"
    system_prompt = "You find primary sources on the live web, read them, and cite every fact."

class Analyst(AutoAgent):
    role = "analyst"
    capabilities = ["analysis"]
    default_kernel_role = "communicator"
    system_prompt = "You compare options strictly on the evidence."

class Writer(AutoAgent):
    role = "writer"
    capabilities = ["writing"]
    default_kernel_role = "communicator"
    system_prompt = "You write short, decisive briefs for engineering leads, citing sources."

results = await mesh.workflow("vector-db-brief", [
    {"agent": "scout",   "task": "Gather the facts this request turns on, from official docs: ..."},
    {"agent": "analyst", "task": "Compare the options on the scout's evidence.", "depends_on": [0]},
    {"agent": "writer",  "task": "Write a decision brief of at most eight lines.", "depends_on": [1]},
])

Read a whole website

One goal_oriented agent opens the catalogue, walks every page, computes the figures with code and saves a report: 32 books, 2 pages, every figure correct. browse_a_whole_site.py · real time 1m 56s · needs jarviscore-framework[browser] and BROWSER_ENABLED=true.

Watch it run in a terminal browse_a_whole_site.py: an agent collects all 32 books in the Mystery category of books.toscrape.com across both pages, reports the count per rating, the average price of £31.72 and the three most expensive books, and saves mystery_report.md.

Compute, never estimate

Revenue and quarter-on-quarter growth for four regions from a 400-row CSV, computed by code the agent writes and runs in a sandbox. Every figure matches a hand-written check. analyst_that_computes.py · real time 54s.

Watch it run in a terminal analyst_that_computes.py: an agent reads a 400-row sales CSV, writes and runs Python, and reports exact revenue per region and Q1 to Q2 growth, with South growing most at 28.64%.

Remember across runs

Tell it once. A new process, given nothing, still knows. Kept facts live in .jarviscore/memory/, with nothing to install; point it at Athena for semantic memory shared across machines. agent_that_remembers.py.

Watch it run in a terminal agent_that_remembers.py run twice: the first run is told Acme renews on 3 March 2027 with Jane Mwangi as contact; a second process, given nothing, answers with the date and the contact; the fact is shown on disk in .jarviscore/memory/account_manager.jsonl.

Survive kill -9

Kill the process mid-workflow and run the same command again: finished steps come back from Redis, and only the unfinished work runs. survives_a_crash.py · needs REDIS_URL.

Watch it run in a terminal survives_a_crash.py: a two-step workflow is started, the process is killed with kill -9 once step 1 is saved, and the same command in a new process recovers step 1 from Redis without re-running it and finishes step 2.

Work as a team, in Slack new in 2.3

People ask in their own words, agents change the team's shared files, and every change comes back as a proposal people accept with one tap, as themselves. Work that used someone's own Gmail or CRM is held for them. Live against a Slack sandbox with a real model: a draft, a revision from a teammate's feedback, an acceptance only the person who decided could confirm, and work that finished once after a restart. Build a multiplayer agent.

More, end to end
Demo What it shows
Research team, in a terminal The same kind of team without the Desk: a scout and an analyst, one workflow, a cited brief. Recording.
Investment committee Seven agents deliberate a $1.5M position on live market data; the process is killed mid-deliberation and finishes without re-running the analysts. Recording.
Four-process research mesh Four agents in four processes find each other over SWIM, claim steps from a shared ledger, and deliver to Slack through the credential vault. Reproduce with examples/demo_synthesizer.py and demo_node_1/2/3.py.
Demo film Agents as a fleet of equal peers: discovery by capability, a shared ledger, and every external call through the credential broker, in two minutes.

What you can count on

Promise What the runtime does
An honest status An agent that could not do the task returns failure with its own reason, never a success with empty figures.
Evidence you can check result["evidence"] holds each cited tool's input and output. A receipt the agent did not earn is refused.
Work that survives Finished workflow steps are recovered from Redis after a crash, not re-run and not re-billed. Long steps continue across execution epochs.
Memory that lasts Facts an agent keeps are recalled in later runs, keyed to its role, and kept apart per tenant with memory_scope_field.
Credentials out of reach Tokens are placed at the call by Nexus, only for agents that declare requires_auth. They never appear in prompts, generated code or traces.
A person in the loop Irreversible actions wait for an approval through Mesh.resolve_hitl(), then run exactly once.
Scale without rewrites Pool(max=8) turns one agent into several workers, and every model call is paced to the provider's real limits. Verifying 196 claims took 9.4 minutes with pools, against 202 with fixed workers.
Integrations without wiring Typed atoms for CRMs, payments, messaging, storage and more, with auth injected at runtime. See what your installed version ships with jarviscore atom list.

Go further

Guide What it covers
Getting started Install, first agent, first multi-agent workflow
AutoAgent · CustomAgent The two ways to write an agent
Workflows · Goals Steps you know in advance, and goals that plan their own
Browser · People in the loop Reading and acting on real sites, with approvals
Memory · Nexus What agents keep, and how they reach your accounts
Production · Configuration Pools, pacing, Redis, sandboxes and every setting
Changelog What changed, release by release

Community

Every other week we debug real agents live in office hours on Discord. If JarvisCore saves you time, a ⭐ helps other developers find it.

License

Apache 2.0. See LICENSE. You can build and sell products with it; there is no revenue or user threshold that requires a commercial agreement. Separately licensed enterprise modules have their own terms; see JarvisCore Enterprise.

Building with JarvisCore? An optional Built with JarvisCore credit on your About page or docs is appreciated; the trademark policy applies.

jarviscore-framework (Prescott-Data/jarviscore-framework)

Ищем в базе…

Что это?JarvisCore — Python-фреймворк для построения систем ИИ-агентов, которые могут планировать, рассуждать, выполнять код, ходить по вебу, искать в интернете и подключаться к 150 внешним сервисам из коробки.
Это фреймворк, в котором я строю агентов, или готовый агент для запуска?Это фреймворк: вы пишете агентов (минимальный AutoAgent или полностью кастомный CustomAgent), а JarvisCore поставляет нижележащую среду исполнения — идентичность, память, маршрутизацию и восстановление после сбоев — плюс одноранговую mesh-сеть, чтобы агенты находили друг друга и координировались.
Как запустить агента?Для AutoAgent нужны всего три атрибута (role, capabilities, system_prompt) без какого-либо шаблонного кода, либо можно написать CustomAgent с полным контролем; установка переменной окружения REDISURL автоматически включает долговременное состояние workflow и восстановление.
Какая инфраструктура нужна для реального запуска?Redis обеспечивает долговременное состояние, восстановление после сбоев и захват шагов workflow; агенты находят друг друга через SWIM gossip-mesh на транспорте ZMQ. RAG-конвейер использует локальный FAISS-индекс, а сопутствующая библиотека графового интеллекта (odin-engine) ставится отдельным pip install.
Нужен ли центральный оркестратор или MCP-сервер, которые мне нужно запускать?Нет — нет процесса-координатора и MCP-сервера для поднятия; агенты забирают работу из общего реестра Redis, и любой узел может умереть, не уронив всю флотилию, но это значит, что вы сами отвечаете за правильную настройку Redis (и опционально шлюза учётных данных Nexus) в продакшене.
Для кого это создано?Для разработчиков, строящих продакшен-системы из многих агентов, которым нужны многочисленные интеграции с реальными сервисами, изоляция учётных данных и отказоустойчивые workflow, а не скрипт для быстрого прототипирования.
Видят ли агенты реальные API-ключи и токены, которые используют?Нет — Nexus шифрует OAuth-токены и API-ключи для каждого развёртывания и подставляет их в атомы только в момент вызова, так что утечка трассировки агента не раскрывает секретов.
Как это заменяет MCP-серверы для интеграции инструментов?Интеграции — это «атомы»: однофайловые Python-функции, зарегистрированные во встроенном каталоге с подстановкой auth в рантайме. Вы осматриваете их через 'jarviscore atom list' и добавляете новые Python-функцией — не нужно поднимать сервер или соединять всё вручную.
Что произойдёт, если процесс агента убьют посреди задачи?Состояние workflow и выходы шагов живут в Redis, так что после убийства процесса и повторного запуска того же workflow id завершённые шаги восстанавливаются, а не выполняются и не оплачиваются заново.
Что такое Athena?Athena — структурированный граф знаний JarvisCore со скорингом на основе «тепла»: общая, накапливающаяся память между агентами и сессиями, а не личные заметки одного агента.
Что такое Odin?Odin — сопутствующая библиотека (pip install odin-engine), ранжирующая высокосигнальные пути в графах от 10 тыс. до 5 млн сущностей, используется вместе с JarvisCore для графового интеллекта.
Какие есть похожие проекты?adk-python, PocketFlow, crewAI, cayu, production-agentic-rag-course, ChatDev, ruflo, archestra
Автор
Prescott-Data
Размер
17.3 MB
Звёзды
125
Возраст
10 мес
Коммиты · 90 дней