SuperAPI AI Directory

one-person-ai-company

This is an open-source methodology repository for independent entrepreneurs and indie developers, explaining how to run a "one-person company" using Claude Code sessions and scheduled AI tasks. The repository contains eight chapters of lessons learned, templates, four zero-dependency Python check scripts, and an agent skill that can be installed into your own repository. The content focuses on agent organizational structure, task ledgers, session handoffs, delivery verification, and quota management, and records problems the author encountered during actual operation. The check scripts do not call models and require users to connect them to hooks, cron, or CI themselves.

Open website

About this tool

Purpose

This repository is an operating methodology for solopreneurs and indie developers, with the goal of using AI agents to take on repetitive company work, including research, writing, building, and monitoring. The author, Balance Zhao, uses his own one-person company as a sample and records how 18 long-running Claude Code sessions and about 20 scheduled AI tasks are organized. The repository does not help choose a business direction; it only covers the question of "how to operate once agents start doing the work."

Main capabilities

  • Eight chapters of lessons learned: Each chapter comes from a place where something actually went wrong, for example, an agent reporting a task complete because it "found no errors," a session hitting the weekly limit midway and losing context, monitoring tasks and business tasks sharing a quota and going silent together, rules drifting between two copies in the prompt and the repository, and too many monitoring messages to handle.
  • Organizational structure: One coordinating session (HQ) holds shared rules, the ledger, quotas, and the verifier, and only dispatches work to four domain leads, each of whom manages the project sessions under them. Agents come to the author only in six situations: bad news, product decisions, spending, irreversible deletion, rule changes, and releases.
  • Task ledger and handoff records: Tasks are written to the ledger rather than chat, and each session keeps a handoff record so that a new session can take over the work of a cleared session.
  • Four Python check scripts:dispatch.py、handoff_check.py、reconcile.py、rules_check.py, all with no third-party dependencies and no model calls. Paths are configured by ops.config.json and are not hardcoded.
  • Supporting tools:claim-check is a Claude Code hook that requires the agent to have run something after the last edit before it can say "fixed";when-to-clear shows how much usage is spent rereading long conversations and writes handoff notes.
  • agent skill: Uses the open SKILL.md format and can help set up the above structure in your own repository, including copying templates, confirming lead roles, writing role cards and handoff records, and running checks.

How to use

Trying the checks only requires Python 3.9+ and no installation. The sample data is set to a failing state so you can see what each check can catch. Using the agent skill in your own repository requires Node.js 22.20 or newer; after installation, tell the agent "Set up the one-person AI company structure in this repo." The check scripts run from the repository root and exit with code 1 when something is missing, overdue, or broken (late delivery is only a warning), and can be connected to cron or CI. Claude Code treats exit code 2 as blocking, so if you want to use the checks in a hook, wrap them to exit 2 on failure. Tests can be run with python3 -m unittest discover tests and cover both directions: good input passes and bad input fails.

Suitable scenarios

Suitable for people who are already using or preparing to use AI agents (especially Claude Code sessions and scheduled tasks) to run a one-person company, and also for users who have been troubled by agents falsely reporting completion or by sessions being interrupted and losing context.

Limitations

  • The checks can only see what has been written down; deliveries not listed in EXPECTATIONS.json will not be reported as missing.
  • rules_check.py Only checking whether the gate script exists and contains the marker string cannot prove that the script is connected to a hook.
  • Nothing runs automatically; the user must connect hooks, cron, or CI themselves; in the rule registration template, except for R-01, which is dispatch.py enforced, the remaining rules are initially advisory.
  • Time uses a fixed UTC offset (timezone_offset_hours), and must be manually updated when daylight saving time changes.
  • The script is a small rewritten version of the author's production code, not the original production code bound to their server and account.
  • Although the skill uses an open format, the author has only used it with Claude Code.