The Complete Workflow
A real BACON-AI scenario from start to finish — from "I have an idea" to "the feature is live".
The scenario
Feature request
Colin wants to add physics controls to the BACON Mesh Hub. Right now the agent nodes float around with a fixed layout. He wants sliders that let users adjust the gravity, repulsion, and link distance in real time.
Here is how this feature moves from idea to production, step by step. Each step maps back to the concepts from the previous pages.
Step-by-step walkthrough
Create a branch
The developer (or Claude Code) creates a new branch called
feature/physics-controls based on the current develop
branch. This is a safe copy of the project to work on.
"Create a new branch called feature/physics-controls from develop"
Create a worktree
To work on this feature without disrupting the main workspace, a worktree
is created. This puts the new branch in its own folder at
.worktrees/feature-physics-controls/.
"Create a worktree for the physics-controls feature"
Do the work
The developer works inside the worktree folder, making changes:
- Creates a
PhysicsPanel.tscomponent with sliders - Modifies
ForceLayout.tsto accept dynamic parameters - Updates the sidebar to include the new controls
Meanwhile, the main workspace on develop is untouched. Other
features can be developed there simultaneously.
Commit the changes
As work progresses, the developer saves checkpoints (commits) with descriptive messages:
"Commit with message: feat: add physics control panel with force sliders"
Multiple commits might be made as different parts are completed.
Push to GitHub
The branch is uploaded to GitHub so others can see it and the automated tests can run.
"Push this branch to GitHub"
Open a Pull Request
A PR is created on GitHub, requesting to merge
feature/physics-controls into develop. The PR includes
a description of what was built, screenshots of the new panel, and
testing notes.
"Create a PR to merge this into develop"
Review and feedback
Colin or another team member reviews the PR. They might:
- Approve it right away if everything looks good
- Request changes ("Can you add a reset button for the sliders?")
- Ask questions ("Why did you choose these default values?")
If changes are requested, the developer makes them, commits, and pushes again.
Merge
Once approved, the PR is merged. The physics controls are now part of the
develop branch and available to everyone.
Clean up
The feature branch is deleted (it served its purpose) and the worktree folder is removed to keep the workspace tidy.
"Clean up the physics-controls worktree and delete the branch"
The full process as a diagram
The complete lifecycle of a feature: from idea to live code. The review loop (steps 7-4) may repeat multiple times until the work is approved.
What happens behind the scenes
The interaction between stakeholder, developer, GitHub, and automated testing during a typical feature development cycle.
Decision guide: when to use what
A quick decision guide: what Git actions to take based on what you need to accomplish.
Questions a stakeholder might ask
Key takeaways
Create a branch, optionally create a worktree, do the work, commit and push, open a PR, get it reviewed, merge it, clean up.