APIUp to 28% cheaper than official pricesTry the API →
Hermes
Back to News

Meta Built Forum in 8 Weeks by Letting an AI Agent Code

Meta built Forum , a standalone Groups app, with an AI agent as a development participant. Reached core feature parity with Facebook Groups in eight weeks with a small team. Shifted from human-in-the-loop to human-on-the-loop: agent runs plan-build-test-verify, engineer owns outcome.

Meta Built Forum in 8 Weeks by Letting an AI Agent Code
Source
Engineering at Meta
Published
Author
Engineering at Meta
Read
5 min read

Takeaways

  • Meta built Forum , a standalone Groups app, with an AI agent as a development participant.
  • Reached core feature parity with Facebook Groups in eight weeks with a small team.
  • Shifted from human-in-the-loop to human-on-the-loop: agent runs plan-build-test-verify, engineer owns outcome.
  • Success measured by changes that build, pass tests, and survive review, not code volume.
  • Autonomous stress-testing loop caught a memory bug, halving memory use and page faults.
  • Biggest gains came from modular code, tool-based agent access, and sandbox build flavors, not prompting.

Meta has published an engineering postmortem explaining how a small team built Forum, a standalone app for Facebook Groups, around an AI agent that ran the development cycle. The company calls the method AI-native engineering: the agent plans, writes code, builds, tests, diagnoses failures, and tries again, while engineers define goals, monitor runs, correct drift, and approve changes. Meta’s Forum announcement covers the product, and its engineering postmortem details the workflow.

According to Meta, Forum reached core feature parity with Facebook Groups in eight weeks, covering the essential Groups capabilities selected for the app’s initial scope. A stress-testing agent also found a memory regression during development; Meta says the resulting fix cut memory use and page faults by roughly half. Both figures come from Meta’s internal case study, whose practical value lies in the supporting architecture it describes: automated verification, simulator access, build isolation, and reusable agent workflows.

Engineers supervise the inner loop

Meta’s “human-on-the-loop” model gives an agent control of a bounded iteration cycle: plan, implement, build, test, correct, and repeat. Engineers retain responsibility for the objective, constraints, drift detection, exceptions, and final approval. The unit of work is a verified change set rather than an isolated code suggestion.

Meta defines task completion through executable evidence. A change must compile, pass automated tests, and satisfy visual checks before the agent can present it for review. Pull requests arrive with pre-populated test plans and recorded verification sessions, giving reviewers concrete results to inspect.

Four controls constrain the agent

  • Machine-readable plans. Engineers decompose goals into explicit tasks and supply the relevant codebase context. Clear specifications reduce failures caused by assumptions that exist only in a developer’s head.
  • Verification in every cycle. Build results, unit tests, and UI specification checks feed directly into the agent’s next action. Successful runs produce pull requests with their validation evidence attached.
  • Simulated user sessions. Navigation agents operate the live app, inspect its interface hierarchy, repeat user actions, and report regressions.
  • Production feedback triage. Agents connect submitted feedback to possible regressions and send their analysis to engineers, who decide whether and how to act.

The codebase becomes agent-readable

  1. Expose live application state. Meta’s agents initially lost track of the active screen, edited the wrong view, or guessed at interface coordinates. Simulator access let them query the live view hierarchy and find the actual path to a target before acting.
  2. Repair recurring patterns at the source. Agents infer local conventions from the code they inspect, so weak abstractions can propagate across later sessions. Meta refactored recurring problems and sometimes rebuilt legacy components that resisted clean integration.
  3. Compile experiments into a separate build flavor. A sandbox app shares the production codebase and design system while loading prototypes through a plugin and socket architecture. The compiler excludes prototype code from the production binary, allowing designers to use AI tools independently without exposing the released app to generated experiments.

Five layers turn mistakes into tooling

LayerPurposeExample
RulesPermanent project instructionsMeta adds a rule after an agent repeats the same mistake twice.
SkillsLoadable procedures for team conventionsA skill can encode the approved steps for implementing or testing a feature.
AgentsSpecialized workers for recurring checksA navigation agent can reproduce a UI bug or inspect a completed change.
CommandsMulti-stage workflow orchestrationA command can reproduce a bug, plan a fix, open a pull request, and launch review checks.
HooksAutomatic triggers tied to workflow eventsA hook can run a linter after each agent turn or validate tests before pull-request creation.

Stress tests expose a memory regression

During development, navigation agents repeatedly simulated aggressive scrolling, random group browsing, rapid navigation, and repeated media loading across builds. One run exposed a memory problem. Meta says the agent isolated a reproducible case, proposed a fix, and reran the scenario to verify it before release.

The fix reportedly reduced memory use and page faults by roughly half. A page fault occurs when a process requests a memory page that the operating system must map or load; unusually high counts can indicate memory churn and degraded responsiveness. Encoding realistic behavior as repeatable scenarios gave the team a failing trace and a reusable acceptance check for the repair.

Where the evidence stops

Meta’s eight-week delivery time documents the feasibility of this workflow for Forum’s targeted scope. A general productivity benchmark would also require a comparable baseline, exact team size, human intervention hours, pull-request rework rates, and post-launch quality data. The cited results provide no independent comparison that isolates the AI system’s contribution.

Developers evaluating the model will also need data on where agents stall, which tasks still require direct implementation, how much reviewer time each change consumes, and how security and privacy checks fit into the loop. Those measures determine whether greater autonomy reduces total delivery cost or shifts work into supervision and remediation.

How to test the model on your team

  1. Choose a bounded workflow. Start with work that has deterministic build, test, and acceptance criteria.
  2. Define completion in executable terms. Require passing tests, visual validation, and recorded evidence before review.
  3. Expose machine-readable state. Give agents structured access to interface hierarchies, logs, build results, and test output.
  4. Isolate generated experiments. Keep prototypes in a separate build target that cannot enter the production binary accidentally.
  5. Encode recurring corrections. Turn repeated review comments and agent failures into rules, skills, commands, or hooks.
  6. Measure the whole workflow. Track accepted-change lead time, intervention hours, review rework, escaped defects, rollbacks, and resource regressions.

Forum’s case gives teams a testable implementation pattern: grant autonomy inside a bounded system with observable state, executable checks, isolated experiments, and accountable human approval. The accompanying metrics can show whether that system improves delivery in a different codebase.

Reporting is indexed from AlphaSignal. Rights remain with the original publisher and cited sources.

Read original report

Sources

  1. 01engineering.fb.com
  2. 02about.fb.com
  3. 03x.com