> ## Documentation Index
> Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Code

> Code assistant mode for programming tasks

The `code` command starts a code assistant session optimized for programming tasks.

## Usage

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai code [OPTIONS] [PROMPT]
```

## Arguments

| Argument | Description                     |
| -------- | ------------------------------- |
| `PROMPT` | Code-related prompt or question |

## Options

| Option       | Short | Description                  | Default       |
| ------------ | ----- | ---------------------------- | ------------- |
| `--model`    | `-m`  | LLM model to use             | `gpt-4o-mini` |
| `--verbose`  | `-v`  | Verbose output               | `false`       |
| `--language` | `-l`  | Programming language context |               |

## Examples

### Start code assistant

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai code
```

### Ask a coding question

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai code "Write a Python function to sort a list"
```

### Specify language context

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai code --language python "Explain decorators"
```

## See Also

* [Chat](/docs/cli/chat) - General chat mode
* [LSP Code Intelligence](/docs/cli/lsp-code-intelligence) - Language server integration
