Kosmos is a local-first observability and debugging workspace for AI agents.
It gives developers a unified place to see an AI system's architecture, inspect runtime traces, iterate on prompts, monitor live activity, and audit whether local context can be trusted. Kosmos runs beside your repo, vault, prompts, and agent tooling without requiring a hosted dashboard or account.
The core question Kosmos answers is simple:
Can I trust what my AI just did to this workspace?
npx kosmos-aosNo install. No signup. No cloud. Kosmos opens locally in your browser at http://localhost:5588.
npx kosmos-aos ./path/to/your/project
npx kosmos-aos ~/Obsidian/MyVault
npx kosmos-aos ./examples/ai-context-vault
npx kosmos-aos --port 8080
npx kosmos-aos ./project --no-openRequires Node.js 18+
- Website: www.getkosmos.xyz
- npm: kosmos-aos
- Docs hub: docs/README.md
- Screenshot tour: docs/screenshots.md
- Wiki source: wiki/Home.md
- Issues: github.com/chasefort/kosmosaos/issues
- Releases: github.com/chasefort/kosmosaos/releases
More visuals and captions live in docs/screenshots.md.
- See the system, not just logs. Map agents, tools, prompts, models, APIs, files, modules, memory stores, and runtime edges in one workspace.
- Watch agent activity live. Follow local AI tools as they read files, write files, call tools, and move through your context.
- Replay with evidence. Trace a session back to the exact spans, prompts, tool calls, touched files, costs, and context evidence that produced it.
- Catch trust gaps before they spread. Surface broken wikilinks, missing sources, orphan pages, unsupported outputs, stale generated files, and risky instruction files.
- Iterate on prompts with behavior attached. Keep prompt versions tied to actual traces instead of treating prompt edits like disconnected text changes.
- Stay local-first. Runtime data is stored locally in SQLite at
~/.kosmos/kosmos.db.
- Trust Overview: answer whether the workspace is healthy enough to trust right now.
- First-run Context Audit: immediately surface the highest-risk issues agents should not rely on yet.
- Universe Map: explore notes, sources, outputs, instructions, files, prompts, tools, models, and runtime relationships as a visual graph.
- Flow View: inspect structure in a clearer 2D layout when the constellation view is too dense.
- AI Sessions and Replay: inspect spans, tool calls, file touches, prompt versions, costs, feedback, and run playback.
- Context Audit: find broken wikilinks, missing sources, orphan context, unsupported outputs, stale generated files, and prompt hygiene issues.
- Prompt Versioning: save instruction versions, link them to traces, and compare candidate changes against real examples.
- Live Monitoring: connect Claude Code, OpenClaw, or custom local ingest clients through the same local workspace.
- Quick Markdown Editing: make small fixes to prompts, instructions, and notes without pretending Kosmos should replace your main editor.
flowchart LR
A["Vault / Repo Scan"] --> B["Context Graph"]
C["Live Runtime Events"] --> D["Runs / Threads / Traces / Spans"]
E["Prompt Files + Versions"] --> D
B --> F["Universe Map + Flow View"]
D --> G["Trace Inspector"]
D --> H["Trust Overview"]
E --> I["Prompt Workbench"]
B --> J["Context Audit"]
Kosmos is designed so the static structure of your context and the live behavior of your AI tools reinforce each other. The graph shows what exists. The traces show what happened. The audit layer shows what is missing, unsupported, stale, or risky.
Use the packaged CLI for the normal user-facing experience:
npx kosmos-aos ./your-projectUse the development server when you are working on Kosmos itself:
npm install
npm run devBuild the npx/browser distribution:
npm run build:npxRun the packaged server locally after a build:
node dist/server/index.js ./your-projectKosmos is intended to be accessible as an open-source project and as the kosmos-aos npm package. The source repo includes the app, CLI/server mode, docs, wiki source, examples, tests, and release automation.
Before release, run:
npm test
npm run typecheck
npm run build:npx
npm run npm:checkThe npm package uses a narrow files allowlist so publishable artifacts stay focused on the runtime distribution:
dist/server/dist/main/dist/shared/out/browser/out/main/index.jsREADME.mdLICENSEpackage.json
Start with the docs hub in docs/README.md. The most useful entry points are:
- Getting Started
- CLI And Install Guide
- Architecture Guide
- Live Monitoring Guide
- Trace Inspector Guide
- Prompt Versioning Guide
- Integrations Guide
- Troubleshooting
- FAQ
- Product Positioning
- Releasing And Publishing
If you want wiki-style pages for GitHub navigation, start with wiki/Home.md.
- runtime data is stored locally in SQLite
- the primary database lives under
~/.kosmos/kosmos.db - the ingest endpoint defaults to
http://localhost:41414/ingest - the browser UI defaults to
http://localhost:5588 - no account or hosted dashboard is required
npm test
npm run typecheck
npm run build
npm run build:npx
npm run website:build- Start Kosmos with
npx kosmos-aos ./your-projectornpm run dev. - Open an Obsidian-style vault, Markdown knowledge base, or repo with prompts and agent code.
- Run one task that reads a file, writes a file, and completes.
- Confirm that the run appears in
AI Sessions, the trace inspector shows spans and touched files, the trust overview refreshes after live activity, the context map highlights relevant graph nodes, and prompt versions stay linked when you edit and save an instruction file.
- CONTRIBUTING.md: contribution expectations, validation, and screenshot guidance
- CODE_OF_CONDUCT.md: community behavior standards
- SECURITY.md: private vulnerability reporting guidance
- .github/ISSUE_TEMPLATE: issue templates for bugs, features, and docs
- first-class Obsidian vault detection, badges, and companion-plugin workflow
- clearer "what did AI read, change, cite, miss, or break?" session review
- stronger provenance checks for generated outputs
- broader runtime compatibility and smoother custom ingest setup
- richer WebGPU constellation renderer with graceful classic graph fallback
Kosmos is released under the MIT License.







