Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

feat(agent): Move 'in-app-agent' out of EE (still in public beta) (#15492)

Lysander Kiesel51fa28865933
diff --git a/packages/in-app-agent-sandbox-runtime/README.md b/packages/in-app-agent-sandbox-runtime/README.md
index fa54a39f76..063a1970f3 100644
--- a/packages/in-app-agent-sandbox-runtime/README.md
+++ b/packages/in-app-agent-sandbox-runtime/README.md
@@ -2,7 +2,7 @@
Minimal HTTP control server for the in-app agent sandbox runtime.
-See `web/src/ee/features/in-app-agent/README.md` for how this package fits into the in-app agent sandbox architecture.
+See `web/src/features/in-app-agent/README.md` for how this package fits into the in-app agent sandbox architecture.
## Privileges
diff --git a/packages/shared/prisma/migrations/20260722070000_add_in_app_agent_run_lifecycle_fields/migration.sql b/packages/shared/prisma/migrations/20260722070000_add_in_app_agent_run_lifecycle_fields/migration.sql
index 06fb50d4ff..b802bc9839 100644
--- a/packages/shared/prisma/migrations/20260722070000_add_in_app_agent_run_lifecycle_fields/migration.sql
+++ b/packages/shared/prisma/migrations/20260722070000_add_in_app_agent_run_lifecycle_fields/migration.sql
@@ -11,7 +11,7 @@ ALTER TABLE "in_app_agent_runs"
ADD COLUMN "cancel_requested_at" TIMESTAMP(3);
-- Close only runs the app itself would already consider stale (>150s,
--- ACTIVE_RUN_STALE_AFTER_MS in web/src/ee/features/in-app-agent/server/persistence.ts).
+-- ACTIVE_RUN_STALE_AFTER_MS in web/src/features/in-app-agent/server/persistence.ts).
-- Younger unfinished rows are genuinely running foreground streams and must
-- stay open, or their event flushes and finish would silently no-op.
UPDATE "in_app_agent_runs"
diff --git a/packages/shared/scripts/seeder/seed-postgres.ts b/packages/shared/scripts/seeder/seed-postgres.ts
index 05dd086525..35e58f8b83 100644
--- a/packages/shared/scripts/seeder/seed-postgres.ts
+++ b/packages/shared/scripts/seeder/seed-postgres.ts
@@ -46,7 +46,7 @@ const IN_APP_AGENT_SYSTEM_PROMPT_NAME = "in-app-agent-system-prompt";
const IN_APP_AGENT_SYSTEM_PROMPT_PATH = resolve(
__dirname,
"../../../..",
- "web/src/ee/features/in-app-agent/prompts/in-app-agent-system-prompt.txt",
+ "web/src/features/in-app-agent/prompts/in-app-agent-system-prompt.txt",
);
// The path above resolves to `web/src` relative to this file, which only exists
diff --git a/scripts/in-app-agent/README.md b/scripts/in-app-agent/README.md
index e39b82fd3e..b109c847b2 100644
--- a/scripts/in-app-agent/README.md
+++ b/scripts/in-app-agent/README.md
@@ -4,11 +4,11 @@
The generated in-app agent skills live at:
-`web/src/ee/features/in-app-agent/server/skills/generated/raw`
+`web/src/features/in-app-agent/server/skills/generated/raw`
The generated TypeScript index lives at:
-`web/src/ee/features/in-app-agent/server/skills/generated/skill-markdown.ts`
+`web/src/features/in-app-agent/server/skills/generated/skill-markdown.ts`
Use `sync-raw-skills.mjs` to download all markdown files from
`https://github.com/langfuse/skills/tree/main/skills/langfuse/references` whose
@@ -29,7 +29,7 @@ node scripts/in-app-agent/sync-raw-skills.mjs --check
The canonical system prompt for the in-app agent lives at:
-`web/src/ee/features/in-app-agent/prompts/in-app-agent-system-prompt.txt`
+`web/src/features/in-app-agent/prompts/in-app-agent-system-prompt.txt`
The local Postgres seeder reads this file and creates the text prompt named
`in-app-agent-system-prompt` in the seed project
diff --git a/scripts/in-app-agent/sync-prompt.sh b/scripts/in-app-agent/sync-prompt.sh
index 8ade900a9f..8ae0b78b3b 100755
--- a/scripts/in-app-agent/sync-prompt.sh
+++ b/scripts/in-app-agent/sync-prompt.sh
@@ -3,7 +3,7 @@ set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd "${SCRIPT_DIR}/../.." && pwd)"
-PROMPT_FILE="${REPO_ROOT}/web/src/ee/features/in-app-agent/prompts/in-app-agent-system-prompt.txt"
+PROMPT_FILE="${REPO_ROOT}/web/src/features/in-app-agent/prompts/in-app-agent-system-prompt.txt"
PROMPT_NAME="in-app-agent-system-prompt"
REGIONS=(STAGING EU US JP HIPAA)
BASE_URLS=(
diff --git a/scripts/in-app-agent/sync-raw-skills.mjs b/scripts/in-app-agent/sync-raw-skills.mjs
index c3e46c0c37..7bd39d7726 100644
--- a/scripts/in-app-agent/sync-raw-skills.mjs
+++ b/scripts/in-app-agent/sync-raw-skills.mjs
@@ -14,7 +14,7 @@ import { format as formatWithPrettier } from "prettier";
const repoRoot = resolve(new URL("../..", import.meta.url).pathname);
const generatedDir = resolve(
repoRoot,
- "web/src/ee/features/in-app-agent/server/skills/generated",
+ "web/src/features/in-app-agent/server/skills/generated",
);
const rawTargetDir = resolve(generatedDir, "raw");
const generatedModuleName = "skill-markdown.ts";
diff --git a/web/eslint.config.mjs b/web/eslint.config.mjs
index 24bf578cbe..c9f761c77a 100644
--- a/web/eslint.config.mjs
+++ b/web/eslint.config.mjs
@@ -112,7 +112,7 @@ export default [
{
...reactYouMightNotNeedAnEffect.configs.recommended,
name: "langfuse/web/in-app-agent",
- files: ["src/ee/features/in-app-agent/**/*.{ts,tsx}"],
+ files: ["src/features/in-app-agent/**/*.{ts,tsx}"],
rules: {
...reactYouMightNotNeedAnEffect.configs.recommended.rules,
"@typescript-eslint/consistent-type-definitions": ["warn", "type"],
diff --git a/web/src/__tests__/server/in-app-agent-api-route-auth.servertest.ts b/web/src/__tests__/server/in-app-agent-api-route-auth.servertest.ts
index c9296ec7cb..bbe5146679 100644
--- a/web/src/__tests__/server/in-app-agent-api-route-auth.servertest.ts
+++ b/web/src/__tests__/server/in-app-agent-api-route-auth.servertest.ts
@@ -1,12 +1,12 @@
import { EventType } from "@ag-ui/core";
import { createAuthedProjectAPIRoute } from "@/src/features/public-api/server/createAuthedProjectAPIRoute";
-import { filterInAppAgentAvailableLangfuseMcpTools } from "@/src/ee/features/in-app-agent/server/tools";
-import { storePendingToolApproval } from "@/src/ee/features/in-app-agent/server/human-in-the-loop";
+import { filterInAppAgentAvailableLangfuseMcpTools } from "@/src/features/in-app-agent/server/tools";
+import { storePendingToolApproval } from "@/src/features/in-app-agent/server/human-in-the-loop";
import type {
AgUiEvent,
InAppAgentToolApprovalRequest,
-} from "@/src/ee/features/in-app-agent/schema";
-import { appendRunEvents } from "@/src/ee/features/in-app-agent/server/persistence";
+} from "@/src/features/in-app-agent/schema";
+import { appendRunEvents } from "@/src/features/in-app-agent/server/persistence";
import { env } from "@/src/env.mjs";
import { InAppAgentRunStatus } from "@langfuse/shared";
import { Prisma, prisma } from "@langfuse/shared/src/db";
@@ -77,7 +77,7 @@ vi.mock("@/src/features/public-api/server/RateLimitService", () => ({
}),
}));
-vi.mock("@/src/ee/features/in-app-agent/server/agent", () => ({
+vi.mock("@/src/features/in-app-agent/server/agent", () => ({
createAgUiStream: agentMocks.createAgUiStream,
}));
@@ -200,7 +200,7 @@ describe("in-app agent public API route auth", () => {
);
const { default: handler } =
- await import("@/src/ee/features/in-app-agent/server/handler");
+ await import("@/src/features/in-app-agent/server/handler");
await handler(new Request("http://localhost/api/in-app-agent"));
expect(instrumentationMocks.addUserToSpan).toHaveBeenCalledWith({
@@ -265,7 +265,7 @@ describe("in-app agent public API route auth", () => {
});
const { default: handler } =
- await import("@/src/ee/features/in-app-agent/server/handler");
+ await import("@/src/features/in-app-agent/server/handler");
const response = await handler(
new Request("http://localhost/api/in-app-agent", {
method: "POST",
@@ -694,7 +694,7 @@ describe("in-app agent public API route auth", () => {
});
const { default: handler } =
- await import("@/src/ee/features/in-app-agent/server/handler");
+ await import("@/src/features/in-app-agent/server/handler");
const response = await handler(
new Request("http://localhost/api/in-app-agent", {
method: "POST",
@@ -846,7 +846,7 @@ describe("in-app agent public API route auth", () => {
});
const { default: handler } =
- await import("@/src/ee/features/in-app-agent/server/handler");
+ await import("@/src/features/in-app-agent/server/handler");
const response = await handler(
new Request("http://localhost/api/in-app-agent", {
method: "POST",
@@ -946,7 +946,7 @@ describe("in-app agent public API route auth", () => {
});
const { default: handler } =
- await import("@/src/ee/features/in-app-agent/server/handler");
+ await import("@/src/features/in-app-agent/server/handler");
const response = await handler(
new Request("http://localhost/api/in-app-agent", {
method: "POST",
@@ -1011,7 +1011,7 @@ describe("in-app agent public API route auth", () => {
);
const { default: handler } =
- await import("@/src/ee/features/in-app-agent/server/handler");
+ await import("@/src/features/in-app-agent/server/handler");
const response = await handler(
new Request("http://localhost/api/in-app-agent", {
method: "POST",
@@ -1130,7 +1130,7 @@ describe("in-app agent public API route auth", () => {
);
const { default: handler } =
- await import("@/src/ee/features/in-app-agent/server/handler");
+ await import("@/src/features/in-app-agent/server/handler");
const response = await handler(
new Request("http://localhost/api/in-app-agent", {
method: "POST",
@@ -1266,7 +1266,7 @@ describe("in-app agent public API route auth", () => {
);
const { default: handler } =
- await import("@/src/ee/features/in-app-agent/server/handler");
+ await import("@/src/features/in-app-agent/server/handler");
const lookupScenarios = [
{ viewId: otherProjectView.id },
@@ -1351,7 +1351,7 @@ describe("in-app agent public API route auth", () => {
);
const { default: handler } =
- await import("@/src/ee/features/in-app-agent/server/handler");
+ await import("@/src/features/in-app-agent/server/handler");
const response = await handler(
new Request("http://localhost/api/in-app-agent", {
method: "POST",
@@ -1532,7 +1532,7 @@ async function callInAppAgentRoute(params: {
forwardedProps: ReturnType<typeof createResumeForwardedProps>;
}) {
const { default: handler } =
- await import("@/src/ee/features/in-app-agent/server/handler");
+ await import("@/src/features/in-app-agent/server/handler");
const response = await handler(
new Request("http://localhost/api/in-app-agent", {
method: "POST",
diff --git a/web/src/__tests__/server/in-app-agent-persistence.servertest.ts b/web/src/__tests__/server/in-app-agent-persistence.servertest.ts
index 362e233c5e..31c3b85472 100644
--- a/web/src/__tests__/server/in-app-agent-persistence.servertest.ts
+++ b/web/src/__tests__/server/in-app-agent-persistence.servertest.ts
@@ -23,9 +23,9 @@ import { env } from "@/src/env.mjs";
import {
createInAppAgentConversationId,
createInAppAgentRunId,
-} from "@/src/ee/features/in-app-agent/ids";
-import { type AgUiEvent } from "@/src/ee/features/in-app-agent/schema";
-import { inAppAgentRouter } from "@/src/ee/features/in-app-agent/server/router";
+} from "@/src/features/in-app-agent/ids";
+import { type AgUiEvent } from "@/src/features/in-app-agent/schema";
+import { inAppAgentRouter } from "@/src/features/in-app-agent/server/router";
import {
createRun,
ensureOwnedConversation,
@@ -36,9 +36,9 @@ import {
flushPendingRunEvents,
shouldFlushPersistedEvent,
toPersistableAgentEvent,
-} from "@/src/ee/features/in-app-agent/server/persistence";
+} from "@/src/features/in-app-agent/server/persistence";
import { createInnerTRPCContext } from "@/src/server/api/trpc";
-import { IN_APP_AGENT_REDIRECT_TOOL_NAME } from "@/src/ee/features/in-app-agent/constants";
+import { IN_APP_AGENT_REDIRECT_TOOL_NAME } from "@/src/features/in-app-agent/constants";
vi.mock("@/src/server/auth", () => ({
getServerAuthSession: vi.fn(),
diff --git a/web/src/__tests__/server/in-app-agent-stream.servertest.ts b/web/src/__tests__/server/in-app-agent-stream.servertest.ts
index 8c4029370d..e411f94371 100644
--- a/web/src/__tests__/server/in-app-agent-stream.servertest.ts
+++ b/web/src/__tests__/server/in-app-agent-stream.servertest.ts
@@ -4,27 +4,27 @@ import { Agent } from "@mastra/core/agent";
import { MCPClient } from "@mastra/mcp";
import { describe, expect, it, vi } from "vitest";
-import type { AgUiEvent } from "@/src/ee/features/in-app-agent/schema";
+import type { AgUiEvent } from "@/src/features/in-app-agent/schema";
import {
IN_APP_AGENT_MCP_TOOL_OVERRIDE_HEADER,
IN_APP_AGENT_MCP_USER_AGENT,
IN_APP_AGENT_REDIRECT_TOOL_NAME,
IN_APP_AGENT_TOOL_REJECTION_ERROR_CODE,
-} from "@/src/ee/features/in-app-agent/constants";
-import { patchMastraApprovalChunks } from "@/src/ee/features/in-app-agent/server/agent";
+} from "@/src/features/in-app-agent/constants";
+import { patchMastraApprovalChunks } from "@/src/features/in-app-agent/server/agent";
import {
createInAppAgentSandbox,
type SandboxProvider,
type SandboxSession,
-} from "@/src/ee/features/in-app-agent/server/sandbox";
-import { IN_APP_AGENT_LANGFUSE_MCP_TOOL_POLICIES } from "@/src/ee/features/in-app-agent/server/tools";
+} from "@/src/features/in-app-agent/server/sandbox";
+import { IN_APP_AGENT_LANGFUSE_MCP_TOOL_POLICIES } from "@/src/features/in-app-agent/server/tools";
import { DEFAULT_SIDEBAR_HIDDEN_ENVIRONMENTS } from "@/src/features/filters/constants/internal-environments";
import { decodeFiltersGeneric } from "@/src/features/filters/lib/filter-query-encoding";
import "@/src/features/mcp/server/bootstrap";
import { toolRegistry } from "@/src/features/mcp/server/registry";
import type { MastraAgent } from "@ag-ui/mastra";
import type { Langfuse } from "langfuse";
-import type { InAppAgentTracingConfig } from "@/src/ee/features/in-app-agent/server/instrumentation";
+import type { InAppAgentTracingConfig } from "@/src/features/in-app-agent/server/instrumentation";
// Shape of the tool entries the mocked MCP client feeds into the Agent
// constructor. `Agent`'s own `tools` type is a `DynamicArgument` union that
@@ -257,7 +257,7 @@ vi.mock("@mastra/mcp", () => ({
}),
}));
-vi.mock("@/src/ee/features/in-app-agent/server/instrumentation", () => ({
+vi.mock("@/src/features/in-app-agent/server/instrumentation", () => ({
createInAppAgentInstrumentation:
instrumentationMocks.createInAppAgentInstrumentation,
}));
@@ -433,7 +433,7 @@ describe("createAgUiStream", () => {
it("serializes valid events including adapter snapshots and reasoning messages", async () => {
const { createAgUiStream } =
- await import("@/src/ee/features/in-app-agent/server/agent");
+ await import("@/src/features/in-app-agent/server/agent");
const input = {
threadId: "conversation-1",
runId: "run-1",
@@ -786,7 +786,7 @@ describe("createAgUiStream", () => {
it("does not enable Bedrock reasoning for non-Claude models", async () => {
const { createAgUiStream } =
- await import("@/src/ee/features/in-app-agent/server/agent");
+ await import("@/src/features/in-app-agent/server/agent");
const input = {
threadId: "conversation-1",
runId: "run-1",
@@ -858,7 +858,7 @@ describe("createAgUiStream", () => {
it("executes approved tools manually and continues with tool result history", async () => {
const { createAgUiStream } =
- await import("@/src/ee/features/in-app-agent/server/agent");
+ await import("@/src/features/in-app-agent/server/agent");
const input = createToolApprovalResumeInput(true);
adapterEvents.inputs = [];
adapterEvents.items = [
@@ -1052,7 +1052,7 @@ describe("createAgUiStream", () => {
it("continues approved tools with a tool error result when execution fails", async () => {
const { createAgUiStream } =
- await import("@/src/ee/features/in-app-agent/server/agent");
+ await import("@/src/features/in-app-agent/server/agent");
const input = createToolApprovalResumeInput(true);
const validationErrorMessage =
"MCP error -32602: Validation failed: categories: Category must be an array of objects with label value pairs, where labels and values are unique.";
@@ -1187,7 +1187,7 @@ describe("createAgUiStream", () => {
it("escapes screen context delimiters before compiling prompt instructions", async () => {
const { createAgUiStream } =
- await import("@/src/ee/features/in-app-agent/server/agent");
+ await import("@/src/features/in-app-agent/server/agent");
const input = {
threadId: "conversation-1",
runId: "run-1",
@@ -1261,7 +1261,7 @@ describe("createAgUiStream", () => {
it("continues after rejected tools and asks the user how to proceed", async () => {
const { createAgUiStream } =
- await import("@/src/ee/features/in-app-agent/server/agent");
+ await import("@/src/features/in-app-agent/server/agent");
const input = createToolApprovalResumeInput(false);
const rejectionError = JSON.stringify({
code: IN_APP_AGENT_TOOL_REJECTION_ERROR_CODE,
@@ -1428,7 +1428,7 @@ describe("createAgUiStream", () => {
it("uses V4-compatible filters for traces redirect actions", async () => {
const { createAgUiStream } =
- await import("@/src/ee/features/in-app-agent/server/agent");
+ await import("@/src/features/in-app-agent/server/agent");
const input = {
threadId: "conversation-1",
runId: "run-1",
@@ -1508,7 +1508,7 @@ describe("createAgUiStream", () => {
it("lets HttpAgent subscribers observe streamed run errors", async () => {
const { createAgUiStream } =
- await import("@/src/ee/features/in-app-agent/server/agent");
+ await import("@/src/features/in-app-agent/server/agent");
const input = {
threadId: "conversation-1",
runId: "run-1",
@@ -1598,7 +1598,7 @@ describe("createAgUiStream", () => {
it("does not expose sandbox tools when sandboxing is disabled", async () => {
const { createAgUiStream } =
- await import("@/src/ee/features/in-app-agent/server/agent");
+ await import("@/src/features/in-app-agent/server/agent");
const input = {
threadId: "conversation-1",
runId: "run-1",
diff --git a/web/src/__tests__/server/unit/in-app-agent-docker-provider.servertest.ts b/web/src/__tests__/server/unit/in-app-agent-docker-provider.servertest.ts
index 49c77bca5a..d03fae1085 100644
--- a/web/src/__tests__/server/unit/in-app-agent-docker-provider.servertest.ts
+++ b/web/src/__tests__/server/unit/in-app-agent-docker-provider.servertest.ts
@@ -167,7 +167,7 @@ describe("in-app agent docker sandbox provider", () => {
it("recreates the named container when it was manually removed", async () => {
const { createDockerSandboxProvider } =
- await import("@/src/ee/features/in-app-agent/server/sandbox/providers/docker");
+ await import("@/src/features/in-app-agent/server/sandbox/providers/docker");
const provider = await createDockerSandboxProvider({
image: "langfuse-in-app-agent-sandbox:latest",
});
diff --git a/web/src/__tests__/server/unit/in-app-agent-instrumentation.servertest.ts b/web/src/__tests__/server/unit/in-app-agent-instrumentation.servertest.ts
index 2395ce8dbb..5c7d563de7 100644
--- a/web/src/__tests__/server/unit/in-app-agent-instrumentation.servertest.ts
+++ b/web/src/__tests__/server/unit/in-app-agent-instrumentation.servertest.ts
@@ -3,9 +3,9 @@ import { EventType } from "@ag-ui/core";
import {
getInAppAgentInstrumentationObservationId,
getInAppAgentInstrumentationTraceId,
-} from "@/src/ee/features/in-app-agent/constants";
-import type { AgUiRunAgentInput } from "@/src/ee/features/in-app-agent/schema";
-import { InAppAgentInstrumentation } from "@/src/ee/features/in-app-agent/server/instrumentation";
+} from "@/src/features/in-app-agent/constants";
+import type { AgUiRunAgentInput } from "@/src/features/in-app-agent/schema";
+import { InAppAgentInstrumentation } from "@/src/features/in-app-agent/server/instrumentation";
const runId = "run-1";
const traceId = getInAppAgentInstrumentationTraceId(runId);
diff --git a/web/src/__tests__/server/unit/in-app-agent-lambda-microvm-provider.servertest.ts b/web/src/__tests__/server/unit/in-app-agent-lambda-microvm-provider.servertest.ts
index ccf3683358..4fcf440351 100644
--- a/web/src/__tests__/server/unit/in-app-agent-lambda-microvm-provider.servertest.ts
+++ b/web/src/__tests__/server/unit/in-app-agent-lambda-microvm-provider.servertest.ts
@@ -51,7 +51,7 @@ describe("in-app agent lambda microvm sandbox provider", () => {
it("uses suspend for suspendSession and terminate for terminateSession", async () => {
const { createLambdaMicrovmSandboxProvider } =
- await import("@/src/ee/features/in-app-agent/server/sandbox/providers/lambdaMicrovm");
+ await import("@/src/features/in-app-agent/server/sandbox/providers/lambdaMicrovm");
const provider = createLambdaMicrovmSandboxProvider({
imageIdentifier: "image-1",
@@ -111,7 +111,7 @@ describe("in-app agent lambda microvm sandbox provider", () => {
});
const { createLambdaMicrovmSandboxProvider } =
- await import("@/src/ee/features/in-app-agent/server/sandbox/providers/lambdaMicrovm");
+ await import("@/src/features/in-app-agent/server/sandbox/providers/lambdaMicrovm");
const provider = createLambdaMicrovmSandboxProvider({
imageIdentifier: "image-1",
executionRoleArn: "arn:aws:iam::123456789012:role/sandbox",
@@ -170,7 +170,7 @@ describe("in-app agent lambda microvm sandbox provider", () => {
});
const { createLambdaMicrovmSandboxProvider } =
- await import("@/src/ee/features/in-app-agent/server/sandbox/providers/lambdaMicrovm");
+ await import("@/src/features/in-app-agent/server/sandbox/providers/lambdaMicrovm");
const provider = createLambdaMicrovmSandboxProvider({
imageIdentifier: "image-1",
executionRoleArn: "arn:aws:iam::123456789012:role/sandbox",
diff --git a/web/src/__tests__/server/unit/in-app-agent-mcp-run-override.servertest.ts b/web/src/__tests__/server/unit/in-app-agent-mcp-run-override.servertest.ts
index 37aae40a03..0e8c1e3bed 100644
--- a/web/src/__tests__/server/unit/in-app-agent-mcp-run-override.servertest.ts
+++ b/web/src/__tests__/server/unit/in-app-agent-mcp-run-override.servertest.ts
@@ -1,7 +1,7 @@
import {
createInAppAgentMcpRunOverride,
InAppAgentMcpRunOverrideSchema,
-} from "@/src/ee/features/in-app-agent/server/human-in-the-loop";
+} from "@/src/features/in-app-agent/server/human-in-the-loop";
describe("in-app agent MCP run override", () => {
it("serializes the override as plain JSON", async () => {
diff --git a/web/src/__tests__/server/unit/in-app-agent-quick-action-context.servertest.ts b/web/src/__tests__/server/unit/in-app-agent-quick-action-context.servertest.ts
index 7fb96458a5..b33d37a198 100644
--- a/web/src/__tests__/server/unit/in-app-agent-quick-action-context.servertest.ts
+++ b/web/src/__tests__/server/unit/in-app-agent-quick-action-context.servertest.ts
@@ -2,7 +2,7 @@ import {
getInAppAgentMessageEntryPointTraceMetadata,
getInAppAgentQuickActionTraceMetadata,
sanitizeInAppAgentContext,
-} from "@/src/ee/features/in-app-agent/context";
+} from "@/src/features/in-app-agent/context";
describe("in-app agent quick-action attribution", () => {
it("exposes trace metadata for well-formed attribution and keeps it out of the model-visible context", () => {
diff --git a/web/src/__tests__/server/unit/in-app-agent-reasoning.servertest.ts b/web/src/__tests__/server/unit/in-app-agent-reasoning.servertest.ts
index ee43ec685e..b2f48e5ce9 100644
--- a/web/src/__tests__/server/unit/in-app-agent-reasoning.servertest.ts
+++ b/web/src/__tests__/server/unit/in-app-agent-reasoning.servertest.ts
@@ -1,4 +1,4 @@
-import { getBedrockReasoningProviderOptions } from "@/src/ee/features/in-app-agent/server/agent";
+import { getBedrockReasoningProviderOptions } from "@/src/features/in-app-agent/server/agent";
describe("getBedrockReasoningProviderOptions", () => {
it("sends adaptive thinking with summarized display to Claude models by default", () => {
diff --git a/web/src/__tests__/server/unit/in-app-agent-sandbox.servertest.ts b/web/src/__tests__/server/unit/in-app-agent-sandbox.servertest.ts
index f80fb8bb0c..0e03f2e21c 100644
--- a/web/src/__tests__/server/unit/in-app-agent-sandbox.servertest.ts
+++ b/web/src/__tests__/server/unit/in-app-agent-sandbox.servertest.ts
@@ -1,8 +1,8 @@
import { EventType } from "@ag-ui/core";
import { describe, expect, it } from "vitest";
-import { getSandboxToolCallFiles } from "@/src/ee/features/in-app-agent/server/persistence";
-import { createInAppAgentSandbox } from "@/src/ee/features/in-app-agent/server/sandbox";
+import { getSandboxToolCallFiles } from "@/src/features/in-app-agent/server/persistence";
+import { createInAppAgentSandbox } from "@/src/features/in-app-agent/server/sandbox";
describe("in-app agent sandbox", () => {
it("persists sandbox session state when a turn ends", async () => {
diff --git a/web/src/__tests__/server/unit/mcp-route-in-app-agent-context.servertest.ts b/web/src/__tests__/server/unit/mcp-route-in-app-agent-context.servertest.ts
index 30a1e14e36..4088966b7b 100644
--- a/web/src/__tests__/server/unit/mcp-route-in-app-agent-context.servertest.ts
+++ b/web/src/__tests__/server/unit/mcp-route-in-app-agent-context.servertest.ts
@@ -1,8 +1,8 @@
-import { IN_APP_AGENT_MCP_TOOL_OVERRIDE_HEADER } from "@/src/ee/features/in-app-agent/constants";
+import { IN_APP_AGENT_MCP_TOOL_OVERRIDE_HEADER } from "@/src/features/in-app-agent/constants";
import {
createInAppAgentMcpRunOverride,
InAppAgentMcpRunOverrideSchema,
-} from "@/src/ee/features/in-app-agent/server/human-in-the-loop";
+} from "@/src/features/in-app-agent/server/human-in-the-loop";
import { getInAppAgentContext } from "@/src/pages/api/public/mcp";
import type { NextApiRequest, NextApiResponse } from "next";
import { createMocks } from "node-mocks-http";
diff --git a/web/src/app/api/in-app-agent/route.ts b/web/src/app/api/in-app-agent/route.ts
index 52566020e6..d69336f4d4 100644
--- a/web/src/app/api/in-app-agent/route.ts
+++ b/web/src/app/api/in-app-agent/route.ts
@@ -1,4 +1,4 @@
-import inAppAgentHandler from "@/src/ee/features/in-app-agent/server/handler";
+import inAppAgentHandler from "@/src/features/in-app-agent/server/handler";
export const dynamic = "force-dynamic";
export const runtime = "nodejs";
diff --git a/web/src/components/layouts/app-layout/variants/AuthenticatedLayout.tsx b/web/src/components/layouts/app-layout/variants/AuthenticatedLayout.tsx
index d71b5d30d6..784f7c5c7b 100644
--- a/web/src/components/layouts/app-layout/variants/AuthenticatedLayout.tsx
+++ b/web/src/components/layouts/app-layout/variants/AuthenticatedLayout.tsx
@@ -35,7 +35,7 @@ import type { NavigationItem } from "@/src/components/layouts/utilities/routes";
import type { RouteGroup } from "@/src/components/layouts/routes";
import dynamic from "next/dynamic";
import { ControlledFeaturePreviewModal } from "@/src/features/feature-previews/components/ControlledFeaturePreviewModal";
-import { InAppAgentWindowHost } from "@/src/ee/features/in-app-agent/components/InAppAgentWindowHost";
+import { InAppAgentWindowHost } from "@/src/features/in-app-agent/components/InAppAgentWindowHost";
import { useV4UpgradeUiEnabled } from "@/src/features/v4-migration/useV4UpgradeUiEnabled";
import { useUiCustomization } from "@/src/ee/features/ui-customization/useUiCustomization";
import { api } from "@/src/utils/api";
diff --git a/web/src/components/nav/in-app-ai-agent-button.clienttest.tsx b/web/src/components/nav/in-app-ai-agent-button.clienttest.tsx
index 0e311a3b5f..24c68907be 100644
--- a/web/src/components/nav/in-app-ai-agent-button.clienttest.tsx
+++ b/web/src/components/nav/in-app-ai-agent-button.clienttest.tsx
@@ -8,17 +8,14 @@ const mocks = vi.hoisted(() => ({
openAssistant: vi.fn().mockReturnValue(true),
}));
-vi.mock(
- "@/src/ee/features/in-app-agent/components/InAppAiAgentProvider",
- () => ({
- useCanUseInAppAgent: () => true,
- useInAppAiAgent: () => ({
- open: mocks.open,
- setOpen: mocks.setOpen,
- openAssistant: mocks.openAssistant,
- }),
+vi.mock("@/src/features/in-app-agent/components/InAppAiAgentProvider", () => ({
+ useCanUseInAppAgent: () => true,
+ useInAppAiAgent: () => ({
+ open: mocks.open,
+ setOpen: mocks.setOpen,
+ openAssistant: mocks.openAssistant,
}),
-);
+}));
describe("InAppAiAgentButton", () => {
beforeEach(() => {
diff --git a/web/src/components/nav/in-app-ai-agent-button.tsx b/web/src/components/nav/in-app-ai-agent-button.tsx
index 0f5697e3e9..47feb0a4b4 100644
--- a/web/src/components/nav/in-app-ai-agent-button.tsx
+++ b/web/src/components/nav/in-app-ai-agent-button.tsx
@@ -7,7 +7,7 @@ import {
useCanUseInAppAgent,
useInAppAiAgent,
type InAppAgentEntryPoint,
-} from "@/src/ee/features/in-app-agent/components/InAppAiAgentProvider";
+} from "@/src/features/in-app-agent/components/InAppAiAgentProvider";
import { cn } from "@/src/utils/tailwind";
/** Launcher only — the assistant window itself is rendered by
diff --git a/web/src/components/nav/support-button.tsx b/web/src/components/nav/support-button.tsx
index d78853a6d2..9bd5d429ba 100644
--- a/web/src/components/nav/support-button.tsx
+++ b/web/src/components/nav/support-button.tsx
@@ -2,7 +2,7 @@ import { LifeBuoy } from "lucide-react";
import { SidebarMenuButton, useSidebar } from "@/src/components/ui/sidebar";
import { useSupportDrawer } from "@/src/features/support-chat/SupportDrawerProvider";
import { useV4MigrationPanel } from "@/src/features/v4-migration/V4MigrationPanelProvider";
-import { useInAppAiAgent } from "@/src/ee/features/in-app-agent/components/InAppAiAgentProvider";
+import { useInAppAiAgent } from "@/src/features/in-app-agent/components/InAppAiAgentProvider";
export const SupportButton = () => {
const { setOpen: setSupportDrawerOpen } = useSupportDrawer();
diff --git a/web/src/ee/features/in-app-agent/README.md b/web/src/features/in-app-agent/README.md
similarity index 100%
rename from web/src/ee/features/in-app-agent/README.md
rename to web/src/features/in-app-agent/README.md
diff --git a/web/src/ee/features/in-app-agent/components/ControlledInAppAgentWindow.tsx b/web/src/features/in-app-agent/components/ControlledInAppAgentWindow.tsx
similarity index 96%
rename from web/src/ee/features/in-app-agent/components/ControlledInAppAgentWindow.tsx
rename to web/src/features/in-app-agent/components/ControlledInAppAgentWindow.tsx
index febc105fba..a82b4890b4 100644
--- a/web/src/ee/features/in-app-agent/components/ControlledInAppAgentWindow.tsx
+++ b/web/src/features/in-app-agent/components/ControlledInAppAgentWindow.tsx
@@ -7,11 +7,11 @@ import type { InAppAgentWindowConversation } from "./InAppAgentWindow";
import { useInAppAiAgent } from "./InAppAiAgentProvider";
import { useSmoothStreamingMessages } from "./useSmoothStreamingMessages";
import { getDrawerMessages } from "./utils/utils";
-import { getInAppAgentScreenContextDescription } from "@/src/ee/features/in-app-agent/context";
+import { getInAppAgentScreenContextDescription } from "@/src/features/in-app-agent/context";
import {
getInAppAgentFocusedQuickActions,
getInAppAgentQuickActionContext,
-} from "@/src/ee/features/in-app-agent/quickActions";
+} from "@/src/features/in-app-agent/quickActions";
const SANDBOX_CONVERSATION_WRITE_LOCK_MESSAGE =
"Sandbox-enabled conversations become read-only after 8 hours. Start a new conversation to continue.";
diff --git a/web/src/ee/features/in-app-agent/components/InAppAgentDisabledDialog.tsx b/web/src/features/in-app-agent/components/InAppAgentDisabledDialog.tsx
similarity index 100%
rename from web/src/ee/features/in-app-agent/components/InAppAgentDisabledDialog.tsx
rename to web/src/features/in-app-agent/components/InAppAgentDisabledDialog.tsx
diff --git a/web/src/ee/features/in-app-agent/components/InAppAgentMessage.module.css b/web/src/features/in-app-agent/components/InAppAgentMessage.module.css
similarity index 98%
rename from web/src/ee/features/in-app-agent/components/InAppAgentMessage.module.css
rename to web/src/features/in-app-agent/components/InAppAgentMessage.module.css
index 04128f8d00..07b94af30d 100644
--- a/web/src/ee/features/in-app-agent/components/InAppAgentMessage.module.css
+++ b/web/src/features/in-app-agent/components/InAppAgentMessage.module.css
@@ -1,4 +1,4 @@
-@reference "../../../../styles/globals.css";
+@reference "../../../styles/globals.css";
.Streamdown {
@apply prose prose-sm text-foreground prose-headings:text-inherit prose-headings:text-sm max-w-none;
diff --git a/web/src/ee/features/in-app-agent/components/InAppAgentMessage.stories.tsx b/web/src/features/in-app-agent/components/InAppAgentMessage.stories.tsx
similarity index 99%
rename from web/src/ee/features/in-app-agent/components/InAppAgentMessage.stories.tsx
rename to web/src/features/in-app-agent/components/InAppAgentMessage.stories.tsx
index 76026b5818..b6d6e6920b 100644
--- a/web/src/ee/features/in-app-agent/components/InAppAgentMessage.stories.tsx
+++ b/web/src/features/in-app-agent/components/InAppAgentMessage.stories.tsx
@@ -1,4 +1,4 @@
-import preview from "../../../../../.storybook/preview";
+import preview from "../../../../.storybook/preview";
import { expect, fn, userEvent, waitFor, within } from "storybook/test";
import { InAppAgentMessage } from "./InAppAgentMessage";
diff --git a/web/src/ee/features/in-app-agent/components/InAppAgentMessage.tsx b/web/src/features/in-app-agent/components/InAppAgentMessage.tsx
similarity index 99%
rename from web/src/ee/features/in-app-agent/components/InAppAgentMessage.tsx
rename to web/src/features/in-app-agent/components/InAppAgentMessage.tsx
index 85d3dbf031..96397f7d45 100644
--- a/web/src/ee/features/in-app-agent/components/InAppAgentMessage.tsx
+++ b/web/src/features/in-app-agent/components/InAppAgentMessage.tsx
@@ -30,7 +30,7 @@ import {
type InAppAgentMessageFeedback,
type InAppAgentMessageFeedbackValue,
type InAppAgentMessageSource,
-} from "@/src/ee/features/in-app-agent/schema";
+} from "@/src/features/in-app-agent/schema";
import {
Popover,
PopoverAnchor,
@@ -49,7 +49,7 @@ import {
import styles from "./InAppAgentMessage.module.css";
import { InAppAgentToolPayload } from "./InAppAgentToolPayload";
import { InAppAgentToolResultPayload } from "./InAppAgentToolResultPayload";
-import { type InAppAgentToolCallContent } from "@/src/ee/features/in-app-agent/components/utils/utils";
+import { type InAppAgentToolCallContent } from "@/src/features/in-app-agent/components/utils/utils";
export type InAppAgentMessageRole = "assistant" | "user";
diff --git a/web/src/ee/features/in-app-agent/components/InAppAgentToolCallCard.stories.tsx b/web/src/features/in-app-agent/components/InAppAgentToolCallCard.stories.tsx
similarity index 97%
rename from web/src/ee/features/in-app-agent/components/InAppAgentToolCallCard.stories.tsx
rename to web/src/features/in-app-agent/components/InAppAgentToolCallCard.stories.tsx
index 0857fb08e0..896a490e0b 100644
--- a/web/src/ee/features/in-app-agent/components/InAppAgentToolCallCard.stories.tsx
+++ b/web/src/features/in-app-agent/components/InAppAgentToolCallCard.stories.tsx
@@ -1,4 +1,4 @@
-import preview from "../../../../../.storybook/preview";
+import preview from "../../../../.storybook/preview";
import { expect, fn, within } from "storybook/test";
import { InAppAgentToolCallCard } from "./InAppAgentToolCallCard";
diff --git a/web/src/ee/features/in-app-agent/components/InAppAgentToolCallCard.tsx b/web/src/features/in-app-agent/components/InAppAgentToolCallCard.tsx
similarity index 97%
rename from web/src/ee/features/in-app-agent/components/InAppAgentToolCallCard.tsx
rename to web/src/features/in-app-agent/components/InAppAgentToolCallCard.tsx
index 7b4fb5919b..0babae7c78 100644
--- a/web/src/ee/features/in-app-agent/components/InAppAgentToolCallCard.tsx
+++ b/web/src/features/in-app-agent/components/InAppAgentToolCallCard.tsx
@@ -5,7 +5,7 @@ import { Button } from "@/src/components/ui/button";
import { cn } from "@/src/utils/tailwind";
import { InAppAgentToolPayload } from "./InAppAgentToolPayload";
import { InAppAgentToolResultPayload } from "./InAppAgentToolResultPayload";
-import { type InAppAgentToolCallContent } from "@/src/ee/features/in-app-agent/components/utils/utils";
+import { type InAppAgentToolCallContent } from "@/src/features/in-app-agent/components/utils/utils";
export function InAppAgentToolCallCard({
tool,
diff --git a/web/src/ee/features/in-app-agent/components/InAppAgentToolPayload.tsx b/web/src/features/in-app-agent/components/InAppAgentToolPayload.tsx
similarity index 100%
rename from web/src/ee/features/in-app-agent/components/InAppAgentToolPayload.tsx
rename to web/src/features/in-app-agent/components/InAppAgentToolPayload.tsx
diff --git a/web/src/ee/features/in-app-agent/components/InAppAgentToolResultPayload.tsx b/web/src/features/in-app-agent/components/InAppAgentToolResultPayload.tsx
similarity index 100%
rename from web/src/ee/features/in-app-agent/components/InAppAgentToolResultPayload.tsx
rename to web/src/features/in-app-agent/components/InAppAgentToolResultPayload.tsx
diff --git a/web/src/ee/features/in-app-agent/components/InAppAgentWidgetComposer.clienttest.tsx b/web/src/features/in-app-agent/components/InAppAgentWidgetComposer.clienttest.tsx
similarity index 100%
rename from web/src/ee/features/in-app-agent/components/InAppAgentWidgetComposer.clienttest.tsx
rename to web/src/features/in-app-agent/components/InAppAgentWidgetComposer.clienttest.tsx
diff --git a/web/src/ee/features/in-app-agent/components/InAppAgentWidgetComposer.tsx b/web/src/features/in-app-agent/components/InAppAgentWidgetComposer.tsx
similarity index 97%
rename from web/src/ee/features/in-app-agent/components/InAppAgentWidgetComposer.tsx
rename to web/src/features/in-app-agent/components/InAppAgentWidgetComposer.tsx
index b29de7fd8a..765f141886 100644
--- a/web/src/ee/features/in-app-agent/components/InAppAgentWidgetComposer.tsx
+++ b/web/src/features/in-app-agent/components/InAppAgentWidgetComposer.tsx
@@ -3,7 +3,7 @@ import { SendHorizontal, Sparkles } from "lucide-react";
import { Button } from "@/src/components/ui/button";
import { Textarea } from "@/src/components/ui/textarea";
-import { useInAppAiAgent } from "@/src/ee/features/in-app-agent/components/InAppAiAgentProvider";
+import { useInAppAiAgent } from "@/src/features/in-app-agent/components/InAppAiAgentProvider";
const MAX_TEXTAREA_HEIGHT_PX = 160;
diff --git a/web/src/ee/features/in-app-agent/components/InAppAgentWindow.clienttest.tsx b/web/src/features/in-app-agent/components/InAppAgentWindow.clienttest.tsx
similarity index 100%
rename from web/src/ee/features/in-app-agent/components/InAppAgentWindow.clienttest.tsx
rename to web/src/features/in-app-agent/components/InAppAgentWindow.clienttest.tsx
diff --git a/web/src/ee/features/in-app-agent/components/InAppAgentWindow.module.css b/web/src/features/in-app-agent/components/InAppAgentWindow.module.css
similarity index 100%
rename from web/src/ee/features/in-app-agent/components/InAppAgentWindow.module.css
rename to web/src/features/in-app-agent/components/InAppAgentWindow.module.css
diff --git a/web/src/ee/features/in-app-agent/components/InAppAgentWindow.stories.tsx b/web/src/features/in-app-agent/components/InAppAgentWindow.stories.tsx
similarity index 99%
rename from web/src/ee/features/in-app-agent/components/InAppAgentWindow.stories.tsx
rename to web/src/features/in-app-agent/components/InAppAgentWindow.stories.tsx
index 91e91e2337..966c45ec78 100644
--- a/web/src/ee/features/in-app-agent/components/InAppAgentWindow.stories.tsx
+++ b/web/src/features/in-app-agent/components/InAppAgentWindow.stories.tsx
@@ -1,4 +1,4 @@
-import preview from "../../../../../.storybook/preview";
+import preview from "../../../../.storybook/preview";
import { type ReactNode, useEffect, useRef, useState } from "react";
import { expect, fn, userEvent, waitFor, within } from "storybook/test";
import {
@@ -6,7 +6,7 @@ import {
type InAppAgentWindowMessage,
type InAppAgentWindowProps,
} from "./InAppAgentWindow";
-import { getInAppAgentQuickActionContext } from "@/src/ee/features/in-app-agent/quickActions";
+import { getInAppAgentQuickActionContext } from "@/src/features/in-app-agent/quickActions";
import {
InAppAgentWindowShell,
useInAppAgentWindowShellPanelControl,
diff --git a/web/src/ee/features/in-app-agent/components/InAppAgentWindow.tsx b/web/src/features/in-app-agent/components/InAppAgentWindow.tsx
similarity index 98%
rename from web/src/ee/features/in-app-agent/components/InAppAgentWindow.tsx
rename to web/src/features/in-app-agent/components/InAppAgentWindow.tsx
index f9bc75c7c9..08d1be7a10 100644
--- a/web/src/ee/features/in-app-agent/components/InAppAgentWindow.tsx
+++ b/web/src/features/in-app-agent/components/InAppAgentWindow.tsx
@@ -40,13 +40,13 @@ import {
type InAppAgentMessageContent,
type InAppAgentMessageRole,
} from "./InAppAgentMessage";
-import type { InAppAgentMessageFeedbackValue } from "@/src/ee/features/in-app-agent/schema";
-import type { InAppAgentScreenContextDescription } from "@/src/ee/features/in-app-agent/context";
-import { InAppAgentToolCallCard } from "@/src/ee/features/in-app-agent/components/InAppAgentToolCallCard";
+import type { InAppAgentMessageFeedbackValue } from "@/src/features/in-app-agent/schema";
+import type { InAppAgentScreenContextDescription } from "@/src/features/in-app-agent/context";
+import { InAppAgentToolCallCard } from "@/src/features/in-app-agent/components/InAppAgentToolCallCard";
import {
type InAppAgentError,
isInAppAgentRateLimited,
-} from "@/src/ee/features/in-app-agent/components/utils/utils";
+} from "@/src/features/in-app-agent/components/utils/utils";
import styles from "./InAppAgentWindow.module.css";
import { assertUnreachable } from "@/src/utils/types";
import {
@@ -58,7 +58,7 @@ import {
type InAppAgentQuickAction,
type InAppAgentQuickActionContext,
type InAppAgentSubmitOptions,
-} from "@/src/ee/features/in-app-agent/quickActions";
+} from "@/src/features/in-app-agent/quickActions";
import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";
import { Tabs, TabsList, TabsTrigger } from "@/src/components/ui/tabs";
diff --git a/web/src/ee/features/in-app-agent/components/InAppAgentWindowHost.clienttest.tsx b/web/src/features/in-app-agent/components/InAppAgentWindowHost.clienttest.tsx
similarity index 89%
rename from web/src/ee/features/in-app-agent/components/InAppAgentWindowHost.clienttest.tsx
rename to web/src/features/in-app-agent/components/InAppAgentWindowHost.clienttest.tsx
index f2f8114042..d5da1b5b50 100644
--- a/web/src/ee/features/in-app-agent/components/InAppAgentWindowHost.clienttest.tsx
+++ b/web/src/features/in-app-agent/components/InAppAgentWindowHost.clienttest.tsx
@@ -7,22 +7,19 @@ const mocks = vi.hoisted(() => ({
setOpen: vi.fn(),
}));
-vi.mock(
- "@/src/ee/features/in-app-agent/components/InAppAiAgentProvider",
- () => ({
- useCanUseInAppAgent: () => true,
- useInAppAiAgent: () => ({
- deleteConversation: vi.fn(),
- isExpanded: false,
- open: mocks.open,
- setIsExpanded: vi.fn(),
- setOpen: mocks.setOpen,
- }),
+vi.mock("@/src/features/in-app-agent/components/InAppAiAgentProvider", () => ({
+ useCanUseInAppAgent: () => true,
+ useInAppAiAgent: () => ({
+ deleteConversation: vi.fn(),
+ isExpanded: false,
+ open: mocks.open,
+ setIsExpanded: vi.fn(),
+ setOpen: mocks.setOpen,
}),
-);
+}));
vi.mock(
- "@/src/ee/features/in-app-agent/components/ControlledInAppAgentWindow",
+ "@/src/features/in-app-agent/components/ControlledInAppAgentWindow",
() => ({
ControlledInAppAgentWindow: () => (
<div data-in-app-agent-window-drag-handle="true" data-testid="window" />
diff --git a/web/src/ee/features/in-app-agent/components/InAppAgentWindowHost.tsx b/web/src/features/in-app-agent/components/InAppAgentWindowHost.tsx
similarity index 93%
rename from web/src/ee/features/in-app-agent/components/InAppAgentWindowHost.tsx
rename to web/src/features/in-app-agent/components/InAppAgentWindowHost.tsx
index ae9022c297..ff3a3d206e 100644
--- a/web/src/ee/features/in-app-agent/components/InAppAgentWindowHost.tsx
+++ b/web/src/features/in-app-agent/components/InAppAgentWindowHost.tsx
@@ -5,16 +5,16 @@ import { useLayoutEffect, useRef } from "react";
import { ConfirmDialog } from "@/src/components/ui/confirm-dialog";
import { DialogController } from "@/src/components/ui/dialog-controller";
import { Layer } from "@/src/components/ui/layer";
-import { ControlledInAppAgentWindow } from "@/src/ee/features/in-app-agent/components/ControlledInAppAgentWindow";
-import type { InAppAgentWindowConversation } from "@/src/ee/features/in-app-agent/components/InAppAgentWindow";
+import { ControlledInAppAgentWindow } from "@/src/features/in-app-agent/components/ControlledInAppAgentWindow";
+import type { InAppAgentWindowConversation } from "@/src/features/in-app-agent/components/InAppAgentWindow";
import {
InAppAgentWindowShell,
useInAppAgentWindowShellPanelControl,
-} from "@/src/ee/features/in-app-agent/components/InAppAgentWindowShell";
+} from "@/src/features/in-app-agent/components/InAppAgentWindowShell";
import {
useCanUseInAppAgent,
useInAppAiAgent,
-} from "@/src/ee/features/in-app-agent/components/InAppAiAgentProvider";
+} from "@/src/features/in-app-agent/components/InAppAiAgentProvider";
import { useWatchedPromiseCallback } from "@/src/hooks/useWatchedPromiseCallback";
function DeleteConversationDialog({
diff --git a/web/src/ee/features/in-app-agent/components/InAppAgentWindowShell.tsx b/web/src/features/in-app-agent/components/InAppAgentWindowShell.tsx
similarity index 100%
rename from web/src/ee/features/in-app-agent/components/InAppAgentWindowShell.tsx
rename to web/src/features/in-app-agent/components/InAppAgentWindowShell.tsx
diff --git a/web/src/ee/features/in-app-agent/components/InAppAiAgentProvider.clienttest.ts b/web/src/features/in-app-agent/components/InAppAiAgentProvider.clienttest.ts
similarity index 98%
rename from web/src/ee/features/in-app-agent/components/InAppAiAgentProvider.clienttest.ts
rename to web/src/features/in-app-agent/components/InAppAiAgentProvider.clienttest.ts
index 24111c1e00..607860c1dc 100644
--- a/web/src/ee/features/in-app-agent/components/InAppAiAgentProvider.clienttest.ts
+++ b/web/src/features/in-app-agent/components/InAppAiAgentProvider.clienttest.ts
@@ -1,4 +1,4 @@
-import type { AgUiMessage } from "@/src/ee/features/in-app-agent/schema";
+import type { AgUiMessage } from "@/src/features/in-app-agent/schema";
import {
createInAppAgentDisplayState,
projectInAppAgentMessagesForDisplay,
diff --git a/web/src/ee/features/in-app-agent/components/InAppAiAgentProvider.tsx b/web/src/features/in-app-agent/components/InAppAiAgentProvider.tsx
similarity index 98%
rename from web/src/ee/features/in-app-agent/components/InAppAiAgentProvider.tsx
rename to web/src/features/in-app-agent/components/InAppAiAgentProvider.tsx
index 81957d91f9..f4dab6716e 100644
--- a/web/src/ee/features/in-app-agent/components/InAppAiAgentProvider.tsx
+++ b/web/src/features/in-app-agent/components/InAppAiAgentProvider.tsx
@@ -21,8 +21,8 @@ import {
createInAppAgentConversationId,
createInAppAgentMessageId,
createInAppAgentRunId,
-} from "@/src/ee/features/in-app-agent/ids";
-import { IN_APP_AGENT_REDIRECT_TOOL_NAME } from "@/src/ee/features/in-app-agent/constants";
+} from "@/src/features/in-app-agent/ids";
+import { IN_APP_AGENT_REDIRECT_TOOL_NAME } from "@/src/features/in-app-agent/constants";
import {
AgUiMessageSchema,
type AgUiMessage,
@@ -30,8 +30,8 @@ import {
type InAppAgentMessageFeedbackValue,
type InAppAgentRuntimeState,
type InAppAgentToolApprovalRequest,
-} from "@/src/ee/features/in-app-agent/schema";
-import type { InAppAgentError } from "@/src/ee/features/in-app-agent/components/utils/utils";
+} from "@/src/features/in-app-agent/schema";
+import type { InAppAgentError } from "@/src/features/in-app-agent/components/utils/utils";
import { useHasEntitlement } from "@/src/features/entitlements/hooks";
import { showErrorToast } from "@/src/features/notifications/showErrorToast";
import { useLangfuseCloudRegion } from "@/src/features/organizations/hooks";
@@ -43,19 +43,19 @@ import {
createInAppAgentScreenContext,
createInAppAgentUserContext,
type InAppAgentMessageEntryPoint,
-} from "@/src/ee/features/in-app-agent/context";
+} from "@/src/features/in-app-agent/context";
import type {
InAppAgentQuickActionAttribution,
InAppAgentSubmitOptions,
-} from "@/src/ee/features/in-app-agent/quickActions";
+} from "@/src/features/in-app-agent/quickActions";
import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture";
import {
getInAppAgentError,
isInAppAgentRateLimited,
type InAppAiAgentMessage,
-} from "@/src/ee/features/in-app-agent/components/utils/utils";
+} from "@/src/features/in-app-agent/components/utils/utils";
import { evaluateSetStateAction } from "@/src/utils/evaluate-set-state-action";
-import { InAppAgentDisabledDialog } from "@/src/ee/features/in-app-agent/components/InAppAgentDisabledDialog";
+import { InAppAgentDisabledDialog } from "@/src/features/in-app-agent/components/InAppAgentDisabledDialog";
const SELECTED_CONVERSATION_STORAGE_KEY_PREFIX =
"langfuse:in-app-ai-agent-selected-conversation";
diff --git a/web/src/ee/features/in-app-agent/components/index.ts b/web/src/features/in-app-agent/components/index.ts
similarity index 100%
rename from web/src/ee/features/in-app-agent/components/index.ts
rename to web/src/features/in-app-agent/components/index.ts
diff --git a/web/src/ee/features/in-app-agent/components/useSmoothStreamingMessages.clienttest.tsx b/web/src/features/in-app-agent/components/useSmoothStreamingMessages.clienttest.tsx
similarity index 99%
rename from web/src/ee/features/in-app-agent/components/useSmoothStreamingMessages.clienttest.tsx
rename to web/src/features/in-app-agent/components/useSmoothStreamingMessages.clienttest.tsx
index ff3c8fe32c..9c9dd238bb 100644
--- a/web/src/ee/features/in-app-agent/components/useSmoothStreamingMessages.clienttest.tsx
+++ b/web/src/features/in-app-agent/components/useSmoothStreamingMessages.clienttest.tsx
@@ -2,7 +2,7 @@ import { act, render, screen } from "@testing-library/react";
import { StrictMode } from "react";
import type { InAppAgentPendingToolApproval } from "./InAppAiAgentProvider";
-import type { AgUiMessage } from "@/src/ee/features/in-app-agent/schema";
+import type { AgUiMessage } from "@/src/features/in-app-agent/schema";
import { useSmoothStreamingMessages } from "./useSmoothStreamingMessages";
const userMessage = {
diff --git a/web/src/ee/features/in-app-agent/components/useSmoothStreamingMessages.ts b/web/src/features/in-app-agent/components/useSmoothStreamingMessages.ts
similarity index 99%
rename from web/src/ee/features/in-app-agent/components/useSmoothStreamingMessages.ts
rename to web/src/features/in-app-agent/components/useSmoothStreamingMessages.ts
index 558e66ca8a..3eea262965 100644
--- a/web/src/ee/features/in-app-agent/components/useSmoothStreamingMessages.ts
+++ b/web/src/features/in-app-agent/components/useSmoothStreamingMessages.ts
@@ -1,8 +1,8 @@
import { useEffect, useEffectEvent, useReducer } from "react";
import type { InAppAgentPendingToolApproval } from "./InAppAiAgentProvider";
-import { IN_APP_AGENT_REDIRECT_TOOL_NAME } from "@/src/ee/features/in-app-agent/constants";
-import type { AgUiMessage } from "@/src/ee/features/in-app-agent/schema";
+import { IN_APP_AGENT_REDIRECT_TOOL_NAME } from "@/src/features/in-app-agent/constants";
+import type { AgUiMessage } from "@/src/features/in-app-agent/schema";
import { assertUnreachable } from "@/src/utils/types";
const FRAME_DURATION_MS = 40;
diff --git a/web/src/ee/features/in-app-agent/components/utils/markdown.ts b/web/src/features/in-app-agent/components/utils/markdown.ts
similarity index 100%
rename from web/src/ee/features/in-app-agent/components/utils/markdown.ts
rename to web/src/features/in-app-agent/components/utils/markdown.ts
diff --git a/web/src/ee/features/in-app-agent/components/utils/utils.clienttest.ts b/web/src/features/in-app-agent/components/utils/utils.clienttest.ts
similarity index 99%
rename from web/src/ee/features/in-app-agent/components/utils/utils.clienttest.ts
rename to web/src/features/in-app-agent/components/utils/utils.clienttest.ts
index 3ffbf67564..1668442f86 100644
--- a/web/src/ee/features/in-app-agent/components/utils/utils.clienttest.ts
+++ b/web/src/features/in-app-agent/components/utils/utils.clienttest.ts
@@ -1,4 +1,4 @@
-import type { AgUiMessage } from "@/src/ee/features/in-app-agent/schema";
+import type { AgUiMessage } from "@/src/features/in-app-agent/schema";
import {
extractLangfuseDocsSources,
getDrawerMessages,
diff --git a/web/src/ee/features/in-app-agent/components/utils/utils.ts b/web/src/features/in-app-agent/components/utils/utils.ts
similarity index 99%
rename from web/src/ee/features/in-app-agent/components/utils/utils.ts
rename to web/src/features/in-app-agent/components/utils/utils.ts
index 28ec8e1ae1..d341f359cd 100644
--- a/web/src/ee/features/in-app-agent/components/utils/utils.ts
+++ b/web/src/features/in-app-agent/components/utils/utils.ts
@@ -7,7 +7,7 @@ import { safeJsonParse, stableJsonStringify } from "@/src/utils/json";
import {
IN_APP_AGENT_REDIRECT_TOOL_NAME,
IN_APP_AGENT_TOOL_REJECTION_ERROR_CODE,
-} from "@/src/ee/features/in-app-agent/constants";
+} from "@/src/features/in-app-agent/constants";
import {
AgUiMessageSchema,
type AgUiMessage,
@@ -15,7 +15,7 @@ import {
type InAppAgentMessageSource,
InAppAgentRedirectActionToolResultSchema,
InAppAgentMessageSourceSchema,
-} from "@/src/ee/features/in-app-agent/schema";
+} from "@/src/features/in-app-agent/schema";
export type InAppAgentError =
| { type: "generic"; message: string }
diff --git a/web/src/ee/features/in-app-agent/constants.ts b/web/src/features/in-app-agent/constants.ts
similarity index 100%
rename from web/src/ee/features/in-app-agent/constants.ts
rename to web/src/features/in-app-agent/constants.ts
diff --git a/web/src/ee/features/in-app-agent/context.clienttest.ts b/web/src/features/in-app-agent/context.clienttest.ts
similarity index 100%
rename from web/src/ee/features/in-app-agent/context.clienttest.ts
rename to web/src/features/in-app-agent/context.clienttest.ts
diff --git a/web/src/ee/features/in-app-agent/context.ts b/web/src/features/in-app-agent/context.ts
similarity index 98%
rename from web/src/ee/features/in-app-agent/context.ts
rename to web/src/features/in-app-agent/context.ts
index 835fa120bb..2f13c86f94 100644
--- a/web/src/ee/features/in-app-agent/context.ts
+++ b/web/src/features/in-app-agent/context.ts
@@ -1,9 +1,9 @@
-import type { AgUiRunAgentInput } from "@/src/ee/features/in-app-agent/schema";
+import type { AgUiRunAgentInput } from "@/src/features/in-app-agent/schema";
import {
isInAppAgentQuickActionContext,
type InAppAgentQuickActionAttribution,
-} from "@/src/ee/features/in-app-agent/quickActions";
-import { getInAppAgentProjectRoute } from "@/src/ee/features/in-app-agent/routeContext";
+} from "@/src/features/in-app-agent/quickActions";
+import { getInAppAgentProjectRoute } from "@/src/features/in-app-agent/routeContext";
import type { FilterState } from "@langfuse/shared";
type InAppAgentContext = AgUiRunAgentInput["context"];
diff --git a/web/src/ee/features/in-app-agent/ids.ts b/web/src/features/in-app-agent/ids.ts
similarity index 100%
rename from web/src/ee/features/in-app-agent/ids.ts
rename to web/src/features/in-app-agent/ids.ts
diff --git a/web/src/ee/features/in-app-agent/prompts/in-app-agent-system-prompt.txt b/web/src/features/in-app-agent/prompts/in-app-agent-system-prompt.txt
similarity index 100%
rename from web/src/ee/features/in-app-agent/prompts/in-app-agent-system-prompt.txt
rename to web/src/features/in-app-agent/prompts/in-app-agent-system-prompt.txt
diff --git a/web/src/ee/features/in-app-agent/quickActions.clienttest.ts b/web/src/features/in-app-agent/quickActions.clienttest.ts
similarity index 100%
rename from web/src/ee/features/in-app-agent/quickActions.clienttest.ts
rename to web/src/features/in-app-agent/quickActions.clienttest.ts
diff --git a/web/src/ee/features/in-app-agent/quickActions.ts b/web/src/features/in-app-agent/quickActions.ts
similarity index 98%
rename from web/src/ee/features/in-app-agent/quickActions.ts
rename to web/src/features/in-app-agent/quickActions.ts
index c609f2b6e9..385f470eb0 100644
--- a/web/src/ee/features/in-app-agent/quickActions.ts
+++ b/web/src/features/in-app-agent/quickActions.ts
@@ -1,5 +1,5 @@
-import type { InAppAgentMessageEntryPoint } from "@/src/ee/features/in-app-agent/context";
-import { getInAppAgentProjectRoute } from "@/src/ee/features/in-app-agent/routeContext";
+import type { InAppAgentMessageEntryPoint } from "@/src/features/in-app-agent/context";
+import { getInAppAgentProjectRoute } from "@/src/features/in-app-agent/routeContext";
import {
Activity,
BarChart3,
diff --git a/web/src/ee/features/in-app-agent/routeContext.ts b/web/src/features/in-app-agent/routeContext.ts
similarity index 100%
rename from web/src/ee/features/in-app-agent/routeContext.ts
rename to web/src/features/in-app-agent/routeContext.ts
diff --git a/web/src/ee/features/in-app-agent/schema.ts b/web/src/features/in-app-agent/schema.ts
similarity index 100%
rename from web/src/ee/features/in-app-agent/schema.ts
rename to web/src/features/in-app-agent/schema.ts
diff --git a/web/src/ee/features/in-app-agent/server/agent.ts b/web/src/features/in-app-agent/server/agent.ts
similarity index 98%
rename from web/src/ee/features/in-app-agent/server/agent.ts
rename to web/src/features/in-app-agent/server/agent.ts
index 4dfe07440c..f8a2462dd2 100644
--- a/web/src/ee/features/in-app-agent/server/agent.ts
+++ b/web/src/features/in-app-agent/server/agent.ts
@@ -14,35 +14,35 @@ import {
type AgUiRunAgentInput,
type InAppAgentToolApprovalRequest,
type ResumeForwardedProps,
-} from "@/src/ee/features/in-app-agent/schema";
-import { createManualToolApprovalRunInput } from "@/src/ee/features/in-app-agent/server/human-in-the-loop";
+} from "@/src/features/in-app-agent/schema";
+import { createManualToolApprovalRunInput } from "@/src/features/in-app-agent/server/human-in-the-loop";
import type {
InAppAgentPromptMetadata,
InAppAgentTracingConfig,
-} from "@/src/ee/features/in-app-agent/server/instrumentation";
-import { createInAppAgentInstrumentation } from "@/src/ee/features/in-app-agent/server/instrumentation";
+} from "@/src/features/in-app-agent/server/instrumentation";
+import { createInAppAgentInstrumentation } from "@/src/features/in-app-agent/server/instrumentation";
import {
createSandboxTools,
createRedirectActionTool,
filterInAppAgentAvailableLangfuseMcpTools,
type InAppAgentUserAccess,
withInAppAgentToolApproval,
-} from "@/src/ee/features/in-app-agent/server/tools";
-import { LANGFUSE_IN_APP_AGENT_SKILLS } from "@/src/ee/features/in-app-agent/server/skills";
-import type { InAppAgentSandbox } from "@/src/ee/features/in-app-agent/server/sandbox";
+} from "@/src/features/in-app-agent/server/tools";
+import { LANGFUSE_IN_APP_AGENT_SKILLS } from "@/src/features/in-app-agent/server/skills";
+import type { InAppAgentSandbox } from "@/src/features/in-app-agent/server/sandbox";
import { DEFAULT_SIDEBAR_HIDDEN_ENVIRONMENTS } from "@/src/features/filters/constants/internal-environments";
import { logger } from "@langfuse/shared/src/server";
import {
IN_APP_AGENT_MCP_TOOL_OVERRIDE_HEADER,
IN_APP_AGENT_MCP_USER_AGENT,
IN_APP_AGENT_REDIRECT_TOOL_NAME,
-} from "@/src/ee/features/in-app-agent/constants";
+} from "@/src/features/in-app-agent/constants";
const ASSISTANT_TITLE = "Langfuse Assistant";
const IN_APP_AGENT_SYSTEM_PROMPT_NAME = "in-app-agent-system-prompt";
const LOCAL_IN_APP_AGENT_SYSTEM_PROMPT_DIR = path.join(
process.cwd(),
- "src/ee/features/in-app-agent/prompts/",
+ "src/features/in-app-agent/prompts/",
);
const MAX_AGENT_STEPS = 10;
const BEDROCK_CLAUDE_MODEL_ID_PART = "anthropic.claude";
diff --git a/web/src/ee/features/in-app-agent/server/eventCompaction.ts b/web/src/features/in-app-agent/server/eventCompaction.ts
similarity index 96%
rename from web/src/ee/features/in-app-agent/server/eventCompaction.ts
rename to web/src/features/in-app-agent/server/eventCompaction.ts
index 1ad29cc2a8..31905bea34 100644
--- a/web/src/ee/features/in-app-agent/server/eventCompaction.ts
+++ b/web/src/features/in-app-agent/server/eventCompaction.ts
@@ -1,6 +1,6 @@
import { EventType } from "@ag-ui/core";
-import type { AgUiEvent } from "@/src/ee/features/in-app-agent/schema";
+import type { AgUiEvent } from "@/src/features/in-app-agent/schema";
export function compactTextMessageChunks(
events: readonly AgUiEvent[],
diff --git a/web/src/ee/features/in-app-agent/server/handler.ts b/web/src/features/in-app-agent/server/handler.ts
similarity index 97%
rename from web/src/ee/features/in-app-agent/server/handler.ts
rename to web/src/features/in-app-agent/server/handler.ts
index 4e3d247d0f..181bdd8430 100644
--- a/web/src/ee/features/in-app-agent/server/handler.ts
+++ b/web/src/features/in-app-agent/server/handler.ts
@@ -6,13 +6,13 @@ import { env } from "@/src/env.mjs";
import {
createInAppAgentMessageId,
createInAppAgentRunId,
-} from "@/src/ee/features/in-app-agent/ids";
+} from "@/src/features/in-app-agent/ids";
import {
getInAppAgentMessageEntryPointTraceMetadata,
getInAppAgentQuickActionTraceMetadata,
sanitizeInAppAgentContext,
-} from "@/src/ee/features/in-app-agent/context";
-import { getInAppAgentInstrumentationTraceId } from "@/src/ee/features/in-app-agent/constants";
+} from "@/src/features/in-app-agent/context";
+import { getInAppAgentInstrumentationTraceId } from "@/src/features/in-app-agent/constants";
import {
AgUiRunAgentInputSchema,
type AgUiRunAgentInput,
@@ -21,19 +21,19 @@ import {
type AgUiMessage,
ResumeForwardedPropsSchema,
type ResumeForwardedProps,
-} from "@/src/ee/features/in-app-agent/schema";
-import { createAgUiStream } from "@/src/ee/features/in-app-agent/server/agent";
+} from "@/src/features/in-app-agent/schema";
+import { createAgUiStream } from "@/src/features/in-app-agent/server/agent";
import {
consumeAndValidatePendingToolApproval,
createInAppAgentMcpRunOverride,
parseInAppAgentInterruptEvent,
storePendingToolApproval,
validatePendingToolApproval,
-} from "@/src/ee/features/in-app-agent/server/human-in-the-loop";
+} from "@/src/features/in-app-agent/server/human-in-the-loop";
import {
isMcpToolName,
type InAppAgentUserAccess,
-} from "@/src/ee/features/in-app-agent/server/tools";
+} from "@/src/features/in-app-agent/server/tools";
import type { McpToolName } from "@/src/features/mcp/server/bootstrap";
import {
createRun,
@@ -47,12 +47,12 @@ import {
flushPendingRunEvents,
shouldFlushPersistedEvent,
toPersistableAgentEvent,
-} from "@/src/ee/features/in-app-agent/server/persistence";
-import { createInAppAgentSandbox } from "@/src/ee/features/in-app-agent/server/sandbox";
+} from "@/src/features/in-app-agent/server/persistence";
+import { createInAppAgentSandbox } from "@/src/features/in-app-agent/server/sandbox";
import {
createInAppAgentSandboxProvider,
getDefaultInAppAgentSandboxProviderType,
-} from "@/src/ee/features/in-app-agent/server/sandbox/config";
+} from "@/src/features/in-app-agent/server/sandbox/config";
import { getLangfuseClient } from "@/src/features/natural-language-filters/server/utils";
import { getAuthOptions } from "@/src/server/auth";
import { hasEntitlement } from "@/src/features/entitlements/server/hasEntitlement";
diff --git a/web/src/ee/features/in-app-agent/server/human-in-the-loop.ts b/web/src/features/in-app-agent/server/human-in-the-loop.ts
similarity index 98%
rename from web/src/ee/features/in-app-agent/server/human-in-the-loop.ts
rename to web/src/features/in-app-agent/server/human-in-the-loop.ts
index 5fc91eb3d9..76f35cff7a 100644
--- a/web/src/ee/features/in-app-agent/server/human-in-the-loop.ts
+++ b/web/src/features/in-app-agent/server/human-in-the-loop.ts
@@ -4,8 +4,8 @@ import { z } from "zod";
import { InvalidRequestError } from "@langfuse/shared";
import { prisma } from "@langfuse/shared/src/db";
import type { McpToolName } from "@/src/features/mcp/server/bootstrap";
-import { IN_APP_AGENT_TOOL_REJECTION_ERROR_CODE } from "@/src/ee/features/in-app-agent/constants";
-import { IN_APP_AGENT_LANGFUSE_MCP_TOOL_NAMES } from "@/src/ee/features/in-app-agent/server/tools";
+import { IN_APP_AGENT_TOOL_REJECTION_ERROR_CODE } from "@/src/features/in-app-agent/constants";
+import { IN_APP_AGENT_LANGFUSE_MCP_TOOL_NAMES } from "@/src/features/in-app-agent/server/tools";
import { safeJsonParse, stableJsonStringify } from "@/src/utils/json";
import {
type AgUiEvent,
@@ -13,7 +13,7 @@ import {
type AgUiRunAgentInput,
type InAppAgentToolApprovalRequest,
type ResumeForwardedProps,
-} from "@/src/ee/features/in-app-agent/schema";
+} from "@/src/features/in-app-agent/schema";
const MANUAL_TOOL_APPROVAL_REJECTION_MESSAGE =
"Tool call was not approved by the user.";
diff --git a/web/src/ee/features/in-app-agent/server/instrumentation.ts b/web/src/features/in-app-agent/server/instrumentation.ts
similarity index 98%
rename from web/src/ee/features/in-app-agent/server/instrumentation.ts
rename to web/src/features/in-app-agent/server/instrumentation.ts
index ecb91a5f1e..9f29dc56c9 100644
--- a/web/src/ee/features/in-app-agent/server/instrumentation.ts
+++ b/web/src/features/in-app-agent/server/instrumentation.ts
@@ -4,14 +4,14 @@ import { getInternalTracingHandler, logger } from "@langfuse/shared/src/server";
import {
getInAppAgentInstrumentationObservationId,
getInAppAgentInstrumentationTraceId,
-} from "@/src/ee/features/in-app-agent/constants";
+} from "@/src/features/in-app-agent/constants";
import type {
AgUiEvent,
AgUiMessage,
AgUiRunAgentInput,
-} from "@/src/ee/features/in-app-agent/schema";
-import { compactTextMessageChunks } from "@/src/ee/features/in-app-agent/server/eventCompaction";
-import type { InAppAgentUserAccess } from "@/src/ee/features/in-app-agent/server/tools";
+} from "@/src/features/in-app-agent/schema";
+import { compactTextMessageChunks } from "@/src/features/in-app-agent/server/eventCompaction";
+import type { InAppAgentUserAccess } from "@/src/features/in-app-agent/server/tools";
import { assertUnreachable } from "@/src/utils/types";
export type InAppAgentTracingConfig = {
diff --git a/web/src/ee/features/in-app-agent/server/persistence.ts b/web/src/features/in-app-agent/server/persistence.ts
similarity index 99%
rename from web/src/ee/features/in-app-agent/server/persistence.ts
rename to web/src/features/in-app-agent/server/persistence.ts
index 70225f2626..866deb2f52 100644
--- a/web/src/ee/features/in-app-agent/server/persistence.ts
+++ b/web/src/features/in-app-agent/server/persistence.ts
@@ -32,11 +32,11 @@ import {
InAppAgentRedirectActionToolResultSchema,
type AgUiEvent,
type AgUiMessage,
-} from "@/src/ee/features/in-app-agent/schema";
-import { compactPersistedEventDeltas } from "@/src/ee/features/in-app-agent/server/eventCompaction";
-import { IN_APP_AGENT_REDIRECT_TOOL_NAME } from "@/src/ee/features/in-app-agent/constants";
+} from "@/src/features/in-app-agent/schema";
+import { compactPersistedEventDeltas } from "@/src/features/in-app-agent/server/eventCompaction";
+import { IN_APP_AGENT_REDIRECT_TOOL_NAME } from "@/src/features/in-app-agent/constants";
import { safeJsonParse } from "@/src/utils/json";
-import { IN_APP_AGENT_SANDBOX_TOOL_NAMES } from "@/src/ee/features/in-app-agent/server/tools";
+import { IN_APP_AGENT_SANDBOX_TOOL_NAMES } from "@/src/features/in-app-agent/server/tools";
// Keep this close to the route maxDuration (120s) so a killed foreground stream
// does not block the conversation long after the route can no longer respond.
diff --git a/web/src/ee/features/in-app-agent/server/router.ts b/web/src/features/in-app-agent/server/router.ts
similarity index 97%
rename from web/src/ee/features/in-app-agent/server/router.ts
rename to web/src/features/in-app-agent/server/router.ts
index e35ea6af11..e13e1111d2 100644
--- a/web/src/ee/features/in-app-agent/server/router.ts
+++ b/web/src/features/in-app-agent/server/router.ts
@@ -18,8 +18,8 @@ import { env } from "@/src/env.mjs";
import {
getInAppAgentInstrumentationObservationId,
getInAppAgentInstrumentationTraceId,
-} from "@/src/ee/features/in-app-agent/constants";
-import { InAppAgentMessageFeedbackValueSchema } from "@/src/ee/features/in-app-agent/schema";
+} from "@/src/features/in-app-agent/constants";
+import { InAppAgentMessageFeedbackValueSchema } from "@/src/features/in-app-agent/schema";
import { throwIfNoEntitlement } from "@/src/features/entitlements/server/hasEntitlement";
import {
createTRPCRouter,
@@ -33,7 +33,7 @@ import {
getOwnedConversationOrThrow,
isInAppAgentConversationWriteLocked,
serializeConversation,
-} from "@/src/ee/features/in-app-agent/server/persistence";
+} from "@/src/features/in-app-agent/server/persistence";
const CONVERSATION_LIST_LIMIT = 50;
diff --git a/web/src/ee/features/in-app-agent/server/sandbox/config.ts b/web/src/features/in-app-agent/server/sandbox/config.ts
similarity index 96%
rename from web/src/ee/features/in-app-agent/server/sandbox/config.ts
rename to web/src/features/in-app-agent/server/sandbox/config.ts
index a5335936d3..fb3669ff7c 100644
--- a/web/src/ee/features/in-app-agent/server/sandbox/config.ts
+++ b/web/src/features/in-app-agent/server/sandbox/config.ts
@@ -1,7 +1,7 @@
import { createLambdaMicrovmSandboxProvider } from "./providers/lambdaMicrovm";
import type { InAppAgentSandboxProviderType, SandboxProvider } from "./types";
import { env } from "@/src/env.mjs";
-import { IN_APP_AGENT_LOCAL_SANDBOX_IMAGE } from "@/src/ee/features/in-app-agent/constants";
+import { IN_APP_AGENT_LOCAL_SANDBOX_IMAGE } from "@/src/features/in-app-agent/constants";
import { assertUnreachable } from "@/src/utils/types";
export function getDefaultInAppAgentSandboxProviderType(): InAppAgentSandboxProviderType | null {
diff --git a/web/src/ee/features/in-app-agent/server/sandbox/index.ts b/web/src/features/in-app-agent/server/sandbox/index.ts
similarity index 100%
rename from web/src/ee/features/in-app-agent/server/sandbox/index.ts
rename to web/src/features/in-app-agent/server/sandbox/index.ts
diff --git a/web/src/ee/features/in-app-agent/server/sandbox/providers/docker.ts b/web/src/features/in-app-agent/server/sandbox/providers/docker.ts
similarity index 100%
rename from web/src/ee/features/in-app-agent/server/sandbox/providers/docker.ts
rename to web/src/features/in-app-agent/server/sandbox/providers/docker.ts
diff --git a/web/src/ee/features/in-app-agent/server/sandbox/providers/lambdaMicrovm.ts b/web/src/features/in-app-agent/server/sandbox/providers/lambdaMicrovm.ts
similarity index 100%
rename from web/src/ee/features/in-app-agent/server/sandbox/providers/lambdaMicrovm.ts
rename to web/src/features/in-app-agent/server/sandbox/providers/lambdaMicrovm.ts
diff --git a/web/src/ee/features/in-app-agent/server/sandbox/service.ts b/web/src/features/in-app-agent/server/sandbox/service.ts
similarity index 100%
rename from web/src/ee/features/in-app-agent/server/sandbox/service.ts
rename to web/src/features/in-app-agent/server/sandbox/service.ts
diff --git a/web/src/ee/features/in-app-agent/server/sandbox/types.ts b/web/src/features/in-app-agent/server/sandbox/types.ts
similarity index 100%
rename from web/src/ee/features/in-app-agent/server/sandbox/types.ts
rename to web/src/features/in-app-agent/server/sandbox/types.ts
diff --git a/web/src/ee/features/in-app-agent/server/skills.ts b/web/src/features/in-app-agent/server/skills.ts
similarity index 100%
rename from web/src/ee/features/in-app-agent/server/skills.ts
rename to web/src/features/in-app-agent/server/skills.ts
diff --git a/web/src/ee/features/in-app-agent/server/skills/generated/raw/README.md b/web/src/features/in-app-agent/server/skills/generated/raw/README.md
similarity index 100%
rename from web/src/ee/features/in-app-agent/server/skills/generated/raw/README.md
rename to web/src/features/in-app-agent/server/skills/generated/raw/README.md
diff --git a/web/src/ee/features/in-app-agent/server/skills/generated/raw/cli.md b/web/src/features/in-app-agent/server/skills/generated/raw/cli.md
similarity index 100%
rename from web/src/ee/features/in-app-agent/server/skills/generated/raw/cli.md
rename to web/src/features/in-app-agent/server/skills/generated/raw/cli.md
diff --git a/web/src/ee/features/in-app-agent/server/skills/generated/raw/error-analysis.md b/web/src/features/in-app-agent/server/skills/generated/raw/error-analysis.md
similarity index 100%
rename from web/src/ee/features/in-app-agent/server/skills/generated/raw/error-analysis.md
rename to web/src/features/in-app-agent/server/skills/generated/raw/error-analysis.md
diff --git a/web/src/ee/features/in-app-agent/server/skills/generated/raw/prompt-engineering.md b/web/src/features/in-app-agent/server/skills/generated/raw/prompt-engineering.md
similarity index 100%
rename from web/src/ee/features/in-app-agent/server/skills/generated/raw/prompt-engineering.md
rename to web/src/features/in-app-agent/server/skills/generated/raw/prompt-engineering.md
diff --git a/web/src/ee/features/in-app-agent/server/skills/generated/raw/v4-project-migration.md b/web/src/features/in-app-agent/server/skills/generated/raw/v4-project-migration.md
similarity index 100%
rename from web/src/ee/features/in-app-agent/server/skills/generated/raw/v4-project-migration.md
rename to web/src/features/in-app-agent/server/skills/generated/raw/v4-project-migration.md
diff --git a/web/src/ee/features/in-app-agent/server/skills/generated/skill-markdown.ts b/web/src/features/in-app-agent/server/skills/generated/skill-markdown.ts
similarity index 100%
rename from web/src/ee/features/in-app-agent/server/skills/generated/skill-markdown.ts
rename to web/src/features/in-app-agent/server/skills/generated/skill-markdown.ts
diff --git a/web/src/ee/features/in-app-agent/server/tools.ts b/web/src/features/in-app-agent/server/tools.ts
similarity index 99%
rename from web/src/ee/features/in-app-agent/server/tools.ts
rename to web/src/features/in-app-agent/server/tools.ts
index a12c566823..fab515c77d 100644
--- a/web/src/ee/features/in-app-agent/server/tools.ts
+++ b/web/src/features/in-app-agent/server/tools.ts
@@ -1,5 +1,5 @@
import { createTool } from "@mastra/core/tools";
-import type { InAppAgentSandbox } from "@/src/ee/features/in-app-agent/server/sandbox";
+import type { InAppAgentSandbox } from "@/src/features/in-app-agent/server/sandbox";
import type { ProjectScope } from "@/src/features/rbac/constants/projectAccessRights";
import { hasProjectAccess } from "@/src/features/rbac/utils/checkProjectAccess";
import { assertUnreachable } from "@/src/utils/types";
@@ -25,7 +25,7 @@ import z from "zod";
import { TABLE_AGGREGATION_OPTIONS } from "@/src/utils/date-range-utils";
import { ObservationLevelDomain, TracingSearchType } from "@langfuse/shared";
import { Role } from "@langfuse/shared/src/db";
-import { IN_APP_AGENT_REDIRECT_TOOL_NAME } from "@/src/ee/features/in-app-agent/constants";
+import { IN_APP_AGENT_REDIRECT_TOOL_NAME } from "@/src/features/in-app-agent/constants";
import type { McpToolName } from "@/src/features/mcp/server/bootstrap";
type InAppAgentMcpToolApproval = "auto" | "approval";
diff --git a/web/src/features/v4-migration/V4MigrationContent.clienttest.tsx b/web/src/features/v4-migration/V4MigrationContent.clienttest.tsx
index 9e142daf4a..2382e168f6 100644
--- a/web/src/features/v4-migration/V4MigrationContent.clienttest.tsx
+++ b/web/src/features/v4-migration/V4MigrationContent.clienttest.tsx
@@ -51,13 +51,10 @@ vi.mock("@/src/features/v4-migration/useV4UpgradeAssistantSupport", () => ({
}),
}));
-vi.mock(
- "@/src/ee/features/in-app-agent/components/InAppAiAgentProvider",
- () => ({
- useCanUseInAppAgent: () => false,
- useInAppAiAgent: () => ({ setOpen: vi.fn(), submit: vi.fn() }),
- }),
-);
+vi.mock("@/src/features/in-app-agent/components/InAppAiAgentProvider", () => ({
+ useCanUseInAppAgent: () => false,
+ useInAppAiAgent: () => ({ setOpen: vi.fn(), submit: vi.fn() }),
+}));
vi.mock("@/src/components/ui/collapsible", () => ({
Collapsible: ({ children }: { children: React.ReactNode }) => (
diff --git a/web/src/features/v4-migration/V4MigrationContent.tsx b/web/src/features/v4-migration/V4MigrationContent.tsx
index 159279781a..dd5906ef60 100644
--- a/web/src/features/v4-migration/V4MigrationContent.tsx
+++ b/web/src/features/v4-migration/V4MigrationContent.tsx
@@ -9,7 +9,7 @@ import {
LifeBuoy,
TriangleAlert,
} from "lucide-react";
-import { useInAppAiAgent } from "@/src/ee/features/in-app-agent/components/InAppAiAgentProvider";
+import { useInAppAiAgent } from "@/src/features/in-app-agent/components/InAppAiAgentProvider";
import { useSupportDrawer } from "@/src/features/support-chat/SupportDrawerProvider";
import { Button } from "@/src/components/ui/button";
import { RainbowButton } from "@/src/components/magicui/rainbow-button";
diff --git a/web/src/features/v4-migration/V4MigrationDelayBadge.tsx b/web/src/features/v4-migration/V4MigrationDelayBadge.tsx
index 7fd861d9f0..95811c8d58 100644
--- a/web/src/features/v4-migration/V4MigrationDelayBadge.tsx
+++ b/web/src/features/v4-migration/V4MigrationDelayBadge.tsx
@@ -10,7 +10,7 @@ import {
import {
useCanUseInAppAgent,
useInAppAiAgent,
-} from "@/src/ee/features/in-app-agent/components/InAppAiAgentProvider";
+} from "@/src/features/in-app-agent/components/InAppAiAgentProvider";
import { useEvalUpgradeAssistantPlan } from "@/src/features/v4-migration/useV4UpgradeAssistantSupport";
function BadgeContent({
diff --git a/web/src/features/v4-migration/V4MigrationStatusPage.clienttest.tsx b/web/src/features/v4-migration/V4MigrationStatusPage.clienttest.tsx
index 00a0f257aa..803d650492 100644
--- a/web/src/features/v4-migration/V4MigrationStatusPage.clienttest.tsx
+++ b/web/src/features/v4-migration/V4MigrationStatusPage.clienttest.tsx
@@ -61,12 +61,9 @@ vi.mock("@/src/features/v4-migration/V4MigrationPanelProvider", () => ({
useV4MigrationPanel: () => ({ openForProject: mocks.openForProject }),
}));
-vi.mock(
- "@/src/ee/features/in-app-agent/components/InAppAiAgentProvider",
- () => ({
- useInAppAiAgent: () => ({ setOpen: vi.fn() }),
- }),
-);
+vi.mock("@/src/features/in-app-agent/components/InAppAiAgentProvider", () => ({
+ useInAppAiAgent: () => ({ setOpen: vi.fn() }),
+}));
vi.mock("@/src/features/v4-migration/V4MigrationContent", () => ({
useCopyMigrationPrompt: () => vi.fn(),
diff --git a/web/src/features/v4-migration/hooks/useOpenV4MigrationPanel.ts b/web/src/features/v4-migration/hooks/useOpenV4MigrationPanel.ts
index 7c86911ad0..e701d82ab9 100644
--- a/web/src/features/v4-migration/hooks/useOpenV4MigrationPanel.ts
+++ b/web/src/features/v4-migration/hooks/useOpenV4MigrationPanel.ts
@@ -1,4 +1,4 @@
-import { useInAppAiAgent } from "@/src/ee/features/in-app-agent/components/InAppAiAgentProvider";
+import { useInAppAiAgent } from "@/src/features/in-app-agent/components/InAppAiAgentProvider";
import { useSupportDrawer } from "@/src/features/support-chat/SupportDrawerProvider";
import {
useV4MigrationPanel,
diff --git a/web/src/features/v4-migration/useV4UpgradeAssistantSupport.ts b/web/src/features/v4-migration/useV4UpgradeAssistantSupport.ts
index 859db7a2cf..749ffe2a67 100644
--- a/web/src/features/v4-migration/useV4UpgradeAssistantSupport.ts
+++ b/web/src/features/v4-migration/useV4UpgradeAssistantSupport.ts
@@ -1,4 +1,4 @@
-import { useCanUseInAppAgent } from "@/src/ee/features/in-app-agent/components/InAppAiAgentProvider";
+import { useCanUseInAppAgent } from "@/src/features/in-app-agent/components/InAppAiAgentProvider";
import { useProjectV4SdkData } from "@/src/features/v4-migration/hooks/useV4MigrationData";
import { api } from "@/src/utils/api";
diff --git a/web/src/features/widgets/components/SelectWidgetDialog.tsx b/web/src/features/widgets/components/SelectWidgetDialog.tsx
index 7193f4d9c6..be35d84e0f 100644
--- a/web/src/features/widgets/components/SelectWidgetDialog.tsx
+++ b/web/src/features/widgets/components/SelectWidgetDialog.tsx
@@ -26,7 +26,7 @@ import {
} from "@langfuse/shared";
import { HOME_PRESET_METADATA } from "@/src/features/dashboard/components/home-preset-registry";
import { type DashboardWidgetChartType } from "@langfuse/shared/src/db";
-import { InAppAgentWidgetComposer } from "@/src/ee/features/in-app-agent/components/InAppAgentWidgetComposer";
+import { InAppAgentWidgetComposer } from "@/src/features/in-app-agent/components/InAppAgentWidgetComposer";
export type WidgetItem = {
id: string;
diff --git a/web/src/pages/_app.tsx b/web/src/pages/_app.tsx
index 8e5f7aadf8..dd7f2372af 100644
--- a/web/src/pages/_app.tsx
+++ b/web/src/pages/_app.tsx
@@ -81,7 +81,7 @@ import { ThemeProvider } from "@/src/features/theming/ThemeProvider";
import { MarkdownContextProvider } from "@/src/features/theming/useMarkdownContext";
import { SupportDrawerProvider } from "@/src/features/support-chat/SupportDrawerProvider";
import { V4MigrationPanelProvider } from "@/src/features/v4-migration/V4MigrationPanelProvider";
-import { InAppAiAgentProvider } from "@/src/ee/features/in-app-agent/components/InAppAiAgentProvider";
+import { InAppAiAgentProvider } from "@/src/features/in-app-agent/components/InAppAiAgentProvider";
import { useLangfuseCloudRegion } from "@/src/features/organizations/hooks";
import { ScoreCacheProvider } from "@/src/features/scores/contexts/ScoreCacheContext";
import { CorrectionCacheProvider } from "@/src/features/corrections/contexts/CorrectionCacheContext";
diff --git a/web/src/pages/api/public/mcp/index.ts b/web/src/pages/api/public/mcp/index.ts
index 18608aca23..35115f2966 100644
--- a/web/src/pages/api/public/mcp/index.ts
+++ b/web/src/pages/api/public/mcp/index.ts
@@ -40,8 +40,8 @@ import { prisma } from "@langfuse/shared/src/db";
import { BaseError, UnauthorizedError, ForbiddenError } from "@langfuse/shared";
import { ZodError } from "zod";
import { isUserInputError } from "@/src/features/mcp/core/errors";
-import { IN_APP_AGENT_MCP_TOOL_OVERRIDE_HEADER } from "@/src/ee/features/in-app-agent/constants";
-import { InAppAgentMcpRunOverrideSchema } from "@/src/ee/features/in-app-agent/server/human-in-the-loop";
+import { IN_APP_AGENT_MCP_TOOL_OVERRIDE_HEADER } from "@/src/features/in-app-agent/constants";
+import { InAppAgentMcpRunOverrideSchema } from "@/src/features/in-app-agent/server/human-in-the-loop";
import { safeJsonParse } from "@/src/utils/json";
// Bootstrap MCP features - registers all tools at module load time
diff --git a/web/src/server/api/root.ts b/web/src/server/api/root.ts
index 67a4acc23e..4558bd9b36 100644
--- a/web/src/server/api/root.ts
+++ b/web/src/server/api/root.ts
@@ -59,7 +59,7 @@ import { searchBarRouter } from "@/src/features/search-bar/server/router";
import { notificationPreferencesRouter } from "@/src/server/api/routers/notificationPreferences";
import { onboardingRouter } from "@/src/features/onboarding/server/onboardingRouter";
import { webCalloutsRouter } from "@/src/features/web-callouts/server/router";
-import { inAppAgentRouter } from "@/src/ee/features/in-app-agent/server/router";
+import { inAppAgentRouter } from "@/src/features/in-app-agent/server/router";
import { v4TransitionRouter } from "@/src/features/v4/server/v4TransitionRouter";
/**