claude-code-jsonl-editor

skill
Guvenlik Denetimi
Basarisiz
Health Gecti
  • License รขโ‚ฌโ€ License: MIT
  • Description รขโ‚ฌโ€ Repository has a description
  • Active repo รขโ‚ฌโ€ Last push 0 days ago
  • Community trust รขโ‚ฌโ€ 12 GitHub stars
Code Basarisiz
  • rm -rf รขโ‚ฌโ€ Recursive force deletion command in install.sh
  • network request รขโ‚ฌโ€ Outbound network request in src/app.tsx
Permissions Gecti
  • Permissions รขโ‚ฌโ€ No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

๐Ÿš€ Interactive JSONL editor for Claude Code conversation files with real-time file system synchronization. Efficient prompt engineering through conversation editing.

README.md

Claude Code JSONL Editor

๐Ÿš€ Interactive JSONL editor for Claude Code conversation files with real-time file system synchronization.

Claude Code JSONL Editor Screenshot

Why? Core Concept & Philosophy

Efficient Prompt Engineering Through Conversation Editing

Editing Claude Code logs (JSONL files) makes prompt engineering significantly more efficient through a powerful technique: output modification. This approach enables infinite iteration and refinement of AI interactions without starting from scratch.

The Philosophy

Traditional prompt engineering requires:

  1. Write prompt โ†’ Get response โ†’ Analyze โ†’ Rewrite entire prompt โ†’ Repeat

Our approach enables:

  1. Write prompt โ†’ Get response โ†’ Edit the response directly โ†’ Continue conversation โ†’ Infinite refinement

Why This Works

  • Context Preservation: By editing assistant responses in the conversation log, you maintain the full context while perfecting the output
  • Iterative Refinement: Transform mediocre responses into perfect ones without losing conversation flow
  • Prompt Engineering Acceleration: Test different response styles and approaches by editing outputs, then use successful patterns in future prompts
  • Training Data Creation: Build high-quality conversation datasets by refining real interactions
  • Debugging Conversations: Fix errors or improve responses retroactively to understand what works

Practical Applications

  • Template Creation: Edit responses to create reusable conversation templates
  • Response Quality Control: Perfect Claude's outputs for documentation or examples
  • Conversation Branching: Edit responses to explore different conversation paths
  • Prompt Pattern Discovery: Identify what response styles work best for specific use cases
  • Knowledge Base Building: Curate high-quality Q&A pairs from real interactions

By making conversation editing as simple as chat editing, this tool transforms how you work with AI conversations - from linear interactions to iterative masterpieces.

Features

  • ๐Ÿ“ Interactive Chat Interface - Edit conversations in a familiar chat-style UI
  • ๐Ÿ’พ Real-time File Sync - Direct file system editing with automatic backups
  • ๐Ÿ”ง Multi-file Support - Handle single files or entire directories
  • โœ๏ธ Rich Editing - Edit, copy, delete messages with inline editing
  • ๐ŸŒ Network Access - Expose to network for remote editing
  • ๐ŸŽจ Beautiful CLI - Colorful, informative command-line interface
  • ๐Ÿ”’ Safe Operations - Automatic backup creation before saves

Installation

One-Line Install (Recommended)

curl -fsSL https://raw.githubusercontent.com/anthropics/claude-code-jsonl-editor/main/install.sh | bash

After installation, reload your shell or add ~/.local/bin to your PATH:

export PATH="$HOME/.local/bin:$PATH"

Manual Installation

# Clone the repository
git clone https://github.com/anthropics/claude-code-jsonl-editor.git
cd claude-code-jsonl-editor

# Install dependencies
npm install

# Start the application
npm start

Quick Start

# Start with default samples directory
jsonl-editor

# Start with specific file
jsonl-editor -p ./conversation.jsonl

# Start with directory
jsonl-editor -p ./conversations

# Expose to network
jsonl-editor --expose

Upgrading

# Using the same install command will upgrade existing installation
curl -fsSL https://raw.githubusercontent.com/anthropics/claude-code-jsonl-editor/main/install.sh | bash

Uninstalling

# Download and run uninstall script
curl -fsSL https://raw.githubusercontent.com/anthropics/claude-code-jsonl-editor/main/uninstall.sh | bash

# Or if you have the repository
bash uninstall.sh

CLI Options

jsonl-editor [options]

Options:
  -p, --jsonl-path <path>    Path to JSONL file or directory
  -P, --port <port>          Server port (default: 3001)  
  --client-port <port>       Client port (default: 5173)
  --host <host>              Host to bind to (default: localhost)
  --expose                   Expose to network (same as --host 0.0.0.0)
  --no-backup                Disable automatic backup creation
  --server-only              Start only the server
  --client-only              Start only the client  
  -v, --verbose              Enable verbose logging
  -q, --quiet                Suppress non-error output
  -h, --help                 Display help information

Examples

# Start with default samples
jsonl-editor

# Edit specific file
jsonl-editor -p ./conversation.jsonl

# Edit directory of files  
jsonl-editor -p ./jsonl-files

# Network access
jsonl-editor -p ./data --expose
jsonl-editor -p ./data --host 192.168.1.100

# Custom ports
jsonl-editor -p ./data --port 4000 --client-port 8080

# Server only mode
jsonl-editor -p ./data --server-only

# Verbose logging
jsonl-editor -p ./data -v

Project Structure

claude-code-jsonl-editor/
โ”œโ”€โ”€ src/                    # Frontend source
โ”‚   โ”œโ”€โ”€ components/        # React/Preact components
โ”‚   โ”œโ”€โ”€ utils/            # Utilities and parsers
โ”‚   โ””โ”€โ”€ types.ts          # TypeScript definitions
โ”œโ”€โ”€ samples/              # Default sample files
โ”œโ”€โ”€ public/               # Static assets
โ”œโ”€โ”€ server.js             # Express API server
โ”œโ”€โ”€ start.js              # CLI entry point
โ””โ”€โ”€ package.json          # Project configuration

Development

# Start development with file watching
npm run dev

# Build for production
npm run build

# Run server only
npm run server

# Run client only  
npm run client

API Endpoints

  • GET /api/config - Get server configuration
  • GET /api/files - List available files
  • GET /api/files/:filename - Read file content
  • POST /api/files/:filename - Save file content

File Format

The editor works with Claude Code JSONL files containing conversation entries:

{"type":"summary","summary":"General Project Development","leafUuid":"..."}
{"type":"user","message":{"role":"user","content":"Hello, claude-code!"},"uuid":"...","timestamp":"..."}
{"type":"assistant","message":{"role":"assistant","content":"Hello! How can I help?"},"uuid":"...","timestamp":"..."}

License

MIT License - see LICENSE file for details.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

Support

  • ๐Ÿ“– Documentation: See inline help with jsonl-editor --help
  • ๐Ÿ› Issues: Report bugs on GitHub Issues
  • ๐Ÿ’ฌ Discussions: GitHub Discussions for questions

Built with โค๏ธ for the Claude Code community


Related projects

  • ai-bwrap โ€” Run AI coding agents (Claude Code, opencode, Grok, ...) inside a bubblewrap sandbox โ€” one wrapper, any agent.
  • opencode-bwrap โ€” Run opencode inside a bubblewrap sandbox โ€” confine AI file access to your current working directory
  • agent.txtar โ€” Portable text block for giving structured context to AI agents โ€” embed anywhere, parse anywhere

Yorumlar (0)

Sonuc bulunamadi