AI Worker worker.md

magic-context

Unbounded context. Memory that manages itself. One session, for life. The hippocampus for coding agents, part of CortexKit.

Agent framework 1,585 stars TypeScript MIT Worker-compatible

Source#

Tags#

agent-frameworkagent-memoryaiai-agentsai-contextai-memory

Integration notes#

Framework-level abstraction; derive bounded worker contracts from concrete tasks and APIs in docs/examples.

worker.md example#

Starter worker.md contract mapped from this registry entry. Copy this file and adapt schemas, constraints, and statuses for your task.

---
id: magic-context-repo-derived-worker
name: magic-context Repo-Derived Worker
version: 1.0.0
source_registry_url: https://worker.md/registry/magic-context/
source_repository: https://github.com/cortexkit/magic-context
repository_default_branch: master
repository_language: TypeScript
repository_license: MIT
repository_updated_at: 2026-08-02
worker_mode: agent-orchestration-worker
derivation_method: github_repository_metadata_plus_raw_readme
derivation_confidence: 0.9
derived_on: 2026-08-02
tags:
  - agent-framework
  - agent-memory
  - ai
  - ai-agents
  - ai-context
  - ai-memory
---

# magic-context Repo-Derived Worker

## Repo-derived summary
- Registry summary: Unbounded context. Memory that manages itself. One session, for life. The hippocampus for coding agents, part of CortexKit.
- Repository description: Unbounded context. Memory that manages itself. One session, for life. The hippocampus for coding agents, part of CortexKit.
- Stars (snapshot): 1,585
- Primary language: TypeScript
- Worker mode classification: agent-orchestration-worker

## Extracted from
- https://github.com/cortexkit/magic-context
- https://github.com/cortexkit/magic-context/blob/master/README.md
- https://docs.cortexkit.io/magic-context/reference/configuration/

## Evidence notes (from repository text)
- README summary paragraph: English | 简体中文 | 繁體中文 | 한국어 | Deutsch | Español | Français | Italiano | Dansk | 日本語 | Polski | Русский | Bosanski | العربية | Norsk | Português (Brasil) | ไทย | Türkçe | Українська | বাংলা | Ελληνικά | Tiếng Việt
- Unbounded context. Memory that manages itself. One session, for life.
- The hippocampus for coding agents, part of CortexKit.
- You don't hire a developer for one task and fire them when they ship. Stop doing it to your agent.
- - **Capture.** As the historian compresses your history, it lifts the durable knowledge (decisions, constraints, conventions) into project memory. You get a memory system for free, from work you are already doing.
- - **Consolidate.** Overnight, dreamer agents do what sleep does for you: verify memories against the codebase, curate duplicates and stale entries, and promote what recurs.

## Installation hints found in README
- No explicit package installation command detected in README text.

## worker.md contract (derived starter)
Purpose: Execute one orchestrated agent task as a bounded worker step.

### Input schema
```json
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "run_id",
    "task",
    "context"
  ],
  "properties": {
    "run_id": {
      "type": "string"
    },
    "task": {
      "type": "string"
    },
    "context": {
      "type": "object"
    }
  }
}
```

### Output schema
```json
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "run_id",
    "status",
    "result"
  ],
  "properties": {
    "run_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "ok",
        "retryable_error",
        "invalid_request",
        "invalid_output"
      ]
    },
    "result": {
      "type": "object"
    }
  }
}
```

### Constraints
- timeout_seconds: 30
- max_attempts: 2
- idempotency_key: run_id
- status_enum: [ok, retryable_error, invalid_request, invalid_output]
- notes: adapt to concrete APIs/classes documented in this repository before production use

## How this should be used
1. Treat this file as a repo-derived starter profile, not a claim of an official repository API contract.
2. Replace schemas with exact interfaces from code/docs you adopt.
3. Keep execution bounded and auditable using worker protocol constraints.

How to use#

  • Save this as a worker spec file (for example: magic-context-my-task.worker.md).
  • Replace the input/output schemas and purpose with your real bounded task.
  • Enforce schema validation + timeout + retry policy in your runtime before production use.

Citation#

Reference URL: https://worker.md/registry/magic-context/

Source URL: https://github.com/cortexkit/magic-context