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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dk_agent-1.0.0.tar.gz.
File metadata
- Download URL: dk_agent-1.0.0.tar.gz
- Upload date:
- Size: 126.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abc4554ce9f34892afb880cd5243dbaf5d742bb661417cbf81e572d722320424
|
|
| MD5 |
40058c47a40f0c899d83eba86b75d718
|
|
| BLAKE2b-256 |
4f89bc4046e6b0fe41732f26bc65b1ca52d0eebd97884090c88f12095ec62478
|
File details
Details for the file dk_agent-1.0.0-py3-none-any.whl.
File metadata
- Download URL: dk_agent-1.0.0-py3-none-any.whl
- Upload date:
- Size: 114.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8fbc8971cbbde8f499964d6e15707ab0adaf9623808eb356deeaee734c9b99c
|
|
| MD5 |
381ec09c838b3dd5f9140f24a770831b
|
|
| BLAKE2b-256 |
ff26283ca4da75e9a0dd62cf0800ef1af9a6386d15b9cb4abb63321ad4c3389b
|