Skip to content

Context

Cosine carries project context from one session to the next in your repository’s AGENTS.md file.

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:

Terminal window
cos init

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.md for high-priority conventions