Skip to main content

A clean-room terminal agentic coding assistant with BYOK model providers, sandboxed tools, sessions, skills, hooks, MCP, and multi-agent extension points.

Project description

x-agentic-workflow

Clean-room Python terminal agentic coding assistant.

This repo contains two layers:

  • the SAFe Agentic Workflow harness for developing the product;
  • the x-agentic-workflow runtime in src/x_agentic_workflow.

The runtime targets the same category as Codex CLI, Gemini CLI, aider, Cline, and Claude-style coding assistants, while using original Python code.

v0.1 capability

  • Hybrid terminal UI:
    • xaw chat interactive shell UI
    • xaw run -p "..." headless one-shot mode
    • xaw tui Textual full-screen hybrid terminal UI
  • BYOK model providers:
    • Anthropic Messages API
    • OpenAI-compatible Chat Completions API
  • Sandboxed tools:
    • read_file
    • write_file
    • list_dir
    • search
    • run_command with user approval
  • Session save/resume.
  • Local Skills loaded by name.
  • Lifecycle Hooks directory.
  • MCP configuration discovery interface.
  • Multi-agent role prompt interface.

Install for development

Install from TestPyPI during release validation:

python3 -m venv /tmp/xaw-testpypi
/tmp/xaw-testpypi/bin/python -m pip install \
  --index-url https://test.pypi.org/simple/ \
  --extra-index-url https://pypi.org/simple \
  x-agentic-workflow
/tmp/xaw-testpypi/bin/xaw --version

After the production PyPI release:

pipx install x-agentic-workflow

For local development:

python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e ".[dev]"

Configure

Secrets stay in environment variables, not in config files.

Anthropic:

export ANTHROPIC_API_KEY="sk-ant-..."
xaw init --provider anthropic --model claude-3-5-sonnet-latest

OpenAI-compatible:

export OPENAI_API_KEY="sk-..."
xaw init \
  --provider openai-compatible \
  --base-url https://api.openai.com/v1 \
  --model gpt-4.1

For DeepSeek, OpenRouter, DashScope, Ollama, LM Studio, or another provider, use its OpenAI-compatible base URL and model name.

Run

xaw doctor
xaw chat
xaw tui
xaw run -p "list this project and explain what it does"

xaw tui opens a multi-panel terminal app:

  • left rail: workspace, provider, model, sessions, Skills, Hooks, MCP status
  • center: transcript and prompt composer
  • right rail: tool registry, approval status, keyboard shortcuts
  • shortcuts: Ctrl+S submit, Ctrl+R reset, Ctrl+D doctor, Ctrl+A approval view, Ctrl+L clear, Ctrl+Q quit

Resume a session:

xaw sessions
xaw chat --session 20260630-120000

Safety model

  • File access is restricted to the selected project directory.
  • Path traversal such as ../outside is blocked.
  • Commands run in the project directory and require explicit approval by default.
  • Config files store provider metadata only. API keys stay in environment variables.

Clean-room rule

See docs/product/clean-room-scope.md.

The project may align product capabilities with existing terminal AI coding assistants, but it must not copy or translate restricted source code, implementation structure, private prompts, private constants, or UI text.

Development checks

python -m pytest
python -m ruff check .
python -m mypy src/x_agentic_workflow
xaw smoke-openai-compatible --allow-skip

Release status

Version 0.1.0 is published to PyPI:

https://pypi.org/project/x-agentic-workflow/0.1.0/

Version 0.1.0 is also published to TestPyPI for install verification:

https://test.pypi.org/project/x-agentic-workflow/0.1.0/

Production PyPI publishing should use a fresh PyPI API token and twine upload dist/* after the release checklist passes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

x_agentic_workflow-0.2.0.tar.gz (747.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

x_agentic_workflow-0.2.0-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

Details for the file x_agentic_workflow-0.2.0.tar.gz.

File metadata

  • Download URL: x_agentic_workflow-0.2.0.tar.gz
  • Upload date:
  • Size: 747.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for x_agentic_workflow-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6bbc1ce76e3cd77a8d876f22a2e7a86ad39a41b5a24f63e4ae2c238ab7af1ea4
MD5 b8015c2030adaad56ca79832cc376f2d
BLAKE2b-256 1700d0341cc8c78afb0ce7624b26f7d1efb9d1ace415cbacfe00ece6a71f7032

See more details on using hashes here.

File details

Details for the file x_agentic_workflow-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for x_agentic_workflow-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 69fbc9f234e39778269604ae6a02f5d03b577a7824939ab5488cc18641a71337
MD5 a9f79f25a7fceb2c7cb581b29c411743
BLAKE2b-256 fccc501abe80cb8bc27d4d7a491e49a22d6b0cfc5c5f70e8b1ec1e25b5224f3e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page