:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(settings): find agent settings by their desktop names under today-rail-nav (#110272)
Shy Alter12c33a933118
diff --git a/frontend/src/scenes/settings/SettingsMap.tsx b/frontend/src/scenes/settings/SettingsMap.tsxindex 896a5559f17b..c0de83b440c6 100644--- a/frontend/src/scenes/settings/SettingsMap.tsx+++ b/frontend/src/scenes/settings/SettingsMap.tsx@@ -136,6 +136,7 @@ import { LogsSessionIdAttributeKeys } from './environment/LogsSessionIdAttributeimport { ManagedReverseProxy } from './environment/ManagedReverseProxy'import { MarketingAnalyticsSettingsWrapper } from './environment/MarketingAnalyticsSettingsWrapper'import MCPServerSettings from './environment/MCPServerSettings'+import { OtherAgentSettings } from './environment/OtherAgentSettings'import { PathCleaningFiltersConfig } from './environment/PathCleaningFiltersConfig'import { PersonDisplayNameProperties } from './environment/PersonDisplayNameProperties'import { ProjectTimezoneName } from './environment/ProjectTimezoneName'@@ -423,6 +424,28 @@ export const SETTINGS_MAP: SettingSection[] = [component: <TaskAgentMyPreferenceSettings />,keywords: ['ai', 'model', 'claude', 'codex', 'agent', 'tasks', 'preference', 'slack', 'desktop'],},+ {+ id: 'task-agent-other-settings',+ title: 'Other agent settings',+ description: 'Where to find the agent settings that are not on this page.',+ component: <OtherAgentSettings />,+ keywords: [+ 'self-driving',+ 'signals',+ 'scouts',+ 'agents',+ 'skills',+ 'workspaces',+ 'worktrees',+ 'terminal',+ 'harness',+ 'permission rules',+ 'keep awake',+ 'discord',+ 'updates',+ 'desktop',+ ],+ },],},{@@ -496,6 +519,45 @@ export const SETTINGS_MAP: SettingSection[] = [id: 'environment-task-agent-instructions',title: 'Agent instructions',group: 'AI',+ flag: 'TODAY_RAIL_NAV',+ keywords: ['custom instructions', 'personalization', 'simplified technical english', 'desktop'],+ settings: [+ {+ id: 'task-agent-project-instructions',+ title: (+ <>+ Project instructions+ <SettingScopeTag scope="project" />+ </>+ ),+ searchTerm: 'Project instructions',+ description:+ 'Instructions that PostHog cloud agents read as their AGENTS.md in every Tasks run on this project, including all Self-driving runs (scouts, research, and implementation) and scheduled runs. Use them for project conventions and for guidance that spans repositories, such as which repository owns which part of your product.',+ component: <AgentProjectInstructionsSettings />,+ keywords: ['ai', 'agent', 'agents.md', 'claude.md', 'instructions', 'tasks', 'cloud', 'project'],+ },+ {+ id: 'task-agent-my-instructions',+ title: (+ <>+ My instructions+ <SettingScopeTag scope="user" />+ </>+ ),+ searchTerm: 'My instructions',+ description:+ 'Instructions that PostHog cloud agents read after the project instructions in Tasks runs you start, from PostHog AI, Slack, or PostHog Desktop. Use them for your personal preferences and for anything you want agents to remember about how you work. Anyone who continues a task you started can see them, so leave out anything private. Self-driving and scheduled runs do not use them.',+ component: <AgentPersonalInstructionsSettings />,+ keywords: ['ai', 'agent', 'agents.md', 'claude.md', 'instructions', 'tasks', 'cloud', 'personal'],+ },+ ],+ },+ {+ level: 'environment',+ id: 'environment-task-agent-instructions',+ title: 'Agent instructions',+ group: 'AI',+ flag: '!TODAY_RAIL_NAV',settings: [{id: 'task-agent-project-instructions',diff --git a/frontend/src/scenes/settings/environment/OtherAgentSettings.tsx b/frontend/src/scenes/settings/environment/OtherAgentSettings.tsxnew file mode 100644index 000000000000..f61487a31aaf--- /dev/null+++ b/frontend/src/scenes/settings/environment/OtherAgentSettings.tsx@@ -0,0 +1,21 @@+import { Link } from '@posthog/lemon-ui'++import { urls } from 'scenes/urls'++export function OtherAgentSettings(): JSX.Element {+ return (+ <ul className="flex flex-col gap-2 max-w-200 list-disc pl-5 mb-0">+ <li>+ Self-driving agents, scouts, and signal sources are in{' '}+ <Link to={urls.inbox('settings')}>Inbox settings</Link>.+ </li>+ <li>+ Skills have their own page: <Link to={urls.skills()}>Skills</Link>.+ </li>+ <li>+ Workspaces, worktrees, local environments, the terminal, harness permission rules, keep awake, Discord,+ and app updates stay in PostHog Desktop, because they need your computer.+ </li>+ </ul>+ )+}diff --git a/frontend/src/scenes/settings/settingsSearch.test.tsx b/frontend/src/scenes/settings/settingsSearch.test.tsxindex f7d3d5e255e4..0292392fd297 100644--- a/frontend/src/scenes/settings/settingsSearch.test.tsx+++ b/frontend/src/scenes/settings/settingsSearch.test.tsx@@ -144,7 +144,11 @@ describe('settingsSearch', () => {test.each([['model preferences', 'task-agent-my-preference'],['subscriptions', 'ai-subscription-codex'],- ])('finds a renamed section by its old name "%s" with today-rail-nav on', (term, expectedSettingId) => {+ ['personalization', 'task-agent-my-instructions'],+ ['plan & usage', 'ai-usage-spend'],+ ['worktrees', 'task-agent-other-settings'],+ ['self-driving', 'task-agent-other-settings'],+ ])('finds a setting by its PostHog Desktop name "%s" with today-rail-nav on', (term, expectedSettingId) => {const flags = {[FEATURE_FLAGS.TODAY_RAIL_NAV]: true,[FEATURE_FLAGS.POSTHOG_CODE_CODEX_OWN_SUBSCRIPTION_CLOUD]: true,diff --git a/frontend/src/scenes/settings/types.ts b/frontend/src/scenes/settings/types.tsindex 02f6a8b3ddd8..c1ab752925a4 100644--- a/frontend/src/scenes/settings/types.ts+++ b/frontend/src/scenes/settings/types.ts@@ -300,6 +300,7 @@ export type SettingId =| 'ai-usage-spend'| 'ai-cloud-environments'| 'task-comments-slack-dm'+ | 'task-agent-other-settings'| 'task-agent-project-default'| 'theme'| 'tracing-distinct-id-attribute-keys'