Skip to content

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

chore: Document Codex setup tooling in AGENTS guides (#12478)

Max Deichmann24edc9926eea
diff --git a/.codex/environments/environment.toml b/.codex/environments/environment.toml
new file mode 100644
index 0000000000..2c255c2841
--- /dev/null
+++ b/.codex/environments/environment.toml
@@ -0,0 +1,6 @@
+# THIS IS AUTOGENERATED. DO NOT EDIT MANUALLY
+version = 1
+name = "langfuse"
+
+[setup]
+script = "bash scripts/codex/setup.sh"
diff --git a/AGENTS.md b/AGENTS.md
index 44eb618b69..938e6da791 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -43,6 +43,8 @@ langfuse/
- Dev all packages: `pnpm run dev`
- Dev web only: `pnpm run dev:web`
- Dev worker only: `pnpm run dev:worker`
+- Codex environment bootstrap: `bash scripts/codex/setup.sh`
+- Codex environment maintenance: `bash scripts/codex/maintenance.sh`
- Lint all: `pnpm run lint`
- Typecheck all: `pnpm run typecheck` / `pnpm tc`
- To try running build, always run `pnpm run build:check` and verify that it succeeds. This does not impact running web servers
diff --git a/web/AGENTS.md b/web/AGENTS.md
index 8570cd0a0e..bc71baab0c 100644
--- a/web/AGENTS.md
+++ b/web/AGENTS.md
@@ -34,8 +34,8 @@ Use root [AGENTS.md](../AGENTS.md) for monorepo-level rules.
- Lint: `pnpm --filter web run lint`
- Lint fix: `pnpm --filter web run lint:fix`
- Typecheck: `pnpm --filter web run typecheck`
-- Server tests: `pnpm --filter web run test -- --testPathPatterns="<pattern>"`
-- Client tests: `pnpm --filter web run test-client -- --testPathPatterns="<pattern>"`
+- Server tests: `pnpm --filter web run test --testPathPatterns="<pattern>"`
+- Client tests: `pnpm --filter web run test-client --testPathPatterns="<pattern>"`
- E2E tests: `pnpm --filter web run test:e2e`
- Build: `pnpm --filter web run build`
@@ -64,4 +64,5 @@ Use root [AGENTS.md](../AGENTS.md) for monorepo-level rules.
- Router style is Pages Router-centric; follow existing routing patterns.
- Keep tests independent; no reliance on test execution order.
- In `src/__tests__/server`, avoid `pruneDatabase` calls.
+- Confirm the target `*.clienttest.*` or `*.servertest.*` file exists before using `--testPathPatterns`; source files do not always have a matching colocated test file.
- Do not hand-edit build artifacts: `.next/*`, `.next-check/*`, `dist/*`.