In the last year, a large part of software development has moved into coding agents such as Claude Code, Codex, and OpenCode. The developer describes a goal, and the agent reads the project, writes the code, runs the tools, and reports back. Depending on the task, I work this way myself, and many users like it as an interface.
The problem lies in what the agent writes. It still produces conventional code for the mainstream stack, with the weaknesses I described in “Why LLMs Need Their Own Programming Language”: the model is stochastic, the training data is full of bad patterns, and the stack is insecure by default. In this article, I argue that the agent should remain the interface but not be the author of the relevant code, and I describe how our MCP server achieves this.
The agent as author
An agent is good at producing code that looks right and passes its tests. A typical example from the apps we reviewed with Lightscale AI Run: an endpoint checks that the caller is signed in, but not whether the requested record belongs to them. The code is a few plausible lines, the tests pass, and a first try in the browser looks fine. Yet any signed-in user can read the records of every other user by their ID, which a quick test in the frontend does not reveal.
One reason is that the AI was never asked who may read the record, and the stack does not ask either. In a conventional language, access control is an add-on, so current AI agents secure code stochastically rather than systematically, especially when nobody explicitly asks them to. A more capable model shifts the error rate, but it does not change this principle.
Separating the conversation from the code
In Lightscale AI, the AI writes AI Language (AIL), our novel, patent-pending language made for AI. Security is part of the language: nothing is allowed unless granted, data is sensitive unless declared otherwise, and access is checked again where the data is used. The compiler checks the program statically, before any application code is produced, and the security-critical parts of the app come from the compiler, not from the AI. Data persistence and migration are guaranteed by language design as well.
The MCP server, built on the Model Context Protocol that coding agents use to call outside tools, connects the two worlds. The coding agent keeps doing what it is good at: understanding your request, talking to you, and keeping track of the work. The app itself, however, is written in AIL by Lightscale AI and checked by its compiler.
Creating apps
You ask your agent, for example: “Create a Lightscale AI app where our team tracks its working hours.” The agent hands this request to Lightscale AI, which builds the app as it would from the prompt box in the studio. A follow-up such as “Add vacation requests with approval by the team lead” starts the next build of the same app.
A build sometimes needs a decision from the owner, in the form of a question or a consent. The agent passes it to you and returns your answer. It can follow a running build and cancel it, in which case the app keeps its last version. You try, share, and publish the app in the studio, and we host it in Switzerland.
Existing code
Most teams, however, do not start from scratch. For code that already exists, written by an agent or by hand, the same connection gives the agent access to Lightscale AI Run. On the request “Review this app with Lightscale AI,” the agent packs the working tree with Git, including uncommitted changes and excluding what .gitignore lists, and uploads it to a one-time address valid for 15 minutes. Make sure that your .gitignore covers sensitive data such as keys, as is good practice anyway. Lightscale AI then reviews all source files with a focus on security, across eight areas and with about 750 curated rules.
The agent then reports the verdict, the findings that block going public, and the remaining ones by severity, each with its ID. Where the code leaves the intent open, the review asks, for example, whether anyone may sign up or only invited people. The agent puts such questions to you with their options and returns your answers, and the review refines its findings. If you ask it to fix the findings, the agent changes the code and uploads the new version for a recheck. A finding keeps its ID while it stays open.
The more lasting step is the move to Lightscale AI. A free fit check first lists what would not carry over, such as a service we do not integrate yet. With your consent, Run rebuilds the app as one AIL program with the same pages, data, and roles and hands it over to your Lightscale AI account. From then on, the moved app is one of your Lightscale AI apps: the agent changes it like any other, and the compiler checks each change. Alternatively, if you want to keep your code, the agent can start a hardening, which fixes the findings in a private sandbox and verifies each step.
Connecting
In Claude Code, you add the server with:
claude mcp add --transport http lightscale-ai https://studio.lightscale.run/agent
You then run /mcp, choose lightscale-ai, and authenticate: your browser opens, you sign in with your Lightscale AI account, and you allow access. In Codex, the commands are codex mcp add lightscale-ai --url https://studio.lightscale.run/agent and codex mcp login lightscale-ai. OpenCode takes the address as a remote server in opencode.json, and other agents connect to it as a remote MCP server over streamable HTTP. The first time the agent creates or changes an app, it gives you one more link, where you allow app building for this agent.
In your requests, name Lightscale AI, as in “Create a Lightscale AI app …” or “Review this app with Lightscale AI.” Otherwise, the agent may write the code locally on its own.
Who decides
An agent acts on its own, so the decisions that matter stay with the owner. The agent works with your account until you disconnect it, the studio lists the connected agents and their calls, and disconnecting revokes access immediately.
For a paid step, such as a complex review, a detailed review report, or a bespoke hardening in a sandbox, the agent first receives the fixed price and tells it to you. The step starts only with exactly that price confirmed, and it is paid from your prepaid balance, which only you can top up, in the studio. Creating apps is free, subject to fair use. Smaller apps hosted on Lightscale AI also get regular reviews. The move to Lightscale AI is free as well, subject to fair use.
The MCP server itself is a thin client. The prompts, the review knowledge, and the compiler run on our platform, not on your machine or with your model, and the agent sees what the studio shows you.
Over the past year, the coding agent has become the main interface to software development. For that to work, the agent does not need to be the author of the code. In my opinion, it needs a language and a compiler behind it that make the result robust and secure by construction. You find the steps to connect your agent in the account menu at go.lightscale.ai and under Agents at studio.lightscale.run.
Claude Code, Codex, OpenCode, Git, and any other trademarks in this article are named here as technical information only. They are trademarks of their respective owners, who are not affiliated with Lightscale AI and do not endorse Lightscale AI.




