Dev-Control

GitHub repoGitHub releaseLicence

CI StatusIssuesPull RequestsStars

Last CommitShellStabilityMaintenance


Dev-Control is a modular Bash CLI that automates the repetitive parts of running many repositories: scaffolding repos to community standards, nested submodules, consolidated .tmp/.bak folders, rootless Podman devcontainers, VS Code MCP servers, signed GitHub releases (library tarballs, re-releases and automated version tagging) and multi-platform packages.

It aims to make awkward Git and CLI tasks — signing a worktree while preserving topology, or surgically dropping a commit — routine and reversible. Every command has a --dry-run mode. Issues and contributions are welcome.

# Install
git clone https://github.com/xaostech/dev-control.git &&cd dev-control && ./install.sh
# Use
dc init # Set up a repo with templates, licence, docs
dc repo # Create a GitHub repo from your local project
dc pr # Open a pull request in seconds
dc fix # Rewrite/sign/clean commit history safely
dc modules # Manage nested submodules automatically
dc licences # Audit licence compliance across repos
dc mcp # Configure AI coding assistants (MCP servers)
dc contain # Generate devcontainer.json for VS Code
dc package # Build tarballs, Homebrew, Snap, Deb, Nix, Docker
dca-alias # Sync (all) new alias and reload bashrc

📋 Table of Contents


💡 Why Dev-Control?

Managing modern software projects involves a lot of repetitive housekeeping:

  • Initialising repos with consistent templates, licences, and docs
  • Keeping submodules in sync across complex monorepos
  • Rewriting commit history to fix author dates or add GPG signatures
  • Auditing licence compliance when you have dozens of dependencies
  • Making devcontainers with the right mounts and settings and reusable category images
  • Packaging your tool for multiple platforms (Homebrew, Snap, Nix, Docker…)

Dev-Control bundles all of this into a single, modular CLI. Each command is designed to be:

PrincipleHow
SafeDry-run modes, automatic backup bundles, harness wrappers
FastBatch processing, parallel operations, minimal dependencies
ExtensiblePlugin system, YAML config, themeable TUI
PortablePure Bash 4+, no exotic runtime, runs anywhere Git runs

✨ Features at a Glance

CategoryWhat You Get
Repo SetupTemplate loading, licence selection, README/CONTRIBUTING/SECURITY scaffolding, GitHub Actions workflows
Git OpsHistory rewriting with GPG signing, date preservation, conflict auto-resolution, worktree sync
SubmodulesAuto-generated .gitmodules, temp-folder consolidation, symlink pruning
LicensingSPDX detection, compatibility checking, bulk apply, JSON export
DevExDevcontainer generation, MCP server setup (GitHub, StackOverflow, Firecrawl)
PackagingTarball + SHA256, Homebrew formula, Snap YAML, Debian .deb, Nix flake, Docker + ttyd web terminal
TUI ThemesMatrix, Hacker, Cyber aesthetics powered by Charmbracelet Gum

🚀 Quick Start

Prerequisites

  • Bash 4.0+ or Zsh
  • Git 2.0+
  • GitHub CLI (gh) for repo/PR commands
  • Optional: gum or fzf for interactive TUI; GPG for signing

Install

git clone https://github.com/xaostech/dev-control.git
cd dev-control
./install.sh # Adds `dc` to your PATH and installs aliasessource~/.bashrc # Or restart your shell

Verify

dc --version # Print the installed version
dc --help # List all commands

🔧 Core Commands

Run dc <command> --help for full options.

CommandPurpose
dc aliasInstall shell aliases for Git, Docker and system monitoring
dc initPopulate a repo with docs, licence, workflows and GitHub templates
dc repoCreate a GitHub repo from the local project
dc prOpen a pull request from the current branch
dc fixRewrite commits — edit messages, sign, fix dates, drop or combine
dc modulesAuto-generate .gitmodules; consolidate temp folders
dc licencesDetect, check compatibility and apply licences
dc mcpConfigure MCP servers for AI coding assistants
dc containGenerate a .devcontainer/ setup
dc packageBuild tarball, Homebrew, Snap, Deb, Nix and Docker packages
Command examples ›

dc aliases — Shell Alias Installer

Add productivity aliases for Git, Docker, system monitoring, and more.

dc alias# Interactive category selectionsource~/.bashrc

Example aliases

gpf # git push --force-with-lease
dca-alias # Apply and source all aliases
gcda # Stage, amend and push with preserved author date
gcda # Restore original author date

dc init — Repository Initialisation

Populate a repo with docs, licence, workflows, and GitHub templates.

dc init # Interactive mode
dc init --defaults # Skip repo owner/slug and bot credentials (envVars) prompts
dc init -f docs/SECURITY.md # Update a specific file
dc init --batch /projects/*# Initialise multiple repos

dc repo — Create GitHub Repository

Push your local project to a new GitHub repo in one step. Defaults to repo config generated by dc-init.

dc repo # Interactive prompts
dc repo --private --topics cli,bash

dc pr — Pull Request Creator

Open a PR from your current branch with auto-detected metadata.

dc pr # Interactive
dc pr --draft --label bug

dc fix — History Rewriting

Safely rewrite commits—edit messages, sign, fix dates, drop commits.

dc fix # Interactive (last 10 commits)
dc fix --sign --range HEAD=all # GPG-sign entire branch
dc fix --dry-run --range main..HEAD # Preview changes
dc fix --restore # Recover from backup bundle
dc fix --drop hash# Surgically drop commit by hash
dc fix --sign --atomic-preserve --auto-resolve --range HEAD=5 # Preserve merge topology and autoresolve merge conflicts

dc modules — Submodule Management

Auto-generate .gitmodules for nested repos; consolidate temp folders.

dc modules /path/to/monorepo
dc modules --aggressive --dry-run # Preview symlink + .gitignore changes

dc licences — Licence Auditor

Detect, check compatibility, and apply licences across repos.

dc licences # Scan current repo
dc licences --deep # Include submodules
dc licences --check GPL-3.0 # Verify compatibility
dc licences --apply MIT # Apply licence template

dc mcp — MCP Server Setup

Configure Model Context Protocol servers for AI coding assistants.

dc mcp # Interactive server selection
dc mcp --test # Verify GitHub MCP connection
dc mcp --create-pat # Interactive Github PAT creation
dc mcp --config # Only generate .vscode/mcp.json

dc container — Devcontainer Generator

Generate a complete .devcontainer/ setup for VS Code.

dc contain # Interactive
dc contain --image mcr.microsoft.com/devcontainers/base:ubuntu dc contain --base --dev-tools --defaults && \
cd subfolder && dc contain --img --dev-tools # Use the previous container image (tag=dev-tools) as a base
dc contain --nest <<<y# Discover, update and rebuild all containers recursively
dc contain --nest --regen # Agressively do same (remove config files and containers)
dc contain --nest --regen .# Include root in same
dc contain --nest --regen --dev-tools # Filter rebuild to one category; multiple categories supported (--web-dev --streaming)

Git identity (user.name / user.email) is sourced from ~/.config/dev-control/container.yaml if present, falling back to the host's global git config — so git config --global user.email on the host is both the simplest and most resilient setup, with the YAML file as an optional explicit override.

dc package — Multi-Platform Packaging

Build distribution packages with a single command.

dc package --init # Create .dc-package.yaml
dc package --all # Build everything
dc package --docker --theme cyber # Docker image with ttyd + theme

🔌 Plugin System

Extend Dev-Control with custom commands.

plugins/
└── my-plugin/
├── plugin.yaml # name, version, description, commands
└── commands/
└── greet.sh # becomes `dc greet`
dc plugin list # Show installed plugins
dc plugin install gh:user/repo # Install from GitHub
dc plugin remove my-plugin

⚙️ Configuration

Dev-Control uses a layered config system (highest priority first):

  1. Environment variables (DC_*)
  2. Project config (.dc-init.yaml in repo root)
  3. Global config (~/.config/dev-control/config.yaml)
  4. Built-in defaults

Example .dc-init.yaml:

project-name: my-projectdefault-licence: MITdefault-branch: mainauto-sign-commits: truegithub-org: my-org

See config/example.dc-init.yaml for all options.


📚 Documentation

DocumentDescription
Installation GuideDetailed install & upgrade instructions
ContributingHow to contribute
Code of ConductCommunity guidelines
Security PolicyReporting vulnerabilities
Testing GuideRunning and writing tests

Script Reference

ScriptPurpose
dev-control.shInteractive main menu
template-loading.shTemplate init logic
fix-history.shHistory rewriting engine
module-nesting.shSubmodule management
licences.shLicence auditing
containerise.shDevcontainer generator
packaging.shMulti-platform packaging
mcp-setup.shMCP server configuration

Shared Libraries

Located in scripts/lib/:

LibraryPurpose
colours.shANSI terminal colours
print.shFormatted output (headers, boxes, spinners)
config.shYAML config parsing
tui.shGum/fzf interactive prompts
validation.shInput validation
git/*.shGit utilities (dates, topology, worktrees, etc.)

🤝 Contributing

Contributions are welcome. Please read CONTRIBUTING.md first.

# Fork → Clone → Branch → Commit → PR
git checkout -b feature/amazing-feature
git commit -m "Add amazing feature"
git push origin feature/amazing-feature

🗺️ Roadmap

  • Unified dc CLI with command registry
  • Plugin system with GitHub install support
  • Multi-platform packaging (tarball, Homebrew, Snap, Deb, Nix, Docker)
  • MCP server configuration for AI assistants
  • Licence auditing with SPDX detection
  • Devcontainer generator
  • Zsh compatibility layer
  • Fish shell support
  • GUI wrapper (Bubble Tea / Tauri)
  • Remote plugin registry

See open issues for more.


📄 Licence

GPL-3.0. See LICENCE.

Git Tree Visualisation

Full SVG · Interactive version · View data

About

A collection of powerful CLI tools, scripts and templates for streamlined Git workflow, repository management, and shell productivity.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Dev-Control

GitHub repoGitHub releaseLicence

CI StatusIssuesPull RequestsStars

Last CommitShellStabilityMaintenance


Dev-Control is a modular Bash CLI that automates the repetitive parts of running many repositories: scaffolding repos to community standards, nested submodules, consolidated .tmp/.bak folders, rootless Podman devcontainers, VS Code MCP servers, signed GitHub releases (library tarballs, re-releases and automated version tagging) and multi-platform packages.

It aims to make awkward Git and CLI tasks — signing a worktree while preserving topology, or surgically dropping a commit — routine and reversible. Every command has a --dry-run mode. Issues and contributions are welcome.

# Install
git clone https://github.com/xaostech/dev-control.git &&cd dev-control && ./install.sh
# Use
dc init # Set up a repo with templates, licence, docs
dc repo # Create a GitHub repo from your local project
dc pr # Open a pull request in seconds
dc fix # Rewrite/sign/clean commit history safely
dc modules # Manage nested submodules automatically
dc licences # Audit licence compliance across repos
dc mcp # Configure AI coding assistants (MCP servers)
dc contain # Generate devcontainer.json for VS Code
dc package # Build tarballs, Homebrew, Snap, Deb, Nix, Docker
dca-alias # Sync (all) new alias and reload bashrc

📋 Table of Contents


💡 Why Dev-Control?

Managing modern software projects involves a lot of repetitive housekeeping:

  • Initialising repos with consistent templates, licences, and docs
  • Keeping submodules in sync across complex monorepos
  • Rewriting commit history to fix author dates or add GPG signatures
  • Auditing licence compliance when you have dozens of dependencies
  • Making devcontainers with the right mounts and settings and reusable category images
  • Packaging your tool for multiple platforms (Homebrew, Snap, Nix, Docker…)

Dev-Control bundles all of this into a single, modular CLI. Each command is designed to be:

PrincipleHow
SafeDry-run modes, automatic backup bundles, harness wrappers
FastBatch processing, parallel operations, minimal dependencies
ExtensiblePlugin system, YAML config, themeable TUI
PortablePure Bash 4+, no exotic runtime, runs anywhere Git runs

✨ Features at a Glance

CategoryWhat You Get
Repo SetupTemplate loading, licence selection, README/CONTRIBUTING/SECURITY scaffolding, GitHub Actions workflows
Git OpsHistory rewriting with GPG signing, date preservation, conflict auto-resolution, worktree sync
SubmodulesAuto-generated .gitmodules, temp-folder consolidation, symlink pruning
LicensingSPDX detection, compatibility checking, bulk apply, JSON export
DevExDevcontainer generation, MCP server setup (GitHub, StackOverflow, Firecrawl)
PackagingTarball + SHA256, Homebrew formula, Snap YAML, Debian .deb, Nix flake, Docker + ttyd web terminal
TUI ThemesMatrix, Hacker, Cyber aesthetics powered by Charmbracelet Gum

🚀 Quick Start

Prerequisites

  • Bash 4.0+ or Zsh
  • Git 2.0+
  • GitHub CLI (gh) for repo/PR commands
  • Optional: gum or fzf for interactive TUI; GPG for signing

Install

git clone https://github.com/xaostech/dev-control.git
cd dev-control
./install.sh # Adds `dc` to your PATH and installs aliasessource~/.bashrc # Or restart your shell

Verify

dc --version # Print the installed version
dc --help # List all commands

🔧 Core Commands

Run dc <command> --help for full options.

CommandPurpose
dc aliasInstall shell aliases for Git, Docker and system monitoring
dc initPopulate a repo with docs, licence, workflows and GitHub templates
dc repoCreate a GitHub repo from the local project
dc prOpen a pull request from the current branch
dc fixRewrite commits — edit messages, sign, fix dates, drop or combine
dc modulesAuto-generate .gitmodules; consolidate temp folders
dc licencesDetect, check compatibility and apply licences
dc mcpConfigure MCP servers for AI coding assistants
dc containGenerate a .devcontainer/ setup
dc packageBuild tarball, Homebrew, Snap, Deb, Nix and Docker packages
Command examples ›

dc aliases — Shell Alias Installer

Add productivity aliases for Git, Docker, system monitoring, and more.

dc alias# Interactive category selectionsource~/.bashrc

Example aliases

gpf # git push --force-with-lease
dca-alias # Apply and source all aliases
gcda # Stage, amend and push with preserved author date
gcda # Restore original author date

dc init — Repository Initialisation

Populate a repo with docs, licence, workflows, and GitHub templates.

dc init # Interactive mode
dc init --defaults # Skip repo owner/slug and bot credentials (envVars) prompts
dc init -f docs/SECURITY.md # Update a specific file
dc init --batch /projects/*# Initialise multiple repos

dc repo — Create GitHub Repository

Push your local project to a new GitHub repo in one step. Defaults to repo config generated by dc-init.

dc repo # Interactive prompts
dc repo --private --topics cli,bash

dc pr — Pull Request Creator

Open a PR from your current branch with auto-detected metadata.

dc pr # Interactive
dc pr --draft --label bug

dc fix — History Rewriting

Safely rewrite commits—edit messages, sign, fix dates, drop commits.

dc fix # Interactive (last 10 commits)
dc fix --sign --range HEAD=all # GPG-sign entire branch
dc fix --dry-run --range main..HEAD # Preview changes
dc fix --restore # Recover from backup bundle
dc fix --drop hash# Surgically drop commit by hash
dc fix --sign --atomic-preserve --auto-resolve --range HEAD=5 # Preserve merge topology and autoresolve merge conflicts

dc modules — Submodule Management

Auto-generate .gitmodules for nested repos; consolidate temp folders.

dc modules /path/to/monorepo
dc modules --aggressive --dry-run # Preview symlink + .gitignore changes

dc licences — Licence Auditor

Detect, check compatibility, and apply licences across repos.

dc licences # Scan current repo
dc licences --deep # Include submodules
dc licences --check GPL-3.0 # Verify compatibility
dc licences --apply MIT # Apply licence template

dc mcp — MCP Server Setup

Configure Model Context Protocol servers for AI coding assistants.

dc mcp # Interactive server selection
dc mcp --test # Verify GitHub MCP connection
dc mcp --create-pat # Interactive Github PAT creation
dc mcp --config # Only generate .vscode/mcp.json

dc container — Devcontainer Generator

Generate a complete .devcontainer/ setup for VS Code.

dc contain # Interactive
dc contain --image mcr.microsoft.com/devcontainers/base:ubuntu dc contain --base --dev-tools --defaults && \
cd subfolder && dc contain --img --dev-tools # Use the previous container image (tag=dev-tools) as a base
dc contain --nest <<<y# Discover, update and rebuild all containers recursively
dc contain --nest --regen # Agressively do same (remove config files and containers)
dc contain --nest --regen .# Include root in same
dc contain --nest --regen --dev-tools # Filter rebuild to one category; multiple categories supported (--web-dev --streaming)

Git identity (user.name / user.email) is sourced from ~/.config/dev-control/container.yaml if present, falling back to the host's global git config — so git config --global user.email on the host is both the simplest and most resilient setup, with the YAML file as an optional explicit override.

dc package — Multi-Platform Packaging

Build distribution packages with a single command.

dc package --init # Create .dc-package.yaml
dc package --all # Build everything
dc package --docker --theme cyber # Docker image with ttyd + theme

🔌 Plugin System

Extend Dev-Control with custom commands.

plugins/
└── my-plugin/
├── plugin.yaml # name, version, description, commands
└── commands/
└── greet.sh # becomes `dc greet`
dc plugin list # Show installed plugins
dc plugin install gh:user/repo # Install from GitHub
dc plugin remove my-plugin

⚙️ Configuration

Dev-Control uses a layered config system (highest priority first):

  1. Environment variables (DC_*)
  2. Project config (.dc-init.yaml in repo root)
  3. Global config (~/.config/dev-control/config.yaml)
  4. Built-in defaults

Example .dc-init.yaml:

project-name: my-projectdefault-licence: MITdefault-branch: mainauto-sign-commits: truegithub-org: my-org

See config/example.dc-init.yaml for all options.


📚 Documentation

DocumentDescription
Installation GuideDetailed install & upgrade instructions
ContributingHow to contribute
Code of ConductCommunity guidelines
Security PolicyReporting vulnerabilities
Testing GuideRunning and writing tests

Script Reference

ScriptPurpose
dev-control.shInteractive main menu
template-loading.shTemplate init logic
fix-history.shHistory rewriting engine
module-nesting.shSubmodule management
licences.shLicence auditing
containerise.shDevcontainer generator
packaging.shMulti-platform packaging
mcp-setup.shMCP server configuration

Shared Libraries

Located in scripts/lib/:

LibraryPurpose
colours.shANSI terminal colours
print.shFormatted output (headers, boxes, spinners)
config.shYAML config parsing
tui.shGum/fzf interactive prompts
validation.shInput validation
git/*.shGit utilities (dates, topology, worktrees, etc.)

🤝 Contributing

Contributions are welcome. Please read CONTRIBUTING.md first.

# Fork → Clone → Branch → Commit → PR
git checkout -b feature/amazing-feature
git commit -m "Add amazing feature"
git push origin feature/amazing-feature

🗺️ Roadmap

  • Unified dc CLI with command registry
  • Plugin system with GitHub install support
  • Multi-platform packaging (tarball, Homebrew, Snap, Deb, Nix, Docker)
  • MCP server configuration for AI assistants
  • Licence auditing with SPDX detection
  • Devcontainer generator
  • Zsh compatibility layer
  • Fish shell support
  • GUI wrapper (Bubble Tea / Tauri)
  • Remote plugin registry

See open issues for more.


📄 Licence

GPL-3.0. See LICENCE.

Git Tree Visualisation

Full SVG · Interactive version · View data

About

A collection of powerful CLI tools, scripts and templates for streamlined Git workflow, repository management, and shell productivity.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Dev-Control

GitHub repoGitHub releaseLicence

CI StatusIssuesPull RequestsStars

Last CommitShellStabilityMaintenance


Dev-Control is a modular Bash CLI that automates the repetitive parts of running many repositories: scaffolding repos to community standards, nested submodules, consolidated .tmp/.bak folders, rootless Podman devcontainers, VS Code MCP servers, signed GitHub releases (library tarballs, re-releases and automated version tagging) and multi-platform packages.

It aims to make awkward Git and CLI tasks — signing a worktree while preserving topology, or surgically dropping a commit — routine and reversible. Every command has a --dry-run mode. Issues and contributions are welcome.

# Install
git clone https://github.com/xaostech/dev-control.git &&cd dev-control && ./install.sh
# Use
dc init # Set up a repo with templates, licence, docs
dc repo # Create a GitHub repo from your local project
dc pr # Open a pull request in seconds
dc fix # Rewrite/sign/clean commit history safely
dc modules # Manage nested submodules automatically
dc licences # Audit licence compliance across repos
dc mcp # Configure AI coding assistants (MCP servers)
dc contain # Generate devcontainer.json for VS Code
dc package # Build tarballs, Homebrew, Snap, Deb, Nix, Docker
dca-alias # Sync (all) new alias and reload bashrc

📋 Table of Contents


💡 Why Dev-Control?

Managing modern software projects involves a lot of repetitive housekeeping:

  • Initialising repos with consistent templates, licences, and docs
  • Keeping submodules in sync across complex monorepos
  • Rewriting commit history to fix author dates or add GPG signatures
  • Auditing licence compliance when you have dozens of dependencies
  • Making devcontainers with the right mounts and settings and reusable category images
  • Packaging your tool for multiple platforms (Homebrew, Snap, Nix, Docker…)

Dev-Control bundles all of this into a single, modular CLI. Each command is designed to be:

PrincipleHow
SafeDry-run modes, automatic backup bundles, harness wrappers
FastBatch processing, parallel operations, minimal dependencies
ExtensiblePlugin system, YAML config, themeable TUI
PortablePure Bash 4+, no exotic runtime, runs anywhere Git runs

✨ Features at a Glance

CategoryWhat You Get
Repo SetupTemplate loading, licence selection, README/CONTRIBUTING/SECURITY scaffolding, GitHub Actions workflows
Git OpsHistory rewriting with GPG signing, date preservation, conflict auto-resolution, worktree sync
SubmodulesAuto-generated .gitmodules, temp-folder consolidation, symlink pruning
LicensingSPDX detection, compatibility checking, bulk apply, JSON export
DevExDevcontainer generation, MCP server setup (GitHub, StackOverflow, Firecrawl)
PackagingTarball + SHA256, Homebrew formula, Snap YAML, Debian .deb, Nix flake, Docker + ttyd web terminal
TUI ThemesMatrix, Hacker, Cyber aesthetics powered by Charmbracelet Gum

🚀 Quick Start

Prerequisites

  • Bash 4.0+ or Zsh
  • Git 2.0+
  • GitHub CLI (gh) for repo/PR commands
  • Optional: gum or fzf for interactive TUI; GPG for signing

Install

git clone https://github.com/xaostech/dev-control.git
cd dev-control
./install.sh # Adds `dc` to your PATH and installs aliasessource~/.bashrc # Or restart your shell

Verify

dc --version # Print the installed version
dc --help # List all commands

🔧 Core Commands

Run dc <command> --help for full options.

CommandPurpose
dc aliasInstall shell aliases for Git, Docker and system monitoring
dc initPopulate a repo with docs, licence, workflows and GitHub templates
dc repoCreate a GitHub repo from the local project
dc prOpen a pull request from the current branch
dc fixRewrite commits — edit messages, sign, fix dates, drop or combine
dc modulesAuto-generate .gitmodules; consolidate temp folders
dc licencesDetect, check compatibility and apply licences
dc mcpConfigure MCP servers for AI coding assistants
dc containGenerate a .devcontainer/ setup
dc packageBuild tarball, Homebrew, Snap, Deb, Nix and Docker packages
Command examples ›

dc aliases — Shell Alias Installer

Add productivity aliases for Git, Docker, system monitoring, and more.

dc alias# Interactive category selectionsource~/.bashrc

Example aliases

gpf # git push --force-with-lease
dca-alias # Apply and source all aliases
gcda # Stage, amend and push with preserved author date
gcda # Restore original author date

dc init — Repository Initialisation

Populate a repo with docs, licence, workflows, and GitHub templates.

dc init # Interactive mode
dc init --defaults # Skip repo owner/slug and bot credentials (envVars) prompts
dc init -f docs/SECURITY.md # Update a specific file
dc init --batch /projects/*# Initialise multiple repos

dc repo — Create GitHub Repository

Push your local project to a new GitHub repo in one step. Defaults to repo config generated by dc-init.

dc repo # Interactive prompts
dc repo --private --topics cli,bash

dc pr — Pull Request Creator

Open a PR from your current branch with auto-detected metadata.

dc pr # Interactive
dc pr --draft --label bug

dc fix — History Rewriting

Safely rewrite commits—edit messages, sign, fix dates, drop commits.

dc fix # Interactive (last 10 commits)
dc fix --sign --range HEAD=all # GPG-sign entire branch
dc fix --dry-run --range main..HEAD # Preview changes
dc fix --restore # Recover from backup bundle
dc fix --drop hash# Surgically drop commit by hash
dc fix --sign --atomic-preserve --auto-resolve --range HEAD=5 # Preserve merge topology and autoresolve merge conflicts

dc modules — Submodule Management

Auto-generate .gitmodules for nested repos; consolidate temp folders.

dc modules /path/to/monorepo
dc modules --aggressive --dry-run # Preview symlink + .gitignore changes

dc licences — Licence Auditor

Detect, check compatibility, and apply licences across repos.

dc licences # Scan current repo
dc licences --deep # Include submodules
dc licences --check GPL-3.0 # Verify compatibility
dc licences --apply MIT # Apply licence template

dc mcp — MCP Server Setup

Configure Model Context Protocol servers for AI coding assistants.

dc mcp # Interactive server selection
dc mcp --test # Verify GitHub MCP connection
dc mcp --create-pat # Interactive Github PAT creation
dc mcp --config # Only generate .vscode/mcp.json

dc container — Devcontainer Generator

Generate a complete .devcontainer/ setup for VS Code.

dc contain # Interactive
dc contain --image mcr.microsoft.com/devcontainers/base:ubuntu dc contain --base --dev-tools --defaults && \
cd subfolder && dc contain --img --dev-tools # Use the previous container image (tag=dev-tools) as a base
dc contain --nest <<<y# Discover, update and rebuild all containers recursively
dc contain --nest --regen # Agressively do same (remove config files and containers)
dc contain --nest --regen .# Include root in same
dc contain --nest --regen --dev-tools # Filter rebuild to one category; multiple categories supported (--web-dev --streaming)

Git identity (user.name / user.email) is sourced from ~/.config/dev-control/container.yaml if present, falling back to the host's global git config — so git config --global user.email on the host is both the simplest and most resilient setup, with the YAML file as an optional explicit override.

dc package — Multi-Platform Packaging

Build distribution packages with a single command.

dc package --init # Create .dc-package.yaml
dc package --all # Build everything
dc package --docker --theme cyber # Docker image with ttyd + theme

🔌 Plugin System

Extend Dev-Control with custom commands.

plugins/
└── my-plugin/
├── plugin.yaml # name, version, description, commands
└── commands/
└── greet.sh # becomes `dc greet`
dc plugin list # Show installed plugins
dc plugin install gh:user/repo # Install from GitHub
dc plugin remove my-plugin

⚙️ Configuration

Dev-Control uses a layered config system (highest priority first):

  1. Environment variables (DC_*)
  2. Project config (.dc-init.yaml in repo root)
  3. Global config (~/.config/dev-control/config.yaml)
  4. Built-in defaults

Example .dc-init.yaml:

project-name: my-projectdefault-licence: MITdefault-branch: mainauto-sign-commits: truegithub-org: my-org

See config/example.dc-init.yaml for all options.


📚 Documentation

DocumentDescription
Installation GuideDetailed install & upgrade instructions
ContributingHow to contribute
Code of ConductCommunity guidelines
Security PolicyReporting vulnerabilities
Testing GuideRunning and writing tests

Script Reference

ScriptPurpose
dev-control.shInteractive main menu
template-loading.shTemplate init logic
fix-history.shHistory rewriting engine
module-nesting.shSubmodule management
licences.shLicence auditing
containerise.shDevcontainer generator
packaging.shMulti-platform packaging
mcp-setup.shMCP server configuration

Shared Libraries

Located in scripts/lib/:

LibraryPurpose
colours.shANSI terminal colours
print.shFormatted output (headers, boxes, spinners)
config.shYAML config parsing
tui.shGum/fzf interactive prompts
validation.shInput validation
git/*.shGit utilities (dates, topology, worktrees, etc.)

🤝 Contributing

Contributions are welcome. Please read CONTRIBUTING.md first.

# Fork → Clone → Branch → Commit → PR
git checkout -b feature/amazing-feature
git commit -m "Add amazing feature"
git push origin feature/amazing-feature

🗺️ Roadmap

  • Unified dc CLI with command registry
  • Plugin system with GitHub install support
  • Multi-platform packaging (tarball, Homebrew, Snap, Deb, Nix, Docker)
  • MCP server configuration for AI assistants
  • Licence auditing with SPDX detection
  • Devcontainer generator
  • Zsh compatibility layer
  • Fish shell support
  • GUI wrapper (Bubble Tea / Tauri)
  • Remote plugin registry

See open issues for more.


📄 Licence

GPL-3.0. See LICENCE.

Git Tree Visualisation

Full SVG · Interactive version · View data

About

A collection of powerful CLI tools, scripts and templates for streamlined Git workflow, repository management, and shell productivity.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Dev-Control

GitHub repoGitHub releaseLicence

CI StatusIssuesPull RequestsStars

Last CommitShellStabilityMaintenance


Dev-Control is a modular Bash CLI that automates the repetitive parts of running many repositories: scaffolding repos to community standards, nested submodules, consolidated .tmp/.bak folders, rootless Podman devcontainers, VS Code MCP servers, signed GitHub releases (library tarballs, re-releases and automated version tagging) and multi-platform packages.

It aims to make awkward Git and CLI tasks — signing a worktree while preserving topology, or surgically dropping a commit — routine and reversible. Every command has a --dry-run mode. Issues and contributions are welcome.

# Install
git clone https://github.com/xaostech/dev-control.git &&cd dev-control && ./install.sh
# Use
dc init # Set up a repo with templates, licence, docs
dc repo # Create a GitHub repo from your local project
dc pr # Open a pull request in seconds
dc fix # Rewrite/sign/clean commit history safely
dc modules # Manage nested submodules automatically
dc licences # Audit licence compliance across repos
dc mcp # Configure AI coding assistants (MCP servers)
dc contain # Generate devcontainer.json for VS Code
dc package # Build tarballs, Homebrew, Snap, Deb, Nix, Docker
dca-alias # Sync (all) new alias and reload bashrc

📋 Table of Contents


💡 Why Dev-Control?

Managing modern software projects involves a lot of repetitive housekeeping:

  • Initialising repos with consistent templates, licences, and docs
  • Keeping submodules in sync across complex monorepos
  • Rewriting commit history to fix author dates or add GPG signatures
  • Auditing licence compliance when you have dozens of dependencies
  • Making devcontainers with the right mounts and settings and reusable category images
  • Packaging your tool for multiple platforms (Homebrew, Snap, Nix, Docker…)

Dev-Control bundles all of this into a single, modular CLI. Each command is designed to be:

PrincipleHow
SafeDry-run modes, automatic backup bundles, harness wrappers
FastBatch processing, parallel operations, minimal dependencies
ExtensiblePlugin system, YAML config, themeable TUI
PortablePure Bash 4+, no exotic runtime, runs anywhere Git runs

✨ Features at a Glance

CategoryWhat You Get
Repo SetupTemplate loading, licence selection, README/CONTRIBUTING/SECURITY scaffolding, GitHub Actions workflows
Git OpsHistory rewriting with GPG signing, date preservation, conflict auto-resolution, worktree sync
SubmodulesAuto-generated .gitmodules, temp-folder consolidation, symlink pruning
LicensingSPDX detection, compatibility checking, bulk apply, JSON export
DevExDevcontainer generation, MCP server setup (GitHub, StackOverflow, Firecrawl)
PackagingTarball + SHA256, Homebrew formula, Snap YAML, Debian .deb, Nix flake, Docker + ttyd web terminal
TUI ThemesMatrix, Hacker, Cyber aesthetics powered by Charmbracelet Gum

🚀 Quick Start

Prerequisites

  • Bash 4.0+ or Zsh
  • Git 2.0+
  • GitHub CLI (gh) for repo/PR commands
  • Optional: gum or fzf for interactive TUI; GPG for signing

Install

git clone https://github.com/xaostech/dev-control.git
cd dev-control
./install.sh # Adds `dc` to your PATH and installs aliasessource~/.bashrc # Or restart your shell

Verify

dc --version # Print the installed version
dc --help # List all commands

🔧 Core Commands

Run dc <command> --help for full options.

CommandPurpose
dc aliasInstall shell aliases for Git, Docker and system monitoring
dc initPopulate a repo with docs, licence, workflows and GitHub templates
dc repoCreate a GitHub repo from the local project
dc prOpen a pull request from the current branch
dc fixRewrite commits — edit messages, sign, fix dates, drop or combine
dc modulesAuto-generate .gitmodules; consolidate temp folders
dc licencesDetect, check compatibility and apply licences
dc mcpConfigure MCP servers for AI coding assistants
dc containGenerate a .devcontainer/ setup
dc packageBuild tarball, Homebrew, Snap, Deb, Nix and Docker packages
Command examples ›

dc aliases — Shell Alias Installer

Add productivity aliases for Git, Docker, system monitoring, and more.

dc alias# Interactive category selectionsource~/.bashrc

Example aliases

gpf # git push --force-with-lease
dca-alias # Apply and source all aliases
gcda # Stage, amend and push with preserved author date
gcda # Restore original author date

dc init — Repository Initialisation

Populate a repo with docs, licence, workflows, and GitHub templates.

dc init # Interactive mode
dc init --defaults # Skip repo owner/slug and bot credentials (envVars) prompts
dc init -f docs/SECURITY.md # Update a specific file
dc init --batch /projects/*# Initialise multiple repos

dc repo — Create GitHub Repository

Push your local project to a new GitHub repo in one step. Defaults to repo config generated by dc-init.

dc repo # Interactive prompts
dc repo --private --topics cli,bash

dc pr — Pull Request Creator

Open a PR from your current branch with auto-detected metadata.

dc pr # Interactive
dc pr --draft --label bug

dc fix — History Rewriting

Safely rewrite commits—edit messages, sign, fix dates, drop commits.

dc fix # Interactive (last 10 commits)
dc fix --sign --range HEAD=all # GPG-sign entire branch
dc fix --dry-run --range main..HEAD # Preview changes
dc fix --restore # Recover from backup bundle
dc fix --drop hash# Surgically drop commit by hash
dc fix --sign --atomic-preserve --auto-resolve --range HEAD=5 # Preserve merge topology and autoresolve merge conflicts

dc modules — Submodule Management

Auto-generate .gitmodules for nested repos; consolidate temp folders.

dc modules /path/to/monorepo
dc modules --aggressive --dry-run # Preview symlink + .gitignore changes

dc licences — Licence Auditor

Detect, check compatibility, and apply licences across repos.

dc licences # Scan current repo
dc licences --deep # Include submodules
dc licences --check GPL-3.0 # Verify compatibility
dc licences --apply MIT # Apply licence template

dc mcp — MCP Server Setup

Configure Model Context Protocol servers for AI coding assistants.

dc mcp # Interactive server selection
dc mcp --test # Verify GitHub MCP connection
dc mcp --create-pat # Interactive Github PAT creation
dc mcp --config # Only generate .vscode/mcp.json

dc container — Devcontainer Generator

Generate a complete .devcontainer/ setup for VS Code.

dc contain # Interactive
dc contain --image mcr.microsoft.com/devcontainers/base:ubuntu dc contain --base --dev-tools --defaults && \
cd subfolder && dc contain --img --dev-tools # Use the previous container image (tag=dev-tools) as a base
dc contain --nest <<<y# Discover, update and rebuild all containers recursively
dc contain --nest --regen # Agressively do same (remove config files and containers)
dc contain --nest --regen .# Include root in same
dc contain --nest --regen --dev-tools # Filter rebuild to one category; multiple categories supported (--web-dev --streaming)

Git identity (user.name / user.email) is sourced from ~/.config/dev-control/container.yaml if present, falling back to the host's global git config — so git config --global user.email on the host is both the simplest and most resilient setup, with the YAML file as an optional explicit override.

dc package — Multi-Platform Packaging

Build distribution packages with a single command.

dc package --init # Create .dc-package.yaml
dc package --all # Build everything
dc package --docker --theme cyber # Docker image with ttyd + theme

🔌 Plugin System

Extend Dev-Control with custom commands.

plugins/
└── my-plugin/
├── plugin.yaml # name, version, description, commands
└── commands/
└── greet.sh # becomes `dc greet`
dc plugin list # Show installed plugins
dc plugin install gh:user/repo # Install from GitHub
dc plugin remove my-plugin

⚙️ Configuration

Dev-Control uses a layered config system (highest priority first):

  1. Environment variables (DC_*)
  2. Project config (.dc-init.yaml in repo root)
  3. Global config (~/.config/dev-control/config.yaml)
  4. Built-in defaults

Example .dc-init.yaml:

project-name: my-projectdefault-licence: MITdefault-branch: mainauto-sign-commits: truegithub-org: my-org

See config/example.dc-init.yaml for all options.


📚 Documentation

DocumentDescription
Installation GuideDetailed install & upgrade instructions
ContributingHow to contribute
Code of ConductCommunity guidelines
Security PolicyReporting vulnerabilities
Testing GuideRunning and writing tests

Script Reference

ScriptPurpose
dev-control.shInteractive main menu
template-loading.shTemplate init logic
fix-history.shHistory rewriting engine
module-nesting.shSubmodule management
licences.shLicence auditing
containerise.shDevcontainer generator
packaging.shMulti-platform packaging
mcp-setup.shMCP server configuration

Shared Libraries

Located in scripts/lib/:

LibraryPurpose
colours.shANSI terminal colours
print.shFormatted output (headers, boxes, spinners)
config.shYAML config parsing
tui.shGum/fzf interactive prompts
validation.shInput validation
git/*.shGit utilities (dates, topology, worktrees, etc.)

🤝 Contributing

Contributions are welcome. Please read CONTRIBUTING.md first.

# Fork → Clone → Branch → Commit → PR
git checkout -b feature/amazing-feature
git commit -m "Add amazing feature"
git push origin feature/amazing-feature

🗺️ Roadmap

  • Unified dc CLI with command registry
  • Plugin system with GitHub install support
  • Multi-platform packaging (tarball, Homebrew, Snap, Deb, Nix, Docker)
  • MCP server configuration for AI assistants
  • Licence auditing with SPDX detection
  • Devcontainer generator
  • Zsh compatibility layer
  • Fish shell support
  • GUI wrapper (Bubble Tea / Tauri)
  • Remote plugin registry

See open issues for more.


📄 Licence

GPL-3.0. See LICENCE.

Git Tree Visualisation

Full SVG · Interactive version · View data

About

A collection of powerful CLI tools, scripts and templates for streamlined Git workflow, repository management, and shell productivity.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Dev-Control

GitHub repoGitHub releaseLicence

CI StatusIssuesPull RequestsStars

Last CommitShellStabilityMaintenance


Dev-Control is a modular Bash CLI that automates the repetitive parts of running many repositories: scaffolding repos to community standards, nested submodules, consolidated .tmp/.bak folders, rootless Podman devcontainers, VS Code MCP servers, signed GitHub releases (library tarballs, re-releases and automated version tagging) and multi-platform packages.

It aims to make awkward Git and CLI tasks — signing a worktree while preserving topology, or surgically dropping a commit — routine and reversible. Every command has a --dry-run mode. Issues and contributions are welcome.

# Install
git clone https://github.com/xaostech/dev-control.git &&cd dev-control && ./install.sh
# Use
dc init # Set up a repo with templates, licence, docs
dc repo # Create a GitHub repo from your local project
dc pr # Open a pull request in seconds
dc fix # Rewrite/sign/clean commit history safely
dc modules # Manage nested submodules automatically
dc licences # Audit licence compliance across repos
dc mcp # Configure AI coding assistants (MCP servers)
dc contain # Generate devcontainer.json for VS Code
dc package # Build tarballs, Homebrew, Snap, Deb, Nix, Docker
dca-alias # Sync (all) new alias and reload bashrc

📋 Table of Contents


💡 Why Dev-Control?

Managing modern software projects involves a lot of repetitive housekeeping:

  • Initialising repos with consistent templates, licences, and docs
  • Keeping submodules in sync across complex monorepos
  • Rewriting commit history to fix author dates or add GPG signatures
  • Auditing licence compliance when you have dozens of dependencies
  • Making devcontainers with the right mounts and settings and reusable category images
  • Packaging your tool for multiple platforms (Homebrew, Snap, Nix, Docker…)

Dev-Control bundles all of this into a single, modular CLI. Each command is designed to be:

PrincipleHow
SafeDry-run modes, automatic backup bundles, harness wrappers
FastBatch processing, parallel operations, minimal dependencies
ExtensiblePlugin system, YAML config, themeable TUI
PortablePure Bash 4+, no exotic runtime, runs anywhere Git runs

✨ Features at a Glance

CategoryWhat You Get
Repo SetupTemplate loading, licence selection, README/CONTRIBUTING/SECURITY scaffolding, GitHub Actions workflows
Git OpsHistory rewriting with GPG signing, date preservation, conflict auto-resolution, worktree sync
SubmodulesAuto-generated .gitmodules, temp-folder consolidation, symlink pruning
LicensingSPDX detection, compatibility checking, bulk apply, JSON export
DevExDevcontainer generation, MCP server setup (GitHub, StackOverflow, Firecrawl)
PackagingTarball + SHA256, Homebrew formula, Snap YAML, Debian .deb, Nix flake, Docker + ttyd web terminal
TUI ThemesMatrix, Hacker, Cyber aesthetics powered by Charmbracelet Gum

🚀 Quick Start

Prerequisites

  • Bash 4.0+ or Zsh
  • Git 2.0+
  • GitHub CLI (gh) for repo/PR commands
  • Optional: gum or fzf for interactive TUI; GPG for signing

Install

git clone https://github.com/xaostech/dev-control.git
cd dev-control
./install.sh # Adds `dc` to your PATH and installs aliasessource~/.bashrc # Or restart your shell

Verify

dc --version # Print the installed version
dc --help # List all commands

🔧 Core Commands

Run dc <command> --help for full options.

CommandPurpose
dc aliasInstall shell aliases for Git, Docker and system monitoring
dc initPopulate a repo with docs, licence, workflows and GitHub templates
dc repoCreate a GitHub repo from the local project
dc prOpen a pull request from the current branch
dc fixRewrite commits — edit messages, sign, fix dates, drop or combine
dc modulesAuto-generate .gitmodules; consolidate temp folders
dc licencesDetect, check compatibility and apply licences
dc mcpConfigure MCP servers for AI coding assistants
dc containGenerate a .devcontainer/ setup
dc packageBuild tarball, Homebrew, Snap, Deb, Nix and Docker packages
Command examples ›

dc aliases — Shell Alias Installer

Add productivity aliases for Git, Docker, system monitoring, and more.

dc alias# Interactive category selectionsource~/.bashrc

Example aliases

gpf # git push --force-with-lease
dca-alias # Apply and source all aliases
gcda # Stage, amend and push with preserved author date
gcda # Restore original author date

dc init — Repository Initialisation

Populate a repo with docs, licence, workflows, and GitHub templates.

dc init # Interactive mode
dc init --defaults # Skip repo owner/slug and bot credentials (envVars) prompts
dc init -f docs/SECURITY.md # Update a specific file
dc init --batch /projects/*# Initialise multiple repos

dc repo — Create GitHub Repository

Push your local project to a new GitHub repo in one step. Defaults to repo config generated by dc-init.

dc repo # Interactive prompts
dc repo --private --topics cli,bash

dc pr — Pull Request Creator

Open a PR from your current branch with auto-detected metadata.

dc pr # Interactive
dc pr --draft --label bug

dc fix — History Rewriting

Safely rewrite commits—edit messages, sign, fix dates, drop commits.

dc fix # Interactive (last 10 commits)
dc fix --sign --range HEAD=all # GPG-sign entire branch
dc fix --dry-run --range main..HEAD # Preview changes
dc fix --restore # Recover from backup bundle
dc fix --drop hash# Surgically drop commit by hash
dc fix --sign --atomic-preserve --auto-resolve --range HEAD=5 # Preserve merge topology and autoresolve merge conflicts

dc modules — Submodule Management

Auto-generate .gitmodules for nested repos; consolidate temp folders.

dc modules /path/to/monorepo
dc modules --aggressive --dry-run # Preview symlink + .gitignore changes

dc licences — Licence Auditor

Detect, check compatibility, and apply licences across repos.

dc licences # Scan current repo
dc licences --deep # Include submodules
dc licences --check GPL-3.0 # Verify compatibility
dc licences --apply MIT # Apply licence template

dc mcp — MCP Server Setup

Configure Model Context Protocol servers for AI coding assistants.

dc mcp # Interactive server selection
dc mcp --test # Verify GitHub MCP connection
dc mcp --create-pat # Interactive Github PAT creation
dc mcp --config # Only generate .vscode/mcp.json

dc container — Devcontainer Generator

Generate a complete .devcontainer/ setup for VS Code.

dc contain # Interactive
dc contain --image mcr.microsoft.com/devcontainers/base:ubuntu dc contain --base --dev-tools --defaults && \
cd subfolder && dc contain --img --dev-tools # Use the previous container image (tag=dev-tools) as a base
dc contain --nest <<<y# Discover, update and rebuild all containers recursively
dc contain --nest --regen # Agressively do same (remove config files and containers)
dc contain --nest --regen .# Include root in same
dc contain --nest --regen --dev-tools # Filter rebuild to one category; multiple categories supported (--web-dev --streaming)

Git identity (user.name / user.email) is sourced from ~/.config/dev-control/container.yaml if present, falling back to the host's global git config — so git config --global user.email on the host is both the simplest and most resilient setup, with the YAML file as an optional explicit override.

dc package — Multi-Platform Packaging

Build distribution packages with a single command.

dc package --init # Create .dc-package.yaml
dc package --all # Build everything
dc package --docker --theme cyber # Docker image with ttyd + theme

🔌 Plugin System

Extend Dev-Control with custom commands.

plugins/
└── my-plugin/
├── plugin.yaml # name, version, description, commands
└── commands/
└── greet.sh # becomes `dc greet`
dc plugin list # Show installed plugins
dc plugin install gh:user/repo # Install from GitHub
dc plugin remove my-plugin

⚙️ Configuration

Dev-Control uses a layered config system (highest priority first):

  1. Environment variables (DC_*)
  2. Project config (.dc-init.yaml in repo root)
  3. Global config (~/.config/dev-control/config.yaml)
  4. Built-in defaults

Example .dc-init.yaml:

project-name: my-projectdefault-licence: MITdefault-branch: mainauto-sign-commits: truegithub-org: my-org

See config/example.dc-init.yaml for all options.


📚 Documentation

DocumentDescription
Installation GuideDetailed install & upgrade instructions
ContributingHow to contribute
Code of ConductCommunity guidelines
Security PolicyReporting vulnerabilities
Testing GuideRunning and writing tests

Script Reference

ScriptPurpose
dev-control.shInteractive main menu
template-loading.shTemplate init logic
fix-history.shHistory rewriting engine
module-nesting.shSubmodule management
licences.shLicence auditing
containerise.shDevcontainer generator
packaging.shMulti-platform packaging
mcp-setup.shMCP server configuration

Shared Libraries

Located in scripts/lib/:

LibraryPurpose
colours.shANSI terminal colours
print.shFormatted output (headers, boxes, spinners)
config.shYAML config parsing
tui.shGum/fzf interactive prompts
validation.shInput validation
git/*.shGit utilities (dates, topology, worktrees, etc.)

🤝 Contributing

Contributions are welcome. Please read CONTRIBUTING.md first.

# Fork → Clone → Branch → Commit → PR
git checkout -b feature/amazing-feature
git commit -m "Add amazing feature"
git push origin feature/amazing-feature

🗺️ Roadmap

  • Unified dc CLI with command registry
  • Plugin system with GitHub install support
  • Multi-platform packaging (tarball, Homebrew, Snap, Deb, Nix, Docker)
  • MCP server configuration for AI assistants
  • Licence auditing with SPDX detection
  • Devcontainer generator
  • Zsh compatibility layer
  • Fish shell support
  • GUI wrapper (Bubble Tea / Tauri)
  • Remote plugin registry

See open issues for more.


📄 Licence

GPL-3.0. See LICENCE.

Git Tree Visualisation

Full SVG · Interactive version · View data

About

A collection of powerful CLI tools, scripts and templates for streamlined Git workflow, repository management, and shell productivity.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Dev-Control

GitHub repoGitHub releaseLicence

CI StatusIssuesPull RequestsStars

Last CommitShellStabilityMaintenance


Dev-Control is a modular Bash CLI that automates the repetitive parts of running many repositories: scaffolding repos to community standards, nested submodules, consolidated .tmp/.bak folders, rootless Podman devcontainers, VS Code MCP servers, signed GitHub releases (library tarballs, re-releases and automated version tagging) and multi-platform packages.

It aims to make awkward Git and CLI tasks — signing a worktree while preserving topology, or surgically dropping a commit — routine and reversible. Every command has a --dry-run mode. Issues and contributions are welcome.

# Install
git clone https://github.com/xaostech/dev-control.git &&cd dev-control && ./install.sh
# Use
dc init # Set up a repo with templates, licence, docs
dc repo # Create a GitHub repo from your local project
dc pr # Open a pull request in seconds
dc fix # Rewrite/sign/clean commit history safely
dc modules # Manage nested submodules automatically
dc licences # Audit licence compliance across repos
dc mcp # Configure AI coding assistants (MCP servers)
dc contain # Generate devcontainer.json for VS Code
dc package # Build tarballs, Homebrew, Snap, Deb, Nix, Docker
dca-alias # Sync (all) new alias and reload bashrc

📋 Table of Contents


💡 Why Dev-Control?

Managing modern software projects involves a lot of repetitive housekeeping:

  • Initialising repos with consistent templates, licences, and docs
  • Keeping submodules in sync across complex monorepos
  • Rewriting commit history to fix author dates or add GPG signatures
  • Auditing licence compliance when you have dozens of dependencies
  • Making devcontainers with the right mounts and settings and reusable category images
  • Packaging your tool for multiple platforms (Homebrew, Snap, Nix, Docker…)

Dev-Control bundles all of this into a single, modular CLI. Each command is designed to be:

PrincipleHow
SafeDry-run modes, automatic backup bundles, harness wrappers
FastBatch processing, parallel operations, minimal dependencies
ExtensiblePlugin system, YAML config, themeable TUI
PortablePure Bash 4+, no exotic runtime, runs anywhere Git runs

✨ Features at a Glance

CategoryWhat You Get
Repo SetupTemplate loading, licence selection, README/CONTRIBUTING/SECURITY scaffolding, GitHub Actions workflows
Git OpsHistory rewriting with GPG signing, date preservation, conflict auto-resolution, worktree sync
SubmodulesAuto-generated .gitmodules, temp-folder consolidation, symlink pruning
LicensingSPDX detection, compatibility checking, bulk apply, JSON export
DevExDevcontainer generation, MCP server setup (GitHub, StackOverflow, Firecrawl)
PackagingTarball + SHA256, Homebrew formula, Snap YAML, Debian .deb, Nix flake, Docker + ttyd web terminal
TUI ThemesMatrix, Hacker, Cyber aesthetics powered by Charmbracelet Gum

🚀 Quick Start

Prerequisites

  • Bash 4.0+ or Zsh
  • Git 2.0+
  • GitHub CLI (gh) for repo/PR commands
  • Optional: gum or fzf for interactive TUI; GPG for signing

Install

git clone https://github.com/xaostech/dev-control.git
cd dev-control
./install.sh # Adds `dc` to your PATH and installs aliasessource~/.bashrc # Or restart your shell

Verify

dc --version # Print the installed version
dc --help # List all commands

🔧 Core Commands

Run dc <command> --help for full options.

CommandPurpose
dc aliasInstall shell aliases for Git, Docker and system monitoring
dc initPopulate a repo with docs, licence, workflows and GitHub templates
dc repoCreate a GitHub repo from the local project
dc prOpen a pull request from the current branch
dc fixRewrite commits — edit messages, sign, fix dates, drop or combine
dc modulesAuto-generate .gitmodules; consolidate temp folders
dc licencesDetect, check compatibility and apply licences
dc mcpConfigure MCP servers for AI coding assistants
dc containGenerate a .devcontainer/ setup
dc packageBuild tarball, Homebrew, Snap, Deb, Nix and Docker packages
Command examples ›

dc aliases — Shell Alias Installer

Add productivity aliases for Git, Docker, system monitoring, and more.

dc alias# Interactive category selectionsource~/.bashrc

Example aliases

gpf # git push --force-with-lease
dca-alias # Apply and source all aliases
gcda # Stage, amend and push with preserved author date
gcda # Restore original author date

dc init — Repository Initialisation

Populate a repo with docs, licence, workflows, and GitHub templates.

dc init # Interactive mode
dc init --defaults # Skip repo owner/slug and bot credentials (envVars) prompts
dc init -f docs/SECURITY.md # Update a specific file
dc init --batch /projects/*# Initialise multiple repos

dc repo — Create GitHub Repository

Push your local project to a new GitHub repo in one step. Defaults to repo config generated by dc-init.

dc repo # Interactive prompts
dc repo --private --topics cli,bash

dc pr — Pull Request Creator

Open a PR from your current branch with auto-detected metadata.

dc pr # Interactive
dc pr --draft --label bug

dc fix — History Rewriting

Safely rewrite commits—edit messages, sign, fix dates, drop commits.

dc fix # Interactive (last 10 commits)
dc fix --sign --range HEAD=all # GPG-sign entire branch
dc fix --dry-run --range main..HEAD # Preview changes
dc fix --restore # Recover from backup bundle
dc fix --drop hash# Surgically drop commit by hash
dc fix --sign --atomic-preserve --auto-resolve --range HEAD=5 # Preserve merge topology and autoresolve merge conflicts

dc modules — Submodule Management

Auto-generate .gitmodules for nested repos; consolidate temp folders.

dc modules /path/to/monorepo
dc modules --aggressive --dry-run # Preview symlink + .gitignore changes

dc licences — Licence Auditor

Detect, check compatibility, and apply licences across repos.

dc licences # Scan current repo
dc licences --deep # Include submodules
dc licences --check GPL-3.0 # Verify compatibility
dc licences --apply MIT # Apply licence template

dc mcp — MCP Server Setup

Configure Model Context Protocol servers for AI coding assistants.

dc mcp # Interactive server selection
dc mcp --test # Verify GitHub MCP connection
dc mcp --create-pat # Interactive Github PAT creation
dc mcp --config # Only generate .vscode/mcp.json

dc container — Devcontainer Generator

Generate a complete .devcontainer/ setup for VS Code.

dc contain # Interactive
dc contain --image mcr.microsoft.com/devcontainers/base:ubuntu dc contain --base --dev-tools --defaults && \
cd subfolder && dc contain --img --dev-tools # Use the previous container image (tag=dev-tools) as a base
dc contain --nest <<<y# Discover, update and rebuild all containers recursively
dc contain --nest --regen # Agressively do same (remove config files and containers)
dc contain --nest --regen .# Include root in same
dc contain --nest --regen --dev-tools # Filter rebuild to one category; multiple categories supported (--web-dev --streaming)

Git identity (user.name / user.email) is sourced from ~/.config/dev-control/container.yaml if present, falling back to the host's global git config — so git config --global user.email on the host is both the simplest and most resilient setup, with the YAML file as an optional explicit override.

dc package — Multi-Platform Packaging

Build distribution packages with a single command.

dc package --init # Create .dc-package.yaml
dc package --all # Build everything
dc package --docker --theme cyber # Docker image with ttyd + theme

🔌 Plugin System

Extend Dev-Control with custom commands.

plugins/
└── my-plugin/
├── plugin.yaml # name, version, description, commands
└── commands/
└── greet.sh # becomes `dc greet`
dc plugin list # Show installed plugins
dc plugin install gh:user/repo # Install from GitHub
dc plugin remove my-plugin

⚙️ Configuration

Dev-Control uses a layered config system (highest priority first):

  1. Environment variables (DC_*)
  2. Project config (.dc-init.yaml in repo root)
  3. Global config (~/.config/dev-control/config.yaml)
  4. Built-in defaults

Example .dc-init.yaml:

project-name: my-projectdefault-licence: MITdefault-branch: mainauto-sign-commits: truegithub-org: my-org

See config/example.dc-init.yaml for all options.


📚 Documentation

DocumentDescription
Installation GuideDetailed install & upgrade instructions
ContributingHow to contribute
Code of ConductCommunity guidelines
Security PolicyReporting vulnerabilities
Testing GuideRunning and writing tests

Script Reference

ScriptPurpose
dev-control.shInteractive main menu
template-loading.shTemplate init logic
fix-history.shHistory rewriting engine
module-nesting.shSubmodule management
licences.shLicence auditing
containerise.shDevcontainer generator
packaging.shMulti-platform packaging
mcp-setup.shMCP server configuration

Shared Libraries

Located in scripts/lib/:

LibraryPurpose
colours.shANSI terminal colours
print.shFormatted output (headers, boxes, spinners)
config.shYAML config parsing
tui.shGum/fzf interactive prompts
validation.shInput validation
git/*.shGit utilities (dates, topology, worktrees, etc.)

🤝 Contributing

Contributions are welcome. Please read CONTRIBUTING.md first.

# Fork → Clone → Branch → Commit → PR
git checkout -b feature/amazing-feature
git commit -m "Add amazing feature"
git push origin feature/amazing-feature

🗺️ Roadmap

  • Unified dc CLI with command registry
  • Plugin system with GitHub install support
  • Multi-platform packaging (tarball, Homebrew, Snap, Deb, Nix, Docker)
  • MCP server configuration for AI assistants
  • Licence auditing with SPDX detection
  • Devcontainer generator
  • Zsh compatibility layer
  • Fish shell support
  • GUI wrapper (Bubble Tea / Tauri)
  • Remote plugin registry

See open issues for more.


📄 Licence

GPL-3.0. See LICENCE.

Git Tree Visualisation

Full SVG · Interactive version · View data

About

A collection of powerful CLI tools, scripts and templates for streamlined Git workflow, repository management, and shell productivity.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Dev-Control

GitHub repoGitHub releaseLicence

CI StatusIssuesPull RequestsStars

Last CommitShellStabilityMaintenance


Dev-Control is a modular Bash CLI that automates the repetitive parts of running many repositories: scaffolding repos to community standards, nested submodules, consolidated .tmp/.bak folders, rootless Podman devcontainers, VS Code MCP servers, signed GitHub releases (library tarballs, re-releases and automated version tagging) and multi-platform packages.

It aims to make awkward Git and CLI tasks — signing a worktree while preserving topology, or surgically dropping a commit — routine and reversible. Every command has a --dry-run mode. Issues and contributions are welcome.

# Install
git clone https://github.com/xaostech/dev-control.git &&cd dev-control && ./install.sh
# Use
dc init # Set up a repo with templates, licence, docs
dc repo # Create a GitHub repo from your local project
dc pr # Open a pull request in seconds
dc fix # Rewrite/sign/clean commit history safely
dc modules # Manage nested submodules automatically
dc licences # Audit licence compliance across repos
dc mcp # Configure AI coding assistants (MCP servers)
dc contain # Generate devcontainer.json for VS Code
dc package # Build tarballs, Homebrew, Snap, Deb, Nix, Docker
dca-alias # Sync (all) new alias and reload bashrc

📋 Table of Contents


💡 Why Dev-Control?

Managing modern software projects involves a lot of repetitive housekeeping:

  • Initialising repos with consistent templates, licences, and docs
  • Keeping submodules in sync across complex monorepos
  • Rewriting commit history to fix author dates or add GPG signatures
  • Auditing licence compliance when you have dozens of dependencies
  • Making devcontainers with the right mounts and settings and reusable category images
  • Packaging your tool for multiple platforms (Homebrew, Snap, Nix, Docker…)

Dev-Control bundles all of this into a single, modular CLI. Each command is designed to be:

PrincipleHow
SafeDry-run modes, automatic backup bundles, harness wrappers
FastBatch processing, parallel operations, minimal dependencies
ExtensiblePlugin system, YAML config, themeable TUI
PortablePure Bash 4+, no exotic runtime, runs anywhere Git runs

✨ Features at a Glance

CategoryWhat You Get
Repo SetupTemplate loading, licence selection, README/CONTRIBUTING/SECURITY scaffolding, GitHub Actions workflows
Git OpsHistory rewriting with GPG signing, date preservation, conflict auto-resolution, worktree sync
SubmodulesAuto-generated .gitmodules, temp-folder consolidation, symlink pruning
LicensingSPDX detection, compatibility checking, bulk apply, JSON export
DevExDevcontainer generation, MCP server setup (GitHub, StackOverflow, Firecrawl)
PackagingTarball + SHA256, Homebrew formula, Snap YAML, Debian .deb, Nix flake, Docker + ttyd web terminal
TUI ThemesMatrix, Hacker, Cyber aesthetics powered by Charmbracelet Gum

🚀 Quick Start

Prerequisites

  • Bash 4.0+ or Zsh
  • Git 2.0+
  • GitHub CLI (gh) for repo/PR commands
  • Optional: gum or fzf for interactive TUI; GPG for signing

Install

git clone https://github.com/xaostech/dev-control.git
cd dev-control
./install.sh # Adds `dc` to your PATH and installs aliasessource~/.bashrc # Or restart your shell

Verify

dc --version # Print the installed version
dc --help # List all commands

🔧 Core Commands

Run dc <command> --help for full options.

CommandPurpose
dc aliasInstall shell aliases for Git, Docker and system monitoring
dc initPopulate a repo with docs, licence, workflows and GitHub templates
dc repoCreate a GitHub repo from the local project
dc prOpen a pull request from the current branch
dc fixRewrite commits — edit messages, sign, fix dates, drop or combine
dc modulesAuto-generate .gitmodules; consolidate temp folders
dc licencesDetect, check compatibility and apply licences
dc mcpConfigure MCP servers for AI coding assistants
dc containGenerate a .devcontainer/ setup
dc packageBuild tarball, Homebrew, Snap, Deb, Nix and Docker packages
Command examples ›

dc aliases — Shell Alias Installer

Add productivity aliases for Git, Docker, system monitoring, and more.

dc alias# Interactive category selectionsource~/.bashrc

Example aliases

gpf # git push --force-with-lease
dca-alias # Apply and source all aliases
gcda # Stage, amend and push with preserved author date
gcda # Restore original author date

dc init — Repository Initialisation

Populate a repo with docs, licence, workflows, and GitHub templates.

dc init # Interactive mode
dc init --defaults # Skip repo owner/slug and bot credentials (envVars) prompts
dc init -f docs/SECURITY.md # Update a specific file
dc init --batch /projects/*# Initialise multiple repos

dc repo — Create GitHub Repository

Push your local project to a new GitHub repo in one step. Defaults to repo config generated by dc-init.

dc repo # Interactive prompts
dc repo --private --topics cli,bash

dc pr — Pull Request Creator

Open a PR from your current branch with auto-detected metadata.

dc pr # Interactive
dc pr --draft --label bug

dc fix — History Rewriting

Safely rewrite commits—edit messages, sign, fix dates, drop commits.

dc fix # Interactive (last 10 commits)
dc fix --sign --range HEAD=all # GPG-sign entire branch
dc fix --dry-run --range main..HEAD # Preview changes
dc fix --restore # Recover from backup bundle
dc fix --drop hash# Surgically drop commit by hash
dc fix --sign --atomic-preserve --auto-resolve --range HEAD=5 # Preserve merge topology and autoresolve merge conflicts

dc modules — Submodule Management

Auto-generate .gitmodules for nested repos; consolidate temp folders.

dc modules /path/to/monorepo
dc modules --aggressive --dry-run # Preview symlink + .gitignore changes

dc licences — Licence Auditor

Detect, check compatibility, and apply licences across repos.

dc licences # Scan current repo
dc licences --deep # Include submodules
dc licences --check GPL-3.0 # Verify compatibility
dc licences --apply MIT # Apply licence template

dc mcp — MCP Server Setup

Configure Model Context Protocol servers for AI coding assistants.

dc mcp # Interactive server selection
dc mcp --test # Verify GitHub MCP connection
dc mcp --create-pat # Interactive Github PAT creation
dc mcp --config # Only generate .vscode/mcp.json

dc container — Devcontainer Generator

Generate a complete .devcontainer/ setup for VS Code.

dc contain # Interactive
dc contain --image mcr.microsoft.com/devcontainers/base:ubuntu dc contain --base --dev-tools --defaults && \
cd subfolder && dc contain --img --dev-tools # Use the previous container image (tag=dev-tools) as a base
dc contain --nest <<<y# Discover, update and rebuild all containers recursively
dc contain --nest --regen # Agressively do same (remove config files and containers)
dc contain --nest --regen .# Include root in same
dc contain --nest --regen --dev-tools # Filter rebuild to one category; multiple categories supported (--web-dev --streaming)

Git identity (user.name / user.email) is sourced from ~/.config/dev-control/container.yaml if present, falling back to the host's global git config — so git config --global user.email on the host is both the simplest and most resilient setup, with the YAML file as an optional explicit override.

dc package — Multi-Platform Packaging

Build distribution packages with a single command.

dc package --init # Create .dc-package.yaml
dc package --all # Build everything
dc package --docker --theme cyber # Docker image with ttyd + theme

🔌 Plugin System

Extend Dev-Control with custom commands.

plugins/
└── my-plugin/
├── plugin.yaml # name, version, description, commands
└── commands/
└── greet.sh # becomes `dc greet`
dc plugin list # Show installed plugins
dc plugin install gh:user/repo # Install from GitHub
dc plugin remove my-plugin

⚙️ Configuration

Dev-Control uses a layered config system (highest priority first):

  1. Environment variables (DC_*)
  2. Project config (.dc-init.yaml in repo root)
  3. Global config (~/.config/dev-control/config.yaml)
  4. Built-in defaults

Example .dc-init.yaml:

project-name: my-projectdefault-licence: MITdefault-branch: mainauto-sign-commits: truegithub-org: my-org

See config/example.dc-init.yaml for all options.


📚 Documentation

DocumentDescription
Installation GuideDetailed install & upgrade instructions
ContributingHow to contribute
Code of ConductCommunity guidelines
Security PolicyReporting vulnerabilities
Testing GuideRunning and writing tests

Script Reference

ScriptPurpose
dev-control.shInteractive main menu
template-loading.shTemplate init logic
fix-history.shHistory rewriting engine
module-nesting.shSubmodule management
licences.shLicence auditing
containerise.shDevcontainer generator
packaging.shMulti-platform packaging
mcp-setup.shMCP server configuration

Shared Libraries

Located in scripts/lib/:

LibraryPurpose
colours.shANSI terminal colours
print.shFormatted output (headers, boxes, spinners)
config.shYAML config parsing
tui.shGum/fzf interactive prompts
validation.shInput validation
git/*.shGit utilities (dates, topology, worktrees, etc.)

🤝 Contributing

Contributions are welcome. Please read CONTRIBUTING.md first.

# Fork → Clone → Branch → Commit → PR
git checkout -b feature/amazing-feature
git commit -m "Add amazing feature"
git push origin feature/amazing-feature

🗺️ Roadmap

  • Unified dc CLI with command registry
  • Plugin system with GitHub install support
  • Multi-platform packaging (tarball, Homebrew, Snap, Deb, Nix, Docker)
  • MCP server configuration for AI assistants
  • Licence auditing with SPDX detection
  • Devcontainer generator
  • Zsh compatibility layer
  • Fish shell support
  • GUI wrapper (Bubble Tea / Tauri)
  • Remote plugin registry

See open issues for more.


📄 Licence

GPL-3.0. See LICENCE.

Git Tree Visualisation

Full SVG · Interactive version · View data

About

A collection of powerful CLI tools, scripts and templates for streamlined Git workflow, repository management, and shell productivity.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Dev-Control

GitHub repoGitHub releaseLicence

CI StatusIssuesPull RequestsStars

Last CommitShellStabilityMaintenance


Dev-Control is a modular Bash CLI that automates the repetitive parts of running many repositories: scaffolding repos to community standards, nested submodules, consolidated .tmp/.bak folders, rootless Podman devcontainers, VS Code MCP servers, signed GitHub releases (library tarballs, re-releases and automated version tagging) and multi-platform packages.

It aims to make awkward Git and CLI tasks — signing a worktree while preserving topology, or surgically dropping a commit — routine and reversible. Every command has a --dry-run mode. Issues and contributions are welcome.

# Install
git clone https://github.com/xaostech/dev-control.git &&cd dev-control && ./install.sh
# Use
dc init # Set up a repo with templates, licence, docs
dc repo # Create a GitHub repo from your local project
dc pr # Open a pull request in seconds
dc fix # Rewrite/sign/clean commit history safely
dc modules # Manage nested submodules automatically
dc licences # Audit licence compliance across repos
dc mcp # Configure AI coding assistants (MCP servers)
dc contain # Generate devcontainer.json for VS Code
dc package # Build tarballs, Homebrew, Snap, Deb, Nix, Docker
dca-alias # Sync (all) new alias and reload bashrc

📋 Table of Contents


💡 Why Dev-Control?

Managing modern software projects involves a lot of repetitive housekeeping:

  • Initialising repos with consistent templates, licences, and docs
  • Keeping submodules in sync across complex monorepos
  • Rewriting commit history to fix author dates or add GPG signatures
  • Auditing licence compliance when you have dozens of dependencies
  • Making devcontainers with the right mounts and settings and reusable category images
  • Packaging your tool for multiple platforms (Homebrew, Snap, Nix, Docker…)

Dev-Control bundles all of this into a single, modular CLI. Each command is designed to be:

PrincipleHow
SafeDry-run modes, automatic backup bundles, harness wrappers
FastBatch processing, parallel operations, minimal dependencies
ExtensiblePlugin system, YAML config, themeable TUI
PortablePure Bash 4+, no exotic runtime, runs anywhere Git runs

✨ Features at a Glance

CategoryWhat You Get
Repo SetupTemplate loading, licence selection, README/CONTRIBUTING/SECURITY scaffolding, GitHub Actions workflows
Git OpsHistory rewriting with GPG signing, date preservation, conflict auto-resolution, worktree sync
SubmodulesAuto-generated .gitmodules, temp-folder consolidation, symlink pruning
LicensingSPDX detection, compatibility checking, bulk apply, JSON export
DevExDevcontainer generation, MCP server setup (GitHub, StackOverflow, Firecrawl)
PackagingTarball + SHA256, Homebrew formula, Snap YAML, Debian .deb, Nix flake, Docker + ttyd web terminal
TUI ThemesMatrix, Hacker, Cyber aesthetics powered by Charmbracelet Gum

🚀 Quick Start

Prerequisites

  • Bash 4.0+ or Zsh
  • Git 2.0+
  • GitHub CLI (gh) for repo/PR commands
  • Optional: gum or fzf for interactive TUI; GPG for signing

Install

git clone https://github.com/xaostech/dev-control.git
cd dev-control
./install.sh # Adds `dc` to your PATH and installs aliasessource~/.bashrc # Or restart your shell

Verify

dc --version # Print the installed version
dc --help # List all commands

🔧 Core Commands

Run dc <command> --help for full options.

CommandPurpose
dc aliasInstall shell aliases for Git, Docker and system monitoring
dc initPopulate a repo with docs, licence, workflows and GitHub templates
dc repoCreate a GitHub repo from the local project
dc prOpen a pull request from the current branch
dc fixRewrite commits — edit messages, sign, fix dates, drop or combine
dc modulesAuto-generate .gitmodules; consolidate temp folders
dc licencesDetect, check compatibility and apply licences
dc mcpConfigure MCP servers for AI coding assistants
dc containGenerate a .devcontainer/ setup
dc packageBuild tarball, Homebrew, Snap, Deb, Nix and Docker packages
Command examples ›

dc aliases — Shell Alias Installer

Add productivity aliases for Git, Docker, system monitoring, and more.

dc alias# Interactive category selectionsource~/.bashrc

Example aliases

gpf # git push --force-with-lease
dca-alias # Apply and source all aliases
gcda # Stage, amend and push with preserved author date
gcda # Restore original author date

dc init — Repository Initialisation

Populate a repo with docs, licence, workflows, and GitHub templates.

dc init # Interactive mode
dc init --defaults # Skip repo owner/slug and bot credentials (envVars) prompts
dc init -f docs/SECURITY.md # Update a specific file
dc init --batch /projects/*# Initialise multiple repos

dc repo — Create GitHub Repository

Push your local project to a new GitHub repo in one step. Defaults to repo config generated by dc-init.

dc repo # Interactive prompts
dc repo --private --topics cli,bash

dc pr — Pull Request Creator

Open a PR from your current branch with auto-detected metadata.

dc pr # Interactive
dc pr --draft --label bug

dc fix — History Rewriting

Safely rewrite commits—edit messages, sign, fix dates, drop commits.

dc fix # Interactive (last 10 commits)
dc fix --sign --range HEAD=all # GPG-sign entire branch
dc fix --dry-run --range main..HEAD # Preview changes
dc fix --restore # Recover from backup bundle
dc fix --drop hash# Surgically drop commit by hash
dc fix --sign --atomic-preserve --auto-resolve --range HEAD=5 # Preserve merge topology and autoresolve merge conflicts

dc modules — Submodule Management

Auto-generate .gitmodules for nested repos; consolidate temp folders.

dc modules /path/to/monorepo
dc modules --aggressive --dry-run # Preview symlink + .gitignore changes

dc licences — Licence Auditor

Detect, check compatibility, and apply licences across repos.

dc licences # Scan current repo
dc licences --deep # Include submodules
dc licences --check GPL-3.0 # Verify compatibility
dc licences --apply MIT # Apply licence template

dc mcp — MCP Server Setup

Configure Model Context Protocol servers for AI coding assistants.

dc mcp # Interactive server selection
dc mcp --test # Verify GitHub MCP connection
dc mcp --create-pat # Interactive Github PAT creation
dc mcp --config # Only generate .vscode/mcp.json

dc container — Devcontainer Generator

Generate a complete .devcontainer/ setup for VS Code.

dc contain # Interactive
dc contain --image mcr.microsoft.com/devcontainers/base:ubuntu dc contain --base --dev-tools --defaults && \
cd subfolder && dc contain --img --dev-tools # Use the previous container image (tag=dev-tools) as a base
dc contain --nest <<<y# Discover, update and rebuild all containers recursively
dc contain --nest --regen # Agressively do same (remove config files and containers)
dc contain --nest --regen .# Include root in same
dc contain --nest --regen --dev-tools # Filter rebuild to one category; multiple categories supported (--web-dev --streaming)

Git identity (user.name / user.email) is sourced from ~/.config/dev-control/container.yaml if present, falling back to the host's global git config — so git config --global user.email on the host is both the simplest and most resilient setup, with the YAML file as an optional explicit override.

dc package — Multi-Platform Packaging

Build distribution packages with a single command.

dc package --init # Create .dc-package.yaml
dc package --all # Build everything
dc package --docker --theme cyber # Docker image with ttyd + theme

🔌 Plugin System

Extend Dev-Control with custom commands.

plugins/
└── my-plugin/
├── plugin.yaml # name, version, description, commands
└── commands/
└── greet.sh # becomes `dc greet`
dc plugin list # Show installed plugins
dc plugin install gh:user/repo # Install from GitHub
dc plugin remove my-plugin

⚙️ Configuration

Dev-Control uses a layered config system (highest priority first):

  1. Environment variables (DC_*)
  2. Project config (.dc-init.yaml in repo root)
  3. Global config (~/.config/dev-control/config.yaml)
  4. Built-in defaults

Example .dc-init.yaml:

project-name: my-projectdefault-licence: MITdefault-branch: mainauto-sign-commits: truegithub-org: my-org

See config/example.dc-init.yaml for all options.


📚 Documentation

DocumentDescription
Installation GuideDetailed install & upgrade instructions
ContributingHow to contribute
Code of ConductCommunity guidelines
Security PolicyReporting vulnerabilities
Testing GuideRunning and writing tests

Script Reference

ScriptPurpose
dev-control.shInteractive main menu
template-loading.shTemplate init logic
fix-history.shHistory rewriting engine
module-nesting.shSubmodule management
licences.shLicence auditing
containerise.shDevcontainer generator
packaging.shMulti-platform packaging
mcp-setup.shMCP server configuration

Shared Libraries

Located in scripts/lib/:

LibraryPurpose
colours.shANSI terminal colours
print.shFormatted output (headers, boxes, spinners)
config.shYAML config parsing
tui.shGum/fzf interactive prompts
validation.shInput validation
git/*.shGit utilities (dates, topology, worktrees, etc.)

🤝 Contributing

Contributions are welcome. Please read CONTRIBUTING.md first.

# Fork → Clone → Branch → Commit → PR
git checkout -b feature/amazing-feature
git commit -m "Add amazing feature"
git push origin feature/amazing-feature

🗺️ Roadmap

  • Unified dc CLI with command registry
  • Plugin system with GitHub install support
  • Multi-platform packaging (tarball, Homebrew, Snap, Deb, Nix, Docker)
  • MCP server configuration for AI assistants
  • Licence auditing with SPDX detection
  • Devcontainer generator
  • Zsh compatibility layer
  • Fish shell support
  • GUI wrapper (Bubble Tea / Tauri)
  • Remote plugin registry

See open issues for more.


📄 Licence

GPL-3.0. See LICENCE.

Git Tree Visualisation

Full SVG · Interactive version · View data

About

A collection of powerful CLI tools, scripts and templates for streamlined Git workflow, repository management, and shell productivity.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages