You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- daily-changelog: wrote planning/changelog/2026-05-05.md, 3 PRs (lifecycle-hooks actions #758, focusFile flag #761, daily housekeeping #762)
- audit-docs: README.md "What's New" section updated from v4.7.0 to v4.8.0 (manifest is 4.8.0, README was stale)
- triage-issues: no unlabeled open issues
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,24 +7,26 @@ Gemini Scribe is an Obsidian plugin that integrates Google's Gemini AI models, p
7
7
> -**Google Gemini (cloud)** — requires a Gemini API key (free tier available at [Google AI Studio](https://aistudio.google.com/apikey)).
8
8
> -**Ollama (local)** — runs locally with no API key; install [Ollama](https://ollama.com), pull a model, and select it in settings. See [docs/guide/ollama-setup.md](docs/guide/ollama-setup.md) for the feature-parity table.
-**⏰ Scheduled tasks** - Run agent tasks on a cron, time-of-day, or day-of-week schedule with full management UI. See the [Scheduled Tasks guide](docs/guide/scheduled-tasks.md).
15
+
-**🌙 Missed-run catch-up** - Tasks that should have run while Obsidian was closed surface on startup for review.
16
+
-**🛰️ Background tasks** - Deep research and image generation now run in the background with output consolidated under `[state-folder]/Background-Tasks/`. See the [Background Tasks guide](docs/guide/background-tasks.md).
17
+
-**📊 Unified activity modal** - Background Tasks and RAG status share a single tabbed view.
18
+
-**🦙 Ollama provider** - Point the plugin at a local Ollama server for offline, local-model chat. See the [Ollama Setup guide](docs/guide/ollama-setup.md).
19
+
-**🛑 Runaway-loop abort** - Repeated tool-loop detections within a turn now abort the turn with a clear notice instead of churning.
20
+
-**🛠️ Headless agent loop** - AgentLoop extracted from the agent view so scheduled and background runners share the same execution engine.
21
+
22
+
**Previous Updates (v4.7.0):**
13
23
14
24
-**📂 Projects** - Scope agent sessions to a folder with custom instructions, permission overrides, and skill filters. See the [Projects guide](docs/guide/projects.md).
15
25
-**🧠 Session recall** - The agent can search past conversations for relevant context via the `recall_sessions` tool.
16
26
-**📦 Bundled skills** - Built-in help and Obsidian-knowledge skills, auto-generated from the docs site at build time.
17
27
-**📄 Binary file awareness in tools** - `read_file` can return images, audio, video, and PDFs directly to the model when encountered during tool execution.
18
28
-**🏗️ Layered prompt architecture** - System prompts refactored into composable Handlebars sections.
19
29
20
-
**Previous Updates (v4.6.0):**
21
-
22
-
-**📝 Diff review view** - Side-by-side diff for `write_file`, `append_content`, `create_skill`, and `edit_skill` with inline editing before approval
23
-
-**✏️ edit_skill tool** - Update existing skill instructions through the agent
24
-
-**🔧 get_workspace_state** - Comprehensive workspace snapshot replacing the old `get_active_file`
25
-
-**📎 Binary files in @ mentions** - File picker supports images, PDFs, audio, and video alongside text
26
-
-**🗂️ Folder re-expansion** - Folders in context auto-include newly created files on each turn
27
-
28
30
## Features
29
31
30
32
-**Agent Mode with Tool Calling:** An AI agent that can actively work with your vault! It can search for files, read content, create new notes, edit existing ones, move and rename files, create folders, and even conduct deep research with proper citations. Features persistent sessions, granular permission controls, session-specific model configuration, and a diff review view that lets you inspect and edit proposed file changes before they're written.
Lifecycle-hooks day: the epic's third PR landed in the morning rounding out the action vocabulary (`summarize`, `rewrite`, `command` alongside the existing `agent-task`), then a quick follow-up tightened the `command` action with an opt-in `focusFile` flag so editor-scoped commands target the right file. The automated daily housekeeping PR (covering 2026-05-04) also merged in the evening.
Phase 3 of the lifecycle-hooks epic (#749). Three new action types join `agent-task` in the hook runner:
17
+
18
+
-**`summarize`** — runs the existing summary feature against the triggering file and writes the result to frontmatter. Non-markdown files are silently skipped.
19
+
-**`rewrite`** — rewrites the full file using the hook's prompt body as instructions, via `vault.read`/`vault.modify` (no active editor required). Non-markdown files are silently skipped.
20
+
-**`command`** — dispatches a registered command palette command by id (`commandId` frontmatter field). Unknown ids surface as hook failures rather than silent no-ops.
21
+
22
+
Service-side, `GeminiSummary.summarizeFile(file)` and `SelectionRewriter.rewriteFile(file, instructions)` were extracted so non-interactive callers can invoke them without an active editor. A drive-by fix corrects a binary-encoding bug in `globToRegExp` introduced by prettier during PR 1's reformat; the logic is unchanged and all 40 existing glob tests pass. The management modal gains an action dropdown with per-action input sections. Suite at 1594 passing.
Automated daily housekeeping covering 2026-05-04. Wrote `planning/changelog/2026-05-04.md` (4 PRs: lifecycle-hooks engine, management UI, post-test fixups, and the prior daily update). Fixed four doc-drift items in `README.md`, `docs/reference/settings.md`, and `AGENTS.md` — all triggered by the hooks PRs landing without corresponding top-level doc updates. Labeled issue #755 (`enhancement` + `agent-config`).
27
+
28
+
### [#761 feat(hooks): focusFile flag for command action (closes #759)](https://github.com/allenhutchison/obsidian-gemini/pull/761)
29
+
30
+
Follow-up to PR 3, deferred from review feedback. Adds an opt-in `focusFile: true` frontmatter field for `action: command` hooks. When set, the runner calls `app.workspace.openLinkText` to bring the triggering file into focus before dispatching the command — making editor-scoped commands like `editor:save-file` target the correct file rather than whatever is currently active. The flag is omitted from serialized hook files by default to keep frontmatter clean. With this PR the lifecycle-hooks epic (#749) is feature-complete; only the optional metadata-cache/workspace-events PR 4 remains. Suite at 1603 passing.
0 commit comments