Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Commit b73937e

Browse files
committed
feat: Remove goal management feature entirely
This major change removes the goal management feature to simplify the plugin and focus on task continuation functionality. BREAKING CHANGES: - Removed goal tools: goal_set, goal_status, goal_done, goal_cancel, goal_validate - Removed createGoalManagement API - Removed goal types and storage - Updated createTaskContinuation to remove goalManagement parameter Removed files: - src/tools/goal/ (goal tool implementations) - packages/goals/ (goal management package) - src/goal-context-injection.ts - src/goal/ (goal management implementation) - tools.ts (goal tools definitions) - GOAL_IMPLEMENTATION.md - Goal-related test files Migration: Use todo-based workflows instead of goal-based workflows. 🤖 Generated with OpenCode
1 parent f6cb484 commit b73937e

42 files changed

Lines changed: 384 additions & 5526 deletions

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: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,97 @@
11
# Changelog
22

3+
## [6.0.0] - 2026-01-20
4+
5+
### Breaking Changes
6+
7+
**Goal Management Feature Removed**
8+
9+
This major release removes the goal management feature to simplify the plugin and focus on task continuation functionality.
10+
11+
#### Removed Features
12+
13+
- **Goal Management Tools**: `goal_set`, `goal_status`, `goal_done`, `goal_cancel`, `goal_validate`
14+
- **Goal Management API**: `createGoalManagement` export
15+
- **Goal Types**: `Goal`, `GoalManagement`, `GoalManagementOptions`, `GOALS_BASE_PATH`, `GOAL_FILENAME`
16+
- **Goal Storage**: File-based goal persistence at `~/.local/share/opencode/plugin/agent-loop/`
17+
- **Goal Context Injection**: Automatic goal context in session prompts
18+
19+
#### Removed Files
20+
21+
- `src/tools/goal/` - Goal tool implementations
22+
- `packages/goals/` - Goal management package
23+
- `src/goal-context-injection.ts` - Goal context injection
24+
- `src/goal/` - Goal management implementation (management.ts, storage.ts, continuation.ts)
25+
- `tools.ts` - Goal tools definitions
26+
- `GOAL_IMPLEMENTATION.md` - Goal implementation documentation
27+
- Goal-related test files in `__tests__/`
28+
29+
#### Updated APIs
30+
31+
**createTaskContinuation:**
32+
33+
```typescript
34+
// Old signature (with goal management)
35+
createTaskContinuation(input, options, goalManagement?: GoalManagement)
36+
37+
// New signature (task continuation only)
38+
createTaskContinuation(input, options)
39+
```
40+
41+
**Plugin Configuration:**
42+
43+
Goal-related configuration options have been removed. The plugin now focuses solely on task continuation based on todo items.
44+
45+
#### Migration Guide
46+
47+
Users should migrate from goal-based workflows to todo-based workflows:
48+
49+
**Before (Goal-based):**
50+
51+
```typescript
52+
await goal_set({
53+
title: "Implement feature X",
54+
done_condition: "Feature X is complete and tested",
55+
description: "Detailed description here",
56+
})
57+
await goal_done()
58+
await goal_validate()
59+
```
60+
61+
**After (Todo-based):**
62+
63+
```typescript
64+
await todowrite({
65+
todos: [
66+
{
67+
id: "1",
68+
content: "Implement feature X",
69+
status: "in_progress",
70+
priority: "high",
71+
},
72+
],
73+
})
74+
// ... work on task ...
75+
await todowrite({
76+
todos: [
77+
{
78+
id: "1",
79+
content: "Implement feature X",
80+
status: "completed",
81+
priority: "high",
82+
},
83+
],
84+
})
85+
```
86+
87+
#### Benefits
88+
89+
- Simplified plugin architecture
90+
- Reduced bundle size
91+
- Clearer focus on task continuation
92+
- No file system operations for goal storage
93+
- Easier to maintain and extend
94+
395
## [5.1.2] - 2026-01-14
496

597
### Fixed

CONFIGURATION.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ Logs are written to the configured log file path (default: `~/.local/share/openc
6767
{
6868
"timestamp": "2026-01-14T10:30:00.000Z",
6969
"level": "INFO",
70-
"message": "Goal created",
70+
"message": "Task continuation injected",
7171
"data": {
7272
"sessionID": "session-123",
73-
"title": "Complete feature"
73+
"incompleteCount": 3
7474
},
75-
"source": "agent-loop-goals"
75+
"source": "agent-loop-continuation"
7676
}
7777
```
7878

GOAL_IMPLEMENTATION.md

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)