Skip to content

mcelb1200/JCLAW

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

114 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JCLAW Logo

🦞 JCLAW (Jules Crustacean Logic & Automated Workflow)

JCLAW is a high-fidelity orchestration layer for Google Jules, designed to transform the raw "muscles" of automated coding into a robust, context-aware "Brain" system. It manages the full lifecycle of AI-driven development—from task delegation and state synchronization to autonomous verification and fleet-wide orchestration.


🏗️ The Lobster Architecture

JCLAW operates on the Lobster Pattern, cleanly separating the AI's reasoning from its execution environment:

  1. 🧠 The Brain (Reasoning): Powered by the JCLAW Dispatcher and Gemini LLMs. It analyzes project DNA, identifies risks, provides technical feedback to blocked tasks, and performs final verification of finished work.
  2. 🦞 The Muscles (Execution): Powered by Google Jules. It performs the heavy lifting—refactoring code, writing tests, and fulfilling instructions in an isolated remote VM.
  3. 🌊 The Tide (Orchestration): Powered by Superclaw and Autopilot. It synchronizes state across the fleet, manages git worktrees for zero-conflict execution, and updates GitHub Project boards in real-time.

🚀 Quick Start

1. Setup

Initialize your environment variables and authenticate with the Jules API:

jclaw setup

Required ENV: JULES_API_KEY, JCLAW_BRAIN_AGENT (default: gemini).

2. The Development Loop

Instead of typing commands, you can manage your work through the Backlog:

  1. Create a markdown task in .jules/backlog/feature-xyz.md.
  2. Run the orchestrator:
    jclaw wave --superclaw

JCLAW will detect the workload, scaffold an isolated git worktree, delegate the task to Jules, and notify you when the Brain has performed the final audit.


🛠️ Script Reference

🛰️ Orchestration & Fleet

  • superclaw.sh: The high-level fleet manager. It iterates through all repositories in your workspace, detects workloads, and initializes Lazy Git Worktrees to run automation without disrupting your active IDE buffer.
  • autopilot.sh: The heart of the per-repo cycle. It handles:
    • Auto-Approval: Automatically approves safe execution plans.
    • Verification Gates: Dispatches finished code to the Brain for audit.
    • Feedback Loops: Answers Jules' questions autonomously using LLM context.
    • Batching: Pushes multiple backlog items concurrently within API limits.
  • sync.sh: Bilateral synchronization. It pulls remote session status into the local SQLite DB and pushes state updates to the GitHub Project Board and a dedicated jclaw-state branch.

🧠 Brain & Context

  • brain_dispatcher.sh: Routes "Brain Requests" (Verification/Feedback) to your selected AI agent (Gemini, Cursor, or browser-based LLMs).
  • brain_context_builder.sh: The "High-Fidelity" context engine. It assembles Project DNA, file churn risk profiles, and active wave dependencies to ensure the AI has perfect technical awareness.
  • brain_report_parser.sh: Parses AI responses into Markdown audit reports and automatically posts them as PR comments.

🦞 Task Management

  • delegate_task.sh: Initiates a specific local goal into a remote Jules session.
  • conclude_task.sh: Finalizes a task, archives the instruction file, and generates the final conclusion logs.
  • github_integration.sh: The bridge to GitHub. Manages Issue/PR detection, labeling, and Project Board automation.
  • db_manager.sh: Manages the local SQLite cache (.jules/jclaw.db) for high-speed session tracking.

🛡️ Zero-Conflict Worktree Isolation

JCLAW solves the "Git Contention" problem by never running destructive operations in your primary working directory. When superclaw detects a workload:

  1. It creates a temporary (or persistent) Git Worktree at [repo]-jclaw/.
  2. It executes all stashes, checkouts, and merges inside that isolated environment.
  3. Your own code, index, and branch state remain completely untouched.

📊 Dashboard & Visibility

JCLAW maintains a live dashboard for your project:

  • Local: Check .jules/README.md for a generated state overview.
  • Remote: Check the jclaw-state branch on GitHub for synchronized JSON metadata.
  • Board: View progress in real-time on your configured GitHub Project Board.

Developed by the Advanced Agentic Coding team.

About

Jules' Crustacean Logic and Automated Workflow

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 51.5%
  • JavaScript 28.0%
  • PowerShell 16.0%
  • TypeScript 4.0%
  • Other 0.5%