Skip to content

Trends/Signals UX, investigation templates & docs#26

Merged
ozgesolidkey merged 1 commit into
mainfrom
feat/trends-signals-investigation-templates
Jun 30, 2026
Merged

Trends/Signals UX, investigation templates & docs#26
ozgesolidkey merged 1 commit into
mainfrom
feat/trends-signals-investigation-templates

Conversation

@ozgesolidkey

Copy link
Copy Markdown
Contributor

Build-green batch from this session (tsc + renderer bundle; trendEngine tests 16/16).

Trends

  • Boolean fields (e.g. isTokenExpired=false) chart as a 0/1 step line — the engine maps true/false→1/0 and aggregates them; the renderer draws a step line with a false/true axis. (Previously blank.)
  • "Pick a field" is now a type-to-search combobox (input + datalist) instead of a plain select.

Agent-driven charts

  • New logan_trend_show MCP tool renders a trend as a cell in the user's Trends notebook (series / value-flips / correlate), so the agent can build a vertical sequence of charts. Pushed via a new agent-trend-cell IPC; agent cells get a 🤖 badge.

Investigation templates (record → save → replay)

  • The api-server journals the agent's investigative tool calls; they can be saved as a named, parameterised, re-runnable template (~/.logan/investigate-templates/) and replayed on any log.
  • New src/main/investigationStore.ts (model + disk CRUD + param resolution), api-server endpoints + replay engine (internal HTTP, recursion-guarded), 4 MCP tools (logan_get_investigation_log / save / list / run), and an Investigate-panel "Saved patterns" UI (💾 Save current / ▶ run / × delete) over new IPC channels.

Docs & in-app help

  • CLAUDE.md tool table, docs/AGENT_CHAT_GUIDE.md, new docs/INVESTIGATION_TEMPLATES.md, in-app Help (F1) "Analysis, Trends & AI" section, README features.

Also includes earlier session fixes already described to the user. The Signals stacked/synced-cursor view is not in this PR — it's the next piece.

🤖 Generated with Claude Code

Boolean trends, searchable field picker, agent-driven charts, and a
record-and-replay "investigate pattern" system — plus documentation.

- Trends: boolean fields (e.g. isTokenExpired=false) chart as a 0/1 step line
  (engine maps true/false→1/0; renderer draws a step line with false/true axis).
- Trends: "Pick a field" is now a type-to-search combobox (input + datalist)
  instead of a plain select.
- Agent charts: new logan_trend_show MCP tool renders a trend as a cell in the
  user's Trends notebook (series/transitions/correlate), so the agent can build
  a vertical sequence; pushed via a new agent-trend-cell IPC.
- Investigation templates: the api-server journals the agent's investigative
  tool calls; they can be saved as a named, parameterised, re-runnable template
  (~/.logan/investigate-templates) and replayed on any log. New
  investigationStore.ts + endpoints + 4 MCP tools
  (get_investigation_log/save/list/run) + an Investigate-panel "Saved patterns"
  UI (Save current / ▶ run / delete) wired over new IPC channels.
- Docs/help: CLAUDE.md tool table, docs/AGENT_CHAT_GUIDE.md, new
  docs/INVESTIGATION_TEMPLATES.md, in-app Help (F1) "Analysis, Trends & AI"
  section, and README features.

Build green (tsc + renderer bundle); trendEngine tests 16/16.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@ozgesolidkey
ozgesolidkey merged commit 7eec8c7 into main Jun 30, 2026
3 checks passed
@ozgesolidkey
ozgesolidkey deleted the feat/trends-signals-investigation-templates branch June 30, 2026 14:53
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.

1 participant