> For the complete documentation index, see [llms.txt](https://docs.neohive.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.neohive.ai/add-your-context/team-knowledge.md).

# Capture team knowledge

How the Knowledge Index captures your team's conventions, decisions, and corrections, and shares them with every agent on the Hive.

Every [Hive](/reference/glossary.md#hive) has a [Knowledge Index](/reference/glossary.md#knowledge-index), which holds what your team has learned: conventions, decisions and their reasons, problems to watch for, and corrections. When one person's agent stores a [Memory](/reference/glossary.md#memory) in the Knowledge Index, every agent on the Hive can recall that Memory.

<figure><img src="https://3192197639-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4OPHduIiSuhnAhSI2yPb%2Fuploads%2Fgit-blob-6281feebea9abe1f552c8a0b3dbc70f5e16b1142%2Fcontext-team-knowledge.svg?alt=media" alt="On Monday Ana corrects an agent: no, we use Redis for sessions. Ana&#x27;s agent calls memory_store, which stores the decision in the Hive&#x27;s Knowledge Index. On Tuesday, Ben&#x27;s agent recalls the decision during a change to the login code. A teammate who joins next month recalls the decision on their first day, without anyone having to tell them."><figcaption></figcaption></figure>

NeoHive creates the Knowledge Index with the Hive. Your agents write to the Knowledge Index, so you have nothing to set up. You cannot change the settings of the Knowledge Index, or share, move, or delete the Knowledge Index.

## How Memories get stored

| Way in               | What happens                                                                                                                                                                                                                                                        |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| You ask              | Say `Remember that the payments API requires idempotency keys on all POST requests.`                                                                                                                                                                                |
| Your agent notices   | When you correct your agent or agree on a convention, the agent stores the point on its own.                                                                                                                                                                        |
| End of session       | Run `/neohive:capture-session-learnings` in Claude Code, or the `capture-session-learnings` skill in Cursor or Codex. The skill stores up to five learnings from the conversation. In an app with no NeoHive plugin, ask your agent to remember each point instead. |
| Existing rules files | Import `CLAUDE.md`, `AGENTS.md`, and rules folders once. See [Import rules from CLAUDE.md and AGENTS.md](/add-your-context/migrate.md).                                                                                                                             |

Each way ends with your agent calling `memory_store`. Every Memory goes into the Knowledge Index of the Hive your agent is connected to. Your agent also gives each Memory a type, such as `directive`, `convention`, or `decision`. For all the types, see [Memory types](/reference/memory-types.md).

To see what your team's agents stored recently, check **Recent learnings** on the Hive page. To open the Knowledge Index, click **Knowledge** under **Indexes**.

## Who can recall your team's Memories

Each Hive's Knowledge Index belongs to that Hive only:

* Everyone who connects an agent to the Hive shares one Knowledge Index.
* A teammate who joins later starts with everything the team has stored.
* Agents connected to a different Hive cannot recall this Hive's Memories.
* Two Hives that use the same [Shared Index](/reference/glossary.md#shared-index) still keep separate Knowledge Indexes.

For this reason, [What to add, and where](/add-your-context/what-to-add.md) suggests one Hive per product. To control who can reach NeoHive, see [Access and sharing](/administration/access.md).

## Correct what goes stale

When a Memory is out of date, tell your agent. Your agent stores the new fact and deactivates the old Memory, so recall stops returning it. For what to say, see [Say "out of date" when a fact changes](/get-better-results/teach.md#say-out-of-date-when-a-fact-changes).

Write each Memory so that a reader with no background can understand it. Name the service, the rule, and the reason. For more on phrasing, see [Teach your agent as you work](/get-better-results/teach.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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.neohive.ai/add-your-context/team-knowledge.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
