Skip to content

yashdive/openclaw-transparency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

OpenClaw Transparency Layer

πŸ” Make AI Agents Transparent & Auditable

License: MIT Python 3.8+

Capture, track, and audit every AI agent action

Features β€’ Quick Start β€’ Documentation β€’ Roadmap


🎯 What is OpenClaw Transparency Layer?

OpenClaw Transparency Layer is a lightweight, open-source solution for capturing and auditing AI agent sessions. Inspired by Entire Checkpoints, but designed specifically for the OpenClaw ecosystem.

Why Transparency Matters

  • πŸ” Auditability: Know exactly what your AI agents did and why
  • πŸ› Debugging: Quickly identify where agents went wrong
  • πŸ“Š Compliance: Generate audit trails for enterprise requirements
  • πŸ“š Onboarding: Help new team members understand AI workflows
  • πŸ”„ Reproducibility: Recreate agent sessions from any checkpoint

✨ Features

Current Features

v0.1.0 - Single Agent (MVP)

  • βœ… Session Recording: Capture every AI agent action (prompts, tool calls, decisions)
  • βœ… Checkpoint System: Create save points at any time
  • βœ… Auto-Summarization: Automatically generate session summaries
  • βœ… Lightweight Storage: File-based, no database required
  • βœ… Easy Integration: Add transparency to any OpenClaw agent in 2 lines of code

v0.2.0 - Multi-Agent & HTML Visualization (NEW! πŸš€)

  • βœ… Multi-Agent Tracking: Track interactions between multiple agents
  • βœ… Interaction Types: Delegation, request, response, collaboration, handoff
  • βœ… Coordination Tracking: Monitor agent coordination and orchestration
  • βœ… Conflict Detection: Automatically detect resource contention and conflicts
  • βœ… HTML Visualization: Beautiful, interactive HTML reports with Mermaid.js charts
  • βœ… Responsive Design: Mobile-friendly reports with gradient colors
  • βœ… Timeline Visualization: Visual timeline of agent interactions
  • βœ… Statistics Dashboard: At-a-glance metrics with stat cards
  • βœ… 4+ Concurrent Agents: Support for complex multi-agent systems

Coming Soon (v0.3.0)

  • πŸ”œ Enterprise Compliance: HIPAA, SOX, GDPR audit reports
  • πŸ”œ Real-time Dashboard: Live monitoring with WebSocket updates
  • πŸ”œ Git Integration: Automatic commits on checkpoints
  • πŸ”œ PDF Export: Generate PDF reports from sessions

Future Roadmap

  • πŸš€ Cloud Sync: Sync sessions across team members
  • πŸš€ AI-Powered Insights: Get recommendations from session analysis
  • πŸš€ Enterprise Features: SSO, audit logs, compliance reports

πŸš€ Quick Start

Installation

pip install openclaw-transparency

Or use the standalone module:

# Download the single-file MVP
curl -O https://raw.githubusercontent.com/your-username/openclaw-transparency/main/transparency.py

Basic Usage

from openclaw import Agent
from openclaw_transparency import TransparencyLayer

# Initialize your OpenClaw agent
agent = Agent("my-agent")

# Add transparency in 2 lines
transparency = TransparencyLayer(agent_name="my-agent")
transparency.enable()

# Now all agent actions are automatically tracked
result = agent.execute("Create a REST API endpoint")

# Create checkpoints at key moments
transparency.create_checkpoint(
    description="Completed API implementation",
    files_modified=["api.py", "test_api.py"]
)

# End session and get summary
summary = transparency.end_session()

Example Output

βœ… Transparency Layer enabled for agent: my-agent
πŸ“‹ Session ID: 2026-02-16-abc123

πŸ“ Tracked action: prompt
πŸ“ Tracked action: tool_call
πŸ“ Tracked action: decision
βœ… Checkpoint created: a3b2c4d5e6f7

πŸ“Š Session Summary:
{
  "session_id": "2026-02-16-abc123",
  "duration_seconds": 45.2,
  "total_actions": 12,
  "total_checkpoints": 3,
  "files_modified": ["api.py", "test_api.py", "README.md"],
  "key_decisions": ["Use FastAPI framework", "Add JWT authentication"]
}

Multi-Agent Usage (v0.2.0)

from multi_agent_transparency import MultiAgentTransparency

# Initialize multi-agent system
multi_agent = MultiAgentTransparency(project_name="Web Application")

# Register agents
multi_agent.register_agent(
    agent_name="CodeGenerator",
    agent_type="developer",
    capabilities=["code_generation", "refactoring"]
)

multi_agent.register_agent(
    agent_name="Reviewer",
    agent_type="reviewer",
    capabilities=["code_review", "quality_check"]
)

# Track agent interactions
multi_agent.track_interaction(
    from_agent="CodeGenerator",
    to_agent="Reviewer",
    interaction_type="delegation",
    content="Please review the authentication module"
)

# Generate HTML report
html_content = multi_agent.generate_html_report()

# End session
summary = multi_agent.end_session()

HTML Report Features:

  • πŸ“Š Interactive Graph: Mermaid.js visualization of agent workflows
  • ⏱️ Timeline View: Visual timeline of all interactions
  • πŸ€– Agent Cards: Beautiful cards showing agent capabilities
  • πŸ“ˆ Statistics: At-a-glance metrics (agents, interactions, conflicts)
  • 🎨 Responsive Design: Works on desktop and mobile
  • 🌈 Modern UI: Gradient colors, hover effects, smooth transitions

Open the generated HTML file in any browser to see the interactive report!


πŸ“– Documentation

API Reference

TransparencyLayer(agent_name, storage_path, auto_save)

Initialize transparency layer for an agent.

Parameters:

  • agent_name (str): Name of your AI agent
  • storage_path (str, optional): Where to store session data (default: ./transparency-sessions)
  • auto_save (bool, optional): Auto-save after each action (default: True)

track_action(action_type, input_data, output_data, metadata)

Manually track an agent action.

Parameters:

  • action_type (str): Type of action (e.g., "prompt", "tool_call", "decision")
  • input_data (any): Input to the action
  • output_data (any): Output from the action
  • metadata (dict, optional): Additional context

create_checkpoint(description, files_modified, decisions)

Create a checkpoint (save point) in the session.

Parameters:

  • description (str): Human-readable description
  • files_modified (list, optional): List of files modified
  • decisions (list, optional): List of key decisions

end_session()

End the session and generate final summary.

Returns:

  • dict: Session summary with statistics and key insights

πŸ—ΊοΈ Roadmap

v0.1.0 (Current - MVP)

  • Basic session recording
  • Checkpoint system
  • Auto-summarization
  • File-based storage

v0.2.0 (Next - Week 2)

  • Multi-agent interaction tracking
  • Simple visualization dashboard
  • Git integration
  • Better error handling

v0.3.0 (Week 4)

  • Team collaboration features
  • Export to PDF/JSON
  • Performance optimizations
  • Extended documentation

v1.0.0 (Month 2)

  • Cloud sync
  • AI-powered insights
  • Enterprise features
  • Plugin system

πŸ’‘ Use Cases

1. Individual Developers

# Track your personal AI coding assistant
transparency = TransparencyLayer("my-coding-assistant")
# Review sessions later to improve prompts

2. Teams

# Share session logs with team members
# Understand why certain decisions were made
# Onboard new developers faster

3. Enterprises

# Generate compliance reports
# Audit AI usage across organization
# Meet regulatory requirements (SOC 2, HIPAA)

🀝 Contributing

We welcome contributions! This is an open-source project aimed at making AI agents more transparent and trustworthy.

Ways to contribute:

  • πŸ› Report bugs
  • πŸ’‘ Suggest features
  • πŸ“– Improve documentation
  • πŸ”§ Submit pull requests

See CONTRIBUTING.md for details.


πŸ“Š Comparison with Similar Tools

Feature OpenClaw Transparency Entire Checkpoints Git LFS
Open Source βœ… MIT βœ… MIT βœ…
Agent Agnostic βœ… ❌ Claude/Gemini only βœ…
Multi-Agent πŸ”œ v0.2.0 ❌ ❌
Git Integration πŸ”œ v0.2.0 βœ… βœ…
Visualization πŸ”œ v0.2.0 ❌ ❌
Easy Setup βœ… 2 lines ⚠️ Git hooks ⚠️ Config
File-Based βœ… ❌ Shadow branch βœ…

Our Differentiation:

  • Focus on OpenClaw ecosystem
  • Agent-agnostic design
  • Multi-agent tracking (coming soon)
  • Easier setup (no Git hooks required for basic usage)

πŸ’° Pricing

Open Source (Free Forever)

  • βœ… Full session recording
  • βœ… Checkpoint system
  • βœ… Auto-summarization
  • βœ… File-based storage
  • βœ… Community support

Pro ($29/month, Coming Soon)

  • βœ… Everything in Open Source
  • βœ… Multi-agent tracking
  • βœ… Visualization dashboard
  • βœ… Export to PDF/JSON
  • βœ… Priority support

Enterprise ($299/month, Coming Soon)

  • βœ… Everything in Pro
  • βœ… Cloud sync
  • βœ… Team collaboration
  • βœ… Compliance reports
  • βœ… SSO integration
  • βœ… Dedicated support

πŸ™ Acknowledgments


πŸ“œ License

MIT License - see LICENSE for details.


πŸ“ž Contact & Community


⭐ If this project helps you, please give it a star! ⭐

Made with ❀️ for the OpenClaw community

About

πŸ” Make AI Agents Transparent & Auditable - Capture, track, and audit every AI agent action

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors