Skip to content

Agent architecture

How Kosmo works

Kosmo works inside a Kosmico project. Its useful unit is not an isolated message, but a task carried out against project files, research context, tools, permissions, and an explicit operating mode.

The product facts below are checked against the Kosmico source code for each release. They separate what the agent can do, what needs your permission, what differs between desktop and web, and what leaves your device.

Autonomy is bounded, not absolute

A long research request can involve dependent actions, but access to tools, write operations, approvals, iteration limits, and the selected mode constrain the run. A capability shown in one surface should not be assumed to exist identically in every surface.

So this page lists the modes, the permissions and the differences between desktop and web instead of using autonomy as a single marketing label.

Context is selected from project state

Project context can include files, papers, notes, the Research Map, project memory, and recent work. Kosmo reads what the current task needs; the entire project is not pasted into every model call.

Switching models changes the model, not the project that owns the context. A model you pick stays selected; Recommended lets Kosmico pick the model your plan includes before each message.

Local storage and local inference are separate choices

A project file stored locally, a project with cloud sync on, a cloud-model request, and a local-model request have different data flows. They are listed separately below so local-first is not misread as a promise that every operation is offline.

Official source

Current product facts

Kosmico v0.7.6 · Verified

Availability

Availability
public beta
Access
Open sign-up: create a free account in the web app or the desktop app. No activation code is needed.

Autonomy boundary

Kosmo can chain many steps on its own, but only with the tools of the active mode: a tool outside the mode is refused. Every run has a fixed budget of tool turns, from 10 to 50 depending on where Kosmo runs (20 in the desktop chat, 50 on the web), and ends with a written answer when the budget runs out. Helper sub-agents are read-only and get 5 to 8 turns.

Agent modes

  • Agent: The default. Kosmo carries out the task with the tools the model supports: it reads and edits files and, on desktop, runs commands and notebook cells.
  • Plan: Turned on with /plan. Kosmo reads the project and proposes the steps; nothing in the project changes until you accept the plan, which then runs in Agent mode.
  • Chat: Used when the selected model has no tool support. Kosmo discusses your work and changes nothing.

Permissions and safeguards

  • Terminal commands, notebook cells, SSH and Research Map changes ask first: Allow once, Always allow or Deny. Always allow covers one kind of command (for example git) for the rest of that chat.
  • Commands such as rm -r, sudo or dd never offer Always allow.
  • File edits do not interrupt the run: each one appears as a diff you can accept, reject or revert.
  • A project can be switched to Full access, which skips the prompts, including those for risky commands. It applies to the open project only and resets when you leave or restart.
  • Commands and notebook kernels run on your machine or on the server you connect over SSH, never on Kosmico's servers.
  • External AI tools connected through Kosmico's MCP server need your approval for each request to your personal memory.

Model policy

Cloud models come from a catalogue Kosmico manages and are included in your plan, metered as tokens. Free plans get the free models; paid plans unlock the rest. The catalogue is updated from the admin dashboard, so the list can change between releases.

Recommended
Recommended is the default: before each message Kosmico picks the model your plan includes. A model you choose yourself stays selected.
BYOK
Not supported. There is nowhere to enter an API key, and a ChatGPT or Claude subscription cannot power the chat. It works the other way round: Claude Code, Cursor and other MCP clients can use your project through Kosmico's MCP server on desktop.
Models by plan

Data flows

Local project (desktop)

  • Files stay on your disk.
  • A project you never sync does not leave the machine and does not count toward your plan's project limit.

Synced project

  • Cloud sync is a switch on each project. A new project starts with it on while your plan has synced-project slots left.
  • When it is on, the project's contents are copied to Kosmico's cloud so collaborators and the web app can reach them. Secrets such as .env files and keys are never synced.
  • You can turn it off on projects you own: the cloud copy is removed, your files stay on the device, and anyone you shared it with loses access.

Cloud model

  • Your message, and whatever Kosmo reads to answer it, go through Kosmico to the cloud model you selected.
  • Conversations are stored so they sync across your devices, and you can delete them.
  • Kosmico does not use your documents or prompts to train AI models.

Local model

  • With a local Ollama model, nothing leaves your machine.

Research sources

arXiv · default, on requestSemantic Scholar · default, on requestOpenAlex · default, on requestPubMed · on request, added when relevant, subject-specificCrossRef · on request, added when relevantDBLP · added when relevantEurope PMC · added when relevant, subject-specific

Research pipeline

  1. 01You review the proposal: question, scope and sources
  2. 02Turn the question into research goals and search queries, with a quick web search for context
  3. 03Search the databases in parallel
  4. 04Merge duplicates by DOI, arXiv ID, PubMed ID or near-identical title
  5. 05Rate each candidate's relevance
  6. 06Search again, follow citations or look for gaps, one decision at a time
  7. 07Extract evidence from the full text of the most relevant papers
  8. 08Write the review section by section and build the Knowledge Graph

Stopping conditions

  • It finishes as covered only when it holds the minimum number of papers, its coverage score reaches the target, and every required research goal has supporting papers. The score is computed, not judged by a model: topics, methods, time span, source diversity, citation density and goals.
  • If Kosmo tries to finish earlier, it is sent back to search for the goals still open.
  • Otherwise it stops when the searches or passes allowed by the chosen depth run out, and the result is marked as completed with gaps, not as covered.

Citation identity

Every citation comes from a record fetched from one of the databases, and you can open it. The review may cite only papers found in the run: a section with an unknown reference, or a substantive paragraph without a citation, is rejected and rewritten. An optional pass also resolves each reference by DOI, arXiv ID, PubMed ID or title and flags the ones it cannot confirm.

Claim-to-evidence validation

A claim taken from a paper's full text is kept only if its quoted passage appears on the cited page; claims without a matching quote are dropped. Each section is written from the evidence of the papers it cites, but no model checks that every sentence of the review is supported, so check the sources of anything you are about to publish.

From the app

What Kosmo answers in the app

The same answers Kosmo gives when you ask it inside Kosmico, published from one shared help corpus.

What's different between the desktop app and the web app?

Desktop does everything; the web app lacks the parts that need your machine. Desktop only: local files, SSH remote projects, the terminal, Jupyter notebooks, local Ollama models, the MCP server other AI tools connect to, the local research library, and importing from a local Zotero library. Everything else — writing, collaboration, research, the dashboard — works in both.

Which models can I use, and how do I select one?

Settings → AI → Model selection is where you choose the model. It applies to chat, the floating assistant and the chat widget, and you can set how hard the model thinks there too. If you would rather switch mid-conversation, turn on Show in chat on the same screen and a model picker appears in the chat input. Cloud models are served by Kosmico and included in your plan; on desktop there is also a Local section for models you have downloaded through Ollama. Free plans get the free cloud models; paid plans unlock the rest.

Can I use my own OpenRouter, Anthropic, or OpenAI API key?

No. Kosmico serves cloud models through its own backend and there is nowhere to enter an API key. Usage is metered as tokens against your plan. To spend less, pick a smaller model — or a local one, which is free.

How do I run a model locally or offline?

Desktop only. Install Ollama and leave it running at localhost:11434 — Kosmico detects it at startup. Then open Settings → AI → Local AI, pick a model (Kosmico checks your GPU, CPU and RAM and highlights the ones that will run well), and download it. Local models cost nothing, work with no internet, and your data never leaves the machine.

What do you do with my data?

Here is what I can tell you for certain. In a local desktop project your files stay on your own disk; turning on cloud sync or sharing copies their contents to our cloud so collaborators and the web app can reach them. When you chat with me, your message and whatever I read to answer it go to the model you selected — with a local Ollama model, nothing leaves your machine. For anything beyond that — retention, who can access what, whether data is used for training — read the privacy policy at kosmico.ai/privacy or ask support, rather than taking my word for it.

Where does my code run — my machine or your servers?

Yours. Terminal commands and notebook kernels run on your own machine, or on the server you connected to over SSH. Kosmico does not execute your code on our infrastructure.

Direct answers

Can Kosmo complete a long sequence without supervision?

Yes, within limits. In Agent mode it chains steps with the tools the model supports, inside a fixed budget of tool turns. Terminal commands, notebook cells, SSH and Research Map changes ask first unless you give the project Full access, and every file edit appears as a diff you can revert.

Does every model receive the full project?

No. Kosmo reads what the task needs, and that is what goes to the cloud model you selected. With a local Ollama model on desktop, nothing leaves your machine.

Does Kosmico support BYOK?

No. Cloud models are served by Kosmico and included in your plan, and there is nowhere to enter an API key. Local Ollama models on desktop cost nothing.