Skip to content

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Context Service

Context Service provides Agent Context Infrastructure: durable storage and lifecycle management for the state, memory, knowledge, workspaces, and artifacts that agents create.

It works wherever the agent runs:

  • Local harnesses — capture native state from Claude Code, Codex, OpenCode, or Pi, and restore it into the same harness, without requiring Kubernetes or a running service.
  • Container-native platforms — manage PVC-backed context and shared workspaces through a service API and any CSI storage provider, including IBM Storage Scale. The runtime, such as Moca, creates the sandboxes that mount them.

Both use the same context model, revisions, provenance, and portable transport.

flowchart LR
    subgraph LocalMode["LOCAL AGENT"]
        direction TB
        Harness["Local agent harness<br/>Claude · Codex · OpenCode · Pi"]:::agent
        LocalCLI["contextctl"]:::control
        Local["Local context<br/>~/.contexts"]:::local
        SyncService["Context Service API"]:::service
        SyncPVC["PVC"]:::storage
        S3["S3-compatible storage"]:::storage

        Harness -->|capture| LocalCLI
        LocalCLI --> Local
        Local -.->|sync or backup| SyncService
        SyncService --> SyncPVC
        Local -.->|sync or backup| S3
    end

    subgraph ClusterMode["KUBERNETES"]
        direction TB
        RemoteCLI["contextctl"]:::control
        Service["Context Service API"]:::service
        PVC["PVC"]:::storage
        Sandboxes["Runtime sandboxes"]:::agent

        RemoteCLI --> Service
        Service --> PVC
        Sandboxes -->|mount| PVC
    end

    LocalMode ~~~ ClusterMode

    classDef agent fill:#dbeafe,stroke:#2563eb,color:#172554
    classDef control fill:#ede9fe,stroke:#7c3aed,color:#2e1065
    classDef local fill:#dcfce7,stroke:#16a34a,color:#052e16
    classDef service fill:#fef3c7,stroke:#d97706,color:#451a03
    classDef storage fill:#cffafe,stroke:#0891b2,color:#083344
    style LocalMode fill:#f8fafc,stroke:#cbd5e1
    style ClusterMode fill:#f8fafc,stroke:#cbd5e1
Loading

What it provides

  • Automatic capture and restore of native agent-harness state
  • On-demand sync and continuous backup between local context, PVCs, and S3
  • Content-addressed revisions with checksums and provenance
  • Snapshots, writable clones, safe restore, and retention
  • Derived long-term memory, searchable knowledge, and immutable artifacts
  • Shared or isolated PVC-backed workspaces that any runtime can mount
  • A concise graph of sources, derivatives, consumers, and storage copies

Status: early prototype. The API is not stable.

Install

curl -fsSL https://raw.githubusercontent.com/rossoctl/context-service/main/install.sh | sh

Capture & Sync

Capture a local Claude session—no service or Kubernetes required:

mkdir -p /tmp/context-demo && cd /tmp/context-demo
contextctl ctx create demo --type state --backend filesystem
contextctl ctx attach demo --harness claude
claude

Tell Claude Remember that this project's codename is Juniper, then exit. The session is captured automatically.

With a remote Context Service configured, sync it to a PVC:

contextctl ctx create cloud-demo --type state
contextctl ctx sync push demo --remote-name cloud-demo

Continuous Backup

Keep later sessions backed up automatically while you work:

contextctl ctx backup start demo --to pvc://context-service/cloud-demo
claude --continue
contextctl ctx graph

See the complete local-to-PVC demo for pull, restore, and cleanup.

Documentation

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages