Skip to main content

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.

Metadata

Release files for x-agentic-workflow 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for x-agentic-workflow 0.2.0
File Size Uploaded
x_agentic_workflow-0.2.0.tar.gz 747.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for x-agentic-workflow 0.2.0
File Interpreter ABI Platform
x_agentic_workflow-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 768.6 kB

Release files / x_agentic_workflow-0.2.0.tar.gz

Download URL x_agentic_workflow-0.2.0.tar.gz
Size 747.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6bbc1ce76e3cd77a8d876f22a2e7a86ad39a41b5a24f63e4ae2c238ab7af1ea4
BLAKE2b-256 checksum
How to use checksums
1700d0341cc8c78afb0ce7624b26f7d1efb9d1ace415cbacfe00ece6a71f7032
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / x_agentic_workflow-0.2.0-py3-none-any.whl

Download URL x_agentic_workflow-0.2.0-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69fbc9f234e39778269604ae6a02f5d03b577a7824939ab5488cc18641a71337
BLAKE2b-256 checksum
How to use checksums
fccc501abe80cb8bc27d4d7a491e49a22d6b0cfc5c5f70e8b1ec1e25b5224f3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page