From Local Agents to Cloud Collaboration: Bybit's AI Native Engineering Practice ​

A requirement may change only a few dozen lines of code, yet delivery still involves finding context, agreeing on an approach, arranging development and testing, and waiting for acceptance. AI has made coding much faster, but it has not automatically removed the waiting between those steps.

At Bybit, ByDevs is how our engineering teams are putting AI Native development into practice. It connects requirements, design, development, testing, and delivery. We have followed the bottlenecks we encountered: first making local Agents reliable on individual tasks, then carrying context across roles, and finally running small, clearly scoped requests in the cloud.

ByDevs evolving from local execution to cloud collaboration

Local execution: Help the Agent understand the task ​

Our teams were already using AI coding tools. For the same coding task, one developer would provide business context and acceptance criteria; another might provide only a one-line instruction. The way they checked the result also varied. The models could write code. The harder part was giving an Agent trustworthy context and making its work verifiable.

We first turned recurring work, including PRD (product requirements document) reviews, technical design drafts, implementation, and code review, into Skills. Each Skill specifies its inputs, deliverables, self-checks, and operating boundaries. Business knowledge helps explain the rules; the current repository is used to verify how the system actually behaves. When evidence is missing, the Agent must ask for clarification instead of filling the gap with an invented "fact."

These methods then became part of the ByDevs VS Code workspace. When a developer receives a coding task, the workspace links the requirement and repository, prepares a separate worktree, and starts an Agent Run. The Run records the model, session, execution history, and candidate artifacts. If new information arrives, the developer can continue in the same session. The workspace remains the source of truth for code files; the Run supplies an execution record and a trail for review.

Workspaces are isolated by requirement × repository. One requirement may touch several repositories, while several applications may share one repository. Writes for the same requirement and repository are queued; work in different repositories can proceed separately. This gives each local task a boundary that can be inspected.

An individual task can now be completed faster and more reliably, but a requirement rarely stays with one developer. The next person still needs to know what was agreed, where the artifacts are, and whether the work is ready to continue.

Platform collaboration: From clarification to handoff ​

Consider an ordinary change request. Product adds a rule in a discussion group, the requirement system contains the task, a developer asks an Agent in a workspace to update the code, and QA is waiting for the latest acceptance criteria. The information exists, but without a shared requirement identity and an explicit handoff state, people have to keep asking which version is current and whose turn it is. As local execution speeds up, time spent waiting at handoffs becomes more visible.

The workflow now starts with requirement discussions. After product submits the materials, the collaboration flow links the requirement, confirms stakeholders, and assigns clarification tasks. Engineering and QA use Agents for their parts and return the results to the requirement. ByDevs links discussions, tasks, and workspaces under that same requirement. A task DAG records dependencies, owners, and stage status. Notifications keep people informed; platform state and human sign-off determine whether a task is ready and whether its result can move to the next stage.

The platform also needs to reduce repeated form filling and status chasing. If a new process step adds more work than it removes, we need to adjust it.

To cut down on questions at handoff, a request must state its goal, scope, and acceptance criteria at the start. Otherwise ambiguity travels into design, coding, and testing. ByDevs therefore puts PRD drafting and quality feedback early in the workflow. Requirements that need cross-functional review use that path; a small change does not always need a complete PRD.

From discussion to a reviewable PRD ​

PRD generation is more than expanding a one-line request. The PRD drafting Skill first determines whether the work is a new feature, an iteration of an existing feature, a cross-cutting constraint, or a cross-business dependency. For a new feature, it reviews common capabilities in mature comparable solutions alongside the current MRD (market requirements document). For an iteration, it checks existing capabilities, historical rules, and relevant code. The former helps reveal omissions; the latter verifies the current system. The product manager still decides what is in scope for this release.

With an initial scope in place, the Agent builds a feature map with functional requirement IDs (FR-IDs). For each item, it fills in the business flow, rules, states and exceptions, acceptance criteria, and analytics events. The feature map remains the backbone for later changes: when a feature changes, its detailed description, flow, and acceptance criteria must change together. Interaction prototypes are produced separately. The PRD retains product decisions and essential references without repeating the prototype documentation.

Before review, the Agent checks the draft from the other direction: can the main flow be completed, do rules conflict, what happens to existing behavior, and which scenarios still lack acceptance criteria? Gaps in evidence become explicit questions for the product manager to resolve.

ByDevs PRD drafting workflow

Quality scoring identifies issues; sign-off records decisions ​

An initial PRD needs feedback early. Asynchronous scoring runs when a PRD is submitted and again when it is finalized. The system evaluates that version of the PRD, points to specific passages that need attention, and provides a summary to the people involved. It evaluates four dimensions:

DimensionWhat it checks
CompletenessWhether the goal, scope, main flow, and acceptance basis cover this release
ClarityWhether rules, states, boundaries, and exceptions are explicit and consistent
FeasibilityWhether inputs, outputs, dependencies, and known constraints are sufficient to start design
ImpactWhether changes to existing behavior, data, permissions, compatibility, and upstream or downstream systems are explained

Each dimension receives an A/B/C/D grade. There is no percentage score and no penalty based on the number of comments. A means there is no substantive open question. B means content is missing but the design direction is unaffected. C means a key local design or acceptance decision is blocked. D means the core goal, main flow, or essential rules cannot be judged. For any grade below A, the report must point to the specific part of the PRD, explain which decision it affects, and suggest what to add.

For now, scoring relies mainly on the PRD itself. Business rules and the state of the code are suitable for cross-checking only when their source, applicable version, and access permissions are reliable. That knowledge enrichment is still being built. Scoring helps the product manager find problems. It does not rewrite the PRD automatically or replace clarification from engineering and QA or human sign-off. A score makes the questions concrete; sign-off means the relevant people have accepted what happens next.

A task DAG coordinates the path from PRD to delivery ​

After PRD sign-off, the task DAG dispatches work according to dependencies. For a request involving both frontend and backend work, interaction design and backend planning can proceed in parallel; backend implementation can start once the plan passes review. The frontend plan incorporates the design and backend constraints. After sign-off, frontend implementation and test case preparation can run in parallel. Once code and test cases are ready, the work moves through integration and verification before the responsible people accept the result. The nodes used for a particular requirement depend on its type and dependencies; every request does not have to traverse every stage.

Parallel branches and dependency joins in the ByDevs task DAG

This workflow depends on keeping three kinds of state separate. Task state answers whether the business workflow can advance. Run state answers whether the Agent is working, waiting for a reply, or finished. Workspace state answers whether the repository, branch, and files are ready. An Agent saying "done" in a terminal cannot stand in for test results or human sign-off. The diagram below shows how requirements, tasks and context, Agent execution, and delivery evidence relate by responsibility.

ByDevs collaboration and execution architecture

The platform can now tell people what to do next, but starting a local Agent still requires an engineer to open their computer.

Cloud execution: Reduce the wait for small requests ​

For small requests such as copy changes or localized bug fixes, we first introduced a cloud-based fast-development path to reduce startup time. Complex or high-risk changes still go through review, testing, and release approval.

An engineer submits a small request with a clear scope. Within that task boundary, the Cloud Executor prepares a change and runs checks; the responsible person reviews the result. The requirement context, execution record, and verification results stay with the task so the next person can tell whether work is ready to continue.

Cloud execution path for a small request in ByDevs

Cloud execution still needs people at key decisions. A person sets the goal and scope when starting the task. If a process check fails, the Agent stops, reports the issue, and waits for confirmation. Once the result is available, the responsible people review it. We want HITL (Human in the Loop) to bring the blocker and its evidence to a person while allowing the Agent to repair verifiable problems within its authorization.

That requires the requirement, workspace, Run, and session to remain linked. Terminal output helps people observe the process, but task completion and delivery readiness depend on state, code diffs, and verification results. The platform enforces dependencies and gates; the Agent executes within its boundary.

ByDevs architecture: From task execution to delivery ​

ByDevs links discussions, tasks, workspaces, and execution records to the same requirement. The task DAG manages dependencies, owners, and stage state; human sign-off decides when key stages may advance. Local Agents and the Cloud Executor work in isolated workspaces. Code diffs, test results, and review decisions form delivery evidence, while the Run records how the work was done. Successful and failed paths become reusable knowledge only after review of their source and applicable version.

ByDevs architecture from execution to delivery

The diagram shows responsibilities and evidence flow without mapping specific systems or release environments. Automated releases, incident repair, and knowledge version governance will be introduced gradually.

Looking ahead ​

Looking back at this progression, the local workspace gave each task a stable execution record, the platform carried state across roles, and the cloud path reduced the wait to start small requests. Wherever a request starts, the result must remain reviewable, testable, and traceable.

Next, we want to reduce unnecessary handoffs. The workflow safeguards goals, dependencies, permissions, and acceptance, while Agents investigate and repair within those boundaries. People focus on scope decisions, architectural constraints, performance and reliability goals, and what to do when acceptance fails.

Whenever we add a process step, we ask whether it removes repeated confirmation later. What works smoothly or causes friction in real requests will shape the next iteration. More internal attempts by an Agent are not necessarily a problem. The better measures are how much human attention a request consumes before acceptable delivery and whether quality remains stable.

Documentation should follow the needs of collaboration. A small, clearly scoped change can draw directly on discussion records, historical materials, and clear acceptance criteria; cross-team or long-lived work still needs PRDs and plans that people can read, review, and sign off. After delivery, we can draw knowledge from code, tests, release outcomes, and human corrections, checking its source and applicable version before using it in later tasks.

Finally, beyond how the code runs, we want to understand why the Agent acted as it did. Runs and sessions can already leave execution traces. Next, we need to connect the context it read, the tools it used, the path it took after failures, and the final result so we can replay and compare them. Seeing those choices lets us improve context, tools, and execution strategies, with fewer human interventions and equally reliable delivery.