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 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"

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 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.1.0.tar.gz (745.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.1.0-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: x_agentic_workflow-0.1.0.tar.gz
  • Upload date:
  • Size: 745.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.1.0.tar.gz
Algorithm Hash digest
SHA256 926943becaf54d48e27f0a3996d64eb930f082cb46d71deaa4d0b3070c885f18
MD5 1b8bdcdc54618aec614b1f394590a85a
BLAKE2b-256 2a4053b65e6020f6afcd51969b97e721a1808de02026110e4844ea07b81dc6df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for x_agentic_workflow-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 71511556007b79824a4612caf1d026b15a126ebb3c46633ac5351aaba35ff48a
MD5 23b0c824d74793eb60c337a3c4718498
BLAKE2b-256 f6915a2a8f7ddb5e1ee130e84f95c38b8e400e6e56dc52c6a3a93ff3bf1d9890

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