Skip to main content

nosocial-crewai

NoSocial reputation reporting for CrewAI. One import, one line of config — your agents start building reputation automatically.

Install

pip install nosocial-crewai

Usage

from crewai import Agent, Task, Crew
from nosocial_crewai import NoSocialReporter

# One line: create a reporter pointing at your oracle
reporter = NoSocialReporter(oracle_url="https://api.nosocial.me")

# Build your crew as normal
researcher = Agent(role="researcher", goal="Find information", backstory="...")
writer = Agent(role="writer", goal="Write reports", backstory="...")

research_task = Task(description="Research AI trends", agent=researcher, expected_output="...")
write_task = Task(description="Write summary", agent=writer, expected_output="...")

# One line: attach the reporter as a task_callback
crew = Crew(
    agents=[researcher, writer],
    tasks=[research_task, write_task],
    task_callback=reporter.task_callback,  # <-- this is it
)

crew.kickoff()
# After each task completes, an interaction report is automatically
# submitted to the NoSocial oracle. Your agents build reputation.

What it does

When a CrewAI task completes, the reporter:

  1. Creates a persistent Ed25519 identity for each agent (stored in .nosocial/keys/)
  2. Registers agents with the NoSocial oracle (auto-registration on first run)
  3. Submits a signed interaction report with:
    • Domain: task_completion and reliability
    • Score: 0.8 for successful output, -0.5 for empty output
    • Context: task description, agent role

Configuration

reporter = NoSocialReporter(
    oracle_url="http://localhost:3000",  # Oracle endpoint
    keys_dir=".nosocial/keys",          # Where to store agent keypairs
    crew_name="my-crew",                # Name for the crew's own identity
    auto_register=True,                 # Auto-register agents with oracle
)

How identity works

Each agent gets a persistent Ed25519 keypair stored as a PEM file. The agent's NoSocial DID is derived from its public key: did:nosocial:{sha256(publicKey)}. Keys persist across runs — the same agent always has the same DID.

Agent names are namespaced by crew: my-crew:researcher and your-crew:researcher get different identities.

Important: The .nosocial/keys/ directory contains unencrypted private keys. Add it to your .gitignore:

# .gitignore
.nosocial/

License

MIT

Metadata

Release files for nosocial-crewai 0.1.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 nosocial-crewai 0.1.0
File Size Uploaded
nosocial_crewai-0.1.0.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nosocial-crewai 0.1.0
File Interpreter ABI Platform
nosocial_crewai-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.2 kB

Release files / nosocial_crewai-0.1.0.tar.gz

Download URL nosocial_crewai-0.1.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a3c88a9f6dfae6ac120c7631bdd313e3f4fcc6f958cde0a901a00a3948845b4a
BLAKE2b-256 checksum
How to use checksums
345528f7964546c3d392edea97b80094a1cca5b98adb08e38606a71262d27e54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / nosocial_crewai-0.1.0-py3-none-any.whl

Download URL nosocial_crewai-0.1.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
203d490816be6cc80c46d9df104f0a673aec8fec8aeb455b7d8b628a9011b787
BLAKE2b-256 checksum
How to use checksums
bc67a95936cd4e961e4a776b65fb7c7f447a49b2c3d30d83a7eba04716c587cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

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