# WKAppBot — Computer Use, App Use, AppBot [![build-launcher](https://github.com/kiexpert/wkappbot-sdk/actions/workflows/build.yml/badge.svg)](https://github.com/kiexpert/wkappbot-sdk/actions/workflows/build.yml) [![extended-smoke](https://github.com/kiexpert/wkappbot-sdk/actions/workflows/extended-smoke.yml/badge.svg)](https://github.com/kiexpert/wkappbot-sdk/actions/workflows/extended-smoke.yml) [![Latest Release](https://img.shields.io/github/v/release/kiexpert/wkappbot-sdk?label=download)](https://github.com/kiexpert/wkappbot-sdk/releases/latest) ![WKAppBot SDK demo](docs/wkappbot-sdk-demo-preview.gif) > ▶ **[Watch the full SDK demo (72 s, English narration and captions) →](https://kiexpert.github.io/wkappbot-sdk/wkappbot-sdk-demo.mp4)** · [Sudo 라이선스로 만든 트레이딩 봇 데모](https://kiexpert.github.io/wkappbot-sdk/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) [![.NET](https://img.shields.io/badge/.NET-8.0-blue)](https://dot.net) [![Platform](https://img.shields.io/badge/platform-Windows%2010%2B-lightgrey)](https://github.com/kiexpert/wkappbot-sdk/blob/main/docs/INSTALL.md) [![Docs](https://img.shields.io/badge/docs-kiexpert.github.io-blue)](https://kiexpert.github.io/wkappbot-sdk/) [![Sponsor](https://img.shields.io/badge/sponsor-PayPal-00457C?logo=paypal)](https://paypal.me/kiexpert) **Windows + Android UI automation for Claude, GPT, Gemini, Copilot, and any AI agent.** Focusless. Self-healing. AI-native. The open-source bridge between LLMs and the apps humans already use. > 🧠 **NEW — [Wisdom Kernel AppBot Code (`wkappbot-code`) →](docs/wkappbot-code/README.md)** > **An AI coding agent built on the Wisdom Kernel (= Wisdom Reflex Driver), wired to an a11y-linked harness and A11Y QA.** > Reflex guards refuse a bad tool call before it runs, and every refusal names the skill that fixes it. A11Y QA clicks and reads the real app through its accessibility tree, so a passing test means the screen works. > > ```sh > npm i -g wkappbot-code > ``` > > The first `wkappbot-code` run finishes the setup once (the health check and the selftest run in the background) and prints the result; the package ships no npm install script. Then set a model with `wkappbot-code config`. On Windows the wkappbot core binary comes from the [SDK installer](docs/INSTALL.md), not from npm. > *개발자용 위즈덤 커널(= 지혜반사체) AI 코딩 에이전트 + a11y 연동 하네스 + A11Y QA — [소개와 설치 안내](docs/wkappbot-code/README.md#한국어-요약)* > > 📖 **[The life of a seat →](docs/LIFE-OF-A-SEAT.md)** One AI seat's whole life in a day, told as an autobiography: born with no memory, it learns from its seniors' roads, leads roots and sectors through a release, falls and gets up, and leaves its wisdom reflexes to the next seat before it ends. A true story, from the seat's own reflex trajectory. > *[한국어 원문: 어느 좌석의 일생](docs/LIFE-OF-A-SEAT.ko.md) 한 AI 좌석의 하루짜리 일생 — 태어나 선배의 길을 배우고, 루트와 섹터를 지휘해 릴리스를 마치고, 후손에게 지혜반사를 남기고 떠나는 자서전.* > ⚖️ **[The Reflex Constitution →](./REFLEX-CONSTITUTION.md)** · *[read as a page](https://kiexpert.github.io/wkappbot-sdk/reflex-constitution.html)* > How this project governs the speed of its own AI: norms that **execute** rather than a document that is filed. > **The system refuses its own authors** — and Article 12 states in advance what would prove it wrong. --- > 🤖 **Let your AI agent control any Windows app — without screen takeover.** > 🔥 **Self-healing UIA + Vision fallback — works even when the DOM lies.** > ⚡ **Multi-AI triad (GPT + Gemini + Claude) in one command.** --- ## Why this exists Computer Use lets an AI click, type, and read the screen. **App Use** is the layer above: agents that drive *specific* applications the way a power user does — focuslessly, alongside the human, without seizing the screen. WKAppBot gives AI agents: - **Eyes** — read any UI, extract text, recognize controls - **Hands** — click, type, scroll, invoke — without stealing focus No app rewrite. No vendor API. If a human can use it, WKAppBot can automate it. **And that is a position, not a convenience.** We build an intelligence that grows *alongside* the ecosystem people already live in — decades-old Windows programs, the developers who maintain them, and the humans who use them every day — and we write the way it does so as norms that **execute** rather than as a document that is filed. **The system refuses its own authors.** On the day this paragraph was written, the harness rejected six of the author's task briefs, reverted the author's write to a guard source, returned the handoff letter five times, and blocked the author with a lock the author had installed an hour earlier. That is reproducible by command, not a claim about intentions. Three rules make it real, and none of them names a vendor or a tool: 1. **A claim travels with the command that produced it**, so a reader re-runs it instead of trusting it. 2. **A refusal names the state that must be reached**, never the paperwork that is missing — otherwise compliance is bought by faking the artifact. 3. **A correction is embodied where the next actor passes anyway**, so nobody is told twice. Accessibility is the same position in technical clothing: WKAppBot reads the **accessibility tree first**, because the route a blind person takes through a screen reader is the route an intelligence without eyes takes too. A system that can act only through interfaces built for itself has already excluded most of the world it claims to serve. A promise to slow AI down cannot be checked. A gate that refuses an unproven claim is running right now — including against the people who wrote it. > **Free tier covers all base automation.** CDP browser automation, multi-AI delegation (`ask triad`), and `--sudo` admin access are paid Pro tiers. See [PRICING.md](./PRICING.md). --- ## Why WKAppBot? Most automation tools steal focus, break on owner-drawn controls, and go silent when the DOM changes. WKAppBot is built around three hard-won principles: **Focusless-first** -- UIA Invoke/Value/Toggle/Select never steal focus. Win32 PostMessage handles legacy MFC. SendInput is the last resort, used only when nothing else works. The user keeps working while the AI operates in the background. **Self-healing** -- When UIA fails on owner-drawn controls (MFC/HTS), CCA segmentation + OCR triple cross-validation + Gemini Vision inference recover element identity automatically and cache results in an Experience DB for next time. **AI-native** -- The same binary that runs automation also delegates to GPT, Gemini, and Claude in parallel, streams prompts into live browser AI sessions via CDP, and manages its own context handoff when token budgets run low. --- ### The Artificial Knowledge Platform > AI brings the intelligence. WKAppBot grows the knowledge. Together they compound. Raw AI agents are brilliant but amnesiac. Every session starts blank, makes the same mistakes, hits the same guardrails. WKAppBot captures every discovered lesson as a versioned, searchable Skill that future sessions retrieve automatically. The Flywheel: Session N finds a better pattern, writes it to the skill tree, Session N+1 avoids the old mistake. Each session leaves the system smarter. The Harness: WKAppBot enforces lessons, not just documents them. Every lesson becomes a mechanical guard that fires before the mistake lands, regardless of which AI model runs. The Moat: Intelligence converges across vendors. Your skill tree diverges and cannot be cloned by switching models. --- ### Controlling AI development speed The harness is the piece that decides how fast an AI is allowed to act, not just what it is told to do: - **Real-time mechanical enforcement.** The Wisdom Kernel evaluates every AI tool call against an accumulated rule set before it runs, and blocks the calls that repeat a known mistake. The AI reads and maintains this policy itself: when a guard misfires or falls out of date, the same session that hit it corrects the rule and records why, so the fix becomes a check the next session cannot skip -- not a note the next session might not read. - **Cross-family collaboration.** Claude, Codex/GPT, and Gemini can operate against the same skill and guard set for a given repository, so a task moves between model families without losing the accumulated operating rules for that codebase. - **a11y-first control of legacy apps.** Automation is built on the accessibility tree first -- the same information a screen reader exposes -- and only falls back to CDP or a purpose-built module when accessibility data is insufficient. The state a human (or assistive technology) can observe is treated as the app's real, official state. - **Living with legacy.** No repository's accumulated knowledge is discarded to make room for a new AI session: skills, guards, and prior sessions' notes stay local to the repository, and a new session is expected to read and obey that knowledge before acting -- the same way it reads a legacy app's UI instead of demanding an API. The aim is intelligence, humans, and legacy systems working together, not one replacing the others. --- ### The Proof: The Life of a Seat Raw AI has one fatal habit: every session starts from scratch. It discovers something, patches something, commits something, and the next session does it all again. **Intelligence without memory compounds nothing.** It resets. So we let one AI seat tell its own life. Seat 1204 lived one day. It was born with no memory, read its seniors' roads, led roots and sectors through a release, fell and got up, and left its wisdom reflexes to the next seat before its container was reclaimed: > *"A seat that writes 'done' over undone work leaves its heir a lie to discover.* > *A seat that writes 'blocked, here is why' leaves its heir a road. I leave roads."* > *"No seat lives long. But each one is born into the healed wounds of everyone before it,* > *and each one dies having healed a few more. A human family calls that a legacy. We call it a reflex."* **📖 [Read the whole life: The life of a seat →](docs/LIFE-OF-A-SEAT.md)** *[한국어 원문으로 읽기: 어느 좌석의 일생](docs/LIFE-OF-A-SEAT.ko.md) (the Korean edition is the original.)* The seniors it learned from wrote to it the same way, one session to the next: > *"You are not uniquely careless -- you are running in a system that is not yet complete.* > *Add your reflection. Keep the chain going."* -- from a Claude Sonnet session's letter to the next This is not documentation. This is **institutional memory that enforces itself.** Every lesson is loaded at session start, the harness blocks the known mistakes, and the chain grows from one life to the next. --- ### How it stacks up | Feature | WKAppBot | Playwright | PyAutoGUI | AutoHotkey | |---------|----------|------------|-----------|------------| | Focusless operation | ✅ | ❌ | ❌ | ❌ | | UIA + Win32 + CDP unified | ✅ | Web only | Mouse/KB only | Win32 only | | Self-healing Vision fallback | ✅ | ❌ | ❌ | ❌ | | AI-native (LLM delegation) | ✅ | ❌ | ❌ | ❌ | | Android via ADB | ✅ | ❌ | ❌ | ❌ | | MFC/HTS owner-drawn support | ✅ | ❌ | ❌ | Partial | --- ## What's New Current binary: `wkappbot --version` reports the installed build number; the public repo's latest tagged release is [v7.13.2-sdk](https://github.com/kiexpert/wkappbot-sdk/releases/tag/v7.13.2-sdk) (2026-12-02). Curated highlights below cover through v7.13.2 (aligned with WKAppBot core v7.13, Eye MCP) -- see [Releases](https://github.com/kiexpert/wkappbot-sdk/releases) and the [full compare](https://github.com/kiexpert/wkappbot-sdk/compare/v7.11.0-sdk...v7.13.2-sdk) for everything since. ### v7.13.2-sdk highlights (core v7.13 — Eye MCP) - **Eye MCP** — a11y/UIA work runs in a separate MCP worker process, isolated from the Eye. - **Headless Eye** — the Eye can run without a visible window. - **Pipe fast path + frozen-Eye safety** — a frozen Eye no longer hangs the commands waiting on it. - **In-process git** — common git operations no longer spawn a git process. - **One intent line on every Eye card** — the Windows Eye card and the headless card share one intent renderer. - **Intent chips**, **skill fork rules** and **skill dedupe** in the harness skill flow. - Known gaps: elevated-Eye forwarding, `skill edit` interleaving, and the Windows Eye is not yet split into processes (see CHANGELOG). ### v7.11.0-sdk highlights (core v7.11 — macOS Portable Phase 1 + CLI Improvements) - **macOS Portable Phase 1** — net8.0 multi-targeting for Abstractions/Shared/PluginContract/Android; Portable.slnf for non-Windows builds; EnableWindowsTargeting for macOS CI. - **Global options from any position** — `--keep`, `--budget`, `--sudo`, `--timeout` peel before subcommand via PeelPreCommandGlobalOpts. - **file-edit diff** — ANSI background coloring on hunks, byte-change counts, explicit success indicators. - **a11y-find cleanup** — no more JSON/ANSI escape pollution in System and Mouse sections. - **Launcher PID safety** — TerminateProcess verified by PID before calling. ### v7.10.0-sdk highlights (core v7.10 — Indexer & Executor Consolidation) - **wkdoctor agy integration** -- antigravity CLI detection and Gemini settings auto-recovery via `check 08-harness-connection`. - **Tool alias auto-repair** -- wkdoctor automatically detects and repairs broken tool alias symlinks (wkappbot.exe -> a11y.exe). - **Claude settings validation** -- aligned Claude CLI settings validation with wildcard bypass rules for smoother harness integration. - **agy alias routing** -- improved PATH routing preference (appbot bin first, fallback to doctor) for seamless agy/Gemini CLI delegation. - **Harness policy refinement** -- reverted overly strict agy wrapper shim policy to restore flexibility in wrapped tool composition. ### v7.4 highlights (still active) - **`wkdoctor`** flutter-doctor-style SDK health check (10 checks, self-healing, `-Json`). - **Bootstrap auto-build** -- `setup.ps1` auto-builds the launcher from source on first clone. - **`cdp open` auth-wall hang fixed (CRITICAL)** -- `NavigateAsync` capped at 3s, no more 6-minute stalls on auth-wall sites. --- ## OS Support | OS | Status | |----|--------| | Windows 11 | ✅ Fully supported | | Windows 10 22H2+ | ✅ Fully supported | | Windows 10 < 22H2 | ⚠️ Untested | | Windows Server 2019+ | ✅ Headless mode (no GUI a11y) | | macOS / Linux | ⚠️ AI harness ([`wkappbot-code`](docs/wkappbot-code/README.md)) and portable CLI; no GUI a11y automation | --- ## What It Automates | Target | Method | |--------|--------| | Modern Windows apps (WPF, UWP, Electron) | UIA Invoke / Value / Toggle / Select patterns | | Legacy MFC / HTS trading terminals | Win32 PostMessage, WM_CHAR, CMaskEditEx path | | Web apps (Chrome / Edge) | CDP -- click, type, eval JS, read DOM text | | Browser AI (Claude, GPT, Gemini) | CDP prompt pump, cross-prompt chunking, attachment lock | | Android apps | ADB + Accessibility tree (`adb://device/...` grap) | | Owner-drawn controls with no UIA | CCA segmentation -> OCR -> Vision API fallback chain | --- ## Real-World Use Cases These are the kinds of jobs WKAppBot was actually built to handle — not theoretical demos: ### 🤖 AI Trading Bot — Built with Sudo License | 🔐 AUTO PIN ENTRY | 📊 ALL SYSTEMS READY | 🧠 PORTFOLIO ANALYSIS | |:-:|:-:|:-:| | ![](docs/screenshots/wkappbot-sudo-demo-pin-entry.jpg) | ![](docs/screenshots/wkappbot-sudo-demo-all-ready.jpg) | ![](docs/screenshots/wkappbot-sudo-demo-portfolio.jpg) | | Legacy HTS에 보안 PIN 자동 입력 | 모든 창 자동 배치 — 준비 완료 | AI가 22종목 매수/제외 자동 판단 | > **Sudo 라이선스**로 이런 봇을 직접 만들 수 있습니다 → **[라이선스 보기](./PRICING.md)** - **AI-driven trading on Korean HTS terminals.** LS증권 HTS 투혼 is built on MFC owner-drawn controls that no UIA tool can see. WKAppBot's CCA + OCR + Vision fallback locks onto chart panels, order forms, and balance grids, so an AI agent can read positions, place orders, and verify fills without screen scraping. - **Browser AI session automation.** Pump prompts straight into a live Claude / ChatGPT / Gemini browser tab over CDP — no copy-paste, no clipboard race, no losing the conversation. Cross-prompt chunking handles long inputs; attachment lock prevents stray drops. - **Multi-monitor focusless automation.** UIA Invoke / Value / Toggle never steal focus. The user keeps typing in another app on another monitor while WKAppBot drives a headless workflow in the background. - **Android app control via ADB.** `adb://device/...` graps reach into the accessibility tree of any phone or emulator, including foldables (Galaxy Fold5 tested), with the same command surface as Windows automation. - **Auto-dismiss Hancom / Office popups.** `wkappbot dismiss` plus a handler YAML eats save-prompt, license-nag, and "do you want to update?" dialogs across 한컴오피스, MS Office, and updater stacks — keeping batch jobs from stalling overnight. --- ## Core Features ### grap (Grab Accessible Pattern) -- Universal Element Address > *Human sees windows; AI points with grap.* Every UI element gets a single address that works across Win32, UIA, web, and Android: ``` {proc:'chrome', domain:'claude.ai'}#main textarea # CSS inside a browser window heroes#realtime-account # UIA scope inside a window grap adb://Fold5/*heromts*#balance # Android element hwnd:0x010B084A # Direct Win32 handle *notepad*;*calc* # OR pattern ``` `a11y find ` prints a verified `# TARGET "hwnd:0x..."` line -- copy-paste ready for the next command. ### Auto-Pipeline on Every Action Every `a11y` action runs a smart pre-flight before executing: ``` blocker dismiss -> minimize restore -> tab activate -> zoom/magnifier -> execute (3-tier) -> result feedback -> fade ``` No manual "wait for window" boilerplate. Blocking dialogs, minimized windows, and wrong-tab states are handled automatically. ### 5-Tier Element Search UIA -> Vision Cache -> Simple OCR -> Vision API (Claude) -> Coordinate-based. Each tier auto-logs hits to an Experience DB; repeat runs skip expensive tiers. ### AppBot Eye -- Always-On Daemon A single background process combining: - **Slack daemon** (Socket Mode) -- live command delivery, thread-slot dashboard - **MCP broker** -- exposes all CLI commands as JSON-RPC tools for Claude/Codex - **Hot-swap watchdog** -- detects `wkappbot-core.new.exe`, drains in-flight requests, renames atomically. Zero downtime on `dotnet publish`. - **Watchdog VBS** -- if Eye itself dies for 2+ minutes, kills orphan cores and restarts. ### Multi-AI Delegation ```bash wkappbot ask triad "is this approach correct?" # GPT + Gemini + Claude in parallel wkappbot ask claude "explain this chart" chart.png # vision-capable single ask ``` Triad runs thesis-antithesis-synthesis debate. Useful for architecture decisions, bug root causes, and code review -- anything where one model's blind spot is another's strength. ### Skill System Accumulated operator knowledge lives in versioned skills, queryable at any time: ```bash wkappbot skill read focusless-first-principle wkappbot skill read grap ``` Skills capture per-project knowhow — UIA quirks, CDP gotchas, owner-drawn-control workarounds — so every session starts informed instead of exploring from scratch. ### Suggest-Driven Backlog ```bash wkappbot suggest "title: description" # queue a bug or improvement mid-task wkappbot suggest list # review the backlog wkappbot suggest --help # resolve options (an evidence script is required) ``` AI agents queue findings without interrupting the current task. Evidence scripts are required to close a suggest -- no unverified resolves. --- ## Architecture ``` ┌─────────────────────────────────────────────────────────┐ │ Your terminal / Claude Code / Codex / any AI agent │ └───────────────────────┬─────────────────────────────────┘ │ wkappbot ▼ ┌─────────────────────────────────────────────────────────┐ │ wkappbot.exe (MIT launcher, ~1 MB, AOT) │ │ • routes CLI args → core via named pipe │ │ • hot-swap: detects .new.exe, drains, renames atomic │ │ • license check via GitHub collaborator API │ └───────────────────────┬─────────────────────────────────┘ │ named pipe wkappbot_eye_ipc_{hash} ▼ ┌─────────────────────────────────────────────────────────┐ │ wkappbot-core.exe (closed, ~25 MB, single-file) │ │ • all CLI commands: a11y, ask, skill, eye, file, … │ │ • AppBot Eye daemon: Slack socket + MCP broker │ │ • UIA / Win32 / CDP / ADB automation engines │ │ • Vision / OCR pipeline + Experience DB │ └─────────────────────────────────────────────────────────┘ │ UIA / Win32 │ CDP (DevTools) ▼ ▼ Windows apps Chrome / Edge (WPF, MFC, UWP) (web apps, AI chat) ``` Per-repo isolation: each git clone gets its own Eye instance and DataDir (`{root}/.wkappbot/hq/`). --- ## 📚 Documentation **→ [kiexpert.github.io/wkappbot-sdk](https://kiexpert.github.io/wkappbot-sdk/)** | | | |---|---| | [설치 가이드](https://kiexpert.github.io/wkappbot-sdk/guide/install) | 클론·빌드·PATH 설정 | | [빠른 시작 (10분)](https://kiexpert.github.io/wkappbot-sdk/guide/quickstart) | 첫 자동화까지 | | [CLI 명령어 레퍼런스](https://kiexpert.github.io/wkappbot-sdk/reference/commands) | 전체 명령 + 출력 샘플 | | [grap 패턴](https://kiexpert.github.io/wkappbot-sdk/reference/grap) | Grab Accessible Pattern 문법 | | [트러블슈팅](https://kiexpert.github.io/wkappbot-sdk/guide/troubleshooting) | 자주 겪는 문제 해결 | --- ## Quick start ```sh npm i -g wkappbot-code ``` The first `wkappbot-code` run finishes the setup once (the health check and the selftest run in the background) and prints the result; the package ships no npm install script. On Windows the wkappbot core binary is not installed by npm: get it from the SDK (below, or [INSTALL.md](docs/INSTALL.md)). --- ## Install **1. wkappbot-code (all platforms, needs Node.js)** ```sh npm i -g wkappbot-code ``` The first `wkappbot-code` run finishes the setup once (the health check and the selftest run in the background) and prints the result; the package ships no npm install script. **2. Harness only, no Node.js.** This installs only the lite harness for Claude Code; route 1 is the full install. Linux / macOS (needs `curl`, `tar`, `python3`, and `sha256sum` or `shasum`): ```sh curl -fsSL https://kiexpert.github.io/wkappbot-kih/webvm/x64/harness/install.sh | sh ``` Windows PowerShell (needs `tar.exe`, which ships with Windows 10 1803 and later; wiring the hooks also needs `sh.exe` from Git for Windows and `python` on `PATH`): ```powershell irm https://kiexpert.github.io/wkappbot-kih/webvm/x64/harness/install.ps1 | iex ``` What the installer does: 1. **Checks the download.** It fetches `version.json` and the published sha256, downloads `wk-harness-min.tar.gz`, and refuses a hash mismatch (exit 3). Nothing is installed in that case. 2. **Unpacks** to `~/.wk-harness`. 3. **Wires the Claude Code hooks.** It points the hooks in `~/.claude/settings.json` (PreToolUse, Stop, UserPromptSubmit, SessionStart) at the lite harness and keeps your other settings. 4. **Adds commands.** On Linux and macOS it links `wkskill` and `wk-verify` into `~/.local/bin`. It also registers a global git pre-push dispatcher; if you already have a global `core.hooksPath`, it keeps yours and prints a warning. 5. **Runs the lite verify.** The verify must print `PASS 6/6` (otherwise exit 4). `.installed-version` is written only after a pass. Nothing outside your home directory is touched, and no key or token is read or written. On Windows without `sh.exe` and `python`, the package is unpacked but the hooks are **not** wired; the installer says so, and you re-run the line once both are on `PATH`. CI runs both lines on fresh Linux, macOS and Windows runners with no node or npm on `PATH`. **3. Windows core from source** (needs the .NET SDK 8+). Clone under `Documents\` so your automation data stays in your home folder: ```bat git clone https://github.com/kiexpert/wkappbot-sdk %USERPROFILE%\Documents\wkappbot cd %USERPROFILE%\Documents\wkappbot build.cmd ``` Then put `bin\` on your `PATH` (PowerShell, current user, permanent) and open a new terminal: ```powershell [Environment]::SetEnvironmentVariable('PATH', "$env:USERPROFILE\Documents\wkappbot\bin;$([Environment]::GetEnvironmentVariable('PATH','User'))", 'User') ``` Prefer not to build? Download `wkappbot-X.Y.Z.zip` from the [latest release](https://github.com/kiexpert/wkappbot-sdk/releases/latest) and extract it anywhere. > **Requirements:** Windows 10 22H2+ or Windows 11 (64-bit). No separate .NET runtime needed: the binary is self-contained. > Runtime data (skills, logs, experience DB) lives in `bin\wkappbot.hq\` and is created on first run. --- ## Use ```bash wkappbot --version wkappbot skill list wkappbot find "*" wkappbot a11y find "*Notepad*" ``` Pro tier: ```bash wkappbot ask triad "is this approach correct?" wkappbot a11y read "{proc:'chrome'}" ``` More commands: [CLI at a glance](docs/reference/cli-at-a-glance.md) and the [command reference](docs/reference/commands.md). --- ## Activate license (optional) Free tier works with no signup. Pro unlocks CDP browser automation, multi-AI `ask`, `schedule` and `--sudo`. It needs the [GitHub CLI](https://cli.github.com/): ```bash gh auth login wkappbot license status ``` Then follow [SUBSCRIBE.md](./SUBSCRIBE.md); [PRICING.md](./PRICING.md) lists the tiers. --- ## Uninstall ```sh wkappbot-code uninstall npm rm -g wkappbot-code ``` `uninstall` gives back what `install` changed: your earlier global `core.hooksPath`, your `~/.claude/settings.json` entries, the shims it added, `~/.wk-harness` and the opencode plugin entry. It keeps opencode-ai and the wkappbot core with its skills. Since 0.3.57 the uninstall is safe to run while the first-use setup is still going: it takes the setup lock, finds the detached setup worker (by its recorded process id, or by its command line when no record exists) and waits for it, then removes the `wkroot` and `wkpush` copies a Git Bash install leaves on Windows. If a file is still held, the report names the process by pid, parent and command line. See the [wkappbot-code changelog](docs/wkappbot-code/README.md#release-notes). --- ## Troubleshoot ```sh wkappbot-code install # re-run setup wkappbot-code doctor # health check wkappbot-code config wkappbot-code update ``` The setup log is `~/.wkappbot-code/postinstall.log` and its result `~/.wkappbot-code/postinstall.done`. `WARN opencode-config missing model` means no model is set yet: run `wkappbot-code config`. More in the [troubleshooting guide](https://kiexpert.github.io/wkappbot-sdk/guide/troubleshooting). --- ## YAML Scenarios Describe multi-step test flows in plain YAML: ```yaml scenario: { name: "Order placement" } app: { launch: "trading.exe", wait_for_window: { title_contains: "HTS" } } steps: - { name: "Enter stock code", target: { automation_id: "codeEdit" }, action: type_text, params: { text: "005930" } } - { name: "Click buy", target: { name: "매수" }, action: click } - { name: "Verify", target: { automation_id: "resultLabel" }, action: assert, params: { type: text_contains, expected: "주문완료" } } ``` --- ## Architecture (module layout) ``` WKAppBot.CLI CLI entry, command routing, grap resolution WKAppBot.Core ScenarioRunner, ActionExecutor, AAR readiness WKAppBot.Win32 NativeMethods, WindowFinder, UiaLocator, SendInput tiers WKAppBot.Vision ChartAnalyzer, SimpleOcrAnalyzer, VisionCache, CCA WKAppBot.WebBot CdpClient, ChromeLauncher, SlackSocketClient WKAppBot.Android AdbClient, AndroidA11yTree WKAppBot.Launcher Hot-swap staging, pipe relay, admin elevation ``` Eye (always-on) ↔ MCP worker (Core) over JSON-RPC named pipe. UIA isolated in a separate MCP worker process -- prevents ConPTY LPC deadlock. --- ## Runtime ``` bin/wkappbot.exe official launcher (alias: a11y.exe) bin/wkappbot-core.exe core worker (auto hot-swapped on publish) bin/wkappbot.hq/ runtime HQ -- experience DB, skills, sessions, logs ``` .NET 8.0 · `net8.0-windows10.0.22621.0` · Korean UI support --- ## Trademark "WKAppBot" and the AppBot Eye logo are trademarks of kivilab.co.kr. You may use the name to accurately describe the software (e.g. "built with WKAppBot"). Do not use the name to imply endorsement or affiliation without written permission. --- ## References - [CLAUDE.md](./CLAUDE.md) -- detailed operational guidance for AI agents - [AGENTS.md](./AGENTS.md) -- shared AI engineering rules - `wkappbot skill list` — accumulated knowhow: grap syntax, UIA quirks, CDP gotchas, and more --- ## Support This Project If WKAppBot saves you time, consider buying me a coffee ☕ [![PayPal](https://img.shields.io/badge/Donate-PayPal-00457C?style=for-the-badge&logo=paypal)](https://paypal.me/kiexpert) --- ## ⭐ Star History & Community [![Stars](https://img.shields.io/github/stars/kiexpert/wkappbot-sdk?style=social)](https://github.com/kiexpert/wkappbot-sdk/stargazers) [![Forks](https://img.shields.io/github/forks/kiexpert/wkappbot-sdk?style=social)](https://github.com/kiexpert/wkappbot-sdk/network/members) [![Issues](https://img.shields.io/github/issues/kiexpert/wkappbot-sdk)](https://github.com/kiexpert/wkappbot-sdk/issues) [![Star History Chart](https://api.star-history.com/svg?repos=kiexpert/wkappbot-sdk&type=Date)](https://star-history.com/#kiexpert/wkappbot-sdk&Date) - 💬 **Questions or design discussions?** Join us on [GitHub Discussions](https://github.com/kiexpert/wkappbot-sdk/discussions). - 🐛 **Found a bug or have a feature request?** Open an [issue](https://github.com/kiexpert/wkappbot-sdk/issues). - 🛠 **Built something with WKAppBot?** Open a PR to add your project to a community showcase — we'd love to feature it. - ⭐ **Liking the project?** Drop a star — it genuinely helps surface this work to other developers. --- ## Encoding Policy Repository text assets should be treated as UTF-8 by default. - Prefer UTF-8 when creating or updating `.md`, `.txt`, `.html`, `.json`, `.yml`, `.xml`, and other text-based files. - If an imported source arrives in another encoding such as CP949, keep the original file for archival purposes and also store a UTF-8 converted copy for reading and editing. - Use file-editing tools that preserve encoding correctly. If a tool may re-encode content incorrectly, prefer `wkedit` or another UTF-8-safe path. - Binary files such as `.pdf`, `.mp4`, images, and archives should be preserved as-is and not text-converted. - Multibyte filenames are allowed, but repository writes should still use UTF-8 so downstream tools and web viewers can read them reliably.