Agent Working Group

This thread is the start of the GovHack Speedrun Working

We will be building the agentic hackathon technology and frameworks here - to be integrated.

First call is today after IKPWG 2:00 – 2:45pm (UTC)

here is an image which shows my initial build of the interface:

If you’re interested in participating and joining etc, simply reply to this thread.

@Haruki_Oyama

I thought it was 1 PM UTC?

@shinichiro.matsuo Does BGIN subscribe to a cloud computing service that we can use to host the BGIN agents?

1 Like

Work in progress

Im building the supporting documentation along the way - will share all here once consolidated.

This is a unique combination between 3 sources

BGIN Framework

Kwaai GitHub - Kwaai-AI-Lab/kwaai-ui: Kwaai UI App

And White Paper — the FIRST PERSON NETWORK

Hi all,

I built the app skeleton over the past week, including all essential connections to FPP, Kwaai, Privacy Pools and BGIN’s agentic framework as source material for writing the code,

Right now it’s a frontend without the API connections or keys built into the code. I need support with the backend things, i just pushed my version to the shared git

a lot is there which needs to be improved and changed for FUNCTIONALITY to happen. however i hope you like the starting point.

@Tomofumi_Okubo @Haruki_Oyama

https://github.com/bgin-global/BGIN-Agent-Framework

current interface

-----Built with :heart: for the BGIN Community

This project implements the principles of distributed consciousness, privacy by design, dignity-based economics, and real-time sovereignty enforcement as outlined in the BGIN Agentic Framework Archive Codex. The Block 13 MVP showcases the integration of Kwaai privacy platform, First Person Project (FPP) compliance, Trust over IP (ToIP) framework, and Privacy Pools to create a comprehensive agentic framework for blockchain governance research and collaboration.

BGIN Multi-Agent Interface

A privacy-preserving, multi-agent research platform for blockchain governance, inspired by Open WebUI and designed for BGIN Block 13 sessions. This project implements the principles outlined in the BGIN Agentic Framework Archive Codex to create a sovereign, dignity-based, privacy-preserving AI agent ecosystem.
**
V1 - readme.

Feedback would be lovely, those interested in participating in the BGIN AI Agent Framework for Block13,

here is where it BGIN’s.**

:glowing_star: Features

:robot: Three-Agent System

  • Archive Agent - Knowledge & RAG Systems (Blue theme)

    • Document analysis and knowledge synthesis

    • Cross-session search and retrieval

    • Privacy-preserving knowledge management

    • Distributed consciousness architecture

    • Kwaai Integration: Privacy-preserving analytics and insights

    • FPP Compliance: Data sovereignty and user-controlled research data

    • ToIP Framework: DID-based identity and verifiable credentials

    • Privacy Pools: ASP eligibility for research contributions

  • Codex Agent - Policy & Standards Management (Purple theme)

    • Policy analysis and standards development

    • Compliance checking and verification

    • Real-time sovereignty enforcement

    • Cryptoeconomic verification systems

    • FPP Integration: Dignity-based governance and policy analysis

    • ToIP Framework: Policy analysis credentials and trust protocols

    • Privacy Pools: Trust-based policy compliance verification

  • Discourse Agent - Communications & Collaboration (Green theme)

    • BGIN Discourse community integration (bgin.discourse.group)

    • Forum integration and community management

    • Consensus building and collaboration tools

    • Privacy-preserving communication channels

    • Trust network visualization

    • FPP Integration: Dignity-based community building and consensus

    • ToIP Framework: Trust network establishment and management

    • Privacy Pools: Community-driven ASP qualification process

:classical_building: Block 13 Sessions

  • Opening Keynote (Live)

  • Technical Standards (Active)

  • Regulatory Landscape (Active)

  • Privacy & Digital Rights (Upcoming)

  • Cross-Chain Governance (Planning)

:locked: Privacy & Trust Features

  • DID-based Identity Management: Decentralized identifier system

  • Privacy Level Controls: Maximum/High/Selective/Minimal privacy settings

  • Trust Network Visualization: Anonymous researcher interactions

  • Privacy-Preserving Research Platform: End-to-end encrypted communications

  • Real-time Sovereignty Enforcement: Continuous privacy compliance monitoring

:rocket: Block 13 Integration Roadmap

Kwaai Privacy Platform Integration

  • Privacy-Preserving Analytics: Advanced privacy-preserving data analysis

  • Selective Disclosure: Granular control over data sharing

  • Zero-Knowledge Proofs: Prove capabilities without revealing data

  • Privacy-First Architecture: Built-in privacy controls and anonymization

First Person Project (FPP) Compliance

  • Data Sovereignty: User-controlled data and digital identity

  • Dignity-Based Economics: Fair value distribution and user agency

  • Privacy by Design: Privacy built into system architecture

  • Transparent Governance: Open and accountable decision-making

Trust over IP (ToIP) Framework

  • Layer 1 (Utility): Agent DIDs and verifiable credentials

  • Layer 2 (Governance): Agent governance policies and trust protocols

  • Layer 3 (Credential): Capability credentials and research verification

  • Layer 4 (Application): Multi-agent interface with trust visualization

Privacy Pools Integration

  • Association Set Provider (ASP): Trust-based deposit approval system

  • Research Contribution Rewards: Economic incentives for quality contributions

  • Privacy-Preserving Transactions: Zero-knowledge proof integration

  • Trust Network Economics: Reputation-based access to enhanced features

:high_voltage: Open WebUI-Inspired Features

  • Model configuration panel

  • Conversation history management

  • File upload capabilities

  • Real-time agent status monitoring

  • Multi-agent collaboration mode

  • Trust network visualization

:rocket: Quick Start

Prerequisites

  • Node.js 18+

  • npm 9+

  • Git

  • PostgreSQL (for production)

  • Redis (for caching)

Installation

  1. Clone the repository
git clone https://github.com/mitchuski/bgin-agents.git
cd bgin-agents
  1. Install dependencies
npm install
  1. Set up environment
cp env.example .env
# Edit .env with your configuration
  1. Start development servers
npm run dev
  1. Access the interface

:building_construction: Architecture

Frontend (React + TypeScript)

  • Framework: React 18 with TypeScript

  • Styling: Tailwind CSS

  • Icons: Lucide React

  • State Management: React Hooks + Context + Zustand

  • Build Tool: Vite

  • Real-time: Socket.io Client

Backend (Node.js + TypeScript)

  • Framework: Express.js

  • Database: PostgreSQL (with Redis for caching)

  • Authentication: JWT + DID-based

  • Real-time: Socket.io

  • AI Integration: OpenAI, Anthropic, Ollama

  • Privacy: End-to-end encryption, privacy-preserving analytics

Multi-Agent System

  • Archive Agent: Document analysis, knowledge synthesis, cross-session search

  • Codex Agent: Policy analysis, standards development, compliance checking

  • Discourse Agent: Forum integration, consensus building, community management

Privacy & Sovereignty Architecture

Based on the BGIN Agentic Framework Archive Codex, this implementation features:

  • Distributed Consciousness: Multi-agent coordination with privacy preservation

  • Privacy by Design: Built-in privacy controls and data protection

  • Dignity-based Economics: Fair value distribution and user sovereignty

  • Real-time Sovereignty Enforcement: Continuous monitoring of privacy compliance

  • Cryptoeconomic Verification: Blockchain-based trust and verification systems

:wrench: Development

Available Scripts

# Development
npm run dev              # Start both frontend and backend
npm run dev:simple       # Start with simple backend
npm run build            # Build for production
npm run start            # Start production server

# Testing
npm run test             # Run tests
npm run test:coverage    # Run tests with coverage
npm run lint             # Lint code
npm run lint:fix         # Fix linting issues

# Database
npm run db:migrate       # Run database migrations
npm run db:seed          # Seed database
npm run agents:seed      # Seed agent data

Project Structure

bgin-mvp/
├── frontend/                 # React frontend
│   ├── src/
│   │   ├── components/       # React components
│   │   │   ├── BGINMultiAgentInterface.tsx
│   │   │   ├── agents/       # Agent-specific components
│   │   │   ├── privacy/      # Privacy components
│   │   │   └── trust/        # Trust network components
│   │   ├── contexts/         # React contexts
│   │   ├── hooks/            # Custom hooks
│   │   ├── services/         # API services
│   │   └── types/            # TypeScript types
│   └── package.json
├── backend/                  # Node.js backend
│   ├── src/
│   │   ├── agents/           # Agent implementations
│   │   │   ├── archive/      # Archive Agent
│   │   │   ├── codex/        # Codex Agent
│   │   │   └── discourse/    # Discourse Agent
│   │   ├── routes/           # API routes
│   │   ├── middleware/       # Express middleware
│   │   ├── services/         # Business logic
│   │   ├── privacy/          # Privacy-preserving systems
│   │   ├── trust/            # Trust network systems
│   │   └── utils/            # Utilities
│   └── package.json
├── database/                 # Database schemas
├── docs/                     # Documentation
├── scripts/                  # Setup scripts
└── infrastructure/           # Deployment configurations

:locked_with_key: Privacy & Security

Privacy Architecture

  • DID-based Identity: Decentralized identifier management using W3C standards

  • Privacy Levels: Configurable privacy controls (Maximum/High/Selective/Minimal)

  • Trust Networks: Anonymous researcher interactions with reputation systems

  • Data Encryption: End-to-end encryption for sensitive data

  • Audit Logging: Comprehensive activity tracking with privacy preservation

Security Features

  • JWT Authentication: Secure token-based authentication

  • Rate Limiting: Protection against abuse and DoS attacks

  • Input Validation: Comprehensive input sanitization

  • CORS Protection: Cross-origin resource sharing controls

  • Helmet Security: Security headers and protections

:globe_with_meridians: Integration

External Services

  • Kwaai: Privacy-preserving analytics and insights

  • BGIN Discourse: Community forum integration (bgin.discourse.group)

  • OpenAI/Anthropic: AI model integration

  • Ollama: Local AI model support

  • BGIN Systems: Blockchain governance integration

Block 13 Integration Technologies

Kwaai Privacy Platform

  • Privacy-Preserving Analytics: Advanced data analysis with privacy protection

  • Selective Disclosure Protocols: Granular control over data sharing

  • Zero-Knowledge Proofs: Cryptographic proofs without data revelation

  • Privacy-First Architecture: Built-in privacy controls and anonymization

First Person Project (FPP)

  • Data Sovereignty: User-controlled data and digital identity

  • Dignity-Based Economics: Fair value distribution and user agency

  • Privacy by Design: Privacy built into system architecture

  • Transparent Governance: Open and accountable decision-making

Trust over IP (ToIP) Framework

  • Decentralized Identifiers (DIDs): Agent identity management

  • Verifiable Credentials: Cryptographic proof of capabilities

  • Trust Networks: Reputation and relationship management

  • Interoperability: Standards-compliant agent interactions

Privacy Pools

  • Association Set Provider (ASP): Trust-based deposit approval

  • Research Contribution Economics: Financial incentives for quality research

  • Privacy-Preserving Transactions: Zero-knowledge proof integration

  • Trust Network Economics: Reputation-based access to enhanced features

API Endpoints

Core Agent APIs

  • GET /api/agents - List available agents

  • GET /api/sessions - List Block 13 sessions

  • POST /api/chat - Send message to agent

  • GET /api/synthesis - Cross-session synthesis

Trust & Privacy APIs

  • GET /api/trust - Trust network data

  • POST /api/privacy - Privacy settings

  • GET /api/dids - Decentralized identifier management

  • POST /api/credentials - Verifiable credential operations

Integration APIs

  • POST /api/kwaai/analytics - Kwaai privacy-preserving analytics

  • GET /api/fpp/sovereignty - FPP data sovereignty controls

  • POST /api/toip/trust - ToIP trust relationship management

  • GET /api/privacy-pools/asp - Privacy Pools ASP status

  • POST /api/privacy-pools/contribution - Research contribution tracking

Authentication & Security

  • POST /api/auth - Authentication endpoints

  • GET /api/auth/did - DID-based authentication

  • POST /api/auth/verify - Credential verification

:bar_chart: Monitoring

System Monitoring

  • Real-time agent status monitoring

  • Performance metrics and analytics

  • Cross-session insights

  • Sovereignty enforcement monitoring

Integration Monitoring

  • Kwaai Integration: Privacy-preserving analytics performance

  • FPP Compliance: Data sovereignty and dignity metrics tracking

  • ToIP Framework: Trust network and credential verification status

  • Privacy Pools: ASP eligibility and contribution tracking

Trust & Privacy Monitoring

  • Trust network visualization

  • Privacy compliance tracking

  • DID management and verification status

  • Verifiable credential lifecycle monitoring

:spouting_whale: Docker Deployment

Development

docker-compose up -d

Production

docker-compose -f docker-compose.production.yml up -d

:handshake: Contributing

We welcome contributions to the BGIN Multi-Agent Interface project. This project follows the principles outlined in the BGIN Agentic Framework Archive Codex for sovereign, dignity-based AI development.

Contribution Guidelines

  1. Fork the repository

  2. Create a feature branch (git checkout -b feature/amazing-feature)

  3. Follow privacy-by-design principles in all contributions

  4. Ensure dignity-based economics in any economic features

  5. Maintain sovereignty enforcement in all agent interactions

  6. Commit your changes (git commit -m 'Add amazing feature')

  7. Push to the branch (git push origin feature/amazing-feature)

  8. Open a Pull Request

Code Standards

  • TypeScript for type safety

  • ESLint for code quality

  • Prettier for code formatting

  • Jest for testing

  • Privacy-preserving design patterns

:page_facing_up: License

This project is licensed under the MIT License - see the LICENSE file for details.

:folded_hands: Acknowledgments

  • BGIN Community for governance research and collaboration

  • Open WebUI for interface inspiration and design patterns

  • Block 13 participants for feedback and testing

  • Privacy-preserving technology community for foundational work

  • Soul Sync for the BGIN Agentic Framework Archive Codex reference document

:telephone_receiver: Support

For support and questions:

:link: References

Core Framework

Integration Technologies

Technical Standards


Built with :heart: for the BGIN Community

This project implements the principles of distributed consciousness, privacy by design, dignity-based economics, and real-time sovereignty enforcement as outlined in the BGIN Agentic Framework Archive Codex. The Block 13 MVP showcases the integration of Kwaai privacy platform, First Person Project (FPP) compliance, Trust over IP (ToIP) framework, and Privacy Pools to create a comprehensive agentic framework for blockchain governance research and collaboration.

No at this point

Shin’ichiro Matsuo, Ph.D.
Research Professor, Department of Computer Science, Georgetown University Cyber SMART Director, and Lead Researcher, Blockchain Eco-System

@Mitchell @Tomofumi_Okubo Would this be of interest to us?

I’m writing an article that furthers the concepts of BGIN AI Agent Framework

Would ideally post in the next couple of days - we can prompt it as a lead into block 13 collaborations

2 Likes

@Mitchell I listed up things we need to discuss and decide for seamless operation and active participation of Agent hack at Block 13. Some items like sponsorship and publicity are urgent, so would like to sync ASAP

1 Like

please share access to the doc, happy to sync Calendly

Hey sry I misconfigured the setting, now it’s public. I set the meeting on 9am ET tmrw!

@shinichiro.matsuo @Mitchell
We agreed that there should be some sort of prizes for this hackathon. We are expecting 1st place prize for each 3 tracks and 1 additional prize to cover the other non-tech contributions.

The idea proposed by Mitchell is offering the winners the credits to use the tech infrastructures to keep building the agent. Would like to sync soon to discuss the details

1 Like

i’ve made some updates to the interface based on feedback from FASE WG call

Included:
Compose credential and contributions button

sorted the left chats to make more simple per wg and/or per agent chat projects

i think we need to host the LLM / RAG in a TEE to allow multiple participants using the shared chat / it being on a domain

The backup plan (of which is working for me right now) - is for us to instruct participants how to download their own LOCAL LLM using ollama- such as llama3, (i have put this into the codebase so it can just be prompted as setup)

and run their own instances of the BGIN agent trio locally, to then generate independent contributions to a shared via a discourse post (we will compile later when activating the shared intelligence databsed/rag)

Updated the compose credential to more clearly direct how agent hack participants can contribute to the agentic workflow

I’ve just integrated this framework into the agent documentation processes:

I’ve made some significant updates to the interface and how it fits together

new screens show updates:

1 Like

i believe one of the best ways to inspire contribution is to share visualisations of UI as such ^ and say, well we now need help to make it work.

Our WG call is tomorrow - and this is the key agenda item ^

we will also discuss some of the logistics for the agent hack

I’ve arranged for Kwaai founder Reza to do a presentation for the agent hack on wednesday of how to integrate their privacy and decentralised llm infrastructure when building upon the BGIN agents