Skip to content

๐Ÿ›ฐ๏ธ Livey Secure AI Workflow โ€“ LLM-agnostic security & code review for serious devs. Cloud or local, your choice.

License

Notifications You must be signed in to change notification settings

ind4skylivey/livey-secure-ai-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Livey Codex Toolkit Banner

๐Ÿ›ก๏ธ livey-secure-ai-workflow
Red-team inspired AI workflows for code & security review

Universal AI-powered toolkit for terminal-first developers, hackers, and automation power users

Universal AI toolkit for terminal power users โ€ข LLM-agnostic โ€ข UAEP-powered โ€ข Privacy-first โ€ข SSH + automation


๐Ÿ”ง Overview

LiveY-Codex-Toolkit is an AI-augmented, terminal-native development toolkit that unifies:

  • Code review
  • Commit message generation
  • Patch suggestion + fix flow
  • Red-team static analysis
  • UAEP protocol execution
  • Structured agents for Laravel, security, Rust, Python and more
  • Git + SSH automation
  • Local AI support (Ollama, llama.cpp, local endpoints)

It is fully LLM-agnostic, supports any model, and remains privacy-first by design.

Built for developers who live in the terminal and run their workflows like a command center.


โšก Why This Toolkit Exists

346234

Because modern development deserves tools that:

  • write commit messages for you
  • analyze your code instantly
  • provide structured refactor plans
  • observe your entire repository safely
  • execute AI instructions consistently
  • work offline with local models
  • integrate into your git+SSH workflow
  • respect privacy and security boundaries

This toolkit tries to make AI feel like a real teammate โ€” reliable, structured, predictable.

๐Ÿงฉ Features

๐Ÿง  AI-Augmented Commands

Command Description
cx-uaep Loads Universal Agent Execution Protocol (production, staging, special modes).
cx-review Senior-level code review + security reasoning + structure evaluation.
cx-commit Generates Conventional Commit messages automatically.
cx-fix Debugs failing tests using AI-guided reasoning.
cx-security Performs red-team static analysis on multi-language codebases.

๐ŸŒ LLM Compatibility

LiveY Codex Toolkit is fully LLM-agnostic.
Every command (cx-review, cx-pr, cx-fix, cx-security, UAEP modes, templates) works with:

โœ” Cloud Models

  • Claude 3.5 / 3 / 2 (Anthropic)
  • GPT-4o / GPT-4.1 / GPT-3.5 (OpenAI)
  • Mistral Large / Medium / Small
  • DeepSeek-Coder / DeepSeek-V3
  • Qwen 2.5 Series
  • Gemini (via OpenAI-compatible gateways)

โœ” Local Models

  • Ollama (Llama3, Qwen, Mistral, DeepSeek, Phi-3โ€ฆ)
  • LM Studio
  • llama.cpp servers
  • Any OpenAI-compatible local API (/v1/chat/completions)

โœ” Custom Engines

  • Droid CLI
  • OpenRouter
  • litellm bridges
  • Self-hosted inference endpoints

๐Ÿ” API keys & safety

  • Add your provider key as a GitHub secret LLM_API_KEY; never commit keys to the repo.
  • Workflows auto-skip if LLM_API_KEY is missing and LLM_PROVIDER is not set to local.
  • To avoid egress, set LLM_PROVIDER=local and LLM_ENDPOINT=http://localhost:11434/api/generate.
  • Rotate keys regularly and scope them to least privilege.

Why it works

The toolkit uses:

  • codex as a universal abstraction layer
  • UAEP for structured, predictable responses
  • openai-compatible HTTP schema
  • explicit model profiles via TOML

This makes the toolkit portable, engine-independent, and future-proof.


๐ŸŽญ Agent Profiles

Load with UAEP:

cx-uaep production --profile claude cx-uaep production --profile qwen cx-uaep staging --profile local

โŸ๐Ÿ”„ Engine Switching โ€” Runtime Model Selector

Switch engines dynamically:

cx-engine claude claude-3.5-sonnet cx-engine ollama llama3 cx-engine qwen qwen2.5 cx-engine droid neon-16k

Activate the new engine: codex --profile current cx-review

โŸ๐Ÿค– Droid CLI Support โ€” Alternate LLM Engine

Droid CLI can serve as a complete backend engine:

[mode.droid] provider = "openai-compatible" api_url = "http://localhost:8000/v1" model = "neon-16k"

Use it: codex --profile droid cx-review


๐ŸŸฃ Some Available CLI

Claude

Ollama

Droid CLI


๐ŸŸฃ VISUAL DIAGRAM

๐ŸŸฃ cx-engine-ui โ€” TUI Selector

Create: bin/cx-engine-ui

#!/usr/bin/env bash

CY="\033[1;36m"; MG="\033[1;35m"; GR="\033[1;32m"; RS="\033[0m"

echo -e "${CY}โŸ LiveY Codex Toolkit โ€” Engine Selector UI${RS}" echo -e "${MG}-------------------------------------------${RS}" echo "" echo -e "Select an engine:" echo "" echo -e " [1] Claude (claude-3.5-sonnet)" echo -e " [2] Ollama (llama3)" echo -e " [3] Qwen (qwen2.5)" echo -e " [4] Droid CLI (neon-16k)" echo -e " [5] Cancel" echo "" read -rp "Choice: " c

case "$c" in

  1. engine="claude"; model="claude-3.5-sonnet" ;;
  2. engine="ollama"; model="llama3" ;;
  3. engine="qwen"; model="qwen2.5" ;;
  4. engine="droid"; model="neon-16k" ;;
  5. echo "Cancelled."; exit 0 ;; *) echo "Invalid option."; exit 1 ;; esac

echo "" echo -e "${CY}Setting engine โ†’ ${GR}${engine} (${model})${RS}" cx-engine "$engine" "$model"

echo "" echo -e "${GR}โœ” Engine updated. Use:${RS} codex --profile current cx-review"

Make it executable: chmod +x bin/cx-engine-ui

๐ŸŒ LLM Compatibility

LiveY Codex Toolkit is fully LLM-agnostic.
Every command (cx-review, cx-pr, cx-fix, cx-security, UAEP modes, templates) works with:

โœ” Cloud Models

  • Claude 3.5 / 3 / 2 (Anthropic)
  • GPT-4o / GPT-4.1 / GPT-3.5 (OpenAI)
  • Mistral Large / Medium / Small
  • DeepSeek-Coder / DeepSeek-V3
  • Qwen 2.5 Series
  • Gemini (via OpenAI-compatible gateways)

โœ” Local Models

  • Ollama (Llama3, Qwen, Mistral, DeepSeek, Phi-3โ€ฆ)
  • LM Studio
  • llama.cpp servers
  • Any OpenAI-compatible local API (/v1/chat/completions)

โœ” Custom Engines

  • Droid CLI
  • OpenRouter
  • litellm bridges
  • Self-hosted inference endpoints

Why it works

The toolkit uses:

  • codex as a universal abstraction layer
  • UAEP for structured, predictable responses
  • openai-compatible HTTP schema
  • explicit model profiles via TOML

This makes the toolkit portable, engine-independent, and future-proof.


๐ŸŽญ Agent Profiles

Specialized LLM-optimized agents:

codex/prompts/agent.claude.md โ€“ Claude optimized codex/prompts/agent.qwen.md โ€“ Qwen optimized codex/prompts/agent.local.md โ€“ Local LLM optimized

Use with UAEP:

cx-uaep production --profile claude cx-uaep production --profile qwen cx-uaep staging --profile local

๐Ÿ”„ Engine Switching Switch LLM engine dynamically: cx-engine

Examples: cx-engine claude claude-3.5-sonnet cx-engine ollama llama3 cx-engine qwen qwen2.5 cx-engine droid neon-16k

Activate the profile: codex --profile current cx-review

๐Ÿค– Droid CLI Support

LiveY Codex Toolkit can use Droid CLI as an LLM backend via the included mode.droid profile:

๐Ÿš€ What's New in v1.1

๐ŸŽฏ UAEP Integration

Universal Agent Execution Protocol (production + staging + special modes).

๐Ÿ“ Unified Prompt Architecture

All agents placed under:

codex/prompts/

๐Ÿงช New Execution Command

cx-uaep [mode]

๐Ÿ’ป Better Local AI Support

Works with Ollama, LM Studio, and custom local endpoints.


๐Ÿ“ฆ Installation

git clone [email protected]:ind4skylivey/livey-codex-toolkit.git cd livey-codex-toolkit mkdir -p ~/bin ln -s "$PWD/bin"/cx-* ~/bin/

#๐Ÿ”นUniversal Installer ./install.sh

๐Ÿ”ฎ UAEP Protocol

UAEP standardizes AI execution using 5 strict response layers:

PLAN โ€“ architecture + reasoning

FILE-TREE โ€“ directory layout

GENERATION RULES โ€“ formatting, standards, safety

IMPLEMENTATION โ€“ full working code

TASK QUEUE โ€“ next actions

UAEP can run in: Production Mode

strict, safe, fully documented

ideal for real projects

Staging Mode

rapid prototyping

TODOs allowed

ideal for experiments

Special Modes

security_analysis

performance_max

ai_local_support

architecture_review

Load UAEP:

cx-uaep production cx-uaep staging cx-uaep production --mode security_analysis

๐Ÿง  Agent Profiles Profile Description agent.laravel.md Laravel-specialized developer agent agent.security.md Red-team static analysis agent agent.rust.md (WIP) Rust agent uaep/* Full UAEP protocol

Load via UAEP:

cx-uaep production --profile laravel

Direct usage:

codex --load codex/prompts/agent.laravel.md

๐Ÿ›  Commands (Deep Documentation) cx-review

AI-powered repository inspection.

Examples:

cx-review cx-review working

cx-commit

Generates a clean Conventional Commit message.

cx-commit

cx-fix

AI-powered debugging of failing tests.

cx-fix cx-fix "npm test"

cx-security

Red-team static analysis:

cx-security cx-security src

๐Ÿ“ Project Structure

livey-codex-toolkit/ โ”œโ”€โ”€ bin/ โ”‚ โ”œโ”€โ”€ cx-uaep โ”‚ โ”œโ”€โ”€ cx-review โ”‚ โ”œโ”€โ”€ cx-commit โ”‚ โ”œโ”€โ”€ cx-fix โ”‚ โ””โ”€โ”€ cx-security โ”‚ โ”œโ”€โ”€ codex/ โ”‚ โ”œโ”€โ”€ prompts/ โ”‚ โ”‚ โ”œโ”€โ”€ uaep/ โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ uaep_core.md โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ uaep_production.md โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ uaep_staging.md โ”‚ โ”‚ โ”‚ โ”œโ”€โ”€ uaep_readme.md โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ loader.md โ”‚ โ”‚ โ”œโ”€โ”€ agent.laravel.md โ”‚ โ”‚ โ”œโ”€โ”€ agent.security.md โ”‚ โ”‚ โ””โ”€โ”€ agent.rust.md (TODO) โ”‚ โ”‚ โ”‚ โ””โ”€โ”€ config/ (future) โ”‚ โ””โ”€โ”€ *.toml โ”‚ โ””โ”€โ”€ README.md

๐Ÿ”ฐ Philosophy & Safety

The toolkit never modifies files directly.

All changes are visible through diff previews.

You remain fully in control of commits, patches, and code writing.

UAEP ensures predictable, structured responses across any LLM.

Use the profile system for safety:

dev

analyze

git-ssh

livey_power_user (full-auto mode ๐Ÿ˜ˆ)

๐Ÿ”„ Workflows Daily Dev Loop

cx-review cx-fix cx-commit git push

Security Sweep

cx-uaep production --mode security_analysis cx-security

Fast Prototyping

cx-uaep staging

Offline Mode

export CODEX_ENGINE_URL=http://localhost:11434 cx-review

๐Ÿœ LiveY Official Seal

โŸ แ›ฆ LIVEY ยท CODEX TOOLKIT แ›ฆ โŸ

Available soon as:

SVG (vector)

PNG (HQ)

Banner integration

๐Ÿ›ฃ Roadmap v1.2

install.sh

cx-pr

cx-changelog

execution_modes.toml

test suite

v2.0

Rust rewrite

Local AI fallback

Plugin system

TUI interface

v3.0+

multi-repo ops

CI/CD integrations

Neovim/VSCode bindings

template marketplace

๐Ÿค Contributing

PRs welcome. Test on Linux. Document changes. Respect UAEP structure. ๐Ÿ“œ License

MIT License. ๐Ÿ”— Links

Repository: https://github.com/ind4skylivey/livey-codex-toolkit

UAEP Docs: codex/prompts/uaep/uaep_readme.md

Issues: https://github.com/ind4skylivey/livey-codex-toolkit/issues

About

๐Ÿ›ฐ๏ธ Livey Secure AI Workflow โ€“ LLM-agnostic security & code review for serious devs. Cloud or local, your choice.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Languages