Repository navigation
feat: implement skills workspace support and replace Gemini with Antigravity - #680
Merged
Merged
Conversation
…gravity - Introduce Workspace domain and WorkspaceRepository for persistent skill context management. - Replace GeminiAgent with AntigravityAgent and update associated CLI path resolution logic. - Extract common JSON stream parsing logic into a unified JsonLineParser. - Simplify SkillsView UI components by removing redundant execution and list views. - Update application preferences to track selected workspace ID. - Refresh i18n resource files to reflect the transition from Gemini to Antigravity. BREAKING CHANGE: Gemini CLI has been replaced by Antigravity CLI. Existing skill run references should be migrated to the new workspace-based schema.
There was a problem hiding this comment.
Pull request overview
This PR migrates the Skills feature from a single “last used workspace path” to a persisted workspace model, and replaces the Gemini CLI integration with Antigravity (agy), including updated stream-json parsing and UI adjustments.
Changes:
- Added persistent Workspaces (domain + repository + DB table) and updated preferences to store selected workspace ID.
- Replaced Gemini agent/parser with Antigravity agent/parser and unified JSON line parsing via
JsonLineParser. - Simplified/reshaped Skills UI to focus on agentic workflows, adding workspace switching/pinning/rename/remove and refreshing i18n strings.
Reviewed changes
Copilot reviewed 41 out of 41 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| shared/src/test/kotlin/io/askimo/core/skills/GeminiStreamJsonEventParserTest.kt | Removes Gemini stream-json parser tests. |
| shared/src/test/kotlin/io/askimo/core/skills/AntigravityStreamJsonEventParserTest.kt | Adds tests for Antigravity stream-json event parsing. |
| shared/src/main/kotlin/io/askimo/core/util/ProcessBuilderExt.kt | Adds which() helper and improves Windows CLI resolution search paths. |
| shared/src/main/kotlin/io/askimo/core/skills/repository/WorkspaceRepository.kt | New repository for persisting/querying workspaces. |
| shared/src/main/kotlin/io/askimo/core/skills/domain/Workspace.kt | New Workspace domain model + Exposed table. |
| shared/src/main/kotlin/io/askimo/core/skills/agent/StreamJsonEvent.kt | Adds a shared stream-json event DTO. |
| shared/src/main/kotlin/io/askimo/core/skills/agent/JsonLineParser.kt | Introduces unified JSON parsing for stream-json lines. |
| shared/src/main/kotlin/io/askimo/core/skills/agent/GeminiStreamJsonEventParser.kt | Removes Gemini stream-json parser implementation. |
| shared/src/main/kotlin/io/askimo/core/skills/agent/ExternalAgentTemplate.kt | Adds “application-level failure” reporting to convert stream-reported failures into Result.failure. |
| shared/src/main/kotlin/io/askimo/core/skills/agent/ExternalAgentLoader.kt | Swaps Gemini agent for Antigravity agent in the loader. |
| shared/src/main/kotlin/io/askimo/core/skills/agent/ExternalAgent.kt | Adds materializeSkill() hook for agent-native skill discovery locations. |
| shared/src/main/kotlin/io/askimo/core/skills/agent/CursorStreamJsonEventParser.kt | Switches JSON parsing to JsonLineParser. |
| shared/src/main/kotlin/io/askimo/core/skills/agent/CursorAgent.kt | Uses ProcessBuilderExt.which() for binary discovery. |
| shared/src/main/kotlin/io/askimo/core/skills/agent/CodexAgent.kt | Uses ProcessBuilderExt.which() for binary discovery. |
| shared/src/main/kotlin/io/askimo/core/skills/agent/ClaudeStreamJsonEventParser.kt | Switches JSON parsing to JsonLineParser and streamlines array parsing. |
| shared/src/main/kotlin/io/askimo/core/skills/agent/ClaudeAgent.kt | Adds skill materialization into .claude/skills/ and improves result error handling. |
| shared/src/main/kotlin/io/askimo/core/skills/agent/AntigravityStreamJsonEventParser.kt | Adds Antigravity stream-json parser and renderer. |
| shared/src/main/kotlin/io/askimo/core/skills/agent/AntigravityAgent.kt | Replaces Gemini agent behavior with Antigravity (agy) invocation + parsing. |
| shared/src/main/kotlin/io/askimo/core/db/DatabaseManager.kt | Creates the workspaces table + exposes WorkspaceRepository. |
| shared/src/main/kotlin/io/askimo/core/context/AppContext.kt | Updates inline documentation references from Gemini to Antigravity. |
| shared/src/main/kotlin/io/askimo/core/analytics/AnalyticsEvent.kt | Updates analytics docstring to reflect Antigravity as an agent option. |
| desktop/src/main/kotlin/io/askimo/desktop/Main.kt | Routes Skills view to agenticSkillsView. |
| desktop/build.gradle.kts | Moves/re-adds the sortI18nKeys task (no functional change to task logic). |
| desktop-shared/src/main/resources/i18n/messages.properties | Updates Skills strings for Antigravity + workspace switcher + removes unused keys. |
| desktop-shared/src/main/resources/i18n/messages_zh_TW.properties | Updates Skills strings for Antigravity + workspace switcher + removes unused keys. |
| desktop-shared/src/main/resources/i18n/messages_zh_CN.properties | Updates Skills strings for Antigravity + workspace switcher + removes unused keys. |
| desktop-shared/src/main/resources/i18n/messages_vi_VN.properties | Updates Skills strings for Antigravity + workspace switcher + removes unused keys. |
| desktop-shared/src/main/resources/i18n/messages_pt_BR.properties | Updates Skills strings for Antigravity + workspace switcher + removes unused keys. |
| desktop-shared/src/main/resources/i18n/messages_ko_KR.properties | Updates Skills strings for Antigravity + workspace switcher + removes unused keys. |
| desktop-shared/src/main/resources/i18n/messages_ja_JP.properties | Updates Skills strings for Antigravity + workspace switcher + removes unused keys. |
| desktop-shared/src/main/resources/i18n/messages_fr.properties | Updates Skills strings for Antigravity + workspace switcher + removes unused keys. |
| desktop-shared/src/main/resources/i18n/messages_es.properties | Updates Skills strings for Antigravity + workspace switcher + removes unused keys. |
| desktop-shared/src/main/resources/i18n/messages_de.properties | Updates Skills strings for Antigravity + workspace switcher + removes unused keys. |
| desktop-shared/src/main/kotlin/io/askimo/ui/skills/WorkspaceFilesPanel.kt | Adds workspace switcher (list/pin/rename/remove/add) to the workspace files panel. |
| desktop-shared/src/main/kotlin/io/askimo/ui/skills/SkillsView.kt | Extracts shared header + result/timeline UI helpers. |
| desktop-shared/src/main/kotlin/io/askimo/ui/skills/SkillsCompactList.kt | Removes compact skill list component (no longer used). |
| desktop-shared/src/main/kotlin/io/askimo/ui/skills/SkillExecutionArea.kt | Removes manual execution area (replaced by agentic flow). |
| desktop-shared/src/main/kotlin/io/askimo/ui/skills/ManualSkillsView.kt | Removes manual skills view. |
| desktop-shared/src/main/kotlin/io/askimo/ui/skills/AgenticSkillsView.kt | Implements workspace-backed selection and adds History tab wiring for agentic skills. |
| desktop-shared/src/main/kotlin/io/askimo/ui/skills/AgenticRunArea.kt | Adds interleaved timeline rendering, skill materialization, and improved input handling. |
| desktop-shared/src/main/kotlin/io/askimo/ui/common/preferences/ApplicationPreferences.kt | Switches from storing workspace dir to storing selected workspace ID. |
Suppressed comments (2)
shared/src/main/kotlin/io/askimo/core/skills/agent/AntigravityAgent.kt:172
resultevents include aresponsepayload (see AntigravityStreamJsonEventParserTest), but the agent currently ignores it. Iftext_deltastreaming is absent/partial for a run, Askimo may return an empty response even though the finalresult.responsecontains the full answer. Consider appendingresponseat least whenoutputis still blank to avoid missing final output.
desktop-shared/src/main/kotlin/io/askimo/ui/skills/WorkspaceFilesPanel.kt:473setPinnedis called directly from the dropdown IconButton handler. This runs an Exposed transaction on the UI thread and can block rendering; it should be dispatched toDispatchers.IO(coroutine) and then trigger a refresh/state update when complete.
IconButton(
onClick = {
workspaceRepo.setPinned(ws.id, !ws.pinned)
workspaceListVersion++
},
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+264
to
+268
| modifier = Modifier.fillMaxWidth().focusRequester(focusRequester).onKeyEvent { event -> | ||
| if (event.key == Key.Enter && renameWorkspaceText.trim().isNotBlank()) { | ||
| workspaceRepo.rename(target.id, renameWorkspaceText.trim()) | ||
| renameWorkspaceTarget = null | ||
| workspaceListVersion++ |
Comment on lines
82
to
+86
| internal fun resolveSkillsWorkspaceDir(): File { | ||
| val saved = ApplicationPreferences.getSkillsWorkspaceDir() | ||
| return if (saved != null) File(saved) else AskimoHome.skillsWorkspaceDir().toFile() | ||
| val repo = DatabaseManager.getInstance().getWorkspaceRepository() | ||
|
|
||
| val selected = ApplicationPreferences.getSkillsSelectedWorkspaceId()?.let { repo.findById(it) } | ||
| if (selected != null) return File(selected.path) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BREAKING CHANGE: Gemini CLI has been replaced by Antigravity CLI. Existing skill run references should be migrated to the new workspace-based schema.