> For the complete documentation index, see [llms.txt](https://docs.codeocean.com/user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codeocean.com/user-guide/compute-capsule-basics.md).

# Capsule Guide

## About Capsules

In Code Ocean, the unit used to create, organize, and share research projects is a Capsule. The Capsule contains the code and all that is required for the code to run. This includes data, a specification of the environment, version of the operating system, packages, libraries, any artifacts that the code depends on, and the results.&#x20;

<img src="/files/lkv7Ec3C4po9WCX6rzUj" alt="" width="331">

### Capsule Overview

{% embed url="<https://www.tella.tv/video/capsules-45wi>" %}

### In this guide:

1. [The Capsule Interface](/user-guide/compute-capsule-basics/the-capsule-interface.md)
2. [The Structure of a Capsule](/user-guide/compute-capsule-basics/structure-of-a-compute-capsule.md)
3. [Reproducible Runs](/user-guide/compute-capsule-basics/reproducible-runs.md)
4. [Version Control](/user-guide/compute-capsule-basics/version-control.md)
5. [Managing Capsules](/user-guide/compute-capsule-basics/managing-capsules.md)
6. [Secret Management Guide](/user-guide/compute-capsule-basics/secret-management-guide.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.codeocean.com/user-guide/compute-capsule-basics.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
