Skip to main content
Glama
README.md
# Antigravity Tasks Plugin

A personal single-file Markdown task backlog plugin and MCP App UI for **Google Antigravity**, paired with the `task-backlog` agent skill. It reads and updates `~/.gemini/antigravity/tasks.md` from both an interactive sidebar/aux-pane UI and agent conversations.

## Features

- **Sidebar & Aux-Pane MCP App UI:** Exposes the `open_tasks` MCP App entrypoint (`com.google.antigravity/ui`) with `Pending`, `Done`, and `All` tabs plus a per-project filter.
- **Single-File Markdown Store:** Persists tasks cleanly in `~/.gemini/antigravity/tasks.md` with atomic writes and monotonic `[#N]` task IDs.
- **Quick-Add with Auto-Title Generation:** Add tasks directly from the UI; when a title is omitted, optionally generates a concise 3–8 word title via a LiteLLM / OpenAI-compatible chat endpoint (with deterministic local fallback).
- **Conversation Linking & One-Click Resume:** Preserves source `conversation://` links, lets you copy conversation IDs or saved commands, and supports one-click resuming (`Bu sohbette yap`) or capturing from the active chat (`+ Bu sohbetten`).
- **Companion Skill (`skills/task-backlog/SKILL.md`):** Enables agents to defer, list, inspect/resume, and complete/cancel tasks directly from natural language.

## Installation

1. Clone the repository into your Antigravity plugins directory:

```bash
git clone https://github.com/vgazioglu/antigravity-tasks-plugin.git ~/.gemini/config/plugins/task-backlog
cd ~/.gemini/config/plugins/task-backlog
```

2. Install dependencies and build the bundled UI (`dist/app.html`):

```bash
bun install
bun run build
```

3. *(Optional)* Symlink or copy the companion skill if you want it available globally under `~/.gemini/config/skills/`:

```bash
mkdir -p ~/.gemini/config/skills/task-backlog
cp skills/task-backlog/SKILL.md ~/.gemini/config/skills/task-backlog/SKILL.md
```

4. Ensure `bin/tasks-server` is executable (`chmod +x bin/tasks-server`) and enable/reload the plugin in Antigravity.

## Environment Variables

All environment variables are optional:

| Variable | Default | Description |
| --- | --- | --- |
| `TASKS_FILE` | `~/.gemini/antigravity/tasks.md` | Override path to the Markdown backlog file. |
| `TASKS_APP_HTML` | `<plugin>/dist/app.html` | Override path to the built HTML bundle. |
| `LITELLM_BASE_URL` | `http://127.0.0.1:4000/v1` | Base URL for an OpenAI-compatible chat completions endpoint used for auto-title generation. |
| `LITELLM_API_KEY` | — | API key for title generation (also checks `LITELLM_MASTER_KEY` and `OPENAI_API_KEY`). |
| `LITELLM_DOTENV_PATH` | — | Optional path to a `.env` file containing `LITELLM_API_KEY`, `LITELLM_MASTER_KEY`, or `OPENAI_API_KEY`. |
| `TASKS_TITLE_MODEL` | `smart-chat` | Model name sent to the chat completions endpoint. |

If no API key is configured or the endpoint is unreachable, title generation automatically falls back to a clean local heuristic.

## Project Structure

```text
.
├── assets/
│   └── logo.svg                 # Plugin icon
├── bin/
│   └── tasks-server             # Portable launcher (prefers bun, falls back to node)
├── skills/
│   └── task-backlog/
│       └── SKILL.md             # Agent skill instructions for tasks.md workflows
├── src/
│   ├── app.ts                   # MCP App frontend UI
│   ├── build-ui.mjs             # Bun bundler producing self-contained dist/app.html
│   ├── server.mjs               # Stdio MCP server & app tools
│   ├── tasks-store.mjs          # Markdown parser/serializer & atomic file operations
│   └── title-gen.mjs            # Optional LLM title synthesis + local fallback
├── mcp_config.json              # MCP server definition
├── package.json
├── bun.lock
└── plugin.json                  # Antigravity plugin manifest
```

## Development

```bash
# Install dependencies
bun install

# Rebuild dist/app.html after editing src/app.ts or src/build-ui.mjs
bun run build

# Syntax-check the launcher script
bash -n bin/tasks-server
```

## License

[MIT](LICENSE)