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-workflowruntime insrc/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 chatinteractive shell UIxaw run -p "..."headless one-shot modexaw tuiTextual full-screen hybrid terminal UI
- BYOK model providers:
- Anthropic Messages API
- OpenAI-compatible Chat Completions API
- Sandboxed tools:
read_filewrite_filelist_dirsearchrun_commandwith 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+Ssubmit,Ctrl+Rreset,Ctrl+Ddoctor,Ctrl+Aapproval view,Ctrl+Lclear,Ctrl+Qquit
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
../outsideis 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6bbc1ce76e3cd77a8d876f22a2e7a86ad39a41b5a24f63e4ae2c238ab7af1ea4
|
|
| MD5 |
b8015c2030adaad56ca79832cc376f2d
|
|
| BLAKE2b-256 |
1700d0341cc8c78afb0ce7624b26f7d1efb9d1ace415cbacfe00ece6a71f7032
|
File details
Details for the file x_agentic_workflow-0.2.0-py3-none-any.whl.
File metadata
- Download URL: x_agentic_workflow-0.2.0-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69fbc9f234e39778269604ae6a02f5d03b577a7824939ab5488cc18641a71337
|
|
| MD5 |
a9f79f25a7fceb2c7cb581b29c411743
|
|
| BLAKE2b-256 |
fccc501abe80cb8bc27d4d7a491e49a22d6b0cfc5c5f70e8b1ec1e25b5224f3e
|