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 是一个用于构建 AI agent 系统的 Python 框架,开箱即支持规划、推理、执行代码、浏览网页、搜索互联网,并可连接 150 个外部服务。
这是我构建 agent 的框架,还是拿来就跑的现成 agent?它是一个框架:你来编写 agent(可以是最小化的 AutoAgent,也可以是完全自定义的 CustomAgent),JarvisCore 在底层提供运行时——身份、记忆、路由和崩溃恢复——外加一个点对点网格,让 agent 相互发现并协调。
怎么让一个 agent 跑起来?一个 AutoAgent 只需三个属性(role、capabilities、system_prompt),零样板代码;也可以编写完全可控的 CustomAgent;设置 REDISURL 环境变量会自动开启持久化工作流状态和恢复。
真正跑起来需要什么基础设施?Redis 提供持久化状态、崩溃恢复和工作流步骤认领;agent 通过基于 ZMQ 传输的 SWIM gossip 网格相互发现。RAG 管道使用本地 FAISS 索引,配套的图智能库(odin-engine)需要单独 pip install。
需要我运行中央编排器或 MCP server 吗?不需要——没有需要搭建的协调进程,也没有 MCP server;agent 从共享的 Redis 账本认领工作,任何一个节点挂掉都不会拖垮整个集群,但这也意味着在生产环境中,你需要负责把 Redis(以及可选的 Nexus 凭证网关)配置妥当。
它是为谁打造的?面向构建生产级多 agent 系统的开发者——这类系统需要大量真实服务集成、凭证隔离和抗崩溃的工作流,而不是快速原型脚本。
agent 会看到它们所用的真实 API 密钥和令牌吗?不会——Nexus 按部署对 OAuth 令牌和 API 密钥加密,只在调用时注入到 atom 中,因此泄露的 agent 追踪记录不会暴露任何密钥。
它是如何取代 MCP server 做工具集成的?集成以“atom”的形式存在——单文件 Python 函数,注册在内置目录中,认证在运行时注入。用 'jarviscore atom list' 查看它们,用 Python 函数新增,无需搭建服务器或手动接线。
如果 agent 进程在任务中途被杀会怎样?工作流状态和步骤输出保存在 Redis 中,因此杀掉进程后用同一个工作流 id 重跑,已完成的步骤会直接恢复,不会被重新执行或重复计费。
Athena 是什么?Athena 是 JarvisCore 的结构化知识图谱,采用基于热度的评分——是在多个 agent 和会话之间共享、不断累积的记忆,而不是单个 agent 的私有笔记。
Odin 是什么?Odin 是一个配套库(pip install odin-engine),能在规模从 1 万到 500 万实体的图中排出高信号路径,与 JarvisCore 配合提供图智能。
大小
17.3 MB
星标
125
时长
10个月
提交 · 90 天