Arshia Heravi

Independent project · Engineering case study

AutoAgent

A development workflow with persisted state and bounded retries

AutoAgent is a Python command-line tool with an HTML dashboard for coordinating LLM-assisted software development. It organizes project context and work sessions, with particular attention to recovering from transient failures and keeping execution state across restarts.

  • Python
  • CLI tooling
  • HTML
  • pytest
  • GitHub Actions

Project context carried between sessions

The documented intake flow turns a project description into project files, an agent team and a backlog. Work sessions follow a test-first sequence that includes implementation, verification and a commit, with a dashboard exposing ongoing activity.

Each project has its own context files, scoped skills, memory and session records. This layout gives later sessions explicit material to read instead of relying only on an earlier conversation's temporary context.

A state machine around the work

A persisted session counter determines the next session type on a fixed cadence. The runner selects that type, assembles the prompt, starts a session and persists the updated state. Project-local context is combined with shared prompt components.

The design separates scheduling a session from the work performed inside it. A counter and stored records make the sequence inspectable after a restart, but they do not by themselves establish that generated code is correct; verification remains a separate part of the workflow.

Retrying the right failures

The retry tests distinguish rate-limit and overload conditions from successful runs and logic failures. They check increasing waits for retryable conditions and an attempt limit that stops further retries.

Separate persistence tests check saving and reading the last error, missing-error behavior and the handling of long error text. Together, these checks make recovery behavior explicit instead of allowing every unsuccessful session to repeat indefinitely.

Optional services and verification scope

The core is a Python CLI. Optional dependency groups add capabilities such as a FastAPI service or PostgreSQL with pgvector, allowing those integrations to remain separate from the core installation.

CI defines unit-test jobs on Python 3.11 and 3.12 and a separate database integration job with pgvector. The public source and test configuration support this architecture description; they do not establish a measured improvement in development speed or the correctness of every generated application.

Explore the source

Review the implementation and verification details in the public repository.

This case study was reviewed on . The repository may have changed since that review.

Read the current repository documentation

AutoAgent on GitHub (opens in a new tab)

Want to discuss an implementation or a role?

Get in touch