Metadata-Version: 2.4
Name: pisama-claude-code
Version: 0.3.1
Summary: Trace capture for Claude Code sessions - sync to PISAMA platform for analysis
Project-URL: Homepage, https://pisama.dev
Project-URL: Documentation, https://pisama.dev/docs/claude-code
Project-URL: Repository, https://github.com/tn-pisama/pisama-claude-code
Author-email: PISAMA Team <team@pisama.dev>
License-Expression: MIT
License-File: LICENSE
Keywords: agent,claude,claude-code,forensics,llm,observability,pisama,self-healing
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Monitoring
Requires-Python: >=3.10
Requires-Dist: click>=8.0.0
Requires-Dist: httpx>=0.25.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: rich>=13.0.0
Provides-Extra: all
Requires-Dist: pisama-core>=0.1.0; extra == 'all'
Provides-Extra: core
Requires-Dist: pisama-core>=0.1.0; extra == 'core'
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.21.0; extra == 'dev'
Requires-Dist: pytest-cov>=4.0.0; extra == 'dev'
Requires-Dist: pytest>=7.0.0; extra == 'dev'
Description-Content-Type: text/markdown

# pisama-claude-code

> **Coming Soon** - This package is in private development.

Trace capture for Claude Code sessions.

[![Python 3.10+](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

## Overview

Lightweight trace capture client for Claude Code. Captures tool calls and syncs to PISAMA platform for analysis.

**This package captures traces. Analysis happens on the platform.**

```
┌─────────────────────┐         ┌─────────────────────┐
│   Claude Code       │         │   PISAMA Platform   │
│   + pisama-cc       │ ──────▶ │   (analysis)        │
│   (capture)         │  sync   │   (detection)       │
└─────────────────────┘         │   (self-healing)    │
                                └─────────────────────┘
```

## Features

| Feature | pisama-claude-code | Platform |
|---------|-------------------|----------|
| Trace capture | ✅ | - |
| Local storage | ✅ | - |
| Export to JSONL | ✅ | - |
| Sync to platform | ✅ | ✅ |
| Failure detection (28 modes) | - | ✅ |
| Severity & explanations | - | ✅ |
| Fix suggestions | - | ✅ |
| Self-healing | - | ✅ |
| Dashboard | - | ✅ |

## CLI Commands

```bash
pisama-cc install     # Install capture hooks
pisama-cc uninstall   # Remove hooks
pisama-cc status      # Show status
pisama-cc traces      # View local traces
pisama-cc export      # Export to file
pisama-cc connect     # Connect to platform
pisama-cc sync        # Upload traces
pisama-cc analyze     # Run analysis (requires platform)
```

## Privacy

- Traces stored locally in `~/.claude/pisama/traces/`
- Secrets automatically redacted
- Paths anonymized
- Platform sync is opt-in

## Requirements

- Python 3.10+
- Claude Code CLI

## Status

Private beta. Contact team@pisama.dev for early access.

## License

MIT
