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.
TypeScript build targets npm next candidate. Local release gates are documented; public npm release remains a release-owner action. Scope: local execution, providers, transcripts, AgentHub SDK.
Product boundary
TokenDanceCode owns local coding-agent execution and SDK delivery. AgentHub owns collaboration workbench and product orchestration.
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
TokenDance Gateway, OpenAI-compatible, Anthropic-compatible, and MockProvider.
Release gates
Candidate builds pass verify / pack checks before manual release.
Documentation
Install, configuration, providers, permissions, AgentHub SDK, and release gates.
- ArchitectureModule responsibilities of @tokendance/code-core, code-sdk, code-cli, and the private agenthub-example integration.
- CLI Referencetokendance CLI, run, doctor, config, resume, quality, and transcript.
- OverviewTokenDanceCode positioning, usable capabilities, and product boundary.
- Roadmap and StatusNext npm candidate, usable modules, early modules, and product scope.
- AgentHub SDKAgentHub integrates with the local runtime through @tokendance/code-sdk.
- ContributingDevelopment setup, tests, and PR workflow for TokenDanceCode contributors.
- Permissions and SafetyPermission modes, approval bridge, PowerShell risk checks, and secret boundaries.
- QuickstartInstall, verify, and start the TokenDanceCode CLI from source.
- InstallationNode, pnpm, Git, PowerShell, and command requirements.
- OIDC HelperResponsibilities and non-responsibilities of the TokenDanceID Authorization Code + PKCE helper.
- TroubleshootingInstall, model keys, Gateway, typecheck, Vitest, and pack smoke.
- WorkflowsLocal CLI workflows and AgentHub SDK workflows.
- ConfigurationEnvironment variables, Gateway preset, and project .env boundaries.
- ProvidersOpenAI Responses, OpenAI Chat Completions / Gateway, and Anthropic-compatible Messages.