Skip to content

Memory

Cosine CLI maintains project knowledge through two mechanisms.

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

During a conversation, the agent can save reusable facts using the save_memory tool — things like build fixes, project conventions, or user preferences. These are stored in .cosine/agents.md and automatically loaded in future sessions.

Good candidates include:

  • stable project conventions
  • user or team preferences
  • recurring setup fixes
  • reusable context that should persist across runs