DK Agent OS (Release 1.0)
Autonomous Developer Runtime & Commercial SDK Platform
DK Agent OS transforms high-level product goals into verified code, test suites, and pull requests with built-in live preview workspaces, cryptographic artifact delivery, and zero-bypass human approval gates.
🚀 Quickstart: CLI (dk-agent)
Installation (Python 3.10+)
pip install dk-agent
Basic Usage
# 1. Build an application from a pure natural language goal
dk-agent build "Tạo hệ thống quản lý học sinh và thống kê điểm"
# 2. Check the real-time status and logs
dk-agent status <job_id>
dk-agent logs <job_id>
# 3. View the artifact manifest with SHA-256 integrity
dk-agent artifact <job_id>
# 4. Export the verified clean ZIP archive
dk-agent export <job_id> -o student_manager.zip
# 5. Approve the candidate code mutation (Human-in-the-Loop)
dk-agent approve <job_id> --approver "lead_architect"
# 6. Open a Pull Request with full provenance evidence
dk-agent pr <job_id> --target-branch main
Environment Variables
Configure your credentials once:
export DK_AGENT_API_KEY="dk_sec_your_secret_api_key"
export DK_AGENT_TENANT_ID="your_company_tenant"
export DK_AGENT_BASE_URL="https://dkchat.xyz"
📦 Quickstart: TypeScript SDK (@dk-agent/sdk)
Installation (Node.js 18+)
npm install @dk-agent/sdk
Programmatic Usage
import { DKAgentSDK } from '@dk-agent/sdk';
const sdk = new DKAgentSDK({
baseUrl: 'https://dkchat.xyz',
apiKey: process.env.DK_AGENT_API_KEY,
tenantId: 'enterprise_corp'
});
// 1. Trigger autonomous build
const run = await sdk.build('Tạo microservice báo cáo tài chính');
console.log(`Job created: ${run.jobId}`);
// 2. Access Candidate & Artifact
const candidate = await run.getCandidate();
console.log(`Candidate Branch: ${candidate.candidateBranch}`);
// 3. Human Approval Gate
await candidate.approve('chief_technology_officer');
// 4. Create Pull Request
const pr = await candidate.createPR('main', 'feat: financial reporting service');
console.log(`Pull Request URL: ${pr.pr_url}`);
🐍 Quickstart: Python SDK
from agent_os.sdk import DKAgentClient
client = DKAgentClient(
api_key="dk_sec_your_secret_api_key",
tenant_id="enterprise_corp",
base_url="https://dkchat.xyz"
)
# 1. Trigger build
run = client.build(goal="Tạo payment gateway Stripe webhook")
# 2. Inspect candidate & approve
candidate = run.candidate
candidate.approve(approver_id="lead_developer")
# 3. Export verified ZIP archive
zip_bytes = candidate.export_zip(output_path="stripe_gateway.zip")
# 4. Create Git PR
pr_result = candidate.create_pr(target_branch="main", title="feat: stripe webhook integration")
print(f"PR opened: {pr_result['pr_url']}")
🛡️ Architecture & Security Model
DK AGENT OS CORE
🔒 FROZEN
│
┌─────────────────┴─────────────────┐
│ │
[🌐 Web Chat UI] [💻 dk-agent CLI] [📦 @dk-agent/sdk]
(Realtime SSE Drawer) (POSIX Subcommands) (Python & TS SDKs)
│ │ │
└─────────────────────┼─────────────────────┘
▼
AGENT RUN GATEWAY
(POST /api/agent/runs)
│
▼
CANDIDATE
┌───────────┴───────────┐
▼ ▼
LIVE PREVIEW ARTIFACT
│ │
└───────────┬───────────┘
▼
HUMAN APPROVAL
│
▼
GIT PULL REQUEST
│
▼
HUMAN MERGE
- Zero-Bypass Human Gate: DK Agent OS creates candidates and PRs, but has 0 merge authority. Merging to production branches requires human developer approval.
- Strict Tenant Boundary: Cryptographic multi-tenant isolation ensures tenants cannot view, execute, or inspect each other's workspaces or runs.
- Secret Leakage Protection: Master API keys and credentials are never emitted into generated code, candidate branches, artifacts, or PR bodies.
📄 Documentation
For detailed guides, please refer to docs/GETTING_STARTED.md.
Metadata
Release files for dk-agent 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dk_agent-1.0.0.tar.gz | 126.6 kB | Without provenance | Details for dk_agent-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dk_agent-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for dk_agent-1.0.0-py3-none-any.whl |
Total release size: 241.1 kB
Release files / dk_agent-1.0.0.tar.gz
| Download URL | dk_agent-1.0.0.tar.gz |
|---|---|
| Size | 126.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
abc4554ce9f34892afb880cd5243dbaf5d742bb661417cbf81e572d722320424
|
|
BLAKE2b-256 checksum How to use checksums |
4f89bc4046e6b0fe41732f26bc65b1ca52d0eebd97884090c88f12095ec62478
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.8
|
Release files / dk_agent-1.0.0-py3-none-any.whl
| Download URL | dk_agent-1.0.0-py3-none-any.whl |
|---|---|
| Size | 114.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8fbc8971cbbde8f499964d6e15707ab0adaf9623808eb356deeaee734c9b99c
|
|
BLAKE2b-256 checksum How to use checksums |
ff26283ca4da75e9a0dd62cf0800ef1af9a6386d15b9cb4abb63321ad4c3389b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.8
|
Security for dk-agent 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.