TokenDanceCode
CLI · SDK · local runtime

TokenDanceCode Local Coding Agent

Run coding tasks on the local machine. The CLI executes the work, and the SDK feeds events, approvals, and provider state into AgentHub.

TS monorepo

Current Source

This site tracks the TypeScript monorepo candidate source: packages/core, packages/sdk, packages/cli, and packages/agenthub-example.

Node.js 20.18+, pnpm 10+, and Windows PowerShell are the primary validation targets.doctor.agentHub.ready summarizes Hub/Edge startup checks; warnings show setup gaps, failures block startup.Gateway model calls use TokenDance API keys; TokenDanceID/OIDC tokens belong only to identity/session flows.Project-root .env is not read by default; inject credentials through SDK env, a controlled shell, or user-global ~/.tokendance/.env.

Local execution

tokendance run executes inside the local workspace and keeps transcripts, tool calls, and quality-check records.

AgentHub SDK

The SDK sends run streams, approval requests, provider state, and session lifecycle events to AgentHub.

Provider access

Supports TokenDance Gateway, OpenAI-compatible Chat Completions, OpenAI Responses, Anthropic-compatible Messages, and MockProvider.

Release gates

Candidate builds pass pnpm verify, pnpm pack:check, pnpm pack:smoke, and pnpm release:next:check before manual release.

AgentHub SDK

AgentHub integrates with the local runtime through @tokendance/code-sdk.

Architecture

Module responsibilities of @tokendance/code-core, code-sdk, code-cli, and the private agenthub-example integration.

CLI Reference

tokendance CLI, run, doctor, config, resume, quality, and transcript.

Configuration

Environment variables, Gateway preset, and project .env boundaries.

Contributing

Development setup, tests, and PR workflow for TokenDanceCode contributors.

Installation

Node, pnpm, Git, PowerShell, and command requirements.

OIDC Helper

Responsibilities and non-responsibilities of the TokenDanceID Authorization Code + PKCE helper.

Overview

TokenDanceCode positioning, usable capabilities, and product boundary.

Status

The TypeScript build targets npm next candidate 0.2.0-ts.0. Local release gates are documented, and public npm release remains a release-owner action. The current product scope covers local execution, provider adapters, transcripts, and the AgentHub SDK.

Product Boundary

TokenDanceCode owns local coding-agent execution and SDK delivery. AgentHub owns team collaboration, product orchestration, multi-agent workbench flows, and UI state.