Commit 289a56a
Merge main into cypack-807 branch (CYPACK-821) (#873)
* Respect agent guidance for draft PRs and use --track for worktrees (#834)
- Update gh-pr subroutine to conditionally gate `gh pr ready` based on
agent guidance (respects --draft flag in workspace guidance)
- Update changelog-update subroutine to include --base flag in PR creation
targeting the configured base branch from context
- Add --track flag to git worktree add commands to properly set upstream
tracking branch
Fixes issues where PRs were auto-converted from draft to ready and
worktrees weren't tracking the correct upstream branch.
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
* Prepare release v0.2.20 (#835)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
* Refactor TodoWrite formatting to support Task tools (#837)
* Update @anthropic-ai/claude-agent-sdk to v0.2.34 and @anthropic-ai/sdk to v0.73.0
- Updated @anthropic-ai/claude-agent-sdk from ^0.2.7 to ^0.2.34
- Updated @anthropic-ai/sdk from ^0.71.2 to ^0.73.0
- Fixed type compatibility with new BetaUsage fields (inference_geo, iterations, stop_reason)
- Updated gemini-runner adapters to handle new SDK types
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Update changelog for SDK updates
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Enable Claude Code experimental features in claude-runner
- Set CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1
- Set CLAUDE_CODE_ENABLE_TASKS=true
- Set CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1
- Updated test expectations to include new env configuration
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Refactor TodoWrite formatting to support Task tools
- Added formatTaskParameter() method to IMessageFormatter interface
- Implemented Task tool formatting (TaskCreate, TaskUpdate, TaskList, TaskGet) in ClaudeMessageFormatter and GeminiMessageFormatter
- Updated AgentSessionManager to handle Task tools as thought activities
- Added comprehensive tests for Task tool formatting (20 new tests)
- Marked TodoWrite as deprecated while maintaining backward compatibility
- Fixed linting warnings in switch case block scope
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Fix spawn node ENOENT by passing process.env to Claude SDK
The env option only contained 3 hardcoded vars, causing PATH to be
missing from the spawned Claude Code process.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Cherry-pick d5d9e5a: Fix single-turn subroutine silent failures (#843)
* Cherry-pick d5d9e5a: Fix single-turn subroutine silent failures
Cherry-picks commit d5d9e5a from refactor/improved-logging branch.
Resolves merge conflicts adapting logging refactor patterns
(sessionId/log.info) to current branch patterns
(linearAgentActivitySessionId/console.log).
When a single-turn subroutine exits with an error (e.g. error_max_turns),
AgentSessionManager now recovers by using the last completed subroutine's
result via ProcedureAnalyzer.getLastSubroutineResult(), allowing the
procedure to continue to completion instead of failing silently.
Also adds tools config pass-through to ClaudeRunner and EdgeWorker
so disallowAllTools subroutines properly disable built-in tools.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Update changelogs for CYPACK-792 (#843)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix ClaudeRunner test env assertions after process.env spread
Tests expected env to contain only 3 explicit keys, but commit
6e8d873 added ...process.env to prevent spawn ENOENT errors.
Updated assertions to use expect.objectContaining() so tests
verify required keys without failing on additional process.env
entries.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
* Fix TaskCreate/TaskGet formatting, add ToolSearch/TaskOutput formatting, include task subject in TaskUpdate/TaskGet (#846)
* Fix TaskCreate/TaskGet formatting for parallel execution, add ToolSearch and TaskOutput formatting
TaskCreate now renders as concise checklist items (⏳ **subject**) instead of
verbose multi-line format, better suited for parallel async execution. TaskGet
shows subject with ID when enriched. ToolSearch renders as a thought with
descriptive formatting. TaskOutput shows task status with blocking/non-blocking
context.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add changelog entries for CYPACK-795
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Simplify TaskUpdate/TaskGet to use task number, show ToolSearch query directly
TaskUpdate and TaskGet now always display the task number (e.g. "Task #123")
instead of the subject description for consistency with parallel execution.
ToolSearch now shows the query directly as the parameter value, matching
the pattern of other tools like Bash (command) and Read (file_path).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Revert Gemini runner formatting changes (not applicable to these tools)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Include task subject in TaskUpdate and TaskGet formatting
TaskUpdate and TaskGet now display the task's short description
alongside the task number (e.g., "✅ Task #3 — Fix login bug")
when a subject is available, falling back to number-only when not.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
* Enrich TaskUpdate/TaskGet activities with task subject (CYPACK-797) (#847)
* Enrich TaskUpdate/TaskGet activities with task subject from cache and result parsing
TaskUpdate and TaskGet tool inputs don't include the task subject, causing
Linear activities to show only "Task #3" without context. This change defers
their activity posting from tool_use time to tool_result time, where subject
can be sourced from: (1) a cache populated by TaskCreate results, or
(2) parsing the Subject field from TaskGet result content.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Add changelog entries for CYPACK-797
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Delete packages/edge-worker/test/AgentSessionManager.task-subject-enrichment.test.ts
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Payton Webber <53197664+PaytonWebber@users.noreply.github.com>
* Release v0.2.21 (#848)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
* fix(orchestrator): ensure issues are created with 'To Do' status instead of 'Triage' (#815)
* fix(orchestrator): ensure issues are created with 'To Do' status instead of 'Triage'
Update orchestrator system prompts to explicitly require setting state to
"To Do" when creating issues with mcp__linear__create_issue. Previously,
issues were being created with default "Triage" status.
Changes to both orchestrator.md (v2.5.0) and graphite-orchestrator.md (v1.3.0):
- Added state requirement to Required Tools section
- Added Status bullet point in Decompose section
- Added status checklist item in Sub-Issue Creation Checklist
- Fixed outdated tool names in orchestrator.md
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* docs(changelog): add entry for CYPACK-761
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Connor Turland <1409121+Connoropolous@users.noreply.github.com>
* Codex SDK migration + split agent/model selectors (#850)
* chore: checkpoint codex sdk integration WIP
* Switch codex runner to SDK and add agent/model selectors
* chore: checkpoint codex sdk integration WIP
* Switch codex runner to SDK and add agent/model selectors
* Resolve rebase conflicts, migrate model defaults, and fix codex session init
* Fix Codex/Gemini usage typing and add Codex formatter replay tests
* Emit Codex tool lifecycle events for Linear activities
* Format Codex todos as markdown checklists
* Extract F1 test-drive workflow into shared skill
* Add user-facing changelog entry for agent/model selectors
* Add PR link to changelog entry for codex selector work
* update sandbox settings
* add .git folder for worktrees to allowed directories list
* Cursor harness MCP enable + permission mapping hardening (#858)
* fix(orchestrator): ensure issues are created with 'To Do' status instead of 'Triage' (#815)
* fix(orchestrator): ensure issues are created with 'To Do' status instead of 'Triage'
Update orchestrator system prompts to explicitly require setting state to
"To Do" when creating issues with mcp__linear__create_issue. Previously,
issues were being created with default "Triage" status.
Changes to both orchestrator.md (v2.5.0) and graphite-orchestrator.md (v1.3.0):
- Added state requirement to Required Tools section
- Added Status bullet point in Decompose section
- Added status checklist item in Sub-Issue Creation Checklist
- Fixed outdated tool names in orchestrator.md
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* docs(changelog): add entry for CYPACK-761
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Connor Turland <1409121+Connoropolous@users.noreply.github.com>
* feat(runners): add codex/cursor harness support and F1 validation
* fix(cursor-runner): support non-mock cursor F1 session output
* Fix cursor harness verification regressions
* fix(ci): resolve build type errors in config-updater and core session types
* fix(edge-worker): wire cursor runner selection and prompt assets
* docs(changelog): frame cursor harness as major feature
* docs(changelog): use user-facing framing for cursor entry
* docs(changelog): clarify cursor selector usage
* fix(build): remove baseUrl/paths from tsconfig to fix dist output structure
The baseUrl pointing to monorepo root caused TypeScript to expand rootDir,
nesting compiled output under dist/edge-worker/src/ instead of dist/.
This broke module resolution since package.json declares main as dist/index.js.
Also adds missing cyrus-cursor-runner dependency to edge-worker.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(cursor/edge-worker): stop-session handling and cursor tool activity mapping
* chore(gitignore): ignore nested node_modules directories
* fix(edge-worker): resume cursor sessions for prompted continuation
* fix(cursor-runner): sync project permissions for cursor CLI sessions
* fix(cursor-runner): map MCP tool permissions to Cursor CLI config
* docs(claude): add cursor permission translation gotcha
* fix(codex): default runner model to gpt-5.3-codex
* fix(cursor-runner): pre-enable MCP servers before cursor sessions
* docs(cursor): clarify .cursor/mcp.json source-of-truth guidance
* fix(cursor-runner): scope wildcard file permissions to workspace
* fix(codex): post actual error message to Linear for usage limit errors
When Codex hits usage limits or turn.failed errors, the full error message
is now posted to Linear agent activity instead of a generic message.
- AgentSessionManager: use errors[] for content when result is empty
- CodexRunner: fallback to standalone error event when turn.failed has no message
Co-authored-by: Cursor <cursoragent@cursor.com>
* feat(cursor): enable sandbox by default, fix cli.json formatting
- Default Cursor sandbox to enabled for tool execution isolation
- Write .cursor/cli.json with tabs for Biome compatibility
- Exclude .cursor from Biome checks (generated config)
- Update CHANGELOG with sandbox default
Co-authored-by: Cursor <cursoragent@cursor.com>
* feat(cursor): validate cursor-agent version before run, post error to Linear on mismatch
- Run cursor-agent --version before spawn and compare to tested version
- Post error_during_execution to Linear via agent activity when version mismatches
- Add cursorAgentVersion config and CYRUS_CURSOR_AGENT_VERSION env override
- Add CursorRunner.version-check.test.ts with 3 tests
- Update CHANGELOG with version validation behavior
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(cursor): render TODO_STATUS_COMPLETED todos as checked in Linear
- Map Cursor API TODO_STATUS_COMPLETED to [x] marker in formatter and summarizeTodoList
- Map TODO_STATUS_IN_PROGRESS for (in progress) suffix
- Add formatter test for TODO_STATUS_* values
- Update CHANGELOG
Co-authored-by: Cursor <cursoragent@cursor.com>
* feat(cursor): log assembled cursor-agent CLI args to console and session logs
- Log full spawn command (path + args) before cursor-agent execution
- Write to both console and session log file for debugging
- Update CHANGELOG
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(cursor): remove --force and --api-key from CLI args
- Remove --force option from cursor-agent invocations
- Pass API key via CURSOR_API_KEY env only (no longer in args)
- API key no longer appears in spawn logs or terminal output
- Update CHANGELOG
Co-authored-by: Cursor <cursoragent@cursor.com>
* add --trust
* move trust line
* Delete .cursor/cli.json
* fix(cursor-runner): backup and restore .cursor/cli.json instead of overwriting
Temporarily rename existing .cursor/cli.json before writing Cyrus permissions,
then restore original when session ends. Preserves user's config.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix(cursor): add deny rules to scope Read/Write to workspace only
- When broad Read or Write allowed, add deny rules for /etc, /usr, etc.
- Add deny rules for workspace sibling directories
- Prevents cursor-agent from accessing /etc/hosts and system paths
- Add test: only mutates project .cursor/cli.json, leaves home config unchanged
- Update wildcard permissions test to expect system-path denies
Co-authored-by: Cursor <cursoragent@cursor.com>
* docs(changelog): add Cursor .cursor/cli.json backup/restore entry for CYPACK-804
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Connor Turland <1409121+Connoropolous@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: agentclear <agentops@ceedar.ai>
Co-authored-by: Cyrus <208047790+cyrusagent@users.noreply.github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
* Update README with agent capabilities and notes (#869)
* Bump fastify from 5.6.1 to 5.7.3 (#828)
Bumps [fastify](https://github.com/fastify/fastify) from 5.6.1 to 5.7.3.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](fastify/fastify@v5.6.1...v5.7.3)
---
updated-dependencies:
- dependency-name: fastify
dependency-version: 5.7.3
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* docs: Update internal changelog for main merge (CYPACK-821)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Payton Webber <53197664+PaytonWebber@users.noreply.github.com>
Co-authored-by: Connor Turland <1409121+Connoropolous@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent a107040 commit 289a56a
96 files changed
Lines changed: 6795 additions & 470 deletions
File tree
- .claude
- agents
- skills
- .codex/skills
- .opencode/skills
- apps
- cli
- src
- commands
- services
- f1
- test-drives
- code
- packages
- cloudflare-tunnel-client/src
- codex-runner
- src
- test
- fixtures
- config-updater
- src/handlers
- core
- src
- cursor-runner
- src
- test
- fixtures
- edge-worker
- prompts
- src
- procedures
- test
- gemini-runner
- src
- linear-event-transport
- scripts
- skills/f1-test-drive
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 14 | + | |
18 | 15 | | |
19 | | - | |
| 16 | + | |
20 | 17 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
17 | 25 | | |
18 | 26 | | |
19 | 27 | | |
| |||
0 commit comments