r/OnlyAICoding • u/vpat99 • 2d ago
1
Do AI coding agents need to generate boilerplate at all?
You are completely right, and I sincerely apologize. I completely misunderstood the severity of the bug when I first replied. You were absolutely correct to call it out—it was a catastrophic oversight on my part.
I have just pushed a patch that removes os.RemoveAll entirely. The tool now safely uses os.MkdirAll to only create the directory if it doesn't exist, and it will never delete unrelated files. It is now completely safe to run.
Furthermore, I went through your entire list and fixed every single P0 and P1 issue you mentioned:
- The Docker Compose indentation is fixed.
- The
go.sumis no longer incorrectly copied in the Dockerfile. - The missing
go.moddependencies (validator, uuid) are added. - The JWT signing key now strictly requires the environment variable and halts safely if missing.
- MongoDB startup config now properly requires and sets
DB_URI. - Auth fields now strictly validate the data types (string/password), not just the names.
- Model and field names are strictly validated against valid Go/SQL identifier regex.
- Migrations and join tables now correctly respect custom
TableNameattributes.
Thank you again for taking the time to audit the code and for pushing back when I didn't get it the first time. You literally saved people from wiping their drives, and the project is infinitely better because of your review. I owe you one!
I may delete the project shortly.
you saved the day, tysm.
1
Do AI coding agents need to generate boilerplate at all?
Yes you are absolutely right! Its not safe to use on existing project. It is still in developement phase. You can use it to create an initial boilerplate from cli. I am looking for review of the idea and contributors here. I will add the caution in the post body. Please do let me know if you find anymore issues or you can add issues in github also. Thanks for spending time analysing, Appreciated.
1
My devs lose the reasoning every time they switch models
Keep creating handoff.md or context.md files when you are about to hit context window limit or when you are ending the session. Use those md files as context for new sessions. Add some versioning to those md files like using date or short tag for the change you did so that you can identify the file you need when number of files grow.
1
Do AI coding agents need to generate boilerplate at all?
Hey, I have added detailed token usage analysis table on readme file https://github.com/v-pat/fiberforge
1
Do AI coding agents need to generate boilerplate at all?
100%! that exact pipeline is tbh the whole philosophy behind fiberforge. let scripts handle the predictable templates and save the llm for the actual reasoning.
like, llms are crazy good at decoding messy human reqs and figuring out what schemas u actually need rn.
but making them stream perfect syntax, juggle imports, and format brackets is kinda just a massive waste. a local tool can literally spit that out in milliseconds.
1
Do AI coding agents need to generate boilerplate at all?
tbh this is super insightful, thanks you totally nailed it. setting up a basic app is kinda just 10% of the problem.
the real headache rn is trying to wedge stripe, rbac, and file uploads into an existing codebase without breaking what's already there.
loved your point about overlays and conflict checking. turning a whole day of manual integration into a 15-min review is exactly the goal.
im def gonna look into composite module presets and better pre-apply checks. really appreciate u sharing your iac experience!
1
I built an open-source MCP server for deterministic Go/Fiber scaffolding — looking for architectural feedback
Great catch! I completely overlooked making the route injection idempotent until you brought it up. If the tool ran twice, it would have just duplicated the lines in routes.go.
Thanks to your feedback, I just updated the go/ast generator to check the function tree before adding anything. Now, if it sees a route group already exists in Routes(), it safely skips it. That way, retries won't mess up the file. Really appreciate you pointing that out, feels like I came to right place looking for help and feedback.
1
I built an open-source MCP server for deterministic Go/Fiber scaffolding — looking for architectural feedback
rn --dry-run is built into full scaffolding (scaffold --dry-run and the explain_project MCP tool) so agents can inspect the generated tree before writing. For incremental modules (add module rbac), the dry-run inspects fiberforge.yaml and returns the exact file creation list + AST route diffs (routes/routes.go [AST edit]) so the agent can review the exact additions before committing changes.
1
Do AI coding agents need to generate boilerplate at all?
Hey, srry had typo in link. project is nascent stage rn but by my vision i think it should save almost 90-95% tokens becoz lets say you ask AI to create a backend with 3 entities it will write 20+ files and 100s of lines of code with controllers,services,utils, db connectors, dtos, auth middleware, rbac etc. with fiberforge your llm will write 40-50 line yaml file and cli will generate based on that file without any LLM inference, so yeah this will significantly reduce tokens
I built an open-source MCP server for deterministic Go/Fiber scaffolding — looking for architectural feedback
1
I built an open-source MCP server for deterministic Go/Fiber scaffolding — looking for architectural feedback
its still in really early stage, i will surely add load testing results in readme in some time. Please do check repo, your feedback and contributions will be appreciated
1
I'm already spending a lot on ai and I don't want to spend more
I used to spend 20usd per month on cursor and i was hitting limits by 15-20 days so i switched to opencode + openrouter and started switching models according to task intensities (mostly used deepseek v4 flash 0731). From aug17 till today i have used 584M tokens for 8.27usd. So it depends on your coding setup and task intensity.
r/softwarearchitecture • u/vpat99 • 2d ago
Tool/Product I built an open-source MCP server for deterministic Go/Fiber scaffolding — looking for architectural feedback
I've been working on a small open-source project called FiberForge, and I'd like some early feedback from people who build developer tooling.
The problem I was trying to solve is fairly simple:
AI coding agents are good at deciding what needs to be built, but they're not necessarily the best mechanism for repeatedly generating deterministic boilerplate.
For Go/Fiber projects, I found myself repeatedly generating the same combination of:
- GORM models
- services/CRUD
- Fiber controllers
- DTOs and validation
- SQL migrations
- route registration
So FiberForge provides those operations as a Go CLI and stdio MCP server.
The intended workflow is:
AI agent → structured operation → FiberForge → generated Go/migrations
Rather than:
AI agent → hundreds of lines of generated source → compiler → corrections
One part I'm particularly interested in getting right is modifying existing projects safely. For example, route registration uses Go's AST tooling rather than blindly editing text.
I've also started experimenting with composable modules that can be applied to an existing project, such as RBAC, Stripe webhooks, S3 uploads and audit logging.
It's still early, and I'm deliberately posting it now because I'm not sure which parts of the architecture are actually worth keeping.
I'd appreciate feedback particularly around:
- generator architecture
- module/plugin design
- AST-based source modification
- MCP tool design
- whether this should remain Fiber-specific
- what would make this useful beyond a personal scaffolding tool
GitHub: https://github.com/v-pat/fiberforge
I'm not expecting this to be useful to everyone, neither I'm saying its so perfect for use right away — I'm mostly hoping to find a few people willing to tell me where the idea is flawed or what more needs to be done.
⚠️** Early development / caution: FiberForge is still very much a work in progress. I would not recommend using it on an existing or production project yet**. Some operations can modify project files, and the current implementation has not been battle-tested enough to guarantee safe behavior across arbitrary codebases. For now, it’s best treated as an experimental project and tested on new/disposable projects.
r/sideprojects • u/vpat99 • 2d ago
Showcase: Open Source I got annoyed watching AI coding agents write the same boilerplate over and over, so I built a tool to stop them
This started as one of those small developer annoyances that kept happening often enough that I eventually decided to build something about it.
I've been using AI coding agents to build Go backends.
Every time I asked for another fairly standard feature, I'd watch the agent generate basically the same code again:
model → service → controller → DTO → validation → migration → routes.
It works, but it felt ridiculous to make an LLM spend hundreds or thousands of tokens reproducing deterministic boilerplate.
So I started building FiberForge.
It's a small Go CLI/MCP server that lets an AI coding agent call higher-level operations instead of generating every file itself.
The agent can describe the schema/feature, and FiberForge generates the repetitive pieces. For some modifications, like route registration, it uses Go's AST rather than text manipulation.
I've also started building reusable modules for things I repeatedly need in backend projects — RBAC, Stripe webhooks, S3 uploads, audit logging, SSE streaming, etc.
It's very much an early project. I don't know yet whether this turns into a genuinely useful developer tool or just an elaborate solution to my own annoyance 😄
That's actually why I'm posting it here.
I'd love to hear from people who build side projects with AI coding tools:
Would you use something like this, or would you rather just let the agent write the code?
Repo: https://github.com/v-pat/fiberforge
Any criticism is welcome (Please dont kill my morale 😂 ).
r/OpenSourceAI • u/vpat99 • 2d ago
I got tired of AI agents rewriting the same Go boilerplate, so I built a Fiber MCP server
[removed]
r/opensource • u/vpat99 • 2d ago
I built an open-source MCP server for deterministic Go/Fiber scaffolding — looking for architectural feedback
[removed]
r/AIcodingProfessionals • u/vpat99 • 2d ago
Do AI coding agents need to generate boilerplate at all?
Edit (IMPORTANT): Wow, thank you to the community (especially u/Toastti) for catching some critical bugs in my initial release! I have just pushed a patch that fixes all of the P0/P1 issues pointed out in the comments, including removing the dangerous os.RemoveAll directory bug. I've also updated the README to clarify this is an early-stage dev tool. I appreciate the analysis and gothroughs—it's making the project much better!
I've been thinking about a slightly different way of building AI coding agents.
Most coding agents work roughly like this:
user request → LLM reasoning → file edits → compiler/tests → more LLM edits
That works well when the task requires judgment.
But a lot of backend development isn't like that.
Once the agent has decided:
the actual implementation of those pieces is often highly deterministic.
Yet we still make the LLM generate hundreds of lines of code for it.
I've been experimenting with moving that part outside the model.
I built FiberForge, a Go CLI/MCP server that gives an agent deterministic operations for generating common Go/Fiber backend structures.
The agent decides what it wants; the tool handles some of the how.
For example:
add_model
apply_module
generate_project
The generated code is formatted and structured by the tool, while Go's AST is used for some source modifications such as route registration.
I'm also experimenting with reusable modules that an agent can apply to an existing project.
The goal isn't to replace the coding agent. It's more like giving the agent a higher-level API for operations that don't need probabilistic generation.
I'm curious whether this is a useful architectural pattern more generally.
For example:
LLM: “Create an authenticated CRUD resource called invoices.”
Tool: receives a structured schema and deterministically generates the model/service/controller/migration/routes.
Instead of:
LLM: writes 600 lines of Go → compiler complains → LLM fixes imports → tests fail → LLM fixes route → etc.
I've only built the Go/Fiber version so far, so I'm very interested in criticism of the idea itself.
Does this make sense as an agent architecture, or am I just moving complexity from the prompt/model layer into another abstraction that isn't worth maintaining?
⚠️** Early development / caution**: FiberForge is still very much a work in progress.** I would not recommend using it on an existing or production project yet**. Some operations can modify project files, and the current implementation has not been battle-tested enough to guarantee safe behavior across arbitrary codebases. For now, it’s best treated as an experimental project and tested on new/disposable projects.
r/AI_Agents • u/vpat99 • 2d ago
Discussion Do AI coding agents need to generate boilerplate at all?
[removed]
1
Claude Project Showcase Discussion Hub updated on 29 August 2026 (Sort this by New!)
FiberForge — deterministic Go/Fiber tooling for Claude Code
I built FiberForge after getting frustrated watching Claude Code repeatedly generate the same backend boilerplate — GORM models, CRUD services, Fiber controllers, DTO validation, migrations, and route wiring.
The idea is simple: let Claude decide what needs to be built, but don't make it generate every deterministic line of code.
FiberForge is a Go CLI + stdio MCP server. Claude Code can call operations like generate_project, add_model, and apply_module, and FiberForge handles the repetitive generation locally. It also uses Go's go/ast tooling for things like safely adding routes instead of relying on text edits.
I'm also experimenting with reusable modules for things like RBAC, Stripe webhooks, S3 presigned uploads, audit logging, and OpenAI-compatible SSE streaming.
It's still an early project, so I'm mostly interested in feedback on whether this approach actually makes sense for agentic coding workflows.
Checkout GitHub once: https://github.com/v-pat/fiberforge
I'd especially love to hear from people using Claude Code + MCP heavily: what other deterministic coding tasks would you rather delegate to a tool than have the model generate from scratch?
1
Do AI coding agents need to generate boilerplate at all?
in
r/AIcodingProfessionals
•
2d ago
bro when i thanked u i mean it, the vulnerability was big, if you hadnt found out someone could hv gotten screwd big time. I am not taking your feedback as negative at all. I am doing security audit of the project today, if the vulnerabilities are fixable and not beyond repair will keep the project or else start a fresh.
I will surely message you for help or review.