freehand-ai 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. freehand_ai-0.1.0/LICENSE +21 -0
  2. freehand_ai-0.1.0/PKG-INFO +268 -0
  3. freehand_ai-0.1.0/README.md +240 -0
  4. freehand_ai-0.1.0/THIRD_PARTY_NOTICES.md +143 -0
  5. freehand_ai-0.1.0/pyproject.toml +51 -0
  6. freehand_ai-0.1.0/setup.cfg +4 -0
  7. freehand_ai-0.1.0/src/freehand/__init__.py +3 -0
  8. freehand_ai-0.1.0/src/freehand/__main__.py +5 -0
  9. freehand_ai-0.1.0/src/freehand/brand.py +65 -0
  10. freehand_ai-0.1.0/src/freehand/cli.py +1150 -0
  11. freehand_ai-0.1.0/src/freehand/connections.py +226 -0
  12. freehand_ai-0.1.0/src/freehand/control.py +1098 -0
  13. freehand_ai-0.1.0/src/freehand/daemon.py +163 -0
  14. freehand_ai-0.1.0/src/freehand/export.py +369 -0
  15. freehand_ai-0.1.0/src/freehand/gitflow.py +228 -0
  16. freehand_ai-0.1.0/src/freehand/hooks.py +91 -0
  17. freehand_ai-0.1.0/src/freehand/inputs.py +270 -0
  18. freehand_ai-0.1.0/src/freehand/integrations/__init__.py +1 -0
  19. freehand_ai-0.1.0/src/freehand/integrations/harbor.py +232 -0
  20. freehand_ai-0.1.0/src/freehand/mcp.py +442 -0
  21. freehand_ai-0.1.0/src/freehand/meter.py +333 -0
  22. freehand_ai-0.1.0/src/freehand/model-icons.LICENSE +33 -0
  23. freehand_ai-0.1.0/src/freehand/model-icons.json +1 -0
  24. freehand_ai-0.1.0/src/freehand/modelicons.py +156 -0
  25. freehand_ai-0.1.0/src/freehand/prompt.md +7 -0
  26. freehand_ai-0.1.0/src/freehand/runtime/__init__.py +1 -0
  27. freehand_ai-0.1.0/src/freehand/runtime/agent.py +1854 -0
  28. freehand_ai-0.1.0/src/freehand/runtime/auth.py +423 -0
  29. freehand_ai-0.1.0/src/freehand/runtime/calltrace.py +182 -0
  30. freehand_ai-0.1.0/src/freehand/runtime/compaction.py +255 -0
  31. freehand_ai-0.1.0/src/freehand/runtime/progress.py +52 -0
  32. freehand_ai-0.1.0/src/freehand/runtime/providers.py +1597 -0
  33. freehand_ai-0.1.0/src/freehand/runtime/run.sh +6 -0
  34. freehand_ai-0.1.0/src/freehand/runtime/shellenv.py +43 -0
  35. freehand_ai-0.1.0/src/freehand/runtime/wsclient.py +209 -0
  36. freehand_ai-0.1.0/src/freehand/server.py +1148 -0
  37. freehand_ai-0.1.0/src/freehand/session.py +912 -0
  38. freehand_ai-0.1.0/src/freehand/snapshots.py +352 -0
  39. freehand_ai-0.1.0/src/freehand/stats.py +150 -0
  40. freehand_ai-0.1.0/src/freehand/style.py +163 -0
  41. freehand_ai-0.1.0/src/freehand/suggestions.py +155 -0
  42. freehand_ai-0.1.0/src/freehand/terminal_child.py +17 -0
  43. freehand_ai-0.1.0/src/freehand/terminals.py +108 -0
  44. freehand_ai-0.1.0/src/freehand/tui.py +1737 -0
  45. freehand_ai-0.1.0/src/freehand/ui.py +3045 -0
  46. freehand_ai-0.1.0/src/freehand/usercommands.py +106 -0
  47. freehand_ai-0.1.0/src/freehand/web/app.css +1719 -0
  48. freehand_ai-0.1.0/src/freehand/web/app.js +5798 -0
  49. freehand_ai-0.1.0/src/freehand/web/favicon.svg +117 -0
  50. freehand_ai-0.1.0/src/freehand/web/file-icons.LICENSE +238 -0
  51. freehand_ai-0.1.0/src/freehand/web/file-icons.css +65 -0
  52. freehand_ai-0.1.0/src/freehand/web/file-icons.js +503 -0
  53. freehand_ai-0.1.0/src/freehand/web/i18n.js +541 -0
  54. freehand_ai-0.1.0/src/freehand/web/index.html +144 -0
  55. freehand_ai-0.1.0/src/freehand/web/logo-on-dark.svg +1036 -0
  56. freehand_ai-0.1.0/src/freehand/web/logo-on-light.svg +1036 -0
  57. freehand_ai-0.1.0/src/freehand/web/md.js +924 -0
  58. freehand_ai-0.1.0/src/freehand/web/panels.css +239 -0
  59. freehand_ai-0.1.0/src/freehand/web/panels.js +641 -0
  60. freehand_ai-0.1.0/src/freehand/web/pen.js +109 -0
  61. freehand_ai-0.1.0/src/freehand/web/splash.js +137 -0
  62. freehand_ai-0.1.0/src/freehand/web/splash.svg +7 -0
  63. freehand_ai-0.1.0/src/freehand/web/state.js +117 -0
  64. freehand_ai-0.1.0/src/freehand/web/suggestions.js +91 -0
  65. freehand_ai-0.1.0/src/freehand/web/terminal.js +369 -0
  66. freehand_ai-0.1.0/src/freehand/web/timeline.js +211 -0
  67. freehand_ai-0.1.0/src/freehand/web/welcome-motion.js +156 -0
  68. freehand_ai-0.1.0/src/freehand/web/welcome-tagline.svg +12 -0
  69. freehand_ai-0.1.0/src/freehand/web/workbench.css +172 -0
  70. freehand_ai-0.1.0/src/freehand/web/workbench.js +2164 -0
  71. freehand_ai-0.1.0/src/freehand/workbench.py +721 -0
  72. freehand_ai-0.1.0/src/freehand/workbench_state.py +89 -0
  73. freehand_ai-0.1.0/src/freehand_ai.egg-info/PKG-INFO +268 -0
  74. freehand_ai-0.1.0/src/freehand_ai.egg-info/SOURCES.txt +166 -0
  75. freehand_ai-0.1.0/src/freehand_ai.egg-info/dependency_links.txt +1 -0
  76. freehand_ai-0.1.0/src/freehand_ai.egg-info/entry_points.txt +2 -0
  77. freehand_ai-0.1.0/src/freehand_ai.egg-info/requires.txt +7 -0
  78. freehand_ai-0.1.0/src/freehand_ai.egg-info/top_level.txt +1 -0
  79. freehand_ai-0.1.0/tests/test_auth.py +167 -0
  80. freehand_ai-0.1.0/tests/test_brand_assets.py +94 -0
  81. freehand_ai-0.1.0/tests/test_browser_harness.py +33 -0
  82. freehand_ai-0.1.0/tests/test_calltrace.py +94 -0
  83. freehand_ai-0.1.0/tests/test_compaction.py +372 -0
  84. freehand_ai-0.1.0/tests/test_connections.py +281 -0
  85. freehand_ai-0.1.0/tests/test_context_window.py +92 -0
  86. freehand_ai-0.1.0/tests/test_daemon.py +52 -0
  87. freehand_ai-0.1.0/tests/test_desktop_attachments.py +17 -0
  88. freehand_ai-0.1.0/tests/test_desktop_no_project.py +16 -0
  89. freehand_ai-0.1.0/tests/test_desktop_notice_page.py +85 -0
  90. freehand_ai-0.1.0/tests/test_desktop_notifications.py +27 -0
  91. freehand_ai-0.1.0/tests/test_desktop_workbench.py +53 -0
  92. freehand_ai-0.1.0/tests/test_empty_replies.py +152 -0
  93. freehand_ai-0.1.0/tests/test_failures.py +166 -0
  94. freehand_ai-0.1.0/tests/test_fullscreen.py +121 -0
  95. freehand_ai-0.1.0/tests/test_gitflow.py +171 -0
  96. freehand_ai-0.1.0/tests/test_hardening.py +358 -0
  97. freehand_ai-0.1.0/tests/test_image_recovery.py +125 -0
  98. freehand_ai-0.1.0/tests/test_inputs.py +102 -0
  99. freehand_ai-0.1.0/tests/test_interactive.py +460 -0
  100. freehand_ai-0.1.0/tests/test_mcp.py +198 -0
  101. freehand_ai-0.1.0/tests/test_meter.py +124 -0
  102. freehand_ai-0.1.0/tests/test_model_icons.py +93 -0
  103. freehand_ai-0.1.0/tests/test_next_question.py +228 -0
  104. freehand_ai-0.1.0/tests/test_no_project.py +155 -0
  105. freehand_ai-0.1.0/tests/test_packaging.py +66 -0
  106. freehand_ai-0.1.0/tests/test_pricing_display.py +107 -0
  107. freehand_ai-0.1.0/tests/test_progress_settings.py +98 -0
  108. freehand_ai-0.1.0/tests/test_progress_updates.py +163 -0
  109. freehand_ai-0.1.0/tests/test_provider_conformance.py +163 -0
  110. freehand_ai-0.1.0/tests/test_providers.py +684 -0
  111. freehand_ai-0.1.0/tests/test_queue_withdrawal.py +28 -0
  112. freehand_ai-0.1.0/tests/test_release_workflows.py +100 -0
  113. freehand_ai-0.1.0/tests/test_retry.py +271 -0
  114. freehand_ai-0.1.0/tests/test_rewind_preview.py +106 -0
  115. freehand_ai-0.1.0/tests/test_runtime.py +556 -0
  116. freehand_ai-0.1.0/tests/test_server.py +1240 -0
  117. freehand_ai-0.1.0/tests/test_setup.py +253 -0
  118. freehand_ai-0.1.0/tests/test_snapshots.py +220 -0
  119. freehand_ai-0.1.0/tests/test_steering.py +104 -0
  120. freehand_ai-0.1.0/tests/test_terminal.py +641 -0
  121. freehand_ai-0.1.0/tests/test_tool_descriptions.py +67 -0
  122. freehand_ai-0.1.0/tests/test_transport.py +260 -0
  123. freehand_ai-0.1.0/tests/test_trust.py +152 -0
  124. freehand_ai-0.1.0/tests/test_tui.py +123 -0
  125. freehand_ai-0.1.0/tests/test_tui_audit.py +237 -0
  126. freehand_ai-0.1.0/tests/test_tui_details.py +294 -0
  127. freehand_ai-0.1.0/tests/test_tui_fixes.py +836 -0
  128. freehand_ai-0.1.0/tests/test_upstream_faults.py +136 -0
  129. freehand_ai-0.1.0/tests/test_usercommands.py +30 -0
  130. freehand_ai-0.1.0/tests/test_ux_matrix.py +102 -0
  131. freehand_ai-0.1.0/tests/test_web_attachments.py +175 -0
  132. freehand_ai-0.1.0/tests/test_web_composer.py +390 -0
  133. freehand_ai-0.1.0/tests/test_web_daily.py +360 -0
  134. freehand_ai-0.1.0/tests/test_web_dialogs.py +191 -0
  135. freehand_ai-0.1.0/tests/test_web_e2e.py +981 -0
  136. freehand_ai-0.1.0/tests/test_web_e2e_more.py +748 -0
  137. freehand_ai-0.1.0/tests/test_web_feel.py +269 -0
  138. freehand_ai-0.1.0/tests/test_web_files.py +420 -0
  139. freehand_ai-0.1.0/tests/test_web_images.py +289 -0
  140. freehand_ai-0.1.0/tests/test_web_interactions.py +169 -0
  141. freehand_ai-0.1.0/tests/test_web_layout.py +437 -0
  142. freehand_ai-0.1.0/tests/test_web_math.py +162 -0
  143. freehand_ai-0.1.0/tests/test_web_math_ui.py +138 -0
  144. freehand_ai-0.1.0/tests/test_web_model_settings.py +535 -0
  145. freehand_ai-0.1.0/tests/test_web_no_project.py +300 -0
  146. freehand_ai-0.1.0/tests/test_web_no_reasoning.py +66 -0
  147. freehand_ai-0.1.0/tests/test_web_notices.py +154 -0
  148. freehand_ai-0.1.0/tests/test_web_panels.py +104 -0
  149. freehand_ai-0.1.0/tests/test_web_polish.py +583 -0
  150. freehand_ai-0.1.0/tests/test_web_preview.py +249 -0
  151. freehand_ai-0.1.0/tests/test_web_progress.py +133 -0
  152. freehand_ai-0.1.0/tests/test_web_retry.py +121 -0
  153. freehand_ai-0.1.0/tests/test_web_rewind_compatibility.py +99 -0
  154. freehand_ai-0.1.0/tests/test_web_sent_files.py +169 -0
  155. freehand_ai-0.1.0/tests/test_web_server_extras.py +244 -0
  156. freehand_ai-0.1.0/tests/test_web_sessions.py +26 -0
  157. freehand_ai-0.1.0/tests/test_web_storage.py +25 -0
  158. freehand_ai-0.1.0/tests/test_web_streamed_images.py +135 -0
  159. freehand_ai-0.1.0/tests/test_web_suggestions.py +388 -0
  160. freehand_ai-0.1.0/tests/test_web_syntax.py +99 -0
  161. freehand_ai-0.1.0/tests/test_web_timeline.py +210 -0
  162. freehand_ai-0.1.0/tests/test_web_toasts.py +105 -0
  163. freehand_ai-0.1.0/tests/test_web_tool_titles.py +112 -0
  164. freehand_ai-0.1.0/tests/test_web_ui.py +435 -0
  165. freehand_ai-0.1.0/tests/test_web_usage.py +78 -0
  166. freehand_ai-0.1.0/tests/test_web_workbench.py +374 -0
  167. freehand_ai-0.1.0/tests/test_workbench.py +387 -0
  168. freehand_ai-0.1.0/tests/test_wrap.py +44 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,268 @@
1
+ Metadata-Version: 2.4
2
+ Name: freehand-ai
3
+ Version: 0.1.0
4
+ Summary: An agent harness that leaves the decisions to the model, including what stays in its context.
5
+ Author: Microsoft Corporation
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/microsoft/FreeHand
8
+ Project-URL: Issues, https://github.com/microsoft/FreeHand/issues
9
+ Keywords: agent,coding-agent,llm,cli,chatgpt,openai,anthropic,claude
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Environment :: Console
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Operating System :: MacOS
14
+ Classifier: Operating System :: POSIX :: Linux
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Topic :: Software Development
17
+ Requires-Python: >=3.10
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ License-File: THIRD_PARTY_NOTICES.md
21
+ Requires-Dist: prompt_toolkit>=3.0.43
22
+ Requires-Dist: rich>=13.7
23
+ Requires-Dist: anthropic>=1.13
24
+ Provides-Extra: dev
25
+ Requires-Dist: pytest>=8; extra == "dev"
26
+ Requires-Dist: pyflakes>=3; extra == "dev"
27
+ Dynamic: license-file
28
+
29
+ <p align="center">
30
+ <picture>
31
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/readme-header-dark.svg?v=bold-2">
32
+ <img src="docs/assets/readme-header-light.svg?v=bold-2" alt="Freehand. Give the model a freehand!" width="640">
33
+ </picture>
34
+ </p>
35
+
36
+ <p align="center">
37
+ <a href="https://microsoft.github.io/FreeHand/"><img alt="Project Page" src="https://img.shields.io/badge/project_page-FreeHand-FF8A2A?style=for-the-badge&labelColor=0B0B0C"></a>
38
+ <a href="https://arxiv.org/abs/2612.02442"><img alt="arXiv" src="https://img.shields.io/badge/arXiv-2612.02442-FF4A4A?style=for-the-badge&logo=arxiv&logoColor=white&labelColor=0B0B0C"></a>
39
+ <a href="pyproject.toml"><img alt="Python 3.10+" src="https://img.shields.io/badge/python-3.10+-D43DD0?style=for-the-badge&logo=python&logoColor=white&labelColor=0B0B0C"></a>
40
+ <a href="LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-3A78FF?style=for-the-badge&labelColor=0B0B0C"></a>
41
+ </p>
42
+
43
+ <p align="center"><b>English</b> · <a href="README.zh-CN.md">简体中文</a> · <a href="README.ja.md">日本語</a> · <a href="README.ko.md">한국어</a> · <a href="README.fr.md">Français</a> · <a href="README.es.md">Español</a></p>
44
+
45
+ # Freehand
46
+
47
+ <!-- agentopt-series-line:start -->
48
+ > 🧭 **Freehand is part of the AgentOpt series**, which covers each part of an agent system: [SkillLens](https://microsoft.github.io/SkillLens/) · [SkillOpt](https://microsoft.github.io/SkillOpt/) · [Resource2Skill](https://microsoft.github.io/Resource2Skill/) · [EnvOpt](https://microsoft.github.io/EnvOpt/) · [EvalOpt](https://microsoft.github.io/EvalOpt/) · **Freehand**. See the [AgentOpt series page](https://microsoft.github.io/SkillOpt/agentopt/).
49
+ <!-- agentopt-series-line:end -->
50
+
51
+ **An agent harness that leaves the decisions to the model.**
52
+
53
+ Freehand gives a frontier model a runtime description of about 200 words, one `bash` tool, and control over its own
54
+ context. Against Codex, Claude Code, Gemini CLI, OpenCode, Pi and DeepSeek Harness, on five benchmarks with three model
55
+ families, it scored highest and cost least in every setting we ran, and it was fastest on average.
56
+
57
+ **Use it with a frontier model.** Freehand leaves the decisions to the model, so it pays off when the model can make
58
+ them well: with weaker models, traditional harnesses still do better ([Results](#results)).
59
+
60
+ [Quick start](#quick-start) · [Paper](https://arxiv.org/abs/2612.02442) · [Usage](docs/usage.md) · [Gateways](docs/gateway.md) ·
61
+ [Benchmarks](docs/benchmarks.md) · [Security](docs/security.md) · [Changelog](CHANGELOG.md)
62
+
63
+ > Alpha. **Freehand has no sandbox:** the model's commands run with your permissions and nothing asks first. Use a
64
+ > container or VM for code you do not trust ([how](docs/container.md)), and read the
65
+ > [security model](docs/security.md).
66
+
67
+ <p align="center">
68
+ <img src="docs/assets/readme-header-benchmarks.png" alt="Freehand versus first-party harnesses, OpenCode, Pi and DeepSeek Harness, averaged over five benchmarks with GPT-6-astra and Claude Opus 5.5: best mean score (63.2%), lowest mean cost per task ($3.23) and fastest mean normalized time per task (31.7 minutes).">
69
+ </p>
70
+
71
+ ## Install
72
+
73
+ Supported platforms: **macOS and Linux**. The CLI and web interface also run in Linux under WSL2.
74
+ **Native Windows: coming soon.** Desktop builds target macOS (Apple Silicon and Intel) and Linux (x64);
75
+ see [desktop/README.md](desktop/README.md) for build details.
76
+
77
+ On macOS or Linux:
78
+
79
+ ```bash
80
+ curl -LsSf https://raw.githubusercontent.com/microsoft/FreeHand/main/install.sh | sh
81
+ ```
82
+
83
+ The script installs [uv](https://docs.astral.sh/uv/) if it is missing, then Freehand with its own Python 3.12. If you
84
+ already have uv, the same thing is `uv tool install --python 3.12 git+https://github.com/microsoft/FreeHand`.
85
+ `freehand update` upgrades either. To work on Freehand itself, see [Development](#development).
86
+
87
+ ## Quick start
88
+
89
+ ### Terminal
90
+
91
+ ```bash
92
+ freehand login # Continue with ChatGPT (Plus or Pro); or an API key: freehand login openai | anthropic
93
+ cd your/project
94
+ freehand # interactive session in this directory
95
+ freehand -c # continue the last session here
96
+ freehand -p "fix the failing test" # headless: activity on stderr, the final summary on stdout
97
+ freehand web # the same sessions in a browser window
98
+ ```
99
+
100
+ Every command, key, slash command and setting is in [docs/usage.md](docs/usage.md) and
101
+ [docs/config.md](docs/config.md).
102
+
103
+ ### Desktop app (beta)
104
+
105
+ <p align="center">
106
+ <img src="docs/assets/desktop-demo.webp" width="900" alt="The Freehand desktop app opens with its animated logo. In the textkit project, the request 'Add a word_count function to textkit.py, with tests.' GPT-6-astra reads the code, adds the function and seven tests, runs them, and reports that all 12 tests pass.">
107
+ <br>
108
+ <sub>GPT-6-astra in the desktop app, from launch. The model's 22 seconds of work play at 2× speed.</sub>
109
+ </p>
110
+
111
+ The desktop app is optional. It puts files, changes, Git and a terminal next to the conversation, and shares its
112
+ sessions and settings with the terminal, so a session started in one continues in the other. Signed installers are
113
+ not published yet, so build it from source (Node 22.12 or later, and `freehand` from [Install](#install)):
114
+
115
+ ```bash
116
+ git clone https://github.com/microsoft/FreeHand.git && cd FreeHand/desktop
117
+ npm install
118
+ npm run app # builds desktop/dist/mac-arm64/Freehand.app; `npm start` runs it without building
119
+ ```
120
+
121
+ Sign in from the app, or with `freehand login`. More in [desktop/README.md](desktop/README.md),
122
+ [docs/web-ui.md](docs/web-ui.md) and [docs/workbench.md](docs/workbench.md).
123
+
124
+ ## The idea
125
+
126
+ https://github.com/user-attachments/assets/ed6a45ba-9923-444d-b872-0a55e5368f16
127
+
128
+ The Bitter Lesson holds that knowledge built into AI systems helps at first and is eventually outgrown by general
129
+ methods. Mainstream harnesses build in a great deal: prompts prescribe how to approach a task, tool suites and
130
+ timeouts fix how to act, and threshold compaction decides what to remember, all before the model has seen the task.
131
+ For weaker models these presets are a crutch; for frontier models they become a cage. Freehand follows one rule:
132
+ **give the model a shell, its own memory, and a meter, and let it decide everything else.**
133
+
134
+ <p align="center">
135
+ <img src="docs/assets/harness-overview.png" width="900"
136
+ alt="Mainstream harnesses (Codex, Claude Code, Gemini CLI, OpenCode, Pi) give the model detailed instructions, 20+ preset tools, runtime reminders and auto-compaction at a fixed threshold. Freehand gives it a runtime description of about 200 words and one bash tool with model-set timeouts, and the model prunes its own history.">
137
+ </p>
138
+
139
+ | Decision | Typical harness | Freehand |
140
+ |---|---|---|
141
+ | How to approach the task (strategy) | rules, workflows and reminders in a long system prompt | a purely descriptive runtime prompt, with no rules |
142
+ | What tools to use (execution) | dozens of pre-designed tools | one `bash` tool, from which the model builds what the task needs |
143
+ | How long a command runs (execution) | fixed timeouts and poll intervals | the model sets each command's timeout and can run jobs detached |
144
+ | What stays in context (memory) | automatic compaction at a fixed threshold | the model manages its own context at runtime |
145
+
146
+ Before the task begins the model sees about 0.35K tokens and one tool. After every turn it also sees its own meter:
147
+ context size, tokens (with the cached share), cost and elapsed time.
148
+
149
+ The model-facing side stays this small on purpose. The human-facing side is complete: the desktop app (beta), a
150
+ browser interface (`freehand web`) and a terminal interface, with streaming Markdown, interrupt, sessions and resume,
151
+ per-turn undo, model switching, cost and context display, and HTML export.
152
+
153
+ ## Results
154
+
155
+ Across 11 settings (five benchmarks with GPT-6-astra, Claude Opus 5.5 and Gemini 4 Carbon), Freehand had the highest
156
+ score and the lowest cost in every one, and the shortest mean time per task. Against the first-party harnesses it
157
+ scored 5.1 points higher at 49% lower cost, and it also beat OpenCode, Pi, DeepSeek Harness and the bash-only
158
+ mini-swe-agent. In a controlled side-by-side rerun on the same machines and API endpoints, each of the other harnesses
159
+ took 17–62% longer.
160
+
161
+ | Benchmark | Model | Freehand (score · cost per task) | First-party harness (score · cost per task) |
162
+ |---|---|---|---|
163
+ | Terminal-Bench 4 | GPT-6-astra | **57.1%** · **$3.12** | Codex 54.6% · $5.88 |
164
+ | | Claude Opus 5.5 | **61.9%** · **$3.38** | Claude Code 54.9% · $4.91 |
165
+ | | Gemini 4 Carbon | **57.1%** · **$8.76** | Gemini CLI 49.5% · $13.72 |
166
+ | Terminal-Bench Science | GPT-6-astra | **63.8%** · **$7.71** | Codex 58.1% · $12.99 |
167
+ | | Claude Opus 5.5 | **55.2%** · **$8.16** | Claude Code 54.3% · $12.86 |
168
+ | Agents' Last Exam | GPT-6-astra | **67.5%** · **$1.92** | Codex 63.6% · $4.45 |
169
+ | | Claude Opus 5.5 | **66.5%** · **$1.16** | Claude Code 62.2% · $2.29 |
170
+ | OSWorld 2.1 | GPT-6-astra | **76.2%** · **$3.96** | Codex 68.3% · $14.94 |
171
+ | | Claude Opus 5.5 | **80.1%** · **$2.09** | Claude Code 74.9% · $7.49 |
172
+ | AutomationBench | GPT-6-astra | **49.5%** · **$0.56** | Codex 44.8% · $0.89 |
173
+ | | Claude Opus 5.5 | **54.4%** · **$0.19** | Claude Code 47.9% · $0.27 |
174
+
175
+ With lower-tier models the order reverses. On Terminal-Bench 4 the first-party harness scores higher with GPT-6 Sol
176
+ (Codex 34.9% vs. 29.2%), Claude Sonnet 5.5 (Claude Code 41.6% vs. 34.9%) and DeepSeek V4.1 Flash (DeepSeek Harness
177
+ 28.9% vs. 23.8%). Freehand is built for frontier models; with a smaller model, that model's first-party harness may
178
+ serve you better.
179
+
180
+ The other baselines, ablations and analysis are in the paper; [docs/benchmarks.md](docs/benchmarks.md) shows how to
181
+ run the benchmarks with Freehand.
182
+
183
+ ## Models and providers
184
+
185
+ | Provider | How to sign in |
186
+ |---|---|
187
+ | OpenAI (default) | `freehand login`, with a ChatGPT Plus or Pro plan, or `freehand login openai` with an API key |
188
+ | Anthropic | `freehand login anthropic`, then `freehand --provider anthropic` |
189
+ | Any OpenAI-compatible Chat Completions API | `freehand --provider openai-chat --api-base <url> --api-key-env <VAR>` |
190
+ | A gateway such as LiteLLM, for GPT, Claude and Gemini behind one key | [docs/gateway.md](docs/gateway.md) |
191
+
192
+ `/model` switches the model, and the provider with it, in a running session.
193
+
194
+ ## Security
195
+
196
+ Freehand is a local tool that acts with your permissions. It has no sandbox and no approval prompt: you draw the
197
+ boundary around Freehand, and inside it every decision is the model's.
198
+
199
+ - Commands run as you, with your files, network, credentials and environment variables.
200
+ - For code you do not trust, use a container or VM: [docs/container.md](docs/container.md).
201
+ - Repository content is untrusted input. `AGENTS.md` and project skills load only in folders you have trusted.
202
+ - No telemetry. Freehand talks only to the model service and MCP servers you configure (in the web and desktop
203
+ interfaces, public web links in replies also load site favicons from Google's favicon service; see
204
+ [docs/security.md](docs/security.md)).
205
+
206
+ The full model, including undo, local files and the browser interface, is in [docs/security.md](docs/security.md). To
207
+ report a vulnerability, see [SECURITY.md](SECURITY.md).
208
+
209
+ ## Development
210
+
211
+ ```bash
212
+ git clone https://github.com/microsoft/FreeHand.git && cd FreeHand
213
+ uv sync --extra dev
214
+ uv run pyflakes src tests
215
+ uv run pytest -q
216
+ ```
217
+
218
+ The code layout and the rules for a change are in [CONTRIBUTING.md](CONTRIBUTING.md) and [AGENTS.md](AGENTS.md).
219
+
220
+ <!-- agentopt-series:start -->
221
+ ## 🧭 AgentOpt Series
222
+
223
+ Freehand is part of the **AgentOpt** series from Microsoft Research. Each project tackles one part of an agent system: its skills, its training environments, the evaluator that judges it, or the harness it runs in. Projects are listed by release date.
224
+
225
+ | Project | What it does | Paper | Code | Project page |
226
+ |---|---|---|---|---|
227
+ | SkillLens | Studies what makes model-generated skills useful, from experience to extraction to use | [arXiv](https://arxiv.org/abs/2605.23899) | [Code](https://github.com/microsoft/SkillLens) | [Project page](https://microsoft.github.io/SkillLens/) |
228
+ | SkillOpt | Trains reusable natural-language skills for frozen agents | [arXiv](https://arxiv.org/abs/2605.23904) | [Code](https://github.com/microsoft/SkillOpt) | [Project page](https://microsoft.github.io/SkillOpt/) |
229
+ | Resource2Skill | Distills human tutorials and resources into executable agent skills | [arXiv](https://arxiv.org/abs/2606.29538) | [Code](https://github.com/microsoft/Resource2Skill) | [Project page](https://microsoft.github.io/Resource2Skill/) |
230
+ | EnvOpt | Builds the training environments an agent needs | [arXiv](https://arxiv.org/abs/2611.41901) | [Code](https://github.com/microsoft/EnvOpt) | [Project page](https://microsoft.github.io/EnvOpt/) |
231
+ | EvalOpt | Evolves evaluators for open-ended tasks from human feedback | [arXiv](https://arxiv.org/abs/2612.02431) | [Code](https://github.com/microsoft/EvalOpt) | [Project page](https://microsoft.github.io/EvalOpt/) |
232
+ | **Freehand** (this repo) | An agent harness that leaves the decisions to the model | [arXiv](https://arxiv.org/abs/2612.02442) | [Code](https://github.com/microsoft/FreeHand) | [Project page](https://microsoft.github.io/FreeHand/) |
233
+
234
+ More AgentOpt projects are on the way. Overview: [AgentOpt series page](https://microsoft.github.io/SkillOpt/agentopt/).
235
+ <!-- agentopt-series:end -->
236
+
237
+ ## Contributing
238
+
239
+ This project welcomes contributions and suggestions. See [CONTRIBUTING.md](CONTRIBUTING.md).
240
+
241
+ ## Citation
242
+
243
+ If you find Freehand useful in your research, please cite:
244
+
245
+ ```bibtex
246
+ @article{zeng2026freehand,
247
+ title = {Freehand: The Bitter Lesson Comes to Agent Harnesses},
248
+ author = {Zeng, Zezi and Zhao, Yuke and Tian, Muzhao and Yang, Yifan and Dai, Qi and Liu, Bei and Qiu, Kai
249
+ and Zhuang, Bohan and Zhu, Jihua and Luo, Chong},
250
+ journal = {arXiv preprint arXiv:2612.02442},
251
+ year = {2026}
252
+ }
253
+ ```
254
+
255
+ ## Trademarks
256
+
257
+ This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
258
+ trademarks or logos is subject to and must follow
259
+ [Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/legal/intellectualproperty/trademarks/usage/general).
260
+ Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft
261
+ sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.
262
+
263
+ Freehand is not affiliated with or endorsed by OpenAI, Anthropic or Google. ChatGPT, Codex, Claude, Claude Code,
264
+ Gemini and Gemini CLI are trademarks of their owners and are named here only to describe compatibility.
265
+
266
+ ## License
267
+
268
+ MIT. See [LICENSE](LICENSE).
@@ -0,0 +1,240 @@
1
+ <p align="center">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/readme-header-dark.svg?v=bold-2">
4
+ <img src="docs/assets/readme-header-light.svg?v=bold-2" alt="Freehand. Give the model a freehand!" width="640">
5
+ </picture>
6
+ </p>
7
+
8
+ <p align="center">
9
+ <a href="https://microsoft.github.io/FreeHand/"><img alt="Project Page" src="https://img.shields.io/badge/project_page-FreeHand-FF8A2A?style=for-the-badge&labelColor=0B0B0C"></a>
10
+ <a href="https://arxiv.org/abs/2612.02442"><img alt="arXiv" src="https://img.shields.io/badge/arXiv-2612.02442-FF4A4A?style=for-the-badge&logo=arxiv&logoColor=white&labelColor=0B0B0C"></a>
11
+ <a href="pyproject.toml"><img alt="Python 3.10+" src="https://img.shields.io/badge/python-3.10+-D43DD0?style=for-the-badge&logo=python&logoColor=white&labelColor=0B0B0C"></a>
12
+ <a href="LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-3A78FF?style=for-the-badge&labelColor=0B0B0C"></a>
13
+ </p>
14
+
15
+ <p align="center"><b>English</b> · <a href="README.zh-CN.md">简体中文</a> · <a href="README.ja.md">日本語</a> · <a href="README.ko.md">한국어</a> · <a href="README.fr.md">Français</a> · <a href="README.es.md">Español</a></p>
16
+
17
+ # Freehand
18
+
19
+ <!-- agentopt-series-line:start -->
20
+ > 🧭 **Freehand is part of the AgentOpt series**, which covers each part of an agent system: [SkillLens](https://microsoft.github.io/SkillLens/) · [SkillOpt](https://microsoft.github.io/SkillOpt/) · [Resource2Skill](https://microsoft.github.io/Resource2Skill/) · [EnvOpt](https://microsoft.github.io/EnvOpt/) · [EvalOpt](https://microsoft.github.io/EvalOpt/) · **Freehand**. See the [AgentOpt series page](https://microsoft.github.io/SkillOpt/agentopt/).
21
+ <!-- agentopt-series-line:end -->
22
+
23
+ **An agent harness that leaves the decisions to the model.**
24
+
25
+ Freehand gives a frontier model a runtime description of about 200 words, one `bash` tool, and control over its own
26
+ context. Against Codex, Claude Code, Gemini CLI, OpenCode, Pi and DeepSeek Harness, on five benchmarks with three model
27
+ families, it scored highest and cost least in every setting we ran, and it was fastest on average.
28
+
29
+ **Use it with a frontier model.** Freehand leaves the decisions to the model, so it pays off when the model can make
30
+ them well: with weaker models, traditional harnesses still do better ([Results](#results)).
31
+
32
+ [Quick start](#quick-start) · [Paper](https://arxiv.org/abs/2612.02442) · [Usage](docs/usage.md) · [Gateways](docs/gateway.md) ·
33
+ [Benchmarks](docs/benchmarks.md) · [Security](docs/security.md) · [Changelog](CHANGELOG.md)
34
+
35
+ > Alpha. **Freehand has no sandbox:** the model's commands run with your permissions and nothing asks first. Use a
36
+ > container or VM for code you do not trust ([how](docs/container.md)), and read the
37
+ > [security model](docs/security.md).
38
+
39
+ <p align="center">
40
+ <img src="docs/assets/readme-header-benchmarks.png" alt="Freehand versus first-party harnesses, OpenCode, Pi and DeepSeek Harness, averaged over five benchmarks with GPT-6-astra and Claude Opus 5.5: best mean score (63.2%), lowest mean cost per task ($3.23) and fastest mean normalized time per task (31.7 minutes).">
41
+ </p>
42
+
43
+ ## Install
44
+
45
+ Supported platforms: **macOS and Linux**. The CLI and web interface also run in Linux under WSL2.
46
+ **Native Windows: coming soon.** Desktop builds target macOS (Apple Silicon and Intel) and Linux (x64);
47
+ see [desktop/README.md](desktop/README.md) for build details.
48
+
49
+ On macOS or Linux:
50
+
51
+ ```bash
52
+ curl -LsSf https://raw.githubusercontent.com/microsoft/FreeHand/main/install.sh | sh
53
+ ```
54
+
55
+ The script installs [uv](https://docs.astral.sh/uv/) if it is missing, then Freehand with its own Python 3.12. If you
56
+ already have uv, the same thing is `uv tool install --python 3.12 git+https://github.com/microsoft/FreeHand`.
57
+ `freehand update` upgrades either. To work on Freehand itself, see [Development](#development).
58
+
59
+ ## Quick start
60
+
61
+ ### Terminal
62
+
63
+ ```bash
64
+ freehand login # Continue with ChatGPT (Plus or Pro); or an API key: freehand login openai | anthropic
65
+ cd your/project
66
+ freehand # interactive session in this directory
67
+ freehand -c # continue the last session here
68
+ freehand -p "fix the failing test" # headless: activity on stderr, the final summary on stdout
69
+ freehand web # the same sessions in a browser window
70
+ ```
71
+
72
+ Every command, key, slash command and setting is in [docs/usage.md](docs/usage.md) and
73
+ [docs/config.md](docs/config.md).
74
+
75
+ ### Desktop app (beta)
76
+
77
+ <p align="center">
78
+ <img src="docs/assets/desktop-demo.webp" width="900" alt="The Freehand desktop app opens with its animated logo. In the textkit project, the request 'Add a word_count function to textkit.py, with tests.' GPT-6-astra reads the code, adds the function and seven tests, runs them, and reports that all 12 tests pass.">
79
+ <br>
80
+ <sub>GPT-6-astra in the desktop app, from launch. The model's 22 seconds of work play at 2× speed.</sub>
81
+ </p>
82
+
83
+ The desktop app is optional. It puts files, changes, Git and a terminal next to the conversation, and shares its
84
+ sessions and settings with the terminal, so a session started in one continues in the other. Signed installers are
85
+ not published yet, so build it from source (Node 22.12 or later, and `freehand` from [Install](#install)):
86
+
87
+ ```bash
88
+ git clone https://github.com/microsoft/FreeHand.git && cd FreeHand/desktop
89
+ npm install
90
+ npm run app # builds desktop/dist/mac-arm64/Freehand.app; `npm start` runs it without building
91
+ ```
92
+
93
+ Sign in from the app, or with `freehand login`. More in [desktop/README.md](desktop/README.md),
94
+ [docs/web-ui.md](docs/web-ui.md) and [docs/workbench.md](docs/workbench.md).
95
+
96
+ ## The idea
97
+
98
+ https://github.com/user-attachments/assets/ed6a45ba-9923-444d-b872-0a55e5368f16
99
+
100
+ The Bitter Lesson holds that knowledge built into AI systems helps at first and is eventually outgrown by general
101
+ methods. Mainstream harnesses build in a great deal: prompts prescribe how to approach a task, tool suites and
102
+ timeouts fix how to act, and threshold compaction decides what to remember, all before the model has seen the task.
103
+ For weaker models these presets are a crutch; for frontier models they become a cage. Freehand follows one rule:
104
+ **give the model a shell, its own memory, and a meter, and let it decide everything else.**
105
+
106
+ <p align="center">
107
+ <img src="docs/assets/harness-overview.png" width="900"
108
+ alt="Mainstream harnesses (Codex, Claude Code, Gemini CLI, OpenCode, Pi) give the model detailed instructions, 20+ preset tools, runtime reminders and auto-compaction at a fixed threshold. Freehand gives it a runtime description of about 200 words and one bash tool with model-set timeouts, and the model prunes its own history.">
109
+ </p>
110
+
111
+ | Decision | Typical harness | Freehand |
112
+ |---|---|---|
113
+ | How to approach the task (strategy) | rules, workflows and reminders in a long system prompt | a purely descriptive runtime prompt, with no rules |
114
+ | What tools to use (execution) | dozens of pre-designed tools | one `bash` tool, from which the model builds what the task needs |
115
+ | How long a command runs (execution) | fixed timeouts and poll intervals | the model sets each command's timeout and can run jobs detached |
116
+ | What stays in context (memory) | automatic compaction at a fixed threshold | the model manages its own context at runtime |
117
+
118
+ Before the task begins the model sees about 0.35K tokens and one tool. After every turn it also sees its own meter:
119
+ context size, tokens (with the cached share), cost and elapsed time.
120
+
121
+ The model-facing side stays this small on purpose. The human-facing side is complete: the desktop app (beta), a
122
+ browser interface (`freehand web`) and a terminal interface, with streaming Markdown, interrupt, sessions and resume,
123
+ per-turn undo, model switching, cost and context display, and HTML export.
124
+
125
+ ## Results
126
+
127
+ Across 11 settings (five benchmarks with GPT-6-astra, Claude Opus 5.5 and Gemini 4 Carbon), Freehand had the highest
128
+ score and the lowest cost in every one, and the shortest mean time per task. Against the first-party harnesses it
129
+ scored 5.1 points higher at 49% lower cost, and it also beat OpenCode, Pi, DeepSeek Harness and the bash-only
130
+ mini-swe-agent. In a controlled side-by-side rerun on the same machines and API endpoints, each of the other harnesses
131
+ took 17–62% longer.
132
+
133
+ | Benchmark | Model | Freehand (score · cost per task) | First-party harness (score · cost per task) |
134
+ |---|---|---|---|
135
+ | Terminal-Bench 4 | GPT-6-astra | **57.1%** · **$3.12** | Codex 54.6% · $5.88 |
136
+ | | Claude Opus 5.5 | **61.9%** · **$3.38** | Claude Code 54.9% · $4.91 |
137
+ | | Gemini 4 Carbon | **57.1%** · **$8.76** | Gemini CLI 49.5% · $13.72 |
138
+ | Terminal-Bench Science | GPT-6-astra | **63.8%** · **$7.71** | Codex 58.1% · $12.99 |
139
+ | | Claude Opus 5.5 | **55.2%** · **$8.16** | Claude Code 54.3% · $12.86 |
140
+ | Agents' Last Exam | GPT-6-astra | **67.5%** · **$1.92** | Codex 63.6% · $4.45 |
141
+ | | Claude Opus 5.5 | **66.5%** · **$1.16** | Claude Code 62.2% · $2.29 |
142
+ | OSWorld 2.1 | GPT-6-astra | **76.2%** · **$3.96** | Codex 68.3% · $14.94 |
143
+ | | Claude Opus 5.5 | **80.1%** · **$2.09** | Claude Code 74.9% · $7.49 |
144
+ | AutomationBench | GPT-6-astra | **49.5%** · **$0.56** | Codex 44.8% · $0.89 |
145
+ | | Claude Opus 5.5 | **54.4%** · **$0.19** | Claude Code 47.9% · $0.27 |
146
+
147
+ With lower-tier models the order reverses. On Terminal-Bench 4 the first-party harness scores higher with GPT-6 Sol
148
+ (Codex 34.9% vs. 29.2%), Claude Sonnet 5.5 (Claude Code 41.6% vs. 34.9%) and DeepSeek V4.1 Flash (DeepSeek Harness
149
+ 28.9% vs. 23.8%). Freehand is built for frontier models; with a smaller model, that model's first-party harness may
150
+ serve you better.
151
+
152
+ The other baselines, ablations and analysis are in the paper; [docs/benchmarks.md](docs/benchmarks.md) shows how to
153
+ run the benchmarks with Freehand.
154
+
155
+ ## Models and providers
156
+
157
+ | Provider | How to sign in |
158
+ |---|---|
159
+ | OpenAI (default) | `freehand login`, with a ChatGPT Plus or Pro plan, or `freehand login openai` with an API key |
160
+ | Anthropic | `freehand login anthropic`, then `freehand --provider anthropic` |
161
+ | Any OpenAI-compatible Chat Completions API | `freehand --provider openai-chat --api-base <url> --api-key-env <VAR>` |
162
+ | A gateway such as LiteLLM, for GPT, Claude and Gemini behind one key | [docs/gateway.md](docs/gateway.md) |
163
+
164
+ `/model` switches the model, and the provider with it, in a running session.
165
+
166
+ ## Security
167
+
168
+ Freehand is a local tool that acts with your permissions. It has no sandbox and no approval prompt: you draw the
169
+ boundary around Freehand, and inside it every decision is the model's.
170
+
171
+ - Commands run as you, with your files, network, credentials and environment variables.
172
+ - For code you do not trust, use a container or VM: [docs/container.md](docs/container.md).
173
+ - Repository content is untrusted input. `AGENTS.md` and project skills load only in folders you have trusted.
174
+ - No telemetry. Freehand talks only to the model service and MCP servers you configure (in the web and desktop
175
+ interfaces, public web links in replies also load site favicons from Google's favicon service; see
176
+ [docs/security.md](docs/security.md)).
177
+
178
+ The full model, including undo, local files and the browser interface, is in [docs/security.md](docs/security.md). To
179
+ report a vulnerability, see [SECURITY.md](SECURITY.md).
180
+
181
+ ## Development
182
+
183
+ ```bash
184
+ git clone https://github.com/microsoft/FreeHand.git && cd FreeHand
185
+ uv sync --extra dev
186
+ uv run pyflakes src tests
187
+ uv run pytest -q
188
+ ```
189
+
190
+ The code layout and the rules for a change are in [CONTRIBUTING.md](CONTRIBUTING.md) and [AGENTS.md](AGENTS.md).
191
+
192
+ <!-- agentopt-series:start -->
193
+ ## 🧭 AgentOpt Series
194
+
195
+ Freehand is part of the **AgentOpt** series from Microsoft Research. Each project tackles one part of an agent system: its skills, its training environments, the evaluator that judges it, or the harness it runs in. Projects are listed by release date.
196
+
197
+ | Project | What it does | Paper | Code | Project page |
198
+ |---|---|---|---|---|
199
+ | SkillLens | Studies what makes model-generated skills useful, from experience to extraction to use | [arXiv](https://arxiv.org/abs/2605.23899) | [Code](https://github.com/microsoft/SkillLens) | [Project page](https://microsoft.github.io/SkillLens/) |
200
+ | SkillOpt | Trains reusable natural-language skills for frozen agents | [arXiv](https://arxiv.org/abs/2605.23904) | [Code](https://github.com/microsoft/SkillOpt) | [Project page](https://microsoft.github.io/SkillOpt/) |
201
+ | Resource2Skill | Distills human tutorials and resources into executable agent skills | [arXiv](https://arxiv.org/abs/2606.29538) | [Code](https://github.com/microsoft/Resource2Skill) | [Project page](https://microsoft.github.io/Resource2Skill/) |
202
+ | EnvOpt | Builds the training environments an agent needs | [arXiv](https://arxiv.org/abs/2611.41901) | [Code](https://github.com/microsoft/EnvOpt) | [Project page](https://microsoft.github.io/EnvOpt/) |
203
+ | EvalOpt | Evolves evaluators for open-ended tasks from human feedback | [arXiv](https://arxiv.org/abs/2612.02431) | [Code](https://github.com/microsoft/EvalOpt) | [Project page](https://microsoft.github.io/EvalOpt/) |
204
+ | **Freehand** (this repo) | An agent harness that leaves the decisions to the model | [arXiv](https://arxiv.org/abs/2612.02442) | [Code](https://github.com/microsoft/FreeHand) | [Project page](https://microsoft.github.io/FreeHand/) |
205
+
206
+ More AgentOpt projects are on the way. Overview: [AgentOpt series page](https://microsoft.github.io/SkillOpt/agentopt/).
207
+ <!-- agentopt-series:end -->
208
+
209
+ ## Contributing
210
+
211
+ This project welcomes contributions and suggestions. See [CONTRIBUTING.md](CONTRIBUTING.md).
212
+
213
+ ## Citation
214
+
215
+ If you find Freehand useful in your research, please cite:
216
+
217
+ ```bibtex
218
+ @article{zeng2026freehand,
219
+ title = {Freehand: The Bitter Lesson Comes to Agent Harnesses},
220
+ author = {Zeng, Zezi and Zhao, Yuke and Tian, Muzhao and Yang, Yifan and Dai, Qi and Liu, Bei and Qiu, Kai
221
+ and Zhuang, Bohan and Zhu, Jihua and Luo, Chong},
222
+ journal = {arXiv preprint arXiv:2612.02442},
223
+ year = {2026}
224
+ }
225
+ ```
226
+
227
+ ## Trademarks
228
+
229
+ This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
230
+ trademarks or logos is subject to and must follow
231
+ [Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/legal/intellectualproperty/trademarks/usage/general).
232
+ Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft
233
+ sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.
234
+
235
+ Freehand is not affiliated with or endorsed by OpenAI, Anthropic or Google. ChatGPT, Codex, Claude, Claude Code,
236
+ Gemini and Gemini CLI are trademarks of their owners and are named here only to describe compatibility.
237
+
238
+ ## License
239
+
240
+ MIT. See [LICENSE](LICENSE).