|
| 1 | +--- |
| 2 | +title: Introduction |
| 3 | +description: Learn about Code Please and its features |
| 4 | +--- |
| 5 | + |
| 6 | +# Introduction |
| 7 | + |
| 8 | +**Code Please** is a CLI tool and Claude Code plugin for AI-assisted coding. It provides automatic formatting and LSP diagnostics that integrate seamlessly with Claude Code's hook system. |
| 9 | + |
| 10 | +## What is Code Please? |
| 11 | + |
| 12 | +When you use Claude Code to write or edit files, Code Please can: |
| 13 | + |
| 14 | +1. **Auto-format** your code using the appropriate formatter (Biome, Prettier, gofmt, etc.) |
| 15 | +2. **Check for errors** using Language Server Protocol diagnostics (TypeScript, Python, Go, etc.) |
| 16 | + |
| 17 | +This feedback happens automatically after each file edit, giving Claude real-time information about code quality. |
| 18 | + |
| 19 | +## Packages |
| 20 | + |
| 21 | +Code Please consists of four packages: |
| 22 | + |
| 23 | +| Package | Description | |
| 24 | +|---------|-------------| |
| 25 | +| `@pleaseai/code` | Main CLI tool with format and lsp commands | |
| 26 | +| `@pleaseai/code-format` | Formatter orchestration for 20+ formatters | |
| 27 | +| `@pleaseai/code-lsp` | LSP client for 30+ language servers | |
| 28 | +| `@pleaseai/dora` | MCP server for JetBrains IDE integration | |
| 29 | + |
| 30 | +## How It Works |
| 31 | + |
| 32 | +Code Please integrates with Claude Code via [PostToolUse hooks](https://docs.anthropic.com/en/docs/build-with-claude/claude-code/hooks). When Claude uses the `Write` or `Edit` tool: |
| 33 | + |
| 34 | +1. Claude Code sends the file info to Code Please via stdin |
| 35 | +2. Code Please formats the file and/or checks for errors |
| 36 | +3. Results are shown to Claude as hook output |
| 37 | + |
| 38 | +This creates a feedback loop where Claude can see and fix issues immediately. |
| 39 | + |
| 40 | +## Next Steps |
| 41 | + |
| 42 | +- [Installation](/docs/getting-started/installation) - Install Code Please |
| 43 | +- [Quick Start](/docs/getting-started/quick-start) - Set up Claude Code hooks |
0 commit comments