infinite-you

module
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2026 License: MIT

README

you-agent-factory

CI Latest Release Go Version

you-agent-factory is an AI agent factory. It orchestrates AI agents for you so you can do more work without doing everything manually.

Why?

Leverage.

With you-agent-factory, you codify your process into a workflow with different AGENTs.md and run them as wrappers around OpenAI codex.

For example:

  • dispatch 10 agents to run independently in separate work trees
  • have one agent loop through a series of tasks, and then have a reviewer review the output and retrigger the loop if it failed
  • tell the agents a series of plans, and run them in dependency order
  • have a cron setup to autonomously look at git tasks or whatever and submit tasks that go through a write/review cycle loop

Install

  1. install codex npm i -g @openai/codex
  2. install on macOS/Linux: curl -fsSL https://github.com/portpowered/infinite-you/releases/latest/download/install.sh | sh
  3. install on Windows PowerShell: irm https://github.com/portpowered/infinite-you/releases/latest/download/install.ps1 | iex
  4. go cd your-project-directory
  5. run you
  6. submit a work task on the website interface, like "go write a report on my codebase at TEST.md",
  7. wait till complete
  8. finished
claude variant
you init --executor claude --dir my-factory
you docs workstation

Factory CLI

With the service running, ask the live API which factory is currently active:

you factory query
you --server http://localhost:7437 --json factory query

factory query reads the running service's current-factory API. It does not infer the answer from local factory.json files, so the output reflects the active default-root runtime or the currently activated named factory on that server.

Manage persisted named factories under the factory root (default factory/):

you factory list
you --json factory list --dir my-factory
you factory save staging --from ./factory.json --set-current
you factory update staging --from ./factory.json
you factory delete staging

When a factory service is running, persist the live current factory definition back to durable storage without a name argument:

you factory save
you --json factory save --session session-beta

Submit Work From The CLI

Use submit for single-work API submission when the factory service is already running:

you submit --name "driver-incident-review" --work-type-name task --payload request.md

--name, --work-type-name, and --payload are required for unary CLI submission.

Example

Here's an example of you-agent-factory dispatching roughly 5-10 agents.

How It Works

The default no-argument starter flow looks like below: you give it a task, it spawns a basic agent CLI run and does stuff.

flowchart LR
   classDef place fill:#000,stroke:#333,color:#fff,stroke-width:2px
   classDef transition fill:#333,stroke:#333,color:#fff,rx:0,ry:0

   P0((task:init)):::place
   P1((task:complete)):::place
   P2((task:failed)):::place

   T0[process]:::transition

   P0 --> T0
   T0 --> P1
   T0 -.->|on failure| P2

Customization

See authoring-factories for the full configuration guide. you-agent-factory lets you customize your flow however you want.

The overall system of how you-agent-factory works is relatively simple.

  1. You have work.
  2. Work goes to workstations where the work gets worked on by workers (agents, or just shell scripts)
  3. When the workstations complete the, work is converted to other work.
  4. you-agent-factory stops when no work remains.

For packaged terminal docs, run you docs to list topics or you docs <topic> for embedded reference output. Maintainers edit only docs/reference/ (see docs/reference/README.md); run make docs-reference-smoke before shipping doc changes. Customer guides such as docs/reference/config.md, docs/reference/work.md, docs/reference/workstations.md, docs/reference/workers.md, docs/reference/resources.md, docs/reference/batch-inputs.md, and docs/reference/templates.md live in that tree.

Shipped example factories

Drag the images from the examples/factories directory into the web interface's flow graph, and it'll load the factory for you.

Doc reviewer
Write and review workflow.
Doc reviewer factory
you-agent-factory
Meta factory that runs the factory.
you-agent-factory example factory
Ralph
Iterative plan, code, and review loop.
Ralph factory
Timer
Cron-based factory trigger.
Timer factory
Worktree
Spawns work in a git worktree.
Worktree factory
Writer reviewer
Iterative loop for writing docs.
Writer reviewer factory
References

Directories

Path Synopsis
cmd
ciclassify command
deadcodecheck command
factory command
Package main is the entry point for the agent-factory CLI.
Package main is the entry point for the agent-factory CLI.
factory/compose
Package compose is the cmd-owned wire composition root for FactoryService.
Package compose is the cmd-owned wire composition root for FactoryService.
functionallane command
gocoveragecheck command
pkglintcheck command
pkgmaintcheck command
releaseprep command
releasesmoke command
releasetagcheck command
docs
reference
Package reference holds canonical CLI reference markdown and the embedded filesystem used by the packaged you docs surface.
Package reference holds canonical CLI reference markdown and the embedded filesystem used by the packaged you docs surface.
internal
pkg
api
Package api provides the REST API server for the agent-factory.
Package api provides the REST API server for the agent-factory.
api/generated
Package generated provides primitives to interact with the openapi HTTP API.
Package generated provides primitives to interact with the openapi HTTP API.
cli
Package cli defines Cobra commands for the agent-factory CLI.
Package cli defines Cobra commands for the agent-factory CLI.
cli/batchload
Package batchload reads canonical FACTORY_REQUEST_BATCH JSON for CLI ingress.
Package batchload reads canonical FACTORY_REQUEST_BATCH JSON for CLI ingress.
cli/clidiag
Package clidiag owns shared helpers for customer-facing CLI diagnostics.
Package clidiag owns shared helpers for customer-facing CLI diagnostics.
cli/clihttp
Package clihttp provides shared JSON HTTP transport helpers for CLI commands.
Package clihttp provides shared JSON HTTP transport helpers for CLI commands.
cli/cliserver
Package cliserver resolves factory API server base URIs and builds request URLs.
Package cliserver resolves factory API server base URIs and builds request URLs.
cli/config
Package config implements agent-factory config command behavior.
Package config implements agent-factory config command behavior.
cli/dashboard
Package dashboard provides read models and pretty-print rendering for the factory dashboard.
Package dashboard provides read models and pretty-print rendering for the factory dashboard.
cli/default
Package defaultcmd defines the no-argument agent-factory default flow.
Package defaultcmd defines the no-argument agent-factory default flow.
cli/docs
Package docs provides the packaged markdown reference topics exposed by the agent-factory CLI docs surface.
Package docs provides the packaged markdown reference topics exposed by the agent-factory CLI docs surface.
cli/factory
Package factory implements factory inspection command behavior.
Package factory implements factory inspection command behavior.
cli/init
Package initcmd implements the agent-factory init command behavior.
Package initcmd implements the agent-factory init command behavior.
cli/models
Package models defines model-discovery command behavior.
Package models defines model-discovery command behavior.
cli/run
Package run implements the agent-factory run command behavior.
Package run implements the agent-factory run command behavior.
cli/session
Package session implements factory-session lifecycle command behavior.
Package session implements factory-session lifecycle command behavior.
cli/submit
Package submit implements agent-factory submit command behavior.
Package submit implements agent-factory submit command behavior.
cli/timedisplay
Package timedisplay owns human-readable CLI timestamp and duration formatting.
Package timedisplay owns human-readable CLI timestamp and duration formatting.
cli/work
Package work implements work inspection command behavior.
Package work implements work inspection command behavior.
config/load
Package load is the canonical entrypoint for loading and validating factory definitions from on-disk directories or canonical JSON bytes.
Package load is the canonical entrypoint for loading and validating factory definitions from on-disk directories or canonical JSON bytes.
config/persist
Package persist is the canonical entrypoint for persisting factory definitions to disk: named-factory create/replace, split-layout replace, and current-factory pointer read/write.
Package persist is the canonical entrypoint for persisting factory definitions to disk: named-factory create/replace, split-layout replace, and current-factory pointer read/write.
factory/runtime
Package runtime provides the concrete Factory implementation that wires together the engine, workers, and subsystems.
Package runtime provides the concrete Factory implementation that wires together the engine, workers, and subsystems.
factory/scheduler
Package scheduler provides transition scheduling strategies for the CPN engine.
Package scheduler provides transition scheduling strategies for the CPN engine.
factory/state/validation
Package validation provides static validation for CPN net definitions, including reachability, completeness, boundedness, and type safety checks.
Package validation provides static validation for CPN net definitions, including reachability, completeness, boundedness, and type safety checks.
factory/subsystems
Package subsystems defines the Subsystem interface and active tick-phase components used by the runtime.
Package subsystems defines the Subsystem interface and active tick-phase components used by the runtime.
factory/validationentry
Package validationentry validates factoryapi.Factory payloads through the canonical validation package without creating an import cycle between pkg/factory/validation and pkg/config.
Package validationentry validates factoryapi.Factory payloads through the canonical validation package without creating an import cycle between pkg/factory/validation and pkg/config.
generatedclient
Package generatedclient provides primitives to interact with the openapi HTTP API.
Package generatedclient provides primitives to interact with the openapi HTTP API.
service/ingest
Package ingest provides filesystem-backed external input ingestion for the factory runtime.
Package ingest provides filesystem-backed external input ingestion for the factory runtime.
testutil
Package testutil provides test helpers and utilities for the agent-factory.
Package testutil provides test helpers and utilities for the agent-factory.
testutil/validationassert
Package validationassert provides shared test helpers for factory validation target assertions.
Package validationassert provides shared test helpers for factory validation target assertions.
workers
Package workers defines worker executor interfaces and implementations for script and model-based workers.
Package workers defines worker executor interfaces and implementations for script and model-based workers.
tests
functional/bootstrap_portability
Package bootstrap_portability owns init, bootstrap, and portability flows.
Package bootstrap_portability owns init, bootstrap, and portability flows.
functional/guards_batch
Package guards_batch owns dependency, guard, and request-batch behavior.
Package guards_batch owns dependency, guard, and request-batch behavior.
functional/providers
Package providers owns provider-facing execution and failure behavior.
Package providers owns provider-facing execution and failure behavior.
functional/replay_contracts
Package replay_contracts owns replay and artifact contract behavior.
Package replay_contracts owns replay and artifact contract behavior.
functional/runtime_api
Package runtime_api owns runtime projection and API-facing functional coverage.
Package runtime_api owns runtime projection and API-facing functional coverage.
functional/smoke
Package smoke owns fast end-to-end confidence checks for the default functional lane.
Package smoke owns fast end-to-end confidence checks for the default functional lane.
functional/workflow
Package workflow owns core multi-step workflow behavior coverage.
Package workflow owns core multi-step workflow behavior coverage.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL