AI agent memory and context windows
Not every capability described on this wiki is available today.
Quick answer
A context window is the amount of text a model can consider at once. Agents also use stored notes or retrieved documents as memory. Long tasks can lose details, so state key facts clearly and verify results.
Summary
AI agents are built on language models that read a limited amount of text at a time. This guide explains the context window, the difference between short-term context and stored memory, why long tasks can drift, and practical habits that help. It is general information. A final section covers how Mitra OS is designed to keep AI limited.
Key takeaways
- A context window is the limit on how much text a model can consider at one time.
- Short-term context is the current conversation; stored memory is information saved for later use.
- Long tasks can push early details out of view, so restate what matters.
- Stored memory can be wrong or tampered with, so important facts deserve checking.
- Mitra OS is designed so AI reads and drafts only, with actions behind confirmation.
Two kinds of memory
- Short-term context: the instructions, conversation and tool results the model can see right now. It is limited by the context window.
- Stored memory: facts or notes saved outside the model and added back into the context when relevant. This is a feature of the product around the large language model, not of the model alone.
Related is retrieval-augmented generation, which fetches relevant documents at the moment of a request.
Why long tasks can drift
When a task runs long, early details can fall out of the window or be weighed less than recent text. An agent may then repeat steps, contradict an earlier choice or guess. Guessing can produce an AI hallucination.
Habits that help
- State the goal, constraints and approvals at the start. See prompting AI agents well.
- Restate important facts when a task gets long.
- Break large jobs into smaller steps.
- Check results against a trusted source before you rely on them.
- Review what the agent has stored, and remove anything wrong.
Risks of stored memory
Anything an agent saves can influence later actions. If it saves text from an untrusted source, that text may try to steer it later, as described in prompt injection. Keep permissions narrow, as covered in AI agent permissions explained. For the basics, start with what are AI agents.
How Mitra OS approaches AI
This section is about Mitra OS, not about any model. MITRA uses an orchestrator and domain agents. Language-model calls are designed to be read and draft only, grounded in live data and audit-logged, as described in AI safety and auditability. Money actions, health data and irreversible bookings are designed to need a fresh biometric step-up confirmation.
Frequently asked questions
People also ask
- What is an AI agent in simple terms? (What are AI agents?)
- How is an AI agent different from a chatbot? (What are AI agents?)
- Are AI agents reliable? (What are AI agents?)
- Can an agent act without my approval? (What are AI agents?)
- What does LLM stand for? (Large language model (LLM))
Related topics
Glossary terms on this page
- MITRA: MITRA is the orchestration platform behind Mitra OS. Mitra is the name you talk to, and Mitra OS, Inc. is the company that builds it.
- Orchestrator: The orchestrator is the part of Mitra OS that breaks a request into tasks, sends them to domain agents, reconciles the results and returns one answer.
- Step-up: Step-up is an extra, fresh biometric check required before a sensitive action, even when you are already signed in.
- AI hallucination: An AI hallucination is output from a model that sounds confident but is wrong or invented, such as a false fact, a fake source or an incorrect figure.
- Prompt injection: Prompt injection is when text an AI system reads, such as a web page or email, contains instructions meant to make it behave in ways its user did not intend. Limiting permissions and requiring approval reduces the harm.