Agent developer

Do not teach every developer to hand-write apps. Teach your agent the target format.

ObjectStack is the open, typed metadata target format and runtime designed for the agent as writer and the human as reviewer. A complete CRM including UI fits under 150k tokens, so an agent can hold the whole app in one context; Strict TypeScript, Zod schemas, and a validation gate catch invalid output before it reaches the runtime.

ObjectOS product surface connecting business data, applications, and AI agents
AI Writes metadata Objects, permissions, workflows, tools
Human Reviews diff Business authority, data access, approvals
Runtime Enforces policy UI, APIs, audit, MCP, actions
<150k tokens
A complete CRM including UI — one context window
<100k tokens
Objects, workflows, permissions, and business logic
~50k tokens
UI metadata for the complete CRM

Agent instruction

A good rule file makes the target format explicit

The most important developer artifact is not a tutorial for hand-coding screens. It is a compact, retrievable instruction set that tells the agent what to edit, what not to invent, which schemas must pass, and how to return both a reviewable diff and proof that it considered the whole application.

When building an ObjectStack app:
1. Model business objects before UI.
2. Write Strict TypeScript metadata that conforms to the published Zod schemas.
3. Prefer metadata definitions over generated application code.
4. Add conservative permissions and expose AI actions only through approved tools.
5. Run the validation gate before proposing deployment.
6. Return a small diff, reviewer checklist, and whole-context proof.

Workflow

The agent-written development loop

The loop is intentionally simple: give the agent the complete current definition and operating context, let it edit typed metadata, run the validation gate, then review business authority before deployment.

Context

1. Provide operating context

Give the agent the business process, object names, permission boundaries, workflow states, integration constraints, and the complete current definition. Under 150k tokens for a full CRM including UI, the app can be inspected as a whole instead of reconstructed from fragments.

Write

2. Generate metadata

The agent edits object, view, workflow, action, dashboard, translation, and tool definitions as Strict TypeScript rather than generating app glue code.

Verify

3. Pass the validation gate

Compile in Strict TypeScript mode, validate every definition against its Zod schema, then check permissions, required labels, sample data, object queries, and workflow transitions.

Approve

4. Review authority

Humans review what authority changed: data access, write power, approval bypasses, exports, and AI tool exposure.

Patterns

What the agent should generate

The best generated change names business concepts clearly and keeps runtime power explicit.

Objects and fields

Use business names, relationships, validations, indexes, and lifecycle rules that map to real operations and conform to the published Zod schemas.

Views and actions

Generate list, form, kanban, dashboard, and action metadata from the object model, not one-off screens.

Workflows and approvals

Define transitions and approval gates explicitly so the runtime can enforce them for people and agents.

Agent tools

Expose only bounded object queries and actions through MCP, with policy checks and audit-friendly names.

Decision surface

What changes, who reviews it, what runs

Old developer surfaceAgent-written ObjectStack surfaceReviewer question
Controller codeObject action metadataWho can invoke this action?
Custom auth checksObject, row, and field permissionsWhat data authority changed?
Hand-built screensView and form metadataWhich workflow does this screen support?
Ad hoc AI promptPolicy-aware tool contractWhat can the model read or mutate?

Review checklist

Diff review checklist for agent-written ObjectStack

  • Did the agent inspect the whole current application instead of inferring missing state from fragments?
  • Does the change pass Strict TypeScript compilation, Zod schema validation, and the validation gate?
  • Does the diff change business authority or only presentation?
  • Are object and field names stable and domain-specific?
  • Are defaults conservative for reads, writes, exports, and tools?
  • Are approval gates explicit for sensitive actions?
  • Can tests or sample data demonstrate the workflow?
  • Can a future agent retrieve and reuse the same pattern?

FAQ

Questions this page should answer

Should developers still understand ObjectStack?

Yes, but the primary developer task changes. Humans design boundaries, review diffs, write tests, and curate examples; agents do more of the repetitive metadata authoring.

Can any coding agent write ObjectStack?

Any strong coding agent can work with the format if it has clear docs, examples, rules, tests, and access to the whole current definition. Strict TypeScript, Zod schemas, and the validation gate provide deterministic feedback before the same validated app is either self-hosted on ObjectStack or operated through ObjectOS, which runs the same open runtime.

Next pages

Keep building the evaluation packet.