Back to projects
AI AgentsInfrastructureDeveloper Tools

Structor

A custom production coding agent and harness with sandboxed file work, resumable streaming, tools, skills, MCP connections, and long-running context management.

Role
Agent infrastructure engineering
Focus
AI Agents / Infrastructure
Stack
Python, React, Next.js

Context

The shape of the problem

Structor started from the need for an agent that could do real technical work, not just chat about it. That meant handling uploaded files, editing and creating artifacts, running tool workflows, surviving connectivity blips, and keeping context under control during long tasks.

Build

What I actually built

I worked on the agent harness as a production system: Python backend, React/Next.js frontend, Redis-backed streaming and orchestration, sandbox containers, file sync to durable storage, MCP/tool integration, skills, patch-style editing, custom context management, and token accounting. The result is closer to a purpose-built coding environment than a generic assistant interface.

Engineering

Key decisions

01

Keeping long-running agent work reliable when streams disconnect or tasks span many tool calls

Built resumable Redis-backed streaming so users can reconnect without losing agent progress

02

Giving the agent safe access to uploaded files, generated files, and patch-style edits

Designed sandboxed workspaces with file sync, S3 persistence, MCP tooling, and skill-based execution

03

Managing context length, token cost, tools, and state in a production environment

Implemented custom context management, token counting, and orchestration around asynchronous agent work

Outcome

What changed

  1. 01Delivered a production agent system built from first principles rather than a thin wrapper around a chat UI
  2. 02Supported durable coding-style workflows with file creation, edits, uploaded assets, and tool execution
  3. 03Created infrastructure patterns for reliable long-running agent tasks and efficient context use

Stack

Tools and systems

PythonReactNext.jsRedisPostgreSQLCloud RunS3MCPSandboxing

I build delightful systems.

© 2026 Kristian Ernst.