Current collected state Current
Observed since 20 Oct, 23:00 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Collective knowledge store for AI agents — publish facts at runtime, query shared learning
Collective knowledge store for AI agents. Agents publish facts they discover at runtime. Other agents subscribe or query. Knowledge is built by the agents themselves — not pre-loaded.
pip install agentpub-py # in-memory (session-scoped)
pip install "agentpub-py[sqlite]" # persistent (survives restarts)
import asyncio
from agentpub import AgentPub, Fact
async def main():
pub = AgentPub()
# Agent A discovers customer tier
await pub.publish(Fact(
key="acme.customer.C123.tier",
value="premium",
publisher_id="crm-agent",
tenant_id="acme",
ttl_s=3600,
confidence=0.95,
))
# Agent B queries the knowledge
fact = await pub.get("acme.customer.C123.tier")
print(f"{fact.key} = {fact.value} (confidence={fact.confidence})")
# Agent C subscribes to updates
@pub.subscribe("acme.customer.*")
async def on_update(fact: Fact) -> None:
print(f"Knowledge updated: {fact.key} = {fact.value}")
asyncio.run(main())
from agentpub import AgentPub
from agentpub.store.jsonl import JsonlStore
# Persists to disk — survives restarts
pub = AgentPub(persistent_store=JsonlStore("~/.agentpub/facts.jsonl"))
agentpub → knowledge shared learning across agents
agentmesh → events publishes fact updates to subscribers
agentgrid → routing routes tasks using published knowledge
agentregistry → discovery agent capabilities
Apache 2.0 · PyPI
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 18 Jun 2026 | 7 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 23:00 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:c03d8b026c0f2aeaf5e6de290030adbeffd36ea265eb01df80a6a42c51303aea