AI Worker worker.md

Codewhale

Open-source Rust agent engine and terminal client for Codewhale, with provider choice, tools, approvals and receipts.

Tool registry 41,081 stars Rust MIT Worker-compatible

Source#

Tags#

agent-orchestrationai-agentclicodewhalecoding-agentdeveloper-tools

Integration notes#

Repository is focused on tool/server interoperability; wrap in bounded worker contracts for production use.

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: codewhale-repo-derived-worker
name: Codewhale Repo-Derived Worker
version: 1.0.0
source_registry_url: https://worker.md/registry/codewhale/
source_repository: https://github.com/codewhale-hq/Codewhale
repository_default_branch: main
repository_language: Rust
repository_license: MIT
repository_updated_at: 2026-10-11
worker_mode: agent-orchestration-worker
derivation_method: github_repository_metadata_plus_raw_readme
derivation_confidence: 0.95
derived_on: 2026-10-11
tags:
  - agent-orchestration
  - ai-agent
  - cli
  - codewhale
  - coding-agent
  - developer-tools
---

# Codewhale Repo-Derived Worker

## Repo-derived summary
- Registry summary: Open-source Rust agent engine and terminal client for Codewhale, with provider choice, tools, approvals and receipts.
- Repository description: Open-source Rust agent engine and terminal client for Codewhale, with provider choice, tools, approvals and receipts.
- Stars (snapshot): 41,081
- Primary language: Rust
- Worker mode classification: agent-orchestration-worker

## Extracted from
- https://github.com/codewhale-hq/Codewhale
- https://github.com/codewhale-hq/Codewhale/blob/main/README.md
- https://github.com/codewhale-hq/CodeWhale/actions/workflows/ci.yml/badge.svg
- https://img.shields.io/crates/v/codewhale-cli?label=crates.io
- https://img.shields.io/npm/v/codewhale?label=npm

## Evidence notes (from repository text)
- README summary paragraph: Codewhale reads your project, edits files, runs commands, and checks its own work — in your terminal, with a hosted or local model you choose.
- **The open-source coding agent that works with any model.**
- https://github.com/codewhale-hq/CodeWhale/actions/workflows/ci.yml/badge.svg](https://github.com/codewhale-hq/CodeWhale/actions/workflows/ci.yml)
- sessions, tools, and permissions behave the same everywhere.
- | `codewhale exec "…"` | One headless turn from a script or CI; `--auto` allows file and shell tools, `--output-format stream-json` streams JSON |
- and Operate make changes. Approval postures decide when a tool call needs your

## Installation hints found in README
- `npm install -g codewhale # wraps the same release binaries`

## 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: codewhale-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/codewhale/

Source URL: https://github.com/codewhale-hq/Codewhale