feat: add Elixir framework support#946
Draft
sarahxsanders wants to merge 1 commit into
Draft
Conversation
🧙 Wizard CIRun the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands: Test all apps:
Test all apps in a directory:
Test an individual app:
Show more apps
Results will be posted here when complete. |
This was referenced Jul 22, 2026
sarahxsanders
force-pushed
the
posthog-code/go-framework-support
branch
from
July 22, 2026 20:41
6e5076c to
57700c0
Compare
sarahxsanders
force-pushed
the
posthog-code/elixir-framework-support
branch
from
July 22, 2026 20:41
5bc160d to
f14d962
Compare
sarahxsanders
changed the base branch from
posthog-code/go-framework-support
to
main
July 22, 2026 20:42
Adds Elixir as a supported framework, stacked on the Go framework PR: - Integration.elixir enum entry in the frameworks block, before the language fallbacks - ELIXIR_AGENT_CONFIG in src/frameworks/elixir/ — claims a mix.exs with a def project definition, gathers whether the app is Phoenix (:phoenix dep) as agent context for the Plug integration nudge, installs by editing mix.exs deps then mix deps.get (Mix has no single add command) - mixPackageManager helper + FRAMEWORK_REGISTRY entry - bash-fence allowlist for mix: deps.get/deps.update/deps.tree/compile/format/hex.info only — mix runs arbitrary project-defined tasks, so run/test/phx.server/ecto.* stay denied - Pins framework: elixir on integration-elixir in the variant-resolution contract test, matching context-mill PR #268 which must release before this merges - Marks mix.exs as a real framework target in the agentic manifest comment Generated-By: PostHog Code Task-Id: 9c949855-7611-48f2-b8b5-7aa4112543e5
sarahxsanders
force-pushed
the
posthog-code/elixir-framework-support
branch
from
July 22, 2026 20:43
f14d962 to
ab2cdff
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related PRs:
mainand can merge on its own, in any order relative to the sibling Go/Elixir/Rust/Java framework PRs.Adds Elixir as a supported framework, following the backend-framework pattern:
Integration.elixirenum entry in the frameworks block, before the language fallbacksELIXIR_AGENT_CONFIGinsrc/frameworks/elixir/— claims amix.exswith adef projectdefinition (a stray placeholder file falls through); gathers whether the app is Phoenix (:phoenixdep) as agent context, which drives thePostHog.Integrations.Plugprompt nudge; installs by editing themix.exsdeps list thenmix deps.get(Mix has no single add verb — same manual-edit framing as pip)mixPackageManagerhelper +FRAMEWORK_REGISTRYentrymix:deps.get|deps.update|deps.tree|compile|format|hex.infoonly — mix executes arbitrary project-defined tasks, somix run/test/phx.server/ecto.*stay deniedframework: elixironintegration-elixirin the variant-resolution contract test, matching the context-mill PR aboveWhy: the wizard docs page lists Elixir as "Coming soon"; instead of removing the label (posthog.com#18797), we're making the wizard actually support it.
Verification:
pnpm build✅,pnpm test✅ (1542 tests, incl. new elixir detect + mix fence tests),pnpm fix✅Created with PostHog Code