Skip to content

Commit 46a28b1

Browse files
igorcostaAutohand Evolve
andauthored
Release Autohand Code 0.9.11 (#759)
Prepare Autohand Code 0.9.11 with the accumulated CLI reliability fixes and reviewed ACP deny-all enforcement. - Preserve terminal drafts and session readiness, recover healthy history, and avoid replay after capacity failures. - Return bounded delegated work as explicit partial results, retain configured model/reasoning choices, and preserve Code Mode images and permission boundaries. - Repair ACP follow-up elicitation, completion capture-budget handling, patch authorization, provider compatibility/deadlines, encoded paths, and packed Git runtime identities. - Include the reviewed #756 scope guard alongside the existing Keenable and OpenAI retry integrations. - Update package, legacy formula, changelog and curated release notes to 0.9.11; retain production archive checksum generation in the release pipeline. Validation: `bun run proof` passed on the exact candidate: 14,284 unit tests and 577 terminal tests. Lint, typecheck and build passed. Existing/platform skips: 81 unit and 3 terminal. Bun 1.4.2, Node 24, two isolated terminal workers. The 151 frozen input hashes and all published Git blob hashes were verified. The original recovered WIP snapshot and unrelated feature branches remain preserved. Historical Cloud safety verdicts and reports lacking incident/configuration evidence are not represented as resolved. Fixes #755. Fixes #754. Fixes #706. Fixes #700. Co-authored-by: Autohand Evolve <code-noreply@autohand.ai>
1 parent ac5e7c8 commit 46a28b1

129 files changed

Lines changed: 4887 additions & 413 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎CHANGELOG.md‎

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,30 @@
22

33
## Unreleased
44

5-
### Added
6-
7-
- Choose Keenable in `/search`, onboarding or settings with your own API key. Search results use the selected provider, and keys remain masked in the terminal.
8-
9-
### Fixed
10-
11-
- OpenAI-compatible fine-tuned and proxy models can recover once when their API requires a different completion-token parameter.
5+
## 0.9.11 - 2026-11-12
126

137
### Added
148

9+
- Configure delegated-agent request limits with `agent.subagentMaxIterations`; exhausted work returns partial findings and an explicit completion status.
10+
- Answer ACP follow-up questions through capability-gated form elicitation, with cancellation and session-retirement cleanup.
11+
- Choose Keenable in `/search`, onboarding or settings with your own API key. Search results use the selected provider, and keys remain masked in the terminal.
1512
- Squad MCP now also manages agent profiles, abilities, extra project folders, skills, group chats, channel membership and scheduled routines.
1613
- Squad is built in as an MCP connection. Select an agent in the running app with `/squad`, send it direct messages with `/message`, and read conversation history and delivery receipts. The connection also reads Squad artifacts and memories.
1714

1815
### Fixed
1916

17+
- Retain answer-only runtime commit identities when repository refs are packed, including worktree common-directory refs.
18+
- Continue required completion review with disclosed session evidence when a large workspace diff exceeds its capture time budget.
19+
- Apply supported anchored and numbered single-file patches, reject ambiguous or no-op changes, and authorize rewritten targets before editing.
20+
- Preserve per-agent model, reasoning and explicit research-only scope; forward Code Mode image evidence once while retaining compact script-visible hints.
21+
- Use compatible OpenAI endpoints, token limits, reasoning and sampling parameters; preserve configured reasoning on custom endpoints and bound token-parameter recovery to one resend.
22+
- Keep malformed historical tool calls as readable context and enforce OpenRouter deadlines through complete response body reads.
23+
- Use authoritative running llama.cpp context capacity without blocking composer startup or overriding explicit user limits.
24+
- Send the Autohand identity and opaque per-conversation routing on official OpenCode Go endpoints, and avoid whole-turn replay after Managed Identity authentication failure.
25+
- Stop automatic replay after storage-capacity failures, report unsaved-state risk, and recover valid project-history rows without rewriting original logs.
26+
- Resolve built-in skills from encoded filesystem paths and preserve complete project associations for new Cursor imports containing spaces, percent signs or Unicode.
27+
- Enforce bare all-tool denials for advertised and fabricated tools and automatic specialist preparation; ACP reports whether deny-all scope was activated.
28+
- OpenAI-compatible fine-tuned and proxy models can recover once when their API requires a different completion-token parameter.
2029
- Start chat and file work in ordinary folders without initializing Git or creating an ignore file. Existing repositories still show their branch; initialize Git only when you choose to use it.
2130
- Keep the composer editable while restoring saved conversations, preserve drafts and early submissions, and wait for restored history before executing queued work.
2231
- Prevent full-screen resize frames from accumulating in iTerm2 scrollback, preserve drafts and cursor edits, and relaunch compiled executables correctly inside tmux. Plain `--tmux` uses the current folder; `--worktree` and `--zit` request isolation explicitly.
@@ -32,6 +41,8 @@
3241

3342
- Exercise resize behavior through real tmux and native iTerm2, Ghostty, cmux, and VS Code windows in GitHub Actions, with the iTerm2 Python API disabled.
3443

44+
See [the 0.9.11 release notes](docs/changelog/whats-new-0.9.11.md) for details.
45+
3546
## 0.9.10 - 2026-11-04
3647

3748
### Added

‎docs/autohand-orchestration.md‎

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,20 @@ keep their existing behavior.
77

88
The lead plans, edits code, runs tests, and integrates results. It can delegate
99
independent file discovery, symbol and AST summaries, and documentation lookup
10-
to Fantail research workers. The default session limit is four threads: the
11-
lead and three workers. Workers receive read-only inspection tools and return
10+
to an explicit read-only research pool using `research_only: true`. The default
11+
Cloud orchestration limit is four threads: the lead and three workers. Research
12+
workers receive read-only inspection tools and return
1213
compact findings with file references, contracts, documentation sources, and
1314
uncertainties. Their private tool transcripts stay out of the lead's context.
15+
Ordinary reviewer and implementer delegations retain their agent definitions,
16+
tools, and reasoning settings; orchestration does not turn them into research
17+
workers. Explicit research-only restrictions also apply outside Cloud mode.
18+
19+
Delegated agents have an independent default limit of 30 model requests. Use
20+
`agent.subagentMaxIterations`, agent-definition `maxIterations`, or a lower
21+
per-call `maxIterations` to control it. The final request asks for a summary
22+
without tools. Available work returns as an explicit partial result when the
23+
limit is reached, including through Code Mode; it is not reported as completed.
1424

1525
Moa also provides independent, tool-free advice at three checkpoints:
1626

@@ -24,15 +34,19 @@ Each review receives the current session conversation, including any earlier
2434
context compaction, and the checkpoint evidence. Commit and completion reviews
2535
also receive the workspace diff against HEAD, including staged and untracked
2636
files, without changing the real Git index. Oversized or failed diff captures
27-
are reported as unavailable, not approved. Non-Git workspaces are identified
37+
are reported as unavailable, not approved. A completion-only capture that
38+
exceeds its time budget can instead be reviewed using session evidence, with
39+
the missing diff explicitly disclosed. Approval still requires the advisor's
40+
verdict; commit capture failures remain blocking. Non-Git workspaces are identified
2841
explicitly in the review evidence. Arbitrary scripts that stage or commit
2942
internally cannot be detected as Git checkpoints; the final review still runs.
3043

3144
The lead addresses requested changes before proceeding. An unavailable review
3245
or three rejected checkpoints ends the turn as incomplete with the reason
33-
visible. When a final answer is ready, it remains visible as an unreviewed or
34-
unapproved draft alongside the review feedback. The turn retains a failed
35-
footer and a prepared goal stays active with its successor queued. Goal
46+
visible. An approved answer is delivered after review. A rejected or unavailable
47+
candidate may be shown as an explicitly unreviewed or unapproved draft alongside
48+
the feedback. In that case the turn retains a failed footer and a prepared goal
49+
stays active with its successor queued. Goal
3650
completion is persisted only after approval and final answer delivery succeed.
3751
Resolve the review feedback and ask to continue; a visible draft is not proof
3852
of approval. Simple chat and routine shell steps do not call the advisor. Advisor
@@ -63,7 +77,8 @@ replayed by the transport. A late or malformed answer never counts as approval.
6377

6478
The orchestration setting is saved as `autohandai.orchestration`. Explicit
6579
`features.multi_agent_v2.max_concurrent_threads_per_session` values override the
66-
four-thread default. Worker model overrides remain supported; model suggestions
67-
in agent definitions do not override Fantail while orchestration is enabled.
80+
four-thread Cloud default. Worker model overrides remain supported. Agent
81+
definitions and their reasoning requirements are respected subject to account
82+
entitlements, rather than being replaced by a blanket Fantail assignment.
6883
Moa reasoning effort is high for advisor requests. Fantail requests do not send
6984
a reasoning-effort parameter.

‎docs/changelog/whats-new-0.9.11.md‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Autohand Code 0.9.11
2+
3+
### More reliable long-running work
4+
5+
- Delegated agents have a configurable 30-request default through `agent.subagentMaxIterations`. Per-agent limits and lower per-call limits remain available. Exhausted agents return their partial findings with an explicit status instead of losing completed work.
6+
- Code Mode preserves image evidence for the model while keeping script-visible image hints compact. Agent model and reasoning choices are respected, and research-only restrictions apply when explicitly requested.
7+
- Completion review can continue with disclosed session evidence when capturing a large workspace diff exceeds its time budget. Required review and commit guards remain in place.
8+
- ACP clients that support form elicitation can answer follow-up questions. Cancellations and retired sessions release the pending question safely.
9+
10+
### A steadier terminal and recoverable sessions
11+
12+
- Reduce duplicated resize frames and scrollback growth in iTerm2, keep drafts and cursor edits intact, and launch compiled executables correctly inside tmux. Plain `--tmux` uses the current folder; `--worktree` and `--zit` request isolation explicitly.
13+
- Keep the composer editable while restoring a saved conversation, preserve early submissions, and wait for restored history before executing queued work.
14+
- Recover usable project-history entries around malformed log rows. Storage-capacity errors stop automatic replay and explain that recent data may be unsaved.
15+
- Start ordinary folder work without creating a Git repository. Initialize Git only when you choose to use it.
16+
17+
### Provider compatibility and local models
18+
19+
- OpenAI requests use compatible endpoints, completion limits, sampling and reasoning settings, preserve configured reasoning on custom endpoints, and recover once from an explicitly rejected token parameter.
20+
- OpenRouter deadlines cover complete response bodies. Malformed historical tool calls remain available as readable context instead of being sent back as invalid native arguments.
21+
- Use the context capacity reported by the running llama.cpp server while retaining explicit user limits and responsive startup.
22+
- Avoid replaying an entire turn after a pre-request Azure Managed Identity failure. Official OpenCode Go endpoints receive the Autohand identity and an opaque per-conversation routing key.
23+
24+
### Safer tools and project paths
25+
26+
- Answer-only clients retain the development runtime commit identity in ordinary and worktree checkouts after Git packs its refs.
27+
- Apply supported single-file anchored and numbered patches with clearer rejection diagnostics. Rewritten targets are checked again before authorization; ambiguous and no-op changes fail explicitly.
28+
- A bare `--disallowed-tools '*'` blocks every tool, including automatic specialist dispatch. ACP reports whether the process activated this denial so constrained teaching clients can verify the boundary.
29+
- Find built-in skills reliably from paths containing spaces or encoded characters. New Cursor imports retain complete encoded project paths and project-index associations; existing imported history remains untouched.
30+
31+
### Squad, search and skills
32+
33+
- Built-in Squad MCP supports direct agent messages, history and delivery receipts, agent profiles and abilities, project folders, skills, group chats, channel membership and scheduled routines.
34+
- Choose the opt-in Keenable search provider in `/search`, onboarding or settings with your own API key. Keys stay masked in terminal settings.
35+
- Discover installed skills through a compact name index and load descriptions on demand. Keep background sync off until explicitly enabled, and cancel queued and active sync work immediately when it is disabled.

‎docs/config-reference.md‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1173,6 +1173,7 @@ Control agent behavior and iteration limits.
11731173
{
11741174
"agent": {
11751175
"maxIterations": 100,
1176+
"subagentMaxIterations": 30,
11761177
"enableRequestQueue": true,
11771178
"toolSelectionCache": true,
11781179
"autoMemory": true,
@@ -1187,6 +1188,7 @@ Control agent behavior and iteration limits.
11871188
| Field | Type | Default | Description |
11881189
| -------------------- | ------- | ------- | ------------------------------------------------------------------------------ |
11891190
| `maxIterations` | number | `100` | Maximum tool iterations per user request before stopping |
1191+
| `subagentMaxIterations` | number | `30` | Default delegated-agent model-request limit; integer from `1` to `1000`, independent of the main agent limit. Agent-definition `maxIterations` overrides the default; a delegation call may lower its effective limit. The final request is reserved for a summary without tools. |
11901192
| `enableRequestQueue` | boolean | `true` | Allow users to type and queue requests while agent is working |
11911193
| `toolSelectionCache` | boolean | `true` | Cache local per-turn tool schema selection for equivalent tool-selection input |
11921194
| `autoMemory` | boolean | `true` | Extract and save durable user/project memories after completed interactive turns, including evidence-backed lessons from failures and cancellations |
@@ -1198,6 +1200,24 @@ Control agent behavior and iteration limits.
11981200
| `sessionRetryDelay` | number | unset | Milliseconds before the first re-run, growing 1.5× per attempt. When unset, provider outages (5xx, network, timeout) wait 5 s, 15 s, 45 s and other errors 1 s, 1.5 s, 2.25 s; a provider retry-after always wins |
11991201
| `debug` | boolean | `false` | Enable verbose debug output (logs agent internal state to stderr) |
12001202

1203+
`/settings` exposes the delegated-agent limit. Agent-definition frontmatter can override the default:
1204+
1205+
```yaml
1206+
---
1207+
name: reviewer
1208+
maxIterations: 50
1209+
---
1210+
```
1211+
1212+
`delegate_task` and `delegate_parallel` accept an optional `maxIterations`; individual parallel entries may lower it further. Reaching the limit returns available work with `status: "partial"` and `reason: "iteration_limit"`, rather than discarding the findings. The final summary request counts toward the limit. If that summary fails, recorded observations and the failure remain available; cancellation, approval stops, and shared run budgets still take precedence. Partial status is available to Code Mode scripts as well as ordinary tool callers and does not mark the delegated task complete.
1213+
1214+
Disk-capacity errors (`ENOSPC` and `EDQUOT`) stop automatic session replay. The
1215+
error explains that recent data may not have been saved; free space before
1216+
retrying. A persistence failure can occur after a transcript or tool change has
1217+
already been written, so automatically rerunning the turn would risk repeating
1218+
work. Existing session files are retained and the error path does not delete
1219+
caches or conversations.
1220+
12011221
## Concurrent Session Awareness
12021222

12031223
```json

0 commit comments

Comments
 (0)