"The Immutable Foundation for AI Orchestration."
A monorepo for AI-assisted development workflow automation, built around a modular feature architecture with template-based scaffolding, containerized development environments, and agent-driven workflows.
Named after Kuni-no-Tokotachi-no-Kami, the first deity in Japanese mythology to appear and solidify the chaotic, drifting earth into a firm "foundation."
Just as the deity established the ground for all existence, Tokotachi eliminates the chaos of modern AI development environments. It provides a rock-solid, parallel execution platform where multiple AI agents and processes can thrive with absolute stability.
Tokotachi provides a structured foundation for managing multiple development features in a single repository. Each feature is an isolated, self-contained component with its own source code, tests, dependencies, and containerized development environment.
The project is designed to work seamlessly with AI coding agents, enabling a specification → implementation plan → execution pipeline where both humans and AI collaborate through well-defined workflows.
- Feature-based monorepo — isolated modules under
features/, each independently buildable and testable ttCLI — a development environment orchestrator written in Go- Template catalog — version-pinned feature templates for reproducible scaffolding
- Agent workflows — structured AI-assisted specification, planning, and implementation processes
- Multi-platform support — Linux, macOS, and Windows with multiple editor/container combinations
tt is built with tt itself.
tokotachi/
├── features/ # All feature implementations
│ ├── tt/ # Development environment orchestrator (Go)
│ └── integration-test/ # Integration test suite (Python)
├── shared/ # Shared resources (libs, schemas, testdata)
├── tests/ # Project-level test suites
│ └── integration-test/ # Integration tests (Go)
├── scripts/ # Build and test automation
│ ├── dist/ # Distribution pipeline (build, release, publish)
│ ├── process/ # build.sh, integration_test.sh
│ └── utils/ # Utility scripts
├── prompts/ # AI workflow specifications and rules
│ ├── phases/ # Feature specs and implementation plans
│ └── rules/ # Coding, testing, and planning rules
├── .agent/ # AI agent configuration
│ ├── workflows/ # Workflow definitions
│ └── rules/ # Agent-specific rules
├── bin/ # Build output (gitignored)
└── work/ # Git worktrees (gitignored)
The core feature of this repository. tt is a CLI tool that manages feature-level development environments across different OS × Editor × Container combinations.
# 1. Generate a new feature from a template
tt scaffold feature axsh-go-standard
...(snip)...
Options for feature/axsh-go-standard:
? Feature name (feature_name) (myprog):
? Go module path (module_path) (github.com/axsh/tokotachi/features):
...(snip)
# 2. Start working — creates worktree, starts container, opens editor
tt open bug-fix-branch myprog
# 3. Done — stops containers and deletes worktree
tt close bug-fix-branch myprogtt open is a syntax sugar that runs create → up → editor in sequence. If the container is already running, the up step is automatically skipped.
tt close is a syntax sugar that runs down → delete in sequence with a safety confirmation prompt for uncommitted changes.
The editor is resolved in the following priority order:
--editorflag (e.g.tt open mybranch tt --editor code)TT_EDITORenvironment variable- Default: cursor
Supported editors: code (VSCode), cursor, ag (Antigravity), claude (Claude Code).
These are the building-block commands that perform a single operation each:
# Worktree management
tt create <branch> # Create a branch and worktree
tt delete <branch> # Delete worktree and branch
tt delete <branch> --force # Force delete even if branch not merged
tt delete <branch> --depth 5 --yes # Recursive nested worktree deletion
# Container management
tt up <branch> <feature> # Start the development container
tt up <branch> <feature> --ssh # Start with SSH mode
tt up <branch> <feature> --rebuild # Rebuild the container image
tt down <branch> <feature> # Stop and remove the container
# Editor management
tt editor <branch> [feature] # Open the editor for a branch
tt editor <branch> [feature] --editor cursor # Specify editor (code|cursor|ag|claude)
tt editor <branch> [feature] --attach # DevContainer attach to running containerThese combine multiple primitive commands into a single operation:
# open = create → up → editor (all-in-one start)
tt open <branch> [feature] # Create worktree, start container, and open editor
tt open <branch> [feature] --editor code # Specify editor to use
# close = down → delete (all-in-one teardown)
tt close <branch> [feature] # Stop containers and delete worktree
tt close <branch> [feature] --force # Force close even if branch not merged
tt close <branch> [feature] --depth 5 --yes # Recursive close with auto-confirm# Container interaction
tt status <branch> [feature] # Show worktree and container status
tt shell <branch> <feature> # Open a shell in the container
tt exec <branch> <feature> -- go test ./... # Execute a command in the container
# Project management
tt list # List all worktree branches
tt list [branch] # List features for a specific branch
tt list --json --path --update --full # Output options
tt pr <branch> [feature] # Create a GitHub Pull Request
tt doctor # Check repository health and config
tt doctor --fix --json # Auto-fix with JSON output
tt scaffold [category] [name] # Generate project structure from templates
tt scaffold --list # List available templates
tt scaffold --rollback # Rollback last scaffold operation--verbose # Show debug logs
--dry-run # Show planned actions without executing
--report FILE # Write execution report to Markdown file
--env # Show environment variables in report| OS | Editors | Container Modes |
|---|---|---|
| Linux, macOS, Windows | VSCode, Cursor, Antigravity, Claude Code | none, docker-local, docker-ssh, devcontainer |
detect → resolve → plan → execute → report
The processing pipeline detects the environment, resolves configuration, builds an execution plan, runs actions, and generates a report.
See features/tt/README.md for full documentation.
Download the latest release from GitHub Releases.
# Download (replace OS and ARCH as needed: linux/darwin, amd64/arm64)
curl -LO https://github.com/axsh/tokotachi/releases/latest/download/tt_linux_amd64.tar.gz
# Extract
tar xzf tt_linux_amd64.tar.gz
# Move to PATH
sudo mv tt /usr/local/bin/curl -LO https://github.com/axsh/tokotachi/releases/latest/download/tt_darwin_arm64.tar.gz
tar xzf tt_darwin_arm64.tar.gz
sudo mv tt /usr/local/bin/Option A: Installer Script (Recommended)
Installs to %LOCALAPPDATA%\Axsh\Tokotachi\bin and configures user PATH. No admin privileges required.
# Clone and install
git clone https://github.com/axsh/tokotachi.git
cd tokotachi
powershell -ExecutionPolicy Bypass -File .\scripts\dist\install.ps1Open a new terminal and verify with tt --help.
To uninstall:
powershell -ExecutionPolicy Bypass -File .\scripts\dist\uninstall.ps1Option B: Manual Install
- Download
tt_windows_amd64.zipfrom Releases - Extract the zip file
- Move
tt.exeto a directory in yourPATH
tt --helpRequires Go 1.24+, Docker, Git, and Bash (Git Bash on Windows).
# Clone the repository
git clone https://github.com/axsh/tokotachi.git
cd tokotachi
# Bootstrap: build and install all tools
./scripts/dist/bootstrap-tools.sh
# Or build individually
./scripts/dist/build.sh tt
./scripts/dist/install-tools.sh ttThe compiled binary is output to bin/tt.
# Full build + unit tests
./scripts/process/build.sh
# Integration tests
./scripts/process/integration_test.shThis project uses an AI-assisted development workflow with structured phases:
Idea → Specification → Implementation Plan → Execution → Verification
- Specification — Capture requirements in
prompts/phases/usingcreate-specification - Implementation Plan — Generate detailed plans using
create-implementation-plan - Execution — Implement code and tests using
execute-implementation-plan - Verification — Build and test using
build-pipeline
Each phase includes a human review checkpoint before progressing to the next.
New features are generated from templates using the scaffold command and placed under features/:
tt scaffold [category] [name]Multiple developers or AI agents can work on different features simultaneously using:
- Git worktrees — isolated working directories per feature/branch
- Dev Containers — consistent, reproducible development environments
- Independent environments — per-feature isolation
| Component | Technology |
|---|---|
| Core CLI | Go 1.24, Cobra |
| Testing | Go testing, testify; Python (integration) |
| Configuration | YAML (gopkg.in/yaml.v3) |
| Containers | Docker, Dev Containers |
| Infrastructure | Docker Compose |
| CI Scripts | Bash |
This project is private.