How to set up a development environment and contribute to FERAL.
Contributing to FERAL
FERAL is building toward an agent-native operating system. That is a large mission and we need help from many kinds of engineers — backend, frontend, ML, hardware, Nix/packaging, and documentation.
cd FERAL-AI/feral-client-v2npm installnpm run dev # dev server on localhost:5173
Or use Make targets from the repo root:
make dev # install all depsmake serve # brainmake client # web UI dev servermake test # run pytestmake help # list all targets
Code Style
Python
Type hints on all function signatures.
Ruff for linting, Black-compatible formatting.
Keep functions focused and short. Prefer composition over inheritance.
Avoid broad except: blocks — catch specific exceptions.
TypeScript / React
Strict mode enabled.
Prettier for formatting.
Functional components with hooks.
General
No commented-out code in PRs.
Comments explain why, not what.
New features should include tests.
Testing
# Unit + integration testspytest# With coverage reportpytest --cov --cov-report=term# Target: 70% coverage minimum
Test files live in feral-core/tests/. Use pytest-asyncio for async tests — the asyncio_mode = "auto" config handles the event loop.
The settings reader gate
If you add a key to DEFAULT_SETTINGS in feral-core/config/loader.py, a test
will fail unless something actually reads it.feral-core/tests/test_settings_keys_have_readers.py walks every leaf of
DEFAULT_SETTINGS and asserts each one has a reader somewhere in feral-core.
It exists because FERAL has shipped the same bug four separate times: a key is
written by an operator surface (the setup wizard, the WebUI Settings page, the
phone Settings panel), persisted to settings.json, and then read by nothing.
The operator sees a switch, flips it, the value survives a restart, and the
runtime ignores it forever. Confirmed instances: vision.provider /
vision.model (an operator who picked free local Ollama vision was still billed
for every frame on the shared paid chat model), voice.chained.* (a Groq
Whisper plus ElevenLabs pick still ran Deepgram), security.autonomy_mode
(picking “strict” silently ran “hybrid”), and audio.realtime_providers (still
dead, see below). Each was found by hand, months apart. The test turns that
audit into CI.A key counts as read when either holds:
Direct read. Some non-test module under feral-core accesses the leaf
name in a read-shaped position (.get("leaf"), block["leaf"],
helper("leaf", default), get_setting("section", "leaf")) with the key’s
parent path segments nearby. Write-shaped constructs are blanked out first,
because a key that is only ever written is exactly the bug.
Env-var read. Several subsystems resolve their config only from the
variables ConfigLoader.export_as_env emits. The path-to-variable map is not
hardcoded in the test; it is probed by mutating one leaf at a time and
diffing the export_as_env() output, so it cannot drift away from the loader.
Deliberate scoping: readers must live in feral-core (a JS client reading a key
back purely to render its own toggle is the write path round-tripping, not a
consumer); tests are not readers; and config/loader.py is a reader, but its
own DEFAULT_SETTINGS literal is masked out so a key cannot vouch for itself.If the gate flags your key, the fix is to wire a reader or delete the key.
Only if it genuinely should have no reader do you add it to
UNREAD_KEY_ALLOWLIST, and the allowlist is kept honest by three further tests:
The reason string must be at least 60 characters after stripping.
It may not contain any of the filler phrases todo, fixme, tbd,
for now, later, unknown, not sure, temporary, wip, xxx.
A substring match anywhere in the reason fails, so write the sentence you
actually mean rather than a placeholder.
An entry whose key has since acquired a reader, or which no longer exists in
DEFAULT_SETTINGS, fails as stale and must be removed.
Two entries are on the allowlist today: version (a schema stamp, not a
behaviour switch) and audio.realtime_providers (genuinely unread; the router
resolves a single provider from the scalar audio.realtime_primary, and the
ordered list is written by the WebUI Settings page and consumed by nobody).The analysis is a heuristic that errs toward calling things read, so a flagged
key is worth believing. If it flags something that really does have a reader,
widen _read_patterns rather than burying the key in the allowlist.
Known limit 1: the gate walks DEFAULT_SETTINGS only. A key that is written
straight to settings.json by the setup wizard or by a client, without a
corresponding default in the loader, is invisible to it. audio.chained_providers
is a live example: the WebUI Settings page persists it, no Python reads it, and
the gate cannot see it because it is not in DEFAULT_SETTINGS. If you add an
operator-facing key, add its default to DEFAULT_SETTINGS so the gate covers
it.Known limit 2: a read inside dead code still counts as a read. The analysis
is textual, so it cannot tell that the function containing the read is never
called. coding.tool_call_context passes the gate on the
os.environ.get("FERAL_TOOL_CALL_CONTEXT", "on") inside
skills/call_context.py::context_enabled(), which has no call sites anywhere in
the tree, so the setting is inert in exactly the way the gate exists to catch.
Pull Request Process
Fork the repository and create a feature branch:
git checkout -b feat/my-feature
Write tests for new functionality.
Run the test suite and ensure it passes:
pytest
Open a PR against main with a clear title and description:
What changed and why.
How to test the change.
Screenshots for UI changes.
One approval from a maintainer is required to merge.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/schema.json","name":"FERAL","description":"One local brain for apps, devices, memory, and policy-gated actions.","colors":{"primary":"#06b6d4","light":"#22d3ee","dark":"#0891b2"},"logo":{"light":"https://mintcdn.com/theorainc/3oIlRkiDGuuChoRU/images/feral-banner.png?fit=max\u0026auto=format\u0026n=3oIlRkiDGuuChoRU\u0026q=85\u0026s=c8fbcee2390dd8e3aa1b750c17d1ca45","dark":"https://mintcdn.com/theorainc/3oIlRkiDGuuChoRU/images/feral-banner.png?fit=max\u0026auto=format\u0026n=3oIlRkiDGuuChoRU\u0026q=85\u0026s=c8fbcee2390dd8e3aa1b750c17d1ca45","href":"https://feral.sh"},"favicon":"https://mintcdn.com/theorainc/PfPbgvi_tDb9uySk/images/favicon.svg?fit=max\u0026auto=format\u0026n=PfPbgvi_tDb9uySk\u0026q=85\u0026s=29444914b79136a8b10df0fcb564f391","navbar":{"links":[{"href":"https://feral.sh","label":"Website"}],"primary":{"type":"github","href":"https://github.com/FERAL-AI/FERAL-AI"}},"footer":{"socials":{"github":"https://github.com/FERAL-AI/FERAL-AI","website":"https://feral.sh"}},"integrations":{"posthog":{"apiKey":"phc_pqVzXEN2FSPpjkueNQNwQnLEUQEwvHifa3ho8hMRifHd","apiHost":"https://us.i.posthog.com"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"theorainc","hasAudioNarration":false,"actualSubdomain":"theorainc","customDomains":["docs.feral.sh"],"gitSource":{"type":"github","owner":"feral-ai","repo":"feral-ai","deployBranch":"main","contentDirectory":"docs/mintlify","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a9cadb93275d5afab474d20","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"Guides","count":16},{"language":"default","tag":"Hardware","count":8},{"language":"default","tag":"Reference","count":7},{"language":"default","tag":"Channels","count":6},{"language":"default","tag":"Native Apps","count":4},{"language":"default","tag":"Connectivity","count":4},{"language":"default","tag":"Operations","count":4},{"language":"default","tag":"Overview","count":3},{"language":"default","tag":"Community","count":3},{"language":"default","tag":"Getting Started","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"contributing","slug":"/contributing","pageMetadata":{"title":"Contributing","sidebarTitle":"Contributing","description":"How to set up a development environment and contribute to FERAL.","href":"/contributing"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"How to set up a development environment and contribute to FERAL.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`contributing-to-feral`,children:`Contributing to FERAL`}),`\n`,_jsx(_components.p,{children:`FERAL is building toward an agent-native operating system. That is a large mission and we need help from many kinds of engineers — backend, frontend, ML, hardware, Nix/packaging, and documentation.`}),`\n`,_jsx(Heading,{level:`2`,id:`development-setup`,children:`Development Setup`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`git`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` clone https://github.com/FERAL-AI/FERAL-AI.git`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` FERAL-AI/feral-core`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`pip`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` install -e `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\".[llm,dev]\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`feral setup`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`feral serve `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# brain running on localhost:9090`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`For the web UI (in a separate terminal):`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` FERAL-AI/feral-client-v2`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` install`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` run dev `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# dev server on localhost:5173`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Or use Make targets from the repo root:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`make dev `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# install all deps`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`make serve `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# brain`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`make client `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# web UI dev server`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`make test `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# run pytest`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`make help `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# list all targets`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`code-style`,children:`Code Style`}),`\n`,_jsx(Heading,{level:`3`,id:`python`,children:`Python`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Type hints`}),` on all function signatures.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Ruff`}),` for linting, `,_jsx(_components.strong,{children:`Black`}),`-compatible formatting.`]}),`\n`,_jsx(_components.li,{children:`Keep functions focused and short. Prefer composition over inheritance.`}),`\n`,_jsxs(_components.li,{children:[`Avoid broad `,_jsx(_components.code,{children:`except:`}),` blocks — catch specific exceptions.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`typescript-/-react`,children:`TypeScript / React`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Strict mode`}),` enabled.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Prettier`}),` for formatting.`]}),`\n`,_jsx(_components.li,{children:`Functional components with hooks.`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`general`,children:`General`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`No commented-out code in PRs.`}),`\n`,_jsxs(_components.li,{children:[`Comments explain `,_jsx(_components.em,{children:`why`}),`, not `,_jsx(_components.em,{children:`what`}),`.`]}),`\n`,_jsx(_components.li,{children:`New features should include tests.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`testing`,children:`Testing`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Unit + integration tests`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`pytest`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# With coverage report`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`pytest --cov --cov-report=term`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Target: 70% coverage minimum`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Test files live in `,_jsx(_components.code,{children:`feral-core/tests/`}),`. Use `,_jsx(_components.code,{children:`pytest-asyncio`}),` for async tests — the `,_jsx(_components.code,{children:`asyncio_mode = \"auto\"`}),` config handles the event loop.`]}),`\n`,_jsx(Heading,{level:`3`,id:`the-settings-reader-gate`,children:`The settings reader gate`}),`\n`,_jsxs(_components.p,{children:[`If you add a key to `,_jsx(_components.code,{children:`DEFAULT_SETTINGS`}),` in `,_jsx(_components.code,{children:`feral-core/config/loader.py`}),`, a test\nwill fail unless something actually reads it.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`feral-core/tests/test_settings_keys_have_readers.py`}),` walks every leaf of\n`,_jsx(_components.code,{children:`DEFAULT_SETTINGS`}),` and asserts each one has a reader somewhere in `,_jsx(_components.code,{children:`feral-core`}),`.\nIt exists because FERAL has shipped the same bug four separate times: a key is\nwritten by an operator surface (the setup wizard, the WebUI Settings page, the\nphone Settings panel), persisted to `,_jsx(_components.code,{children:`settings.json`}),`, and then read by nothing.\nThe operator sees a switch, flips it, the value survives a restart, and the\nruntime ignores it forever. Confirmed instances: `,_jsx(_components.code,{children:`vision.provider`}),` /\n`,_jsx(_components.code,{children:`vision.model`}),` (an operator who picked free local Ollama vision was still billed\nfor every frame on the shared paid chat model), `,_jsx(_components.code,{children:`voice.chained.*`}),` (a Groq\nWhisper plus ElevenLabs pick still ran Deepgram), `,_jsx(_components.code,{children:`security.autonomy_mode`}),`\n(picking “strict” silently ran “hybrid”), and `,_jsx(_components.code,{children:`audio.realtime_providers`}),` (still\ndead, see below). Each was found by hand, months apart. The test turns that\naudit into CI.`]}),`\n`,_jsx(_components.p,{children:`A key counts as read when either holds:`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Direct read.`}),` Some non-test module under `,_jsx(_components.code,{children:`feral-core`}),` accesses the leaf\nname in a read-shaped position (`,_jsx(_components.code,{children:`.get(\"leaf\")`}),`, `,_jsx(_components.code,{children:`block[\"leaf\"]`}),`,\n`,_jsx(_components.code,{children:`helper(\"leaf\", default)`}),`, `,_jsx(_components.code,{children:`get_setting(\"section\", \"leaf\")`}),`) with the key’s\nparent path segments nearby. Write-shaped constructs are blanked out first,\nbecause a key that is only ever `,_jsx(_components.em,{children:`written`}),` is exactly the bug.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Env-var read.`}),` Several subsystems resolve their config only from the\nvariables `,_jsx(_components.code,{children:`ConfigLoader.export_as_env`}),` emits. The path-to-variable map is not\nhardcoded in the test; it is `,_jsx(_components.em,{children:`probed`}),` by mutating one leaf at a time and\ndiffing the `,_jsx(_components.code,{children:`export_as_env()`}),` output, so it cannot drift away from the loader.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Deliberate scoping: readers must live in `,_jsx(_components.code,{children:`feral-core`}),` (a JS client reading a key\nback purely to render its own toggle is the write path round-tripping, not a\nconsumer); tests are not readers; and `,_jsx(_components.code,{children:`config/loader.py`}),` is a reader, but its\nown `,_jsx(_components.code,{children:`DEFAULT_SETTINGS`}),` literal is masked out so a key cannot vouch for itself.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`If the gate flags your key,`}),` the fix is to wire a reader or delete the key.\nOnly if it genuinely should have no reader do you add it to\n`,_jsx(_components.code,{children:`UNREAD_KEY_ALLOWLIST`}),`, and the allowlist is kept honest by three further tests:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The reason string must be at least `,_jsx(_components.strong,{children:`60 characters`}),` after stripping.`]}),`\n`,_jsxs(_components.li,{children:[`It may not contain any of the filler phrases `,_jsx(_components.code,{children:`todo`}),`, `,_jsx(_components.code,{children:`fixme`}),`, `,_jsx(_components.code,{children:`tbd`}),`,\n`,_jsx(_components.code,{children:`for now`}),`, `,_jsx(_components.code,{children:`later`}),`, `,_jsx(_components.code,{children:`unknown`}),`, `,_jsx(_components.code,{children:`not sure`}),`, `,_jsx(_components.code,{children:`temporary`}),`, `,_jsx(_components.code,{children:`wip`}),`, `,_jsx(_components.code,{children:`xxx`}),`.\nA substring match anywhere in the reason fails, so write the sentence you\nactually mean rather than a placeholder.`]}),`\n`,_jsxs(_components.li,{children:[`An entry whose key has since acquired a reader, or which no longer exists in\n`,_jsx(_components.code,{children:`DEFAULT_SETTINGS`}),`, fails as stale and must be removed.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Two entries are on the allowlist today: `,_jsx(_components.code,{children:`version`}),` (a schema stamp, not a\nbehaviour switch) and `,_jsx(_components.code,{children:`audio.realtime_providers`}),` (genuinely unread; the router\nresolves a single provider from the scalar `,_jsx(_components.code,{children:`audio.realtime_primary`}),`, and the\nordered list is written by the WebUI Settings page and consumed by nobody).`]}),`\n`,_jsxs(_components.p,{children:[`The analysis is a heuristic that errs toward calling things read, so a flagged\nkey is worth believing. If it flags something that really does have a reader,\nwiden `,_jsx(_components.code,{children:`_read_patterns`}),` rather than burying the key in the allowlist.`]}),`\n`,_jsxs(Warning,{children:[_jsxs(_components.p,{children:[_jsxs(_components.strong,{children:[`Known limit 1: the gate walks `,_jsx(_components.code,{children:`DEFAULT_SETTINGS`}),` only.`]}),` A key that is written\nstraight to `,_jsx(_components.code,{children:`settings.json`}),` by the setup wizard or by a client, without a\ncorresponding default in the loader, is invisible to it. `,_jsx(_components.code,{children:`audio.chained_providers`}),`\nis a live example: the WebUI Settings page persists it, no Python reads it, and\nthe gate cannot see it because it is not in `,_jsx(_components.code,{children:`DEFAULT_SETTINGS`}),`. If you add an\noperator-facing key, add its default to `,_jsx(_components.code,{children:`DEFAULT_SETTINGS`}),` so the gate covers\nit.`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Known limit 2: a read inside dead code still counts as a read.`}),` The analysis\nis textual, so it cannot tell that the function containing the read is never\ncalled. `,_jsx(_components.code,{children:`coding.tool_call_context`}),` passes the gate on the\n`,_jsx(_components.code,{children:`os.environ.get(\"FERAL_TOOL_CALL_CONTEXT\", \"on\")`}),` inside\n`,_jsx(_components.code,{children:`skills/call_context.py::context_enabled()`}),`, which has no call sites anywhere in\nthe tree, so the setting is inert in exactly the way the gate exists to catch.`]})]}),`\n`,_jsx(Heading,{level:`2`,id:`pull-request-process`,children:`Pull Request Process`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Fork`}),` the repository and create a feature branch:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`git`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` checkout -b feat/my-feature`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Write tests`}),` for new functionality.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Run the test suite`}),` and ensure it passes:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`pytest`})}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Open a PR`}),` against `,_jsx(_components.code,{children:`main`}),` with a clear title and description:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`What changed and why.`}),`\n`,_jsx(_components.li,{children:`How to test the change.`}),`\n`,_jsx(_components.li,{children:`Screenshots for UI changes.`}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`One approval`}),` from a maintainer is required to merge.`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`contributor-lanes`,children:`Contributor Lanes`}),`\n`,_jsx(_components.p,{children:`Pick the area that matches your skills:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Lane`}),_jsx(_components.th,{style:{textAlign:`left`},children:`What You’d Work On`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Entry Points`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Runtime / Orchestrator`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Agent loop, LLM routing, TaskFlows, sessions, security`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`feral-core/agents/`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Memory / Knowledge`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`4-tier memory, wiki compilation, ingest pipelines, federated sync`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`feral-core/memory/`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`GenUI / Provider Surfaces`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`SDUI engine, provider contracts, surface caching, client renderer`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`feral-core/genui/`}),`, `,_jsx(_components.code,{children:`feral-client-v2/src/ui/SduiRenderer.jsx`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Hardware / Daemons`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`HUP protocol, daemon SDKs, device profiles, edge bridges`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`feral-core/hardware/`}),`, `,_jsx(_components.code,{children:`feral-nodes/`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Voice / Perception`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Realtime voice, Gemini Live, wake word, vision pipeline`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`feral-core/voice/`}),`, `,_jsx(_components.code,{children:`feral-core/perception/`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Nix / Packaging`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Flake outputs, NixOS modules, reproducible builds`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`flake.nix`})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Frontend / Shell`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Web UI, dashboard, Tauri desktop, mobile bridges`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`feral-client-v2/`}),`, `,_jsx(_components.code,{children:`desktop/`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.strong,{children:`Documentation`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Guides, API reference, architecture docs`}),_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`docs/`})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`architecture-docs`,children:`Architecture Docs`}),`\n`,_jsx(_components.p,{children:`Before diving in, read these to understand the system:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/architecture`,children:`Architecture Overview`})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://github.com/FERAL-AI/FERAL-AI/blob/main/docs/GENUI_PROVIDER_SPEC.md`,children:_jsx(_components.code,{children:`docs/GENUI_PROVIDER_SPEC.md`})}),` — building GenUI provider surfaces`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://github.com/FERAL-AI/FERAL-AI/blob/main/docs/HARDWARE_ECOSYSTEM.md`,children:_jsx(_components.code,{children:`docs/HARDWARE_ECOSYSTEM.md`})}),` — building hardware daemons`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://github.com/FERAL-AI/FERAL-AI/blob/main/docs/ROADMAP.md`,children:_jsx(_components.code,{children:`docs/ROADMAP.md`})}),` — strategic execution order`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/reference/capability-status`,children:`Capability status`}),` — what’s available today, what needs operator setup, what’s coming`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`reporting-issues`,children:`Reporting Issues`}),`\n`,_jsxs(_components.p,{children:[`Open an issue at `,_jsx(_components.a,{href:`https://github.com/FERAL-AI/FERAL-AI/issues`,children:`github.com/FERAL-AI/FERAL-AI/issues`}),` with:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Steps to reproduce.`}),`\n`,_jsx(_components.li,{children:`Expected vs actual behavior.`}),`\n`,_jsxs(_components.li,{children:[`Python version, OS, and `,_jsx(_components.code,{children:`feral --version`}),` output.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`contact`,children:`Contact`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Alpay Kasal`}),` — `,_jsx(_components.a,{href:`mailto:info@feral.io`,children:`info@feral.io`})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Contributing","sidebarTitle":"Contributing","description":"How to set up a development environment and contribute to FERAL.","href":"/contributing"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Contributing to FERAL","slug":"contributing-to-feral","depth":1,"children":[]},{"title":"Development Setup","slug":"development-setup","depth":2,"children":[]},{"title":"Code Style","slug":"code-style","depth":2,"children":[{"title":"Python","slug":"python","depth":3,"children":[]},{"title":"TypeScript / React","slug":"typescript-/-react","depth":3,"children":[]},{"title":"General","slug":"general","depth":3,"children":[]}]},{"title":"Testing","slug":"testing","depth":2,"children":[{"title":"The settings reader gate","slug":"the-settings-reader-gate","depth":3,"children":[]}]},{"title":"Pull Request Process","slug":"pull-request-process","depth":2,"children":[]},{"title":"Contributor Lanes","slug":"contributor-lanes","depth":2,"children":[]},{"title":"Architecture Docs","slug":"architecture-docs","depth":2,"children":[]},{"title":"Reporting Issues","slug":"reporting-issues","depth":2,"children":[]},{"title":"Contact","slug":"contact","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"theorainc","siteName":"FERAL","title":"Contributing - FERAL","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-22T00:10:02.180Z","originalFileLocation":"contributing.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"How to set up a development environment and contribute to FERAL.\">\u003cmeta data-mint-head name=\"application-name\" content=\"FERAL\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/theorainc/VI5k2E5B6PLbj-WW/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/theorainc/VI5k2E5B6PLbj-WW/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/theorainc/VI5k2E5B6PLbj-WW/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/theorainc/VI5k2E5B6PLbj-WW/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/theorainc/VI5k2E5B6PLbj-WW/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/theorainc/VI5k2E5B6PLbj-WW/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/theorainc/VI5k2E5B6PLbj-WW/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/theorainc/VI5k2E5B6PLbj-WW/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/theorainc/VI5k2E5B6PLbj-WW/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Contributing - FERAL\">\u003cmeta data-mint-head property=\"og:description\" content=\"How to set up a development environment and contribute to FERAL.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"FERAL\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.feral.sh/contributing\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://theorainc.mintlify.site/_mintlify/api/og/v2?division=Community\u0026amp;title=Contributing\u0026amp;description=How+to+set+up+a+development+environment+and+contribute+to+FERAL.\u0026amp;theme=ceaffc471f5db8cece772fd3\u0026amp;signature=fabaeabb0e58abe3ed114839c8a412a5cf363d1bc335dea50ee48143467815d6\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Contributing - FERAL\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"How to set up a development environment and contribute to FERAL.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://theorainc.mintlify.site/_mintlify/api/og/v2?division=Community\u0026amp;title=Contributing\u0026amp;description=How+to+set+up+a+development+environment+and+contribute+to+FERAL.\u0026amp;theme=ceaffc471f5db8cece772fd3\u0026amp;signature=fabaeabb0e58abe3ed114839c8a412a5cf363d1bc335dea50ee48143467815d6\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/theorainc/VI5k2E5B6PLbj-WW/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"FERAL\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#06b6d4\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.feral.sh/contributing\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/contributing.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.feral.sh/#organization\",\"name\":\"FERAL\",\"url\":\"https://docs.feral.sh\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/theorainc/3oIlRkiDGuuChoRU/images/feral-banner.png?fit=max\u0026auto=format\u0026n=3oIlRkiDGuuChoRU\u0026q=85\u0026s=c8fbcee2390dd8e3aa1b750c17d1ca45\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.feral.sh#website\",\"name\":\"FERAL\",\"url\":\"https://docs.feral.sh\",\"publisher\":{\"@id\":\"https://docs.feral.sh/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.feral.sh/contributing#webpage\",\"url\":\"https://docs.feral.sh/contributing\",\"name\":\"Contributing\",\"description\":\"How to set up a development environment and contribute to FERAL.\",\"dateModified\":\"2026-08-22T00:10:02.180Z\",\"isPartOf\":{\"@id\":\"https://docs.feral.sh#website\"},\"breadcrumb\":{\"@id\":\"https://docs.feral.sh/contributing#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.feral.sh/contributing#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"FERAL\",\"item\":\"https://docs.feral.sh\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Contributing\",\"item\":\"https://docs.feral.sh/contributing\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.feral.sh/contributing#article\",\"headline\":\"Contributing\",\"name\":\"Contributing\",\"description\":\"How to set up a development environment and contribute to FERAL.\",\"url\":\"https://docs.feral.sh/contributing\",\"mainEntityOfPage\":{\"@id\":\"https://docs.feral.sh/contributing#webpage\"},\"dateModified\":\"2026-08-22T00:10:02.180Z\",\"publisher\":{\"@id\":\"https://docs.feral.sh/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.feral.sh#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"FERAL\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"FERAL\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/contributing.md","siteName":"FERAL","nav":{"global":null,"groups":[{"group":"Overview","pages":[{"title":"FERAL Overview","sidebarTitle":"Introduction","href":"/introduction"},{"title":"Quickstart","sidebarTitle":"Quickstart","href":"/quickstart"},{"title":"Architecture","sidebarTitle":"Architecture","href":"/architecture"}]},{"group":"Getting Started","pages":[{"title":"Installation","sidebarTitle":"Installation","href":"/getting-started/installation"},{"title":"Configuration","sidebarTitle":"Configuration","href":"/getting-started/configuration"},{"title":"First Run","sidebarTitle":"First Run","href":"/getting-started/first-run"}]},{"group":"Guides","pages":[{"title":"Pairing \u0026 Access","sidebarTitle":"Pairing \u0026 Access","href":"/guides/pairing-access"},{"title":"Writing Skills","sidebarTitle":"Skills","href":"/guides/skills"},{"title":"Gen-UI (SDUI)","sidebarTitle":"Gen-UI","href":"/guides/genui"},{"title":"Memory System","sidebarTitle":"Memory","href":"/guides/memory"},{"title":"Voice Pipeline","sidebarTitle":"Voice","href":"/guides/voice"},{"title":"Local Voice","sidebarTitle":"Local Voice","href":"/guides/local-voice"},{"title":"Voice — Troubleshooting","href":"/guides/voice-troubleshooting"},{"title":"Security Model","sidebarTitle":"Security","href":"/guides/security"},{"title":"Autonomy Levels","sidebarTitle":"Autonomy","href":"/guides/autonomy"},{"title":"Plan Mode and the Todo Tracker","sidebarTitle":"Plan Mode","href":"/guides/plan-mode"},{"title":"Coding Harness Reliability","sidebarTitle":"Coding Harness","href":"/guides/coding-harness"},{"title":"Running FERAL Fully Offline","sidebarTitle":"Local Models","href":"/guides/local-models"},{"title":"Browser Automation — Setup \u0026 Troubleshooting","href":"/guides/browser-automation"},{"title":"GUI Computer Use","href":"/guides/gui-computer-use"},{"title":"PDF Reader — Troubleshooting","href":"/guides/pdf"},{"title":"Digital Twin — Guide \u0026 Ethics","href":"/guides/digital-twin"}]},{"group":"Marketplace","pages":[{"title":"Marketplace (registry.feral.sh)","href":"/marketplace/overview"},{"title":"Tool Genesis","href":"/marketplace/tool-genesis"}]},{"group":"Memory","pages":[{"title":"Why the memory works this way","sidebarTitle":"Design rationale","href":"/memory/design"},{"title":"Sync chaos \u0026 recovery","href":"/memory/chaos"}]},{"group":"Hardware","pages":[{"title":"Hardware Mesh Protocol","sidebarTitle":"Hardware","href":"/guides/hardware"},{"title":"Device Adapters (HUP)","sidebarTitle":"Devices","href":"/guides/devices"},{"title":"HUP — Hardware Unification Protocol","href":"/hardware/hup-spec"},{"title":"Wristband","sidebarTitle":"Wristband","href":"/hardware/wristband"},{"title":"Smart Home","sidebarTitle":"Smart Home","href":"/hardware/smart-home"},{"title":"Smart Home — Troubleshooting","href":"/guides/smart-home"},{"title":"Smart Glasses","sidebarTitle":"Smart Glasses","href":"/hardware/glasses"},{"title":"Robots","sidebarTitle":"Robots","href":"/hardware/robots"}]},{"group":"Channels","pages":[{"title":"Channels","sidebarTitle":"Channels","href":"/guides/channels"},{"title":"Channels — Setup Guide","href":"/guides/channels-setup"},{"title":"Telegram","sidebarTitle":"Telegram","href":"/channels/telegram"},{"title":"Slack","sidebarTitle":"Slack","href":"/channels/slack"},{"title":"Discord","sidebarTitle":"Discord","href":"/channels/discord"},{"title":"Push Notifications","sidebarTitle":"Push Notifications","href":"/channels/push"}]},{"group":"Connectivity","pages":[{"title":"MQTT Bridge","href":"/guides/mqtt"},{"title":"Home Assistant","href":"/guides/home-assistant"},{"title":"Email Watcher","href":"/guides/email-watcher"},{"title":"Webhooks","href":"/guides/webhooks"}]},{"group":"Security","pages":[{"title":"Manifest signing","href":"/genui/signing"},{"title":"AppSurface sandbox","href":"/genui/sandbox"},{"title":"Contracts","href":"/genui/contracts"}]},{"group":"Native Apps","pages":[{"title":"iOS App","href":"/guides/ios-app"},{"title":"Android App","href":"/guides/android-app"},{"title":"Browser Extension","href":"/guides/browser-extension"},{"title":"Desktop App","href":"/guides/desktop-app"}]},{"group":"Operations","pages":[{"title":"Observability \u0026 Metrics","href":"/guides/observability"},{"title":"Federated Memory Sync","href":"/guides/federated-sync"},{"title":"Soak tests","href":"/operations/soak"},{"title":"Metrics, dashboards \u0026 alerts","href":"/operations/metrics"}]},{"group":"SDKs","pages":[{"title":"Python SDK","sidebarTitle":"Python","href":"/sdk/python"},{"title":"Node SDK","sidebarTitle":"Node / TypeScript","href":"/sdk/node"}]},{"group":"Reference","pages":[{"title":"REST API","sidebarTitle":"REST API","href":"/reference/api"},{"title":"WebSocket Protocol","sidebarTitle":"WebSocket Protocol","href":"/reference/websocket"},{"title":"Environment Variables","sidebarTitle":"Environment Variables","href":"/reference/environment"},{"title":"CLI Reference","sidebarTitle":"CLI Reference","href":"/reference/cli"},{"title":"A2UI Schema Reference","href":"/reference/a2ui-schema"},{"title":"Capability status","href":"/reference/capability-status"},{"title":"Model classes","href":"/providers/model-classes"},{"title":"Reasoning models","href":"/providers/reasoning-models"}]},{"group":"Help","pages":[{"title":"Troubleshooting","sidebarTitle":"Troubleshooting","href":"/help/troubleshooting"},{"title":"FAQ","sidebarTitle":"FAQ","description":"Frequently asked questions about FERAL — what it is, how it works, privacy, models, and contributing.","href":"/help/faq"}]},{"group":"Community","pages":[{"title":"Contributing","sidebarTitle":"Contributing","href":"/contributing"},{"title":"Contributing to Docs","description":"How to add, edit, and preview FERAL documentation pages.","href":"/contributing-docs"},{"title":"Deployment \u0026 Operations","sidebarTitle":"Deployment","href":"/deployment"}]}]},"basePath":"","title":"Contributing - FERAL","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":[],"chunks":[]}