Context
Cosine carries project context from one session to the next in your repository’s AGENTS.md file.
AGENTS.md
Section titled “AGENTS.md”An AGENTS.md file in your repository root serves as persistent context that the agent reads at the start of every session. Use it to document:
- Project architecture and conventions
- Build and test commands
- Team preferences and coding standards
- Non-obvious setup steps
Initialize one with:
cos initContext window
Section titled “Context window”Cosine models have a limited context window. Cosine manages this by:
- Loading relevant files on demand rather than all at once
- Using LSP operations (go-to-definition, find references) to narrow scope
- Summarising earlier conversation turns when sessions grow long
- Consulting
AGENTS.mdfor high-priority conventions
Related pages
Section titled “Related pages”- How the agent works — The agent loop
- Session History — Resume conversations with prior context