Skip to content

feat: implement skills workspace support and replace Gemini with Antigravity - #680

Merged
haiphucnguyen merged 2 commits into
mainfrom
feature/skills-workspace-support
Aug 30, 2026
Merged

haiphucnguyen merged 2 commits into
mainfrom
feature/skills-workspace-support

Conversation

@haiphucnguyen

Copy link
Copy Markdown
Collaborator
  • 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.

…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.
Copilot AI lite review requested due to automatic review settings August 30, 2026 18:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  • result events include a response payload (see AntigravityStreamJsonEventParserTest), but the agent currently ignores it. If text_delta streaming is absent/partial for a run, Askimo may return an empty response even though the final result.response contains the full answer. Consider appending response at least when output is still blank to avoid missing final output.
    desktop-shared/src/main/kotlin/io/askimo/ui/skills/WorkspaceFilesPanel.kt:473
  • setPinned is called directly from the dropdown IconButton handler. This runs an Exposed transaction on the UI thread and can block rendering; it should be dispatched to Dispatchers.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)
@haiphucnguyen
haiphucnguyen requested a lite review from Copilot August 30, 2026 18:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@haiphucnguyen
haiphucnguyen merged commit d926857 into main Aug 30, 2026
8 of 10 checks passed
@haiphucnguyen
haiphucnguyen deleted the feature/skills-workspace-support branch August 30, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants