diff --git a/.env.example b/.env.example index a3afd0c..8f5f149 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,4 @@ -# Dark Factory — Environment Configuration +# Disinto — Environment Configuration # Copy to .env and fill in your values. # NEVER commit .env to the repo. diff --git a/BOOTSTRAP.md b/BOOTSTRAP.md index 5ccd552..0f19a0a 100644 --- a/BOOTSTRAP.md +++ b/BOOTSTRAP.md @@ -1,6 +1,6 @@ # Bootstrapping a New Project -How to point dark-factory at a new target project and get all four agents running. +How to point disinto at a new target project and get all four agents running. ## Prerequisites @@ -9,7 +9,7 @@ Before starting, ensure you have: - [ ] A **Codeberg repo** with at least one issue labeled `backlog` - [ ] A **Woodpecker CI** pipeline (`.woodpecker/` dir with at least one `.yml`) - [ ] A **second Codeberg account** for the review bot (branch protection requires reviews from a different user) -- [ ] A **local clone** of the target repo on the same machine as dark-factory +- [ ] A **local clone** of the target repo on the same machine as disinto - [ ] `claude` CLI installed and authenticated (`claude --version`) ## 1. Configure `.env` @@ -152,7 +152,7 @@ crontab -e Add (adjust paths): ```cron -FACTORY_ROOT=/home/you/dark-factory +FACTORY_ROOT=/home/you/disinto # Supervisor — health checks, auto-healing (every 10 min) 0,10,20,30,40,50 * * * * $FACTORY_ROOT/factory/factory-poll.sh diff --git a/README.md b/README.md index 1223e51..a653bc8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ -# Dark Factory +# Disinto -Autonomous CI/CD factory. Four agents, zero supervision needed. +Autonomous CI/CD factory — [disinto.ai](https://disinto.ai) + +Four agents, zero supervision needed. Point it at a Codeberg repo with a Woodpecker CI pipeline and it will pick up issues, implement them, review PRs, and keep the system healthy — all on its own. @@ -47,8 +49,8 @@ all agents ──→ matrix_send() ← status updates, escalations, merge no ```bash # 1. Clone -git clone ssh://git@codeberg.org/johba/dark-factory.git -cd dark-factory +git clone ssh://git@codeberg.org/johba/disinto.git +cd disinto # 2. Configure cp .env.example .env @@ -82,10 +84,10 @@ CLAUDE_TIMEOUT=7200 # max seconds per Claude invocation (default: 2h) # 3. Install cron (staggered to avoid overlap) crontab -e # Add: -# 0,10,20,30,40,50 * * * * /path/to/dark-factory/factory/factory-poll.sh -# 3,13,23,33,43,53 * * * * /path/to/dark-factory/review/review-poll.sh -# 6,16,26,36,46,56 * * * * /path/to/dark-factory/dev/dev-poll.sh -# 15 8 * * * /path/to/dark-factory/gardener/gardener-poll.sh +# 0,10,20,30,40,50 * * * * /path/to/disinto/factory/factory-poll.sh +# 3,13,23,33,43,53 * * * * /path/to/disinto/review/review-poll.sh +# 6,16,26,36,46,56 * * * * /path/to/disinto/dev/dev-poll.sh +# 15 8 * * * /path/to/disinto/gardener/gardener-poll.sh # 4. Verify bash factory/factory-poll.sh # should log "all clear" @@ -94,7 +96,7 @@ bash factory/factory-poll.sh # should log "all clear" ## Directory Structure ``` -dark-factory/ +disinto/ ├── .env.example # Template — copy to .env, add secrets + project config ├── .gitignore # Excludes .env, logs, state files ├── lib/ diff --git a/factory/PROMPT.md b/factory/PROMPT.md index 1a96f8e..fc86282 100644 --- a/factory/PROMPT.md +++ b/factory/PROMPT.md @@ -39,7 +39,7 @@ This gives you: - `$PROJECT_REPO_ROOT` — path to the target project repo - `$PROJECT_NAME` — short project name (for worktree prefixes, container names) - `$PRIMARY_BRANCH` — main branch (master or main) -- `$FACTORY_ROOT` — path to the dark-factory repo +- `$FACTORY_ROOT` — path to the disinto repo - `matrix_send ` — send notifications to the Matrix coordination room ## Escalation diff --git a/factory/factory-poll.sh b/factory/factory-poll.sh index ca289e3..d83fc1a 100755 --- a/factory/factory-poll.sh +++ b/factory/factory-poll.sh @@ -4,10 +4,10 @@ # Runs every 10min via cron. Does all health checks in bash (zero tokens). # Only invokes claude -p when auto-fix fails or issue is complex. # -# Cron: */10 * * * * /path/to/dark-factory/factory/factory-poll.sh +# Cron: */10 * * * * /path/to/disinto/factory/factory-poll.sh # # Peek: cat /tmp/factory-status -# Log: tail -f /path/to/dark-factory/factory/factory.log +# Log: tail -f /path/to/disinto/factory/factory.log source "$(dirname "$0")/../lib/env.sh" diff --git a/factory/update-prompt.sh b/factory/update-prompt.sh index 0d1e740..75beb21 100755 --- a/factory/update-prompt.sh +++ b/factory/update-prompt.sh @@ -6,7 +6,7 @@ # ./factory/update-prompt.sh --from-file "best-practices/memory.md" /tmp/lesson.md # # Called by claude -p when it learns something during a fix. -# Commits and pushes the update to the dark-factory repo. +# Commits and pushes the update to the disinto repo. source "$(dirname "$0")/../lib/env.sh" diff --git a/lib/matrix_listener.service b/lib/matrix_listener.service index ef22016..98da8ed 100644 --- a/lib/matrix_listener.service +++ b/lib/matrix_listener.service @@ -1,14 +1,14 @@ [Unit] -Description=Dark Factory Matrix Listener +Description=Disinto Matrix Listener After=network.target dendrite.service [Service] Type=simple -ExecStart=/home/admin/dark-factory/lib/matrix_listener.sh +ExecStart=/home/admin/disinto/lib/matrix_listener.sh Restart=always RestartSec=10 User=admin -WorkingDirectory=/home/admin/dark-factory +WorkingDirectory=/home/admin/disinto [Install] WantedBy=multi-user.target