WorkBuddy Desktop Agent Engineering Course
Learn to build a desktop agent harness through 24 runnable Python lessons on runtime, memory, tools, and safety.
- Source repo
- adongwanai/learn-workbuddy
- Stars
- ★ 562
- Last updated
- 1mo ago
- FARS reviewed
- Nov 29, 2026
- License
- MIT
- Primary language
- Python
- FA score
- 59/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformOpenAI API · Claude API
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- Python developers moving from CLI agents toward desktop runtimes can study sidecar, session, and permission boundaries lesson by lesson.
- Not a fit if
- Users who want an installable, finished desktop assistant
- Teams seeking WorkBuddy source code or proprietary product features
- Maintenance
- Commits in the last 6 monthslast commit 2026-10-28
- Source review
- 59/100 · Major gaps
What does this agent do, and when should you use it?
This repository is a Python teaching course, with 24 original lesson implementations and a standard-library Mini WorkBuddy example for exploring desktop agent harness mechanisms. It starts with the agent loop, tool dispatch, and permission hooks, then covers sidecars, resumable sessions, model routing, JSONL transcripts, layered memory, context management, MCP connectors, SQLite, scheduling, and audit sandboxes. Mini WorkBuddy combines a deterministic agent loop, tools, storage, auditing, REST, and an ACP-like JSON-RPC interface in a runnable local service example. The course supports offline mocks and documents adapters for DeepSeek, Anthropic, the OpenAI Responses API, and OpenAI-compatible Chat Completions. It is a runnable educational blueprint, not a finished WorkBuddy desktop app or a copy of its source.
Learners can run each chapter's code.py to inspect how an agent loop dispatches registered tools and handles tool_use/tool_result, then explore deferred loading, permission hooks, and model routing. The lessons demonstrate appending session events to JSONL transcripts, workspace, user, and remote profile/search memory, externalizing large tool results, assembling prompts, and compacting context. Mini WorkBuddy can start a local HTTP service, accept /api/v1/runs requests, run a deterministic agent loop, and handle tasks with tools such as bash, read, and tool-search; it writes JSONL transcripts, memory, externalized results, and an append-only hash-chain audit log. The service also demonstrates REST, ACP-like JSON-RPC, and sidecar lifecycle management. Users can run the full tour with an offline mock or configure a provider for model evaluations that emit model/tool JSONL traces.
- Python developers moving from CLI agents toward desktop runtimes can study sidecar, session, and permission boundaries lesson by lesson.
- Engineers building assistants for long-running sessions can run the memory, JSONL replay, output externalization, and context compaction examples.
- Learners comparing model adapter patterns can run lesson evaluations through DeepSeek, Anthropic, or OpenAI paths and inspect JSONL traces.
- Developers designing governance for local tools can examine the permission hooks, command policy, and hash-chain audit examples.
- Readers who want to inspect a complete harness request path can start the Mini WorkBuddy server and run the full tour to produce artifacts.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
pip install -r requirements.txt
- Config files
.env.example
How do you install or deploy this agent?
Requires Python 3 and a shell. The repository documents installation from requirements.txt; offline examples need no API key. Real model calls require credentials and environment variables for the selected provider, with configuration examples in .env.example.
How do you use this agent?
Create an environment, install dependencies, and run the offline full tour:
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python3 examples/full_tour/code.pyRun the Mini WorkBuddy offline demo without an API key:
MINI_WORKBUDDY_HOME=.tmp/mini python3 examples/mini_workbuddy_demo/code.py --mode offlineStart the local service and submit a sample request:
MINI_WORKBUDDY_HOME=.tmp/mini python3 -m mini_workbuddy.server --port 8765curl --noproxy '*' \
-H 'X-Mini-WorkBuddy-Request: 1' \
-H 'Content-Type: application/json' \
-d '{"cwd":".","prompt":"list files"}' \
http://127.0.0.1:8765/api/v1/runsExample real-provider evaluation (configure a DeepSeek API key first):
python3 s01_agent_loop/code.py --eval --provider deepseekSafety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
What are this agent's strengths and limitations?
- The 24 lessons progress by mechanism, from the agent loop through an integrated harness.
- Mini WorkBuddy uses Python's standard library to demonstrate a request path spanning REST, ACP-like JSON-RPC, sidecar management, storage, and auditing.
- Offline mocks and the full tour can run without model credentials.
- Documented adapter paths cover DeepSeek, Anthropic, the OpenAI Responses API, and OpenAI-compatible Chat Completions.
- The course includes inspectable JSONL traces, replay, hash-chain auditing, and artifact examples.
- This is teaching code rather than a ready-to-install desktop assistant; adopters must build their own product shell.
- Real model evaluations require provider credentials and may incur API usage charges.
- The course requires a Python environment and command-line use; the README does not document desktop app packaging or deployment.
- Many lesson-specific interactive CLIs retain the Anthropic-compatible
tool_use/tool_resultshape; other providers are mainly supported through the unified evaluation path or Mini WorkBuddy adapter.
How does this agent compare with similar options?
The README contrasts learn-claude-code, presented as a single-process CLI agent starting point, with this course's coverage of sidecars, long-term memory, automation, auditing, and visual delivery. It also treats using WorkBuddy directly as product usage rather than a code-learning path.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| WorkBuddy Desktop Agent Engineering Course This agent | 59 · Major gaps | CLIFree + model costs | ★ 562 | 1mo ago | Python | OpenAI API · Claude API |
| Build AI Agents from First Principles | 58 · Major gaps | FrameworkFree + model costs | ★ 402 | 25d ago | Python | OpenAI API · Claude API |
| PowerContext | 82 · Good | CLIFree | ★ 1.9k | 1d ago | Python | Codex · Claude Code |
| OMA Open Multi-Agent Runtime | 79 · Good | CLIFree + model costs | ★ 7.1k | 2d ago | TypeScript | Codex · Claude Code · OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
Evidence shows S02/mini_workbuddy rebuild subprocess environments keeping only PATH/locale/temp vars and reject sudo, recursive delete and similar dangerous commands, with real-path resolution and tests for workspace escape — a genuine least-privilege effort; however docs/security-boundaries.md admits string blacklists are bypassable via find -delete, xargs rm, script execution, and there is no network egress control, so least_privilege is 2. For user confirmation, S04 routes unproven-read-only commands to approval, but mini_workbuddy uses only a first-token deny-list and the server /api/v1/runs executes tools without per-call confirmation, so user_confirmation is 1. Data-flow transparency has an audit hash chain, transcript event_id linkage and ordered SSE publication, but lacks an explicit user-facing data-flow statement, so 2. Sensitive data handling has env filtering, .env ignore and SECURITY.md secret guidance, but admits workspace .env or out-of-workspace credentials remain readable, so 2. Dependency security has only lower-bound versions in requirements.txt with no lockfile or hashes and no vulnerability-scan evidence, so 1. External effects: tools can run bash and write files, but there is no network allow-list and no cross-component transaction, so 1. Rollback has audit head anchor and transcript crash-tail recovery, but no undo for tool side effects, so 1. Source attribution has MIT, clean-room docs and a SECURITY.md reporting channel, but publisher identity is unverified, so 2.
self_consistency: README, docs, code and tests broadly agree on mini harness behavior; agent.py persists tool_call before execution and comments the exception branch clearly, so 2; deducted because README counts such as 24 chapters and 28 diagrams are not fully verifiable in the sample. dependency_availability has requirements.txt and a CI matrix for 3.10-3.12 plus offline stubs enabling keyless tests, so 2; deducted for no lockfile or upper bounds. failure_messages: agent.py converts PermissionError/OSError/KeyError/TimeoutError into tool_error records and the server returns -32603 for ACP exceptions, so 2; deducted because some errors surface only str(exc) without structured codes.
audience_and_scenarios clearly targets learners wanting to understand desktop Agent architecture, with offline and multi-provider paths, so 2; deducted because no production-user support is claimed. capability_boundaries has a dedicated docs/security-boundaries.md enumerating what is and is not protected and states the harness is not a production sandbox, so 3. trigger_precision: skills/git-commit uses read_when and trigger phrases, but excel-workbook relies only on description keywords and the mini agent _plan uses simple string matching, so 1. environment_fit supports venv/conda/uv, multiple providers and offline mode, so 2; deducted for no platform-difference notes such as Windows.
information_architecture has bilingual README, chapter table, docs directory and architecture diagrams, so 2; deducted because a full docs index is not visible in the sample. install_notes has venv/conda/uv and .env.example guidance, so 2. naming_stability: SKILL.md frontmatter fields are inconsistent (excel uses name/description/allowed-tools, git-commit uses title/summary/read_when), so 1. examples_and_faq has many offline example commands and full_tour, so 2; deducted for no standalone FAQ. known_limitations has security-boundaries and the SECURITY.md production warning, so 3. license has an MIT LICENSE file, so 2. versioning_changelog: no CHANGELOG or versioning policy in the sample, so 0. maintenance_responsibility has CI and a SECURITY.md reporting channel, but the publisher is unverified and no maintainer list exists, so 1.
output_usability: the mini harness emits JSON, audit and transcripts and SKILL.md prescribes a delivery format, so 2; deducted because the mini agent _plan supports only a few intents, limiting real usability. marginal_value: as a teaching blueprint covering sidecar/memory/audit desktop Agent mechanisms it complements learn-claude-code, so 2; deducted because it is not product source and has limited direct reuse. cost_benefit: offline mode and lite/default/craft routing reduce model cost, so 2; deducted because real evaluation requires your own key and batch calls.
claim_traceability: audit entries reference transcriptEventId and answer_grounding_eval has evidence_set_id and citation checks, so 2; deducted because README counts such as 24 chapters/28 diagrams are not fully traceable in the sample. cross_source_corroboration: README, docs/security-boundaries.md, SECURITY.md, code and tests mutually corroborate the safety boundaries, so 2; deducted because some test files are truncated and cannot be fully checked. fact_inference_separation: docs clearly separate the teaching harness from a production sandbox and separate protected from unprotected areas, so 2; deducted because README marketing phrasing is mixed with implementation detail.
- This is a teaching harness, not a production sandbox; docs/security-boundaries.md admits string blacklists are bypassable via indirect commands and there is no network egress control — do not use it directly in real environments.
- mini_workbuddy's /api/v1/runs executes tools without per-call user confirmation; S04's approval mechanism is not equivalent to the mini harness deny-list.
- requirements.txt has only lower-bound versions with no lockfile or hashes, leaving dependency supply-chain risk unmitigated.
- SKILL.md frontmatter fields are inconsistent, so a skill loader may not uniformly parse trigger conditions.
- Publisher identity is unverified and maintenance responsibility/update path is unclear; no CHANGELOG or versioning policy appears in the sample.
FAQ
Can I run the lessons without an API key?
Is this an installable WorkBuddy desktop app?
Which real model providers are documented?
Where does it save runtime state?
~/.learn_workbuddy/. Mini WorkBuddy lets you select a state directory with MINI_WORKBUDDY_HOME.Can I use it directly as an MCP server?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.