From 3b90f1dfb9ffd45dafd4edc51e6be772e85fb35c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Apr 2026 16:11:23 +0000 Subject: [PATCH 1/2] Initial plan From 62d2950b1d9e8532be4b29bcaac644dff0144827 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 17 Apr 2026 16:16:21 +0000 Subject: [PATCH 2/2] Add coleam00 Archon feature Agent-Logs-Url: https://github.com/devcontainer-community/devcontainer-features/sessions/cc7d8ca7-cc7f-4d33-82ca-11154075e14c Co-authored-by: sebst <592313+sebst@users.noreply.github.com> --- README.md | 1 + src/coleam00-Archon/NOTES.md | 17 +++ src/coleam00-Archon/devcontainer-feature.json | 20 +++ src/coleam00-Archon/install.sh | 137 ++++++++++++++++++ test/coleam00-Archon/test.sh | 18 +++ 5 files changed, 193 insertions(+) create mode 100644 src/coleam00-Archon/NOTES.md create mode 100644 src/coleam00-Archon/devcontainer-feature.json create mode 100755 src/coleam00-Archon/install.sh create mode 100755 test/coleam00-Archon/test.sh diff --git a/README.md b/README.md index d1e1934..8b107ca 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ | [clang-tidy](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/clang-tidy) | `clang-tidy` — C++ linter and static analyzer from LLVM | apt | 1.0.2 | | [cloudflare.com/warp-cli](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/cloudflare.com-warp-cli) | `warp-cli` — Cloudflare WARP VPN client | curl | 1.0.3 | | [cmake.org](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/cmake.org) | `cmake` — cross-platform build system generator | apt | 1.0.2 | +| [coleam00/Archon](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/coleam00-Archon) | `archon` — workflow engine for AI coding agents | gh release | 1.0.0 | | [collection-c-cpp](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/collection-c-cpp) | C/C++ dev collection — cmake, ninja, gdb, valgrind, ccache, cppcheck, clang-format, clang-tidy, distcc, vcpkg, build-essential | meta | 1.0.3 | | [critique.work](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/critique.work) | `critique` — TUI for reviewing git changes | bun | 1.0.2 | | [danmar/cppcheck](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/danmar-cppcheck) | `cppcheck` — static analysis tool for C/C++ code | apt | 1.0.2 | diff --git a/src/coleam00-Archon/NOTES.md b/src/coleam00-Archon/NOTES.md new file mode 100644 index 0000000..0fa8f6d --- /dev/null +++ b/src/coleam00-Archon/NOTES.md @@ -0,0 +1,17 @@ +# coleam00/Archon + +## Project + +- [Archon](https://github.com/coleam00/Archon) + +## Description + +Archon is a workflow engine for AI coding agents. The `archon` CLI runs deterministic development workflows for planning, implementation, validation, review, and PR creation across your projects. + +## Installation Method + +Downloaded as a pre-compiled binary from the [GitHub releases page](https://github.com/coleam00/Archon/releases) and placed in `/usr/local/bin`. + +## Other Notes + +The compiled Archon binary expects Claude Code to be installed separately. Set `CLAUDE_BIN_PATH` (or the corresponding Archon config option) if the `claude` binary is not on the default path. diff --git a/src/coleam00-Archon/devcontainer-feature.json b/src/coleam00-Archon/devcontainer-feature.json new file mode 100644 index 0000000..470f9b0 --- /dev/null +++ b/src/coleam00-Archon/devcontainer-feature.json @@ -0,0 +1,20 @@ +{ + "name": "coleam00/Archon", + "id": "coleam00-Archon", + "version": "1.0.0", + "description": "Install \"archon\" binary", + "documentationURL": "https://github.com/devcontainer-community/devcontainer-features/tree/main/src/coleam00-Archon", + "options": { + "version": { + "type": "string", + "default": "latest", + "proposals": [ + "latest" + ], + "description": "Version of \"archon\" to install." + } + }, + "installsAfter": [ + "ghcr.io/devcontainer-community/devcontainer-features/ca-certificates:latest" + ] +} diff --git a/src/coleam00-Archon/install.sh b/src/coleam00-Archon/install.sh new file mode 100755 index 0000000..130ed30 --- /dev/null +++ b/src/coleam00-Archon/install.sh @@ -0,0 +1,137 @@ +#!/bin/bash +set -o errexit +set -o pipefail +set -o noclobber +set -o nounset +set -o allexport +readonly githubRepository='coleam00/Archon' +readonly binaryName='archon' +readonly versionArgument='version' +readonly binaryTargetFolder='/usr/local/bin' +readonly name="${githubRepository##*/}" +apt_get_update() { + if [ "$(find /var/lib/apt/lists/* | wc -l)" = "0" ]; then + echo "Running apt-get update..." + apt-get update -y + fi +} +apt_get_checkinstall() { + if ! dpkg -s "$@" >/dev/null 2>&1; then + apt_get_update + DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends --no-install-suggests --option 'Debug::pkgProblemResolver=true' --option 'Debug::pkgAcquire::Worker=1' "$@" + fi +} +apt_get_cleanup() { + apt-get clean + rm -rf /var/lib/apt/lists/* +} +check_curl_installed() { + declare -a requiredAptPackagesMissing=() + if ! [ -r '/etc/ssl/certs/ca-certificates.crt' ]; then + requiredAptPackagesMissing+=('ca-certificates') + fi + if ! command -v curl >/dev/null 2>&1; then + requiredAptPackagesMissing+=('curl') + fi + declare -i requiredAptPackagesMissingCount=${#requiredAptPackagesMissing[@]} + if [ $requiredAptPackagesMissingCount -gt 0 ]; then + apt_get_update + apt_get_checkinstall "${requiredAptPackagesMissing[@]}" + apt_get_cleanup + fi +} +curl_check_url() { + local url=$1 + local status_code + status_code=$(curl -s -o /dev/null -w '%{http_code}' "$url") + if [ "$status_code" -ne 200 ] && [ "$status_code" -ne 302 ]; then + echo "Failed to download '$url'. Status code: $status_code." + return 1 + fi +} +curl_download_stdout() { + local url=$1 + curl \ + --silent \ + --location \ + --output '-' \ + --connect-timeout 5 \ + "$url" +} +debian_get_arch() { + echo "$(dpkg --print-architecture)" +} +debian_get_target_arch() { + case $(debian_get_arch) in + amd64) echo 'x64' ;; + arm64) echo 'arm64' ;; + *) + printf >&2 '=== [ERROR] Unsupported architecture: "%s"!\n' "$(debian_get_arch)" + exit 1 + ;; + esac +} +echo_banner() { + local text="$1" + echo -e "\e[1m\e[97m\e[41m$text\e[0m" +} +github_list_releases() { + if [ -z "$1" ]; then + echo "Usage: list_github_releases " + return 1 + fi + local repo="$1" + local url="https://api.github.com/repos/$repo/releases" + curl -s "$url" | grep -Po '"tag_name": "\K.*?(?=")' | grep -E '^v?[0-9]+\.[0-9]+\.[0-9]+$' | sed 's/^v//' +} +github_get_latest_release() { + if [ -z "$1" ]; then + echo "Usage: get_latest_github_release " + return 1 + fi + github_list_releases "$1" | head -n 1 +} +github_get_tag_for_version() { + if [ -z "$1" ] || [ -z "$2" ]; then + echo "Usage: github_get_tag_for_version " + return 1 + fi + local repo="$1" + local _version="$2" + local url="https://api.github.com/repos/$repo/releases" + local escaped_version + escaped_version="$(printf '%s' "$_version" | sed 's/\./\\./g')" + curl -s "$url" | grep -Po '"tag_name": "\K.*?(?=")' | grep -E "^v?${escaped_version}$" | head -n 1 +} +utils_check_version() { + local version=$1 + if ! [[ "${version:-}" =~ ^(latest|[0-9]+\.[0-9]+\.[0-9]+)$ ]]; then + printf >&2 '=== [ERROR] Option "version" (value: "%s") is not "latest" or valid semantic version format "X.Y.Z" !\n' \ + "$version" + exit 1 + fi +} +install() { + utils_check_version "$VERSION" + check_curl_installed + readonly architecture="$(debian_get_target_arch)" + if [ "$VERSION" == 'latest' ] || [ -z "$VERSION" ]; then + VERSION=$(github_get_latest_release "$githubRepository") + fi + readonly version="${VERSION:?}" + readonly releaseTag="$(github_get_tag_for_version "$githubRepository" "$version")" + if [ -z "$releaseTag" ]; then + printf >&2 '=== [ERROR] Could not find release tag for version "%s" in "%s"!\n' "$version" "$githubRepository" + exit 1 + fi + readonly downloadUrl="https://github.com/${githubRepository}/releases/download/${releaseTag}/${binaryName}-linux-${architecture}" + curl_check_url "$downloadUrl" + readonly binaryTargetPath="${binaryTargetFolder}/${binaryName}" + curl_download_stdout "$downloadUrl" >| "$binaryTargetPath" + chmod 755 "$binaryTargetPath" + apt_get_cleanup +} +echo_banner "devcontainer.community" +echo "Installing $name..." +install "$@" +echo "(*) Done!" diff --git a/test/coleam00-Archon/test.sh b/test/coleam00-Archon/test.sh new file mode 100755 index 0000000..487ac8b --- /dev/null +++ b/test/coleam00-Archon/test.sh @@ -0,0 +1,18 @@ +#!/bin/bash + + +set -e + +# Optional: Import test library bundled with the devcontainer CLI +# See https://github.com/devcontainers/cli/blob/HEAD/docs/features/test.md#dev-container-features-test-lib +# Provides the 'check' and 'reportResults' commands. +source dev-container-features-test-lib + +# Feature-specific tests +# The 'check' command comes from the dev-container-features-test-lib. Syntax is... +# check