Λογότυπο ContextOS

ContextOS

Κοινότητα
itallstartedwithaidea

Unified MCP context intelligence platform — pip-installable CLI that absorbed 6 foundational repos. Context engineering for AI agents.

Εκδότηςitallstartedwithaidea
ΑποθετήριοContextOS
ΓλώσσαPython
Forks
5
Αστέρια
28
Διαθέσιμα εργαλεία
0
Τύπος μεταφοράςstdio
Κατηγορίες
Σύνδεσμοι
  • Συνδέστε εργαλεία σε ροές εργασίας AI

    Το ContextOS παρέχει δυνατότητες MCP που μπορούν να χρησιμοποιηθούν από συμβατές εφαρμογές-πελάτες AI και πράκτορες AI.

  • 0 διαθέσιμα εργαλεία

    Περιηγηθείτε παρακάτω στις ενέργειες που μπορούν να κληθούν, μαζί με τα ονόματα και τις περιγραφές τους, όταν παρέχονται από τον διακομιστή.

  • Ρυθμίσεις έτοιμες για αντιγραφή

    Χρησιμοποιήστε τα αποσπάσματα εγκατάστασης για να ρυθμίσετε αυτόν τον διακομιστή στην εφαρμογή-πελάτη MCP που προτιμάτε.

  • Δείκτες ενδιαφέροντος για τον ανοιχτό κώδικα

    28 αστέρια και 5 διακλαδώσεις στο συνδεδεμένο αποθετήριο.

ContextOS

English | Français | Español | 中文 | Nederlands | Русский | 한국어

The unified context intelligence layer for AI agents.
One pip install. Every capability. Nothing missing.

PyPI version License: MIT Python 3.10+ MCP Compatible GitHub Stars

pip install contextos

What Is ContextOS?

ContextOS is the operating system layer for AI context -- a single, unified MCP server and CLI that absorbs, extends, and surpasses the capabilities of seven leading open-source repositories in the AI agent and context management ecosystem.

It was built because no single project covered the full stack. Every existing tool was excellent at one thing and missing everything else. ContextOS brings them all together, fills every gap, and adds an orchestration layer that didn't exist anywhere.

ContextOS is not a wrapper. It is a platform. Every tool you were using before becomes a module that runs on top of it.


v0.2.0 -- The Cognition Update

The industry builds: retrieve then generate.
ContextOS builds: retrieve, THINK, then generate.

Every agent framework in the market skips the most important step. They retrieve context, stuff it into a prompt, and generate output. The thinking that happens between retrieval and output -- the part where an expert would reason about contradictions, weigh constraints, sense missing information, and decide how deep to go -- that part doesn't exist anywhere.

Until now.

v0.2.0 adds three new layers and a framework that models how expert reasoning actually works:

The Cognition Layer -- Six Cognitive Primitives

These are the reasoning operations that happen between retrieval and generation. No agent framework has built them.

PrimitiveWhat It DoesWhy It Matters
Active ForgettingDrops retrieved context that degrades output qualityMore context isn't always better. 20 retrieved chunks where 3 matter creates noise that pulls reasoning off course.
Reasoning Depth CalibrationEstimates how much thinking a problem deserves before committing computeA fast pattern match and a 10-step chain of reasoning are both valid -- for different problems. Agents should know which situation they're in.
Synthesis DetectionDetermines whether the agent needs to THINK about what it has or GO GET moreThe entire industry treats every task as a retrieval problem. Some tasks are synthesis, analogy, or relational reasoning. More data hurts them.
Unknown Unknown SensingDetects when the agent is missing an entire CATEGORY of informationKnown unknowns are easy. Unknown unknowns kill. "I didn't know Salesforce data was relevant here" is a different failure mode than "I don't have today's data."
Productive ContradictionHolds conflicting data as signal instead of resolving it"Google Ads says conversions up, CRM says pipeline flat" -- the answer isn't "pick one." The measurement gap IS the insight.
Context-Dependent GravityRe-weights memory importance based on the current questionA memory about "never run branded without approval" scores low on similarity to a PMax query but fundamentally changes the recommendation. Static importance scores miss this.

The Retrieval Router -- Churn-Aware Routing

The real framework for retrieval isn't "structured vs. unstructured data." It's data churn rate vs. indexing cost.

Codebases change every time you switch branches -- embedding them creates stale indexes instantly. Legal documents change quarterly -- embedding them once pays off for months. The Retrieval Router classifies every data source by how fast its underlying data changes, then picks the retrieval strategy that matches.

Churn ClassExample DataStrategyWhy
LiveSearch query reports, auction data, budget pacingDirect API pull, no indexAny cached answer is already wrong
WarmKeyword lists, audience segments, ad copy inventoryBM25 or vector index with freshness clockChanges weekly, index is useful if fresh
ColdAd policies, account hierarchy, strategy docsFull vector search, embed onceChanges quarterly at most, invest in deep indexing

The router checks index freshness on every request. If a warm source's index is stale, it automatically falls back to live pull. No human intervention.

The Index Lifecycle Manager -- Self-Healing Indexes

Event-driven re-indexing with circuit breakers and embedding model drift detection.

  • Write-triggered re-indexing: When an MCP server pushes new data, the index rebuilds automatically. No cron jobs. The data flow IS the indexing trigger.
  • Embedding model drift detection: Update your embedding model? Every vector index is silently invalid. The lifecycle manager catches model version mismatches and triggers full rebuilds.
  • Schema change quarantine: If the shape of incoming data changes, existing indexes are quarantined until rebuilt. No silently wrong results.
  • Circuit breakers: If re-indexing fails 3 times consecutively, the system stops trying and degrades to live pull. Alerts fire. Manual reset available.
  • Heartbeat checks: Periodic health scans catch stale indexes that weren't triggered by events.

How It Works: An Advertising Example

python
from contextos import ContextOS
from contextos.router import DataSourceProfile

ctx = ContextOS(workspace="ad-agent", cognition_enabled=True)

# Register data sources with churn profiles
ctx.router().register_source(DataSourceProfile(
    name="search_queries",
    mcp_server="google-ads-mcp",
    churn_class="live",         # changes every hour
    index_strategy="none",       # always pull fresh
))

ctx.router().register_source(DataSourceProfile(
    name="keyword_lists",
    mcp_server="google-ads-mcp",
    churn_class="warm",          # changes weekly
    index_strategy="bm25",
    freshness_threshold_seconds=7200,
))

ctx.router().register_source(DataSourceProfile(
    name="ad_policies",
    mcp_server="policy-docs-mcp",
    churn_class="cold",          # changes quarterly
    index_strategy="vector",
    freshness_threshold_seconds=604800,
))

# The cognition layer runs automatically between retrieval and output.
# Given "should I pause branded campaigns given declining ROAS", it:
#
# 1. Active Forgetting: drops irrelevant chunks, keeps signal
# 2. Unknown Unknown Sensing: flags that budget data and analytics
#    were available but not queried
# 3. Gravity Reweighting: finds a constraint at importance 0.3
#    saying "never pause branded without approval" and boosts it
#    to 0.95 because it's a constraint that overrides the analysis
# 4. Synthesis Detection: identifies this as a reasoning problem,
#    not a retrieval problem -- the agent has contradictory data
#    (ROAS down, pipeline up) and needs to reason about what
#    the contradiction means

Standing on the Shoulders of Giants

ContextOS would not exist without the extraordinary work of these projects. We formally credit and honor each one:

modelcontextprotocol/servers

80.5k stars -- TypeScript
The foundational standard for tool execution and context protocol. ContextOS adopts MCP as its native schema and is 100% compatible with all existing MCP servers.
What it gave us: The protocol. The standard. The ecosystem.
What was missing: No orchestration layer, no memory, no retrieval, no planning -- just the transport protocol itself.


infiniflow/ragflow

74.4k stars -- Python
A production-grade RAG engine with agent capabilities and deep document parsing.
What it gave us: The retrieval engine, document ingestion pipeline, agent-aware RAG execution.
What was missing: No cross-layer memory integration, no staleness detection, no multi-corpus routing, no feedback loop, no MCP-native tool schema.


dair-ai/Prompt-Engineering-Guide

71.3k stars -- MDX
The definitive corpus of prompt engineering patterns, papers, and techniques.
What it gave us: The planning and prompting knowledge base powering ContextOS's spec templates and agent instruction patterns.
What was missing: Static documentation only -- no runtime integration, no prompt versioning, no outcome tracking.


upstash/context7

48.2k stars -- TypeScript
Up-to-date code documentation for LLMs and AI code editors.
What it gave us: Live documentation fetching, version-aware context injection for LLMs.
What was missing: No memory layer, no retrieval integration, no session continuity -- purely stateless doc fetching.


thedotmack/claude-mem

33.5k stars -- TypeScript
A Claude Code plugin that captures and compresses coding sessions using AI and SQLite + embeddings.
What it gave us: The in-session memory compression pattern, SQLite + embeddings architecture.
What was missing: Memory dies with the session. No cross-session persistence, no entity graph, no tiering, no conflict resolution.


ComposioHQ/composio

27.3k stars -- TypeScript
Powers 1000+ toolkits with auth, tool search, and a sandboxed workbench for building AI agents.
What it gave us: The external API integration layer -- OAuth flows, tool sandboxing, execution context.
What was missing: No tool DAG execution, no output caching, no retry/fallback policies, no tool versioning.


gsd-build/get-shit-done

26.5k stars -- JavaScript
A lightweight meta-prompting and spec-driven development system for Claude Code.
What it gave us: The spec-driven execution model, meta-prompting patterns, task decomposition templates.
What was missing: No dynamic plan revision, no constraint propagation, no spec versioning, no outcome evaluation loop.


andrewyng/context-hub

47 stars -- JavaScript
A curated, versioned doc store with a CLI (chub) for coding agents.
What it gave us: The doc intelligence pattern: curated content + incremental fetch + local annotations + community feedback loops.
What was missing: No memory layer, no retrieval integration, no MCP tool schema, no Python support.

ContextOS absorbs context-hub completely. Every chub command maps to a ctx docs command.


What Was Missing -- And What ContextOS Builds

After absorbing all seven projects, these were the gaps that no single repo addressed:

Orchestration Core (entirely new)

FeatureWhy It Matters
Semantic Intent RouterClassifies every incoming request and dispatches to the correct layer automatically.
Request Tracing / ObservabilityFull lineage per tool call: which layer fired, latency, token cost, quality score.
Schema RegistryVersioned tool schemas with backward compatibility.
Multi-Workspace AuthPer-workspace API keys, rate limits, and audit logs.
Cost LedgerTrack LLM + API spend per session, per workspace, per tool.

Cognition Layer (entirely new in v0.2.0)

FeatureWhy It Matters
Active ForgettingDrop retrieved context that creates noise. More isn't better.
Reasoning Depth CalibrationKnow how much thinking a problem deserves before investing compute.
Synthesis DetectionDistinguish retrieval tasks from reasoning tasks.
Unknown Unknown SensingDetect missing categories of information, not just missing facts.
Productive ContradictionHold conflicting signals as insight instead of resolving to one answer.
Context-Dependent GravityRe-weight memory by current question. Constraints override similarity scores.
Context BudgetEnforce token limits on retrieved context. Karpathy's "Context Window = RAM" made operational.

Retrieval Router (entirely new in v0.2.0)

FeatureWhy It Matters
Data Source RegistryEvery MCP server self-declares its churn profile, index strategy, and freshness threshold.
Churn-Aware RoutingLive/warm/cold classification per source. Strategy matches data volatility.
Automatic FallbackStale index? Fall back to live pull. No manual intervention.
Feedback-Driven ReclassificationIf a "cold" source keeps going stale, the system auto-promotes it to "warm."

Index Lifecycle Manager (entirely new in v0.2.0)

FeatureWhy It Matters
Event-Driven Re-indexingMCP data events trigger rebuilds. No cron jobs.
Embedding Model Drift DetectionModel update = all vector indexes invalid. Auto-detected, auto-rebuilt.
Schema Change QuarantineData shape changes? Index quarantined until rebuilt.
Circuit Breakers3 consecutive index failures = degrade to live pull + alert.
Heartbeat Health ChecksPeriodic scans catch anything events missed.

Memory Layer (extends claude-mem)

FeatureWhy It Matters
Cross-Session PersistenceMemory survives process restarts.
Memory Tiering (Hot/Warm/Cold)Auto-promote/demote by recency + relevance.
Entity GraphExtracts entities and links them as structured knowledge.
Conflict ResolutionResolve contradicting memory sources using timestamp + confidence.
User-Scoped vs Agent-Scoped MemoryWhat the user told the system vs what agents learned -- kept separate.

Retrieval Layer (extends ragflow + context7)

FeatureWhy It Matters
Hybrid SearchBM25 keyword + dense vector search combined.
Source Attribution ScoringRank chunks by provenance quality, not just cosine similarity.
Staleness DetectionFlags content older than a configurable TTL and triggers re-fetch.
Multi-Corpus RoutingRoute queries to docs, live web, codebase, or API spec -- in parallel.
Retrieval Feedback LoopTracks which chunks appeared in final output. Routes better over time.

Tool Execution Layer (extends composio + MCP servers)

FeatureWhy It Matters
Tool Chaining / DAG ExecutionMulti-step tool pipelines with branching logic.
Sandboxed Code ExecutionSafe execution with output capture and error recovery.
Tool Output CachingCache deterministic results by input hash.
Retry + Fallback PoliciesPer-tool SLA: retry budget, fallback tool, graceful degradation.
Tool VersioningPin agent workflows to specific tool versions.

Planning & Spec Layer (extends GSD + Prompt-Engineering-Guide)

FeatureWhy It Matters
Dynamic Plan RevisionPlans update mid-execution based on tool output.
Constraint PropagationIf tool X fails, downstream steps are automatically revised.
Spec Versioning + DiffTrack how task specs evolve. Roll back if new spec underperforms.
Pre-Response Sparring HookMandatory reflection before any agent output. Forces pause before firing.
Outcome EvaluationScores final output against original spec. Feeds signal back to planning.

Doc Intelligence Layer (absorbs context-hub entirely)

FeatureWhy It Matters
Curated Doc RegistryCommunity-maintained, versioned markdown docs for APIs, frameworks, and tools.
Language-Specific FetchFetch docs in your target language. No irrelevant snippets.
Incremental FetchFetch only what you need. No wasted tokens.
Persistent AnnotationsLocal notes that agents attach to docs. Survive session restarts.
Community Feedback LoopUp/down votes per doc flow back to maintainers.
Doc Staleness ScoringStale docs are flagged and re-fetched automatically.

Architecture

┌──────────────────────────────────────────────────────────────────────┐
|                          CLIENT / AGENT                               |
|               (Claude Desktop - Cursor - Windsurf - SDK)             |
└───────────────────────────────┬──────────────────────────────────────┘
                                | MCP Protocol
┌───────────────────────────────▼──────────────────────────────────────┐
|                       ORCHESTRATION CORE                              |
|    Intent Router - Schema Registry - Cost Ledger - Request Tracing   |
└──┬──────────┬──────────┬──────────┬──────────┬──────────┬────────────┘
   |          |          |          |          |          |
┌──▼───┐ ┌───▼────┐ ┌───▼───┐ ┌───▼────┐ ┌───▼────┐ ┌───▼─────┐
|MEMORY| |RETRIEV.| | TOOLS | |PLANNING| |COGNIT. | | ROUTER  |
|      | |        | |       | |        | |        | |         |
|Hot   | |Hybrid  | |DAG    | |Spec    | |Active  | |Churn    |
|Warm  | |Search  | |Exec   | |Engine  | |Forget  | |Classes  |
|Cold  | |Multi-  | |Cache  | |Sparring| |Depth   | |Data Src |
|Entity| |Corpus  | |Retry  | |Hook    | |Calibr. | |Registry |
|Graph | |Stale-  | |Sand-  | |Dynamic | |Synth.  | |Freshness|
|Confl.| |ness    | |box    | |Revis.  | |Detect  | |Clock    |
|Resol.| |Feed-   | |Version| |Outcome | |Unknown | |Feedback |
|      | |back    | |Pin    | |Eval    | |Unknown | |Learn    |
|      | |        | |       | |        | |Contra- | |         |
|      | |        | |       | |        | |diction | |         |
|      | |        | |       | |        | |Gravity | |         |
└──────┘ └────────┘ └───────┘ └────────┘ └────────┘ └────┬────┘
                                                          |
                                                   ┌──────▼──────┐
                                                   |   INDEXER    |
                                                   |             |
                                                   |Event-Driven |
                                                   |Re-index     |
                                                   |Model Drift  |
                                                   |Detection    |
                                                   |Circuit      |
                                                   |Breakers     |
                                                   |Heartbeat    |
                                                   └─────────────┘

The critical data flow (v0.2.0):

Request → Orchestration → Router (pick strategy per source)
                            ↓
                        Retrieval (execute strategy)
                            ↓
                        Cognition (THINK before generating)
                          - forget noise
                          - calibrate depth
                          - sense unknown unknowns
                          - detect contradictions
                          - reweight constraints
                            ↓
                        Planning (Sparring Hook + plan)
                            ↓
                        Generation (finally, produce output)
                            ↓
                        Feedback (did the output use the context?)
                            ↓
                        Router learns → Indexer heals → Cognition calibrates

Quick Start

python
from contextos import ContextOS

ctx = ContextOS(
    workspace="my-agent",
    memory_tier="warm",
    retrieval_mode="hybrid",
    tools=["composio", "mcp"],
    sparring_hook=True,
    cognition_enabled=True,        # v0.2.0: thinking layer
    churn_aware_routing=True,      # v0.2.0: per-source routing
)

# Use as MCP server
ctx.serve(port=8080)

Register Data Sources

python
from contextos.router import DataSourceProfile

ctx.router().register_source(DataSourceProfile(
    name="google_ads",
    mcp_server="google-ads-mcp",
    churn_class="live",
    index_strategy="none",
))

ctx.router().register_source(DataSourceProfile(
    name="client_docs",
    mcp_server="google-drive-mcp",
    churn_class="cold",
    index_strategy="vector",
    freshness_threshold_seconds=604800,
))

Run a Cognition Pass

python
report = ctx.cognition().think(
    query="should we shift budget from search to pmax",
    retrieved_context=[...],
    memories=[...],
    available_sources=["google_ads", "analytics", "crm", "budget"],
    retrieved_from=["google_ads", "analytics"],
    domain="advertising",
)

print(report.unknown_unknowns)   # sources you forgot to check
print(report.gravity_shifts)     # constraints that override the analysis
print(report.contradictions)     # conflicting signals worth investigating
print(report.depth_estimate)     # how much thinking this deserves

CLI: ctx

Doc Commands (context-hub parity + extensions)

bash
ctx docs search openai                     # find available docs
ctx docs get openai/chat --lang py         # fetch current docs, Python variant
ctx docs get stripe/api --file webhooks    # incremental fetch
ctx docs annotate stripe/api "Note here"   # attach a persistent note
ctx docs feedback stripe/api up            # upvote a doc

Memory Commands

bash
ctx memory store "key insight about X"
ctx memory retrieve "what do I know about stripe webhooks"
ctx memory forget "session notes from project Y"
ctx memory graph query "entity:OpenAI"
ctx memory conflicts --resolve auto

Retrieval Commands

bash
ctx retrieve docs "stripe payment intents python"
ctx retrieve live "openai assistants api latest"
ctx retrieve web "LLM context window best practices 2026"
ctx retrieve code "webhook verification pattern"

Router Commands (new in v0.2.0)

bash
ctx router register --name google_ads --churn live --index none
ctx router register --name policies --churn cold --index vector
ctx router health                          # index health across all sources
ctx router route "what queries triggered ads today"  # show routing decision

Cognition Commands (new in v0.2.0)

bash
ctx cognition think --query "should I pause branded" --domain advertising
ctx cognition budget --tokens 4000         # set context budget
ctx cognition contradictions --last        # show last detected contradictions
ctx cognition unknowns --last              # show unknown-unknown alerts

Planning Commands

bash
ctx plan create "build a stripe checkout integration"
ctx plan spar                              # pre-response sparring hook
ctx plan revise --feedback "tool X failed"
ctx plan evaluate --against-spec spec.md

Orchestration Commands

bash
ctx health                                 # all 8 layers
ctx cost summary --workspace my-agent
ctx trace --id req_abc123

MCP Tools Exposed

ContextOS exposes 67 tools across 8 categories via the MCP protocol.

Memory Tools (9)

memory_store memory_retrieve memory_forget memory_summarize memory_diff memory_graph_query memory_export memory_import memory_conflicts

Retrieval Tools (8)

retrieve_docs retrieve_live retrieve_web retrieve_code retrieve_merge retrieve_score retrieve_feedback retrieve_staleness

Cognition Tools (6) (new in v0.2.0)

cognition_think cognition_forget cognition_depth cognition_contradictions cognition_unknowns cognition_gravity

Router Tools (5) (new in v0.2.0)

router_register router_route router_health router_feedback router_reclassify

Indexer Tools (5) (new in v0.2.0)

indexer_status indexer_rebuild indexer_heartbeat indexer_circuit_reset indexer_model_update

Tool Execution (12)

tool_run tool_chain tool_cache_get tool_cache_set tool_register tool_list tool_schema tool_version_pin tool_retry_policy tool_cost tool_sandbox_run tool_composio

Planning Tools (9)

plan_create plan_revise plan_diff plan_evaluate plan_spar plan_decompose plan_constraints plan_rollback plan_template

Orchestration Tools (9)

ctx_route ctx_trace ctx_schema_get ctx_schema_register ctx_cost_summary ctx_workspace_create ctx_workspace_list ctx_health ctx_version

Doc Intelligence Tools (8)

docs_search docs_get docs_get_file docs_annotate docs_annotate_clear docs_annotate_list docs_feedback docs_contribute


Agent Self-Improvement Loop

Without ContextOS                          With ContextOS v0.2.0
-----------------                          ---------------------
Search the web                             Churn-aware retrieval per source
Noisy results                              Active forgetting drops noise
17 chunks, 3 useful                        Context budget enforces quality
Code breaks                                Agent annotates gaps locally
No idea what's missing                     Unknown-unknown sensing flags gaps
Contradictions ignored                     Productive contradiction finds insight
Static memory importance                   Gravity reweighting by current question
Knowledge forgotten next session           Hot/warm/cold memory with entity graph
No plan when tools fail                    Constraint propagation + dynamic revision
Output not evaluated                       Sparring hook + outcome scoring
Stale indexes silently wrong               Self-healing indexes with circuit breakers
Effort wasted repeating mistakes           Compounds with every run

Roadmap

Phase 1 -- Absorb (complete)

  • Unified MCP tool schema
  • Memory layer with cross-session persistence
  • Hybrid retrieval engine
  • Tool registry with DAG execution
  • Planning + spec engine with sparring hook
  • Orchestration Core
  • Doc intelligence layer (context-hub absorbed)

Phase 1.5 -- Cognition Update (v0.2.0 -- current)

  • Cognition Layer with 6 cognitive primitives
  • Retrieval Router with churn-aware routing
  • Index Lifecycle Manager with self-healing
  • Data Source Registry with per-source profiles
  • Context Budget enforcement
  • Circuit breakers for index operations
  • Embedding model drift detection
  • Feedback-driven churn reclassification
  • Production integrations (sentence-transformers, rank-bm25, tantivy)
  • Full test suite for cognition primitives
  • Benchmark: cognition layer impact on output quality

Phase 2 -- Compound

  • Retrieval feedback loop (auto-improves routing)
  • Entity graph with relationship queries
  • Memory conflict resolution engine
  • Tool output caching layer
  • Outcome evaluation + spec scoring
  • PostgreSQL + pgvector backend for scale
  • Docker image + docker-compose

Phase 3 -- Platform

  • ContextOS Cloud (hosted, multi-tenant)
  • Visual workflow builder
  • Marketplace for tool schemas
  • Enterprise SSO + audit logs
  • LangChain + CrewAI + AutoGen adapters

The Origin of the Cognition Layer

The six cognitive primitives in v0.2.0 were identified by tracing how reasoning actually works in a live problem-solving conversation, then naming each operation as it was practiced.

The starting point was a LinkedIn post by Cole Medin asking "Is RAG Dead?" with a diagram separating structured data (where RAG was abandoned by coding agents) from unstructured data (where RAG thrives). A commenter pointed out two things: RAG was being conflated with semantic search (you can do RAG with BM25), and the real reason coding agents use grep is that re-indexing on every branch checkout kills developer experience.

That insight -- data churn rate vs. indexing cost -- became the Retrieval Router. But the deeper question emerged: what happens between retrieval and output that nobody's building for? The answer was a set of cognitive primitives that were being practiced implicitly in the conversation itself:

  • Active forgetting was happening every turn (dropping irrelevant details from the post)
  • Depth calibration was happening naturally (knowing when to go deep vs. give a quick take)
  • Synthesis detection was present (some questions needed reasoning, not retrieval)
  • Unknown-unknown sensing surfaced (the commenter found a blind spot Cole didn't know existed)
  • Productive contradiction was the core insight (Cole simultaneously argued RAG is dead AND that agentic search is the future -- which is RAG)
  • Context-dependent gravity appeared when analyzing the ContextOS codebase (a 0.3 importance memory about "never pause branded" became 0.95 when the current question was about pausing branded campaigns)

The conversation became the spec. Each primitive was practiced before it was named. This section exists as a record of that origin.


Contributing

PRs welcome for both code and docs. See CONTRIBUTING.md for guidelines.

Built under IASAWI -- It All Started With A Idea.


License

MIT -- see LICENSE


Citation

If you use ContextOS in research or production, please cite:

@software{contextos2026,
  title = {ContextOS: The Unified Context Intelligence Layer},
  author = {Williams, John and IASAWI Contributors},
  year = {2026},
  url = {https://github.com/itallstartedwithaidea/contextOS}
}

Built with respect for every repo that came before it.

Εγκατάσταση

TypingMind
Προαπαιτούμενα:

Node.js 18+

{
  "mcpServers": {
    "itallstartedwithaidea-contextos": {
      "command": "uvx",
      "args": [
        "contextos"
      ]
    }
  }
}

Χρησιμοποιήστε το MCP ContextOS με πολλά μοντέλα AI

Το TypingMind συνδέει τα εργαλεία MCP σε επίπεδο χώρου εργασίας. Έτσι, μόλις συνδεθεί το ContextOS, μπορείτε να το χρησιμοποιείτε με διαφορετικά μοντέλα AI στο TypingMind, αντί να το ρυθμίζετε ξεχωριστά για κάθε μοντέλο. Αυτή η ενσωμάτωση MCP εκτελείται τοπικά στη συσκευή σας μέσω του συνδέσμου MCP του TypingMind.

Οδηγός ρύθμισης για τη χρήση του τοπικού συνδέσμου

Επιλέξτε αυτή τη μέθοδο όταν ο διακομιστής MCP χρειάζεται πρόσβαση σε τοπικά αρχεία, εφαρμογές ή ιδιωτικούς πόρους στον υπολογιστή σας.

1

Ανοίξτε τις ρυθμίσεις MCP

Στο TypingMind, μεταβείτε στις «Ρυθμίσεις», έπειτα στις «Σύνθετες ρυθμίσεις» και στο «Model Context Protocol» και επιλέξτε «Ρύθμιση συνδέσμου».

  1. Ανοίξτε το TypingMind στο πρόγραμμα περιήγησής σας.
  2. Κάντε κλικ στο εικονίδιο «Ρυθμίσεις».
  3. Μεταβείτε στις «Σύνθετες ρυθμίσεις».
  4. Ανοίξτε την ενότητα Model Context Protocol.
  5. Κάντε κλικ στην επιλογή «Ρύθμιση συνδέσμου» και επιλέξτε «Αυτή η συσκευή».
Οθόνη ρύθμισης συνδέσμου MCP του TypingMind με επιλεγμένη την επιλογή «Αυτή η συσκευή»
2

Εκτελέστε την εντολή του συνδέσμου

Επιλέξτε «Αυτή η συσκευή», αντιγράψτε την εντολή από το TypingMind και εκτελέστε την στο Τερματικό. Διατηρήστε τη διεργασία σε λειτουργία όσο χρησιμοποιείτε το MCP.

  1. Αντιγράψτε την εντολή ρύθμισης που εμφανίζεται στο TypingMind.
  2. Ανοίξτε το Τερματικό στο macOS ή το Windows Terminal στα Windows.
  3. Επικολλήστε και εκτελέστε την εντολή.
  4. Εγκρίνετε την εγκατάσταση του πακέτου, αν το Τερματικό σάς ζητήσει επιβεβαίωση για να συνεχίσει.
  5. Διατηρήστε ανοιχτό το παράθυρο του Τερματικού και τη διεργασία σε λειτουργία όσο χρησιμοποιείτε εργαλεία MCP.
3

Προσθέστε το ContextOS ως διακομιστή

Όταν η κατάσταση του συνδέσμου είναι «Έτοιμος», κάντε κλικ στο «Αλλαγή servers» και επικολλήστε τις ρυθμίσεις του διακομιστή MCP.

  1. Περιμένετε μέχρι η κατάσταση του συνδέσμου να εμφανιστεί ως «Έτοιμος».
  2. Κάντε κλικ στο «Αλλαγή servers».
  3. Επικολλήστε τις ρυθμίσεις του διακομιστή MCP ContextOS.
  4. Αποθηκεύστε τη λίστα διακομιστών.
  5. Κάντε ανανέωση αν θέλετε να επιβεβαιώσετε ότι ο σύνδεσμος παραμένει έτοιμος για χρήση.
Ρυθμίσεις MCP του TypingMind με ενεργό διακομιστή και το κουμπί «Αλλαγή servers»
{
  "mcpServers": {
    "itallstartedwithaidea-contextos": {
      "command": "npx",
      "args": [
        "-y",
        "contextos"
      ]
    }
  }
}
4

Χρησιμοποιήστε τη σύνδεση με διαφορετικά μοντέλα

Αποθηκεύστε τη λίστα διακομιστών, ανοίξτε τα «Πρόσθετα», ενεργοποιήστε τα εργαλεία MCP του ContextOS και έπειτα επιλέξτε οποιοδήποτε υποστηριζόμενο μοντέλο AI στο TypingMind. Χρησιμοποιήστε τα εργαλεία στη συνομιλία ή αναθέστε τα σε έναν πράκτορα AI.

  1. Ανοίξτε τη σελίδα «Πρόσθετα» στο TypingMind.
  2. Ενεργοποιήστε τα εργαλεία MCP του ContextOS.
  3. Ξεκινήστε μια συνομιλία και επιλέξτε το μοντέλο AI που θέλετε να χρησιμοποιήσετε.
  4. Χρησιμοποιήστε τα εργαλεία MCP στη συνομιλία ή αντιστοιχίστε τα σε έναν πράκτορα AI.
  5. Μεταβείτε σε άλλο μοντέλο AI όποτε χρειάζεται, χωρίς να συνδέσετε ξανά το MCP.
Συνομιλία στο TypingMind με ενεργοποιημένα εργαλεία MCP και επιλεγμένο μοντέλο AI
Θα με βοηθήσετε σε αυτό μέσω ContextOS;
ContextOS
Βεβαίως. Το διάβασα.
Δείτε τι βρήκα μέσω του ContextOS.

Συχνές ερωτήσεις

Σε τι χρησιμεύει ο διακομιστής MCP ContextOS;

Το ContextOS είναι ένας διακομιστής MCP που επιτρέπει σε συμβατές εφαρμογές AI να συνδέονται με εξωτερικά εργαλεία και πληροφορίες πλαισίου. Στο TypingMind, μπορείτε να προσθέσετε αυτόν τον διακομιστή MCP μία φορά και να κάνετε τα εργαλεία του διαθέσιμα στον χώρο εργασίας AI σας.

Μπορώ να χρησιμοποιήσω το ContextOS MCP με πολλά μοντέλα AI στο TypingMind;

Ναι. Το TypingMind συνδέει τα εργαλεία MCP σε επίπεδο χώρου εργασίας, ώστε να μπορείτε να χρησιμοποιείτε το ContextOS με διαφορετικά μοντέλα AI, όπως τα Claude, ChatGPT, Gemini ή άλλα μοντέλα που έχετε ρυθμίσει στο TypingMind, χωρίς να ρυθμίζετε τον διακομιστή MCP ξεχωριστά για κάθε μοντέλο.

Γιατί να χρησιμοποιήσετε τον σύνδεσμο MCP ContextOS με το TypingMind;

Το TypingMind είναι ένα από τα καλύτερα περιβάλλοντα συνομιλίας με μεγάλα γλωσσικά μοντέλα, καθώς συγκεντρώνει πολλά μοντέλα AI, προτροπές, πρόσθετα, πράκτορες AI, κλειδιά API και εργαλεία MCP σε έναν χώρο εργασίας. Συνδέοντας το ContextOS, μπορείτε να χρησιμοποιείτε τα εργαλεία MCP του με τα μοντέλα που προτιμάτε, διατηρώντας οργανωμένη τη ροή εργασίας των συνομιλιών σας στο TypingMind.

Πώς συνδέω το ContextOS MCP στο TypingMind;

Το ContextOS λειτουργεί μέσω του τοπικού συνδέσμου MCP του TypingMind. Αυτή είναι η καλύτερη επιλογή όταν ο διακομιστής MCP χρειάζεται πρόσβαση σε τοπικά αρχεία, εφαρμογές υπολογιστή, εργαλεία γραμμής εντολών ή ιδιωτικούς πόρους στον υπολογιστή σας.

Ποια εργαλεία παρέχει το ContextOS MCP στο TypingMind;

Το ContextOS διαθέτει δυνατότητες MCP που μπορείτε να ενεργοποιήσετε από τη σελίδα Πρόσθετα του TypingMind και να χρησιμοποιήσετε σε συνομιλίες ή να αναθέσετε σε πράκτορες AI.

Χρειάζεται να κοινοποιήσω τα κλειδιά API μου στο TypingMind για να χρησιμοποιήσω το ContextOS MCP;

Όχι. Το TypingMind δίνει προτεραιότητα στην τοπική λειτουργία και σας επιτρέπει να διατηρείτε τον έλεγχο των παρόχων μοντέλων, των κλειδιών API, των προτροπών και των ρυθμίσεων MCP σας. Αν το ContextOS απαιτεί έλεγχο ταυτότητας, προσθέστε τις απαιτούμενες κεφαλίδες, τις ρυθμίσεις OAuth ή τις τοπικές ρυθμίσεις για τον συγκεκριμένο διακομιστή MCP κατά τη δημιουργία της σύνδεσης.

Σχετικοί διακομιστές MCP

Προβολή όλων

Στήστε δικό σας χώρο εργασίας AI τώρα

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇