# Code Summary

Our Code Summary feature works on 30 languages and intelligently adds an explanation as a multi-line or single-line comment as a prefix to the code file. You can observe your code and its explanation side by side and export it efficiently.

### Step 1 :

Log in first with Google Authentication on Kodezi.

<figure><img src="/files/sBFAeQYa8JQh8o22tLtU" alt=""><figcaption></figcaption></figure>

### Step 2 :

After signing in successfully, click on Generate Documentation button.

<figure><img src="/files/OWz83UYPyx6RWliAb1Yg" alt=""><figcaption></figcaption></figure>

### Step 3 :

Inside the Generate Documentation UI select the Code Summary, then click on the Generate button.

<figure><img src="/files/OZgmYvhfRWDpF6hqd8lm" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Kodezi does not support extremely large sections of code, so you may have to select a block of code for Code Summary if guided to do so.&#x20;
{% endhint %}

### Step 4 :

After clicking on the Generate button, the document-generating process will start.

<figure><img src="/files/WhLQJerYKMxAfvQWs0hJ" alt=""><figcaption></figcaption></figure>

### Step 5 :

You will see results similar to these in your IDE once the document-generating process is finished.

<figure><img src="/files/XUPoF0MVxrfkd5BE4Pw3" alt=""><figcaption></figcaption></figure>

### Step 6 :

Now You can simply click on the apply button for the result that will add to your original file.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.kodezi.com/feature-guides/generate-documents/code-summary.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
