genomix-cli 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. genomix_cli-0.1.0/.gitignore +15 -0
  2. genomix_cli-0.1.0/LICENSE +194 -0
  3. genomix_cli-0.1.0/PKG-INFO +217 -0
  4. genomix_cli-0.1.0/README.md +194 -0
  5. genomix_cli-0.1.0/demo.gif +0 -0
  6. genomix_cli-0.1.0/demo.tape +41 -0
  7. genomix_cli-0.1.0/docs/demo.svg +220 -0
  8. genomix_cli-0.1.0/docs/superpowers/plans/2026-03-21-genomix-cli.md +3822 -0
  9. genomix_cli-0.1.0/docs/superpowers/specs/2026-03-21-genomix-cli-design.md +623 -0
  10. genomix_cli-0.1.0/genomix/__init__.py +3 -0
  11. genomix_cli-0.1.0/genomix/agent/__init__.py +0 -0
  12. genomix_cli-0.1.0/genomix/agent/context_compressor.py +31 -0
  13. genomix_cli-0.1.0/genomix/agent/loop.py +93 -0
  14. genomix_cli-0.1.0/genomix/agent/prompt_builder.py +68 -0
  15. genomix_cli-0.1.0/genomix/agent/session_store.py +41 -0
  16. genomix_cli-0.1.0/genomix/cli.py +193 -0
  17. genomix_cli-0.1.0/genomix/config.py +80 -0
  18. genomix_cli-0.1.0/genomix/errors.py +37 -0
  19. genomix_cli-0.1.0/genomix/output.py +20 -0
  20. genomix_cli-0.1.0/genomix/project/__init__.py +0 -0
  21. genomix_cli-0.1.0/genomix/project/manager.py +73 -0
  22. genomix_cli-0.1.0/genomix/project/setup_wizard.py +44 -0
  23. genomix_cli-0.1.0/genomix/providers/__init__.py +20 -0
  24. genomix_cli-0.1.0/genomix/providers/base.py +27 -0
  25. genomix_cli-0.1.0/genomix/providers/claude.py +124 -0
  26. genomix_cli-0.1.0/genomix/providers/openai_provider.py +33 -0
  27. genomix_cli-0.1.0/genomix/providers/opencode.py +71 -0
  28. genomix_cli-0.1.0/genomix/runtime.py +75 -0
  29. genomix_cli-0.1.0/genomix/skills/__init__.py +1 -0
  30. genomix_cli-0.1.0/genomix/skills/loader.py +58 -0
  31. genomix_cli-0.1.0/genomix/skills/registry.py +48 -0
  32. genomix_cli-0.1.0/genomix/swarm/__init__.py +0 -0
  33. genomix_cli-0.1.0/genomix/swarm/manager.py +70 -0
  34. genomix_cli-0.1.0/genomix/tools/__init__.py +0 -0
  35. genomix_cli-0.1.0/genomix/tools/file_tools.py +37 -0
  36. genomix_cli-0.1.0/genomix/tools/mcp_bridge.py +85 -0
  37. genomix_cli-0.1.0/genomix/tools/mcp_manager.py +281 -0
  38. genomix_cli-0.1.0/genomix/tools/registry.py +25 -0
  39. genomix_cli-0.1.0/genomix/tui.py +512 -0
  40. genomix_cli-0.1.0/mcp_servers/__init__.py +0 -0
  41. genomix_cli-0.1.0/mcp_servers/base_biotool.py +27 -0
  42. genomix_cli-0.1.0/mcp_servers/base_database.py +111 -0
  43. genomix_cli-0.1.0/mcp_servers/biotools/__init__.py +0 -0
  44. genomix_cli-0.1.0/mcp_servers/biotools/blast_server.py +69 -0
  45. genomix_cli-0.1.0/mcp_servers/biotools/bwa_server.py +37 -0
  46. genomix_cli-0.1.0/mcp_servers/biotools/fastqc_server.py +29 -0
  47. genomix_cli-0.1.0/mcp_servers/biotools/gatk_server.py +47 -0
  48. genomix_cli-0.1.0/mcp_servers/biotools/samtools_server.py +76 -0
  49. genomix_cli-0.1.0/mcp_servers/databases/__init__.py +0 -0
  50. genomix_cli-0.1.0/mcp_servers/databases/clinvar_server.py +53 -0
  51. genomix_cli-0.1.0/mcp_servers/databases/dbsnp_server.py +53 -0
  52. genomix_cli-0.1.0/mcp_servers/databases/ensembl_server.py +100 -0
  53. genomix_cli-0.1.0/mcp_servers/databases/ncbi_server.py +68 -0
  54. genomix_cli-0.1.0/pyproject.toml +41 -0
  55. genomix_cli-0.1.0/requirements.txt +8 -0
  56. genomix_cli-0.1.0/skills/common/file-formats/SKILL.md +94 -0
  57. genomix_cli-0.1.0/skills/common/genome-references/SKILL.md +86 -0
  58. genomix_cli-0.1.0/skills/comparative/blast-analysis/SKILL.md +72 -0
  59. genomix_cli-0.1.0/skills/comparative/multiple-alignment/SKILL.md +67 -0
  60. genomix_cli-0.1.0/skills/comparative/phylogenetics/SKILL.md +79 -0
  61. genomix_cli-0.1.0/skills/exploration/database-search/SKILL.md +73 -0
  62. genomix_cli-0.1.0/skills/exploration/sequence-summary/SKILL.md +93 -0
  63. genomix_cli-0.1.0/skills/exploration/variant-explain/SKILL.md +66 -0
  64. genomix_cli-0.1.0/skills/sequencing/alignment/SKILL.md +83 -0
  65. genomix_cli-0.1.0/skills/sequencing/annotation/SKILL.md +77 -0
  66. genomix_cli-0.1.0/skills/sequencing/quality-control/SKILL.md +60 -0
  67. genomix_cli-0.1.0/skills/sequencing/variant-calling/SKILL.md +93 -0
  68. genomix_cli-0.1.0/tests/__init__.py +0 -0
  69. genomix_cli-0.1.0/tests/conftest.py +17 -0
  70. genomix_cli-0.1.0/tests/fixtures/sample_skill/SKILL.md +17 -0
  71. genomix_cli-0.1.0/tests/fixtures/tiny.fasta +4 -0
  72. genomix_cli-0.1.0/tests/fixtures/tiny.fastq +12 -0
  73. genomix_cli-0.1.0/tests/fixtures/tiny.vcf +6 -0
  74. genomix_cli-0.1.0/tests/integration/__init__.py +0 -0
  75. genomix_cli-0.1.0/tests/integration/test_ncbi_server.py +11 -0
  76. genomix_cli-0.1.0/tests/integration/test_samtools_server.py +38 -0
  77. genomix_cli-0.1.0/tests/unit/__init__.py +0 -0
  78. genomix_cli-0.1.0/tests/unit/test_agent_loop.py +90 -0
  79. genomix_cli-0.1.0/tests/unit/test_claude_provider.py +64 -0
  80. genomix_cli-0.1.0/tests/unit/test_cli.py +53 -0
  81. genomix_cli-0.1.0/tests/unit/test_cli_noninteractive.py +38 -0
  82. genomix_cli-0.1.0/tests/unit/test_config.py +92 -0
  83. genomix_cli-0.1.0/tests/unit/test_context_compressor.py +24 -0
  84. genomix_cli-0.1.0/tests/unit/test_errors.py +13 -0
  85. genomix_cli-0.1.0/tests/unit/test_mcp_bridge.py +23 -0
  86. genomix_cli-0.1.0/tests/unit/test_opencode_provider.py +26 -0
  87. genomix_cli-0.1.0/tests/unit/test_output.py +10 -0
  88. genomix_cli-0.1.0/tests/unit/test_project_manager.py +54 -0
  89. genomix_cli-0.1.0/tests/unit/test_prompt_builder.py +27 -0
  90. genomix_cli-0.1.0/tests/unit/test_provider_base.py +49 -0
  91. genomix_cli-0.1.0/tests/unit/test_runtime.py +16 -0
  92. genomix_cli-0.1.0/tests/unit/test_session_store.py +22 -0
  93. genomix_cli-0.1.0/tests/unit/test_skill_loader.py +16 -0
  94. genomix_cli-0.1.0/tests/unit/test_skill_registry.py +23 -0
  95. genomix_cli-0.1.0/tests/unit/test_swarm_manager.py +32 -0
  96. genomix_cli-0.1.0/tests/unit/test_tool_registry.py +42 -0
@@ -0,0 +1,15 @@
1
+ __pycache__/
2
+ *.pyc
3
+ *.egg-info/
4
+ dist/
5
+ build/
6
+ .genomix/
7
+ .env
8
+ *.bam
9
+ *.bai
10
+ *.vcf.gz
11
+ *.fastq.gz
12
+ .pytest_cache/
13
+ .venv/
14
+ firebase-debug.log
15
+ .DS_Store
@@ -0,0 +1,194 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship made available under
36
+ the License, as indicated by a copyright notice that is included in
37
+ or attached to the work (an example is provided in the Appendix below).
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object
40
+ form, that is based on (or derived from) the Work and for which the
41
+ editorial revisions, annotations, elaborations, or other modifications
42
+ represent, as a whole, an original work of authorship. For the purposes
43
+ of this License, Derivative Works shall not include works that remain
44
+ separable from, or merely link (or bind by name) to the interfaces of,
45
+ the Work and Derivative Works thereof.
46
+
47
+ "Contribution" shall mean, as submitted to the Licensor for inclusion
48
+ in the Work by the copyright owner or by an individual or Legal Entity
49
+ authorized to submit on behalf of the copyright owner. For the purposes
50
+ of this definition, "submitted" means any form of electronic, verbal,
51
+ or written communication sent to the Licensor or its representatives,
52
+ including but not limited to communication on electronic mailing lists,
53
+ source code control systems, and issue tracking systems that are managed
54
+ by, or on behalf of, the Licensor for the purpose of developing and
55
+ discussing the Work, but excluding communication that is conspicuously
56
+ marked or designated in writing by the copyright owner as "Not a
57
+ Contribution."
58
+
59
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
60
+ whom a Contribution has been received by the Licensor and included
61
+ within the Work.
62
+
63
+ 2. Grant of Copyright License. Subject to the terms and conditions of
64
+ this License, each Contributor hereby grants to You a perpetual,
65
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
66
+ copyright license to reproduce, prepare Derivative Works of,
67
+ publicly display, publicly perform, sublicense, and distribute the
68
+ Work and such Derivative Works in Source or Object form.
69
+
70
+ 3. Grant of Patent License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ (except as stated in this section) patent license to make, have made,
74
+ use, offer to sell, sell, import, and otherwise transfer the Work,
75
+ where such license applies only to those patent claims licensable
76
+ by such Contributor that are necessarily infringed by their
77
+ Contribution(s) alone or by the combination of their Contribution(s)
78
+ with the Work to which such Contribution(s) was submitted. If You
79
+ institute patent litigation against any entity (including a cross-claim
80
+ or counterclaim in a lawsuit) alleging that the Work or any other
81
+ contribution embodied in the Work constitutes patent or contributory
82
+ patent infringement, then any patent licenses granted to You under
83
+ this License for that Work shall terminate as of the date such
84
+ litigation is filed.
85
+
86
+ 4. Redistribution. You may reproduce and distribute copies of the
87
+ Work or Derivative Works thereof in any medium, with or without
88
+ modifications, and in Source or Object form, provided that You
89
+ meet the following conditions:
90
+
91
+ (a) You must give any other recipients of the Work or Derivative
92
+ Works a copy of this License; and
93
+
94
+ (b) You must cause any modified files to carry prominent notices
95
+ stating that You changed the files; and
96
+
97
+ (c) You must retain, in all the Source form of any Derivative
98
+ Works that You distribute, all copyright, patent, trademark,
99
+ and attribution notices from the Source form of the Work,
100
+ excluding those notices that do not pertain to any part of
101
+ the Derivative Works; and
102
+
103
+ (d) If the Work includes a "NOTICE" text file as part of its
104
+ distribution, You must include a readable copy of the
105
+ attribution notices contained within such NOTICE file, in
106
+ at least one of the following places: within a NOTICE text
107
+ file distributed as part of the Derivative Works; within
108
+ the Source form or documentation, if provided along with the
109
+ Derivative Works; or, within a display generated by the
110
+ Derivative Works, if and wherever such third-party notices
111
+ normally appear. The contents of the NOTICE file are for
112
+ informational purposes only and do not modify the License.
113
+ You may add Your own attribution notices within Derivative
114
+ Works that You distribute, alongside or in addition to the
115
+ NOTICE text from the Work, provided that such additional
116
+ attribution notices cannot be construed as modifying the
117
+ License.
118
+
119
+ You may add Your own license statement for Your modifications and
120
+ may provide additional grant of rights to use, copy, modify, merge,
121
+ publish, distribute, sublicense, and/or sell copies of the
122
+ Derivative Works, as separate terms governing the use of those
123
+ Derivative Works, independent from this License. You must comply
124
+ with the terms of this License in making that use of the Derivative
125
+ Works.
126
+
127
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
128
+ any Contribution intentionally submitted for inclusion in the Work
129
+ by You to the Licensor shall be under the terms and conditions of
130
+ this License, without any additional terms or conditions.
131
+ Notwithstanding the above, nothing herein shall supersede or modify
132
+ the terms of any separate license agreement you may have executed
133
+ with Licensor regarding such Contributions.
134
+
135
+ 6. Trademarks. This License does not grant permission to use the trade
136
+ names, trademarks, service marks, or product names of the Licensor,
137
+ except as required for reasonable and customary use in describing the
138
+ origin of the Work and reproducing the content of the NOTICE file.
139
+
140
+ 7. Disclaimer of Warranty. Unless required by applicable law or
141
+ agreed to in writing, Licensor provides the Work (and each
142
+ Contributor provides its Contributions) on an "AS IS" BASIS,
143
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
144
+ implied, including, without limitation, any conditions of TITLE,
145
+ NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR
146
+ PURPOSE. You are solely responsible for determining the
147
+ appropriateness of using or reproducing the Work and assume any
148
+ risks associated with Your exercise of permissions under this License.
149
+
150
+ 8. Limitation of Liability. In no event and under no legal theory,
151
+ whether in tort (including negligence), contract, or otherwise,
152
+ unless required by applicable law (such as deliberate and grossly
153
+ negligent acts) or agreed to in writing, shall any Contributor be
154
+ liable to You for damages, including any direct, indirect, special,
155
+ incidental, or exemplary damages of any character arising as a
156
+ result of this License or out of the use or inability to use the
157
+ Work (including but not limited to damages for loss of goodwill,
158
+ work stoppage, computer failure or malfunction, or all other
159
+ commercial damages or losses), even if such Contributor has been
160
+ advised of the possibility of such damages.
161
+
162
+ 9. Accepting Warranty or Additional Liability. While redistributing
163
+ the Work or Derivative Works thereof, You may choose to offer,
164
+ and charge a fee for, acceptance of support, warranty, indemnity,
165
+ or other liability obligations and/or rights consistent with this
166
+ License. However, in accepting such obligations, You may offer only
167
+ conditions consistent with this License, provided that you include
168
+ a separate license agreement for those Derivative Works and, subject
169
+ to the terms of that License.
170
+
171
+ END OF TERMS AND CONDITIONS
172
+
173
+ APPENDIX: How to apply the Apache License to your work.
174
+
175
+ To apply the Apache License to your work, attach the following
176
+ boilerplate notice, with the fields enclosed by brackets "[]"
177
+ replaced with your own identifying information. (Don't include
178
+ the brackets!) The text should be enclosed in the appropriate
179
+ comment syntax for the format in question. Please also include a
180
+ copyright notice in such a format that is not covered by these fields.
181
+
182
+ Copyright [yyyy] [name of copyright owner]
183
+
184
+ Licensed under the Apache License, Version 2.0 (the "License");
185
+ you may not use this file except in compliance with the License.
186
+ You may obtain a copy of the License at
187
+
188
+ http://www.apache.org/licenses/LICENSE-2.0
189
+
190
+ Unless required by applicable law or agreed to in writing, software
191
+ distributed under the License is distributed on an "AS IS" BASIS,
192
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
193
+ See the License for the specific language governing permissions and
194
+ limitations under the License.
@@ -0,0 +1,217 @@
1
+ Metadata-Version: 2.4
2
+ Name: genomix-cli
3
+ Version: 0.1.0
4
+ Summary: AI-powered CLI for DNA sequence and genome analysis
5
+ Author: Genomix Contributors
6
+ License-Expression: Apache-2.0
7
+ License-File: LICENSE
8
+ Keywords: ai,bioinformatics,cli,dna,genomics
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: Environment :: Console
11
+ Classifier: Intended Audience :: Science/Research
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
14
+ Requires-Python: >=3.11
15
+ Requires-Dist: anthropic>=0.40
16
+ Requires-Dist: httpx>=0.27
17
+ Requires-Dist: mcp>=1.0
18
+ Requires-Dist: openai>=1.50
19
+ Requires-Dist: prompt-toolkit>=3.0
20
+ Requires-Dist: pyyaml>=6.0
21
+ Requires-Dist: rich>=13.0
22
+ Description-Content-Type: text/markdown
23
+
24
+ # Genomix CLI
25
+
26
+ ```
27
+ ██████╗ ███████╗███╗ ██╗ ██████╗ ███╗ ███╗██╗██╗ ██╗
28
+ ██╔════╝ ██╔════╝████╗ ██║██╔═══██╗████╗ ████║██║╚██╗██╔╝
29
+ ██║ ███╗█████╗ ██╔██╗ ██║██║ ██║██╔████╔██║██║ ╚███╔╝
30
+ ██║ ██║██╔══╝ ██║╚██╗██║██║ ██║██║╚██╔╝██║██║ ██╔██╗
31
+ ╚██████╔╝███████╗██║ ╚████║╚██████╔╝██║ ╚═╝ ██║██║██╔╝ ██╗
32
+ ╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝
33
+ ```
34
+
35
+ **AI-powered CLI for DNA sequence and genome analysis.**
36
+
37
+ <p align="center">
38
+ <img src="docs/demo.svg" alt="Genomix CLI Demo" width="800">
39
+ </p>
40
+
41
+ Genomix is an intelligent command-line tool that helps biologists, bioinformaticians, and researchers analyze genomic data through natural language. Ask questions about your VCF, FASTA, or FASTQ files — the AI reads them, queries real databases (NCBI, Ensembl, ClinVar), and explains results in accessible language.
42
+
43
+ **Local-first.** Runs with Ollama by default — your genomic data never leaves your machine.
44
+
45
+ ## What It Does
46
+
47
+ ```
48
+ ❯ Read raw_variants.vcf and give me a clinical summary
49
+
50
+ ⚡ read_file(path='raw_variants.vcf')
51
+ ↳ ##fileformat=VCFv4.2 ...
52
+
53
+ 1. BRCA1 missense (chr17:43094464): Pathogenic — increased breast/ovarian cancer risk
54
+ 2. CFTR deletion (chr7:117559593): Pathogenic — cystic fibrosis (homozygous)
55
+ 3. HBB missense (chr11:5226773): Pathogenic — sickle cell trait (carrier)
56
+ 4. APOE missense (chr19:44908822): Risk factor — Alzheimer's disease
57
+ ...
58
+
59
+ ❯ What does this reveal about the person's ancestry?
60
+
61
+ Based on the variant profile:
62
+ - HBB/rs334 (sickle cell trait): high frequency in African/Mediterranean populations
63
+ - CFTR deltaF508: most common in Northern European populations
64
+ - Combined profile suggests mixed European/African ancestry
65
+ ```
66
+
67
+ ## Features
68
+
69
+ - **Natural language interface** — ask questions about your genomic data in plain English or French
70
+ - **9 MCP servers** — samtools, BWA, GATK, BLAST+, FastQC, NCBI, Ensembl, ClinVar, dbSNP
71
+ - **Smart analysis** — reads raw VCFs (no annotations needed), identifies genes from coordinates, infers clinical significance
72
+ - **Ancestry inference** — population frequency analysis via gnomAD/1000 Genomes
73
+ - **12 built-in skills** — specialized AI instructions for sequencing, comparative genomics, and exploration workflows
74
+ - **3 AI providers** — Ollama/local (default), Claude (Anthropic), OpenAI
75
+ - **Privacy mode** — automatically active with local models, raw sequences never sent to cloud
76
+ - **Slash commands** — `/qc`, `/align`, `/variant-call`, `/blast`, `/msa`, `/explain`, and more
77
+ - **MCP management** — `/mcp` to view, connect, and manage bioinformatics tool servers
78
+
79
+ ## Installation
80
+
81
+ ```bash
82
+ # Install
83
+ pip install genomix-cli
84
+
85
+ # Check dependencies
86
+ genomix setup
87
+
88
+ # Initialize a project
89
+ cd my-analysis/
90
+ genomix init
91
+ ```
92
+
93
+ ### Requirements
94
+
95
+ - Python 3.11+
96
+ - [Ollama](https://ollama.ai) with a model (e.g., `ollama pull qwen3-coder:30b`)
97
+ - Optional: samtools, BWA, GATK, BLAST+ for bioinformatics tools
98
+
99
+ ## Quick Start
100
+
101
+ ```bash
102
+ # Start interactive mode
103
+ genomix
104
+
105
+ # Non-interactive usage
106
+ genomix ask "What is the BRCA1 gene?"
107
+ genomix ask "Read sample.vcf and summarize the variants"
108
+ genomix run /qc data/reads.fastq.gz
109
+ ```
110
+
111
+ ### Interactive Session
112
+
113
+ ```
114
+ ██████╗ ███████╗███╗ ██╗ ██████╗ ███╗ ███╗██╗██╗ ██╗
115
+ ...
116
+ v0.1.0 — AI-powered genome analysis
117
+
118
+ ┌──────────────────────────────────────────────────────┐
119
+ │ Project BRCA Analysis - Cohort 2026 │
120
+ │ Organism Homo sapiens │
121
+ │ Reference GRCh38 │
122
+ │ Provider opencode (qwen3-coder:30b) │
123
+ │ Privacy 🔒 ON │
124
+ │ MCP 9 registered (4 connected, 5 missing) │
125
+ └──────────────────────────────────────────────────────┘
126
+
127
+ Connecting MCP servers...
128
+ Connecting to ClinVar... ✓ (3 tools)
129
+ Connecting to dbSNP... ✓ (3 tools)
130
+ Connecting to Ensembl... ✓ (5 tools)
131
+ Connecting to NCBI... ✓ (4 tools)
132
+
133
+ ❯ _
134
+ ```
135
+
136
+ ## Slash Commands
137
+
138
+ | Command | Description |
139
+ |---------|-------------|
140
+ | **Analysis** | |
141
+ | `/qc` | Quality control (FastQC) |
142
+ | `/align` | Align reads to reference genome |
143
+ | `/variant-call` | Call variants (GATK/FreeBayes) |
144
+ | `/annotate` | Annotate variants (SnpEff/VEP) |
145
+ | `/pipeline` | Full pipeline: QC → align → call → annotate |
146
+ | **Comparative** | |
147
+ | `/blast` | BLAST similarity search |
148
+ | `/msa` | Multiple sequence alignment |
149
+ | `/phylo` | Phylogenetic tree construction |
150
+ | **Exploration** | |
151
+ | `/summary` | Summarize a genomic file |
152
+ | `/search` | Query databases (NCBI, Ensembl...) |
153
+ | `/explain` | Explain a variant, gene, or region |
154
+ | **Session** | |
155
+ | `/mcp` | Manage MCP servers (connect, status) |
156
+ | `/swarm` | Show background analyses |
157
+ | `/provider` | Switch AI provider |
158
+ | `/model` | Switch model |
159
+ | `/help` | Show available commands |
160
+
161
+ ## Architecture
162
+
163
+ ```
164
+ ┌─────────────────────────────────────────────┐
165
+ │ genomix-cli │
166
+ │ │
167
+ │ CLI/TUI ── Agent Loop ── Swarm Manager │
168
+ │ │ │
169
+ │ ┌────────────┼────────────┐ │
170
+ │ ▼ ▼ ▼ │
171
+ │ Tool Skills Project │
172
+ │ Registry System Manager │
173
+ │ │ │
174
+ │ ▼ │
175
+ │ MCP Servers │
176
+ │ ├── biotools: samtools, BWA, GATK, │
177
+ │ │ BLAST+, FastQC │
178
+ │ └── databases: NCBI, Ensembl, │
179
+ │ ClinVar, dbSNP │
180
+ │ │
181
+ │ AI Providers │
182
+ │ Ollama (local) │ Claude │ OpenAI │
183
+ └───────────────────────────────────────────────┘
184
+ ```
185
+
186
+ ## Configuration
187
+
188
+ ```yaml
189
+ # ~/.genomix/config.yaml
190
+ provider:
191
+ default: opencode # ollama local (default)
192
+ model: qwen3-coder:30b
193
+
194
+ # Or use Claude/OpenAI:
195
+ # provider:
196
+ # default: claude
197
+ # model: claude-sonnet-4-6
198
+ ```
199
+
200
+ API keys (if using cloud providers):
201
+ ```yaml
202
+ # ~/.genomix/secrets.yaml (mode 0600)
203
+ anthropic_api_key: "sk-ant-..."
204
+ openai_api_key: "sk-..."
205
+ ```
206
+
207
+ ## Contributing
208
+
209
+ Contributions welcome! This project is in early alpha.
210
+
211
+ - **Spec:** `docs/superpowers/specs/2026-03-21-genomix-cli-design.md`
212
+ - **Plan:** `docs/superpowers/plans/2026-03-21-genomix-cli.md`
213
+ - **Skills guide:** Create custom skills in `.genomix/skills/` following the SKILL.md format
214
+
215
+ ## License
216
+
217
+ Apache 2.0
@@ -0,0 +1,194 @@
1
+ # Genomix CLI
2
+
3
+ ```
4
+ ██████╗ ███████╗███╗ ██╗ ██████╗ ███╗ ███╗██╗██╗ ██╗
5
+ ██╔════╝ ██╔════╝████╗ ██║██╔═══██╗████╗ ████║██║╚██╗██╔╝
6
+ ██║ ███╗█████╗ ██╔██╗ ██║██║ ██║██╔████╔██║██║ ╚███╔╝
7
+ ██║ ██║██╔══╝ ██║╚██╗██║██║ ██║██║╚██╔╝██║██║ ██╔██╗
8
+ ╚██████╔╝███████╗██║ ╚████║╚██████╔╝██║ ╚═╝ ██║██║██╔╝ ██╗
9
+ ╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═╝
10
+ ```
11
+
12
+ **AI-powered CLI for DNA sequence and genome analysis.**
13
+
14
+ <p align="center">
15
+ <img src="docs/demo.svg" alt="Genomix CLI Demo" width="800">
16
+ </p>
17
+
18
+ Genomix is an intelligent command-line tool that helps biologists, bioinformaticians, and researchers analyze genomic data through natural language. Ask questions about your VCF, FASTA, or FASTQ files — the AI reads them, queries real databases (NCBI, Ensembl, ClinVar), and explains results in accessible language.
19
+
20
+ **Local-first.** Runs with Ollama by default — your genomic data never leaves your machine.
21
+
22
+ ## What It Does
23
+
24
+ ```
25
+ ❯ Read raw_variants.vcf and give me a clinical summary
26
+
27
+ ⚡ read_file(path='raw_variants.vcf')
28
+ ↳ ##fileformat=VCFv4.2 ...
29
+
30
+ 1. BRCA1 missense (chr17:43094464): Pathogenic — increased breast/ovarian cancer risk
31
+ 2. CFTR deletion (chr7:117559593): Pathogenic — cystic fibrosis (homozygous)
32
+ 3. HBB missense (chr11:5226773): Pathogenic — sickle cell trait (carrier)
33
+ 4. APOE missense (chr19:44908822): Risk factor — Alzheimer's disease
34
+ ...
35
+
36
+ ❯ What does this reveal about the person's ancestry?
37
+
38
+ Based on the variant profile:
39
+ - HBB/rs334 (sickle cell trait): high frequency in African/Mediterranean populations
40
+ - CFTR deltaF508: most common in Northern European populations
41
+ - Combined profile suggests mixed European/African ancestry
42
+ ```
43
+
44
+ ## Features
45
+
46
+ - **Natural language interface** — ask questions about your genomic data in plain English or French
47
+ - **9 MCP servers** — samtools, BWA, GATK, BLAST+, FastQC, NCBI, Ensembl, ClinVar, dbSNP
48
+ - **Smart analysis** — reads raw VCFs (no annotations needed), identifies genes from coordinates, infers clinical significance
49
+ - **Ancestry inference** — population frequency analysis via gnomAD/1000 Genomes
50
+ - **12 built-in skills** — specialized AI instructions for sequencing, comparative genomics, and exploration workflows
51
+ - **3 AI providers** — Ollama/local (default), Claude (Anthropic), OpenAI
52
+ - **Privacy mode** — automatically active with local models, raw sequences never sent to cloud
53
+ - **Slash commands** — `/qc`, `/align`, `/variant-call`, `/blast`, `/msa`, `/explain`, and more
54
+ - **MCP management** — `/mcp` to view, connect, and manage bioinformatics tool servers
55
+
56
+ ## Installation
57
+
58
+ ```bash
59
+ # Install
60
+ pip install genomix-cli
61
+
62
+ # Check dependencies
63
+ genomix setup
64
+
65
+ # Initialize a project
66
+ cd my-analysis/
67
+ genomix init
68
+ ```
69
+
70
+ ### Requirements
71
+
72
+ - Python 3.11+
73
+ - [Ollama](https://ollama.ai) with a model (e.g., `ollama pull qwen3-coder:30b`)
74
+ - Optional: samtools, BWA, GATK, BLAST+ for bioinformatics tools
75
+
76
+ ## Quick Start
77
+
78
+ ```bash
79
+ # Start interactive mode
80
+ genomix
81
+
82
+ # Non-interactive usage
83
+ genomix ask "What is the BRCA1 gene?"
84
+ genomix ask "Read sample.vcf and summarize the variants"
85
+ genomix run /qc data/reads.fastq.gz
86
+ ```
87
+
88
+ ### Interactive Session
89
+
90
+ ```
91
+ ██████╗ ███████╗███╗ ██╗ ██████╗ ███╗ ███╗██╗██╗ ██╗
92
+ ...
93
+ v0.1.0 — AI-powered genome analysis
94
+
95
+ ┌──────────────────────────────────────────────────────┐
96
+ │ Project BRCA Analysis - Cohort 2026 │
97
+ │ Organism Homo sapiens │
98
+ │ Reference GRCh38 │
99
+ │ Provider opencode (qwen3-coder:30b) │
100
+ │ Privacy 🔒 ON │
101
+ │ MCP 9 registered (4 connected, 5 missing) │
102
+ └──────────────────────────────────────────────────────┘
103
+
104
+ Connecting MCP servers...
105
+ Connecting to ClinVar... ✓ (3 tools)
106
+ Connecting to dbSNP... ✓ (3 tools)
107
+ Connecting to Ensembl... ✓ (5 tools)
108
+ Connecting to NCBI... ✓ (4 tools)
109
+
110
+ ❯ _
111
+ ```
112
+
113
+ ## Slash Commands
114
+
115
+ | Command | Description |
116
+ |---------|-------------|
117
+ | **Analysis** | |
118
+ | `/qc` | Quality control (FastQC) |
119
+ | `/align` | Align reads to reference genome |
120
+ | `/variant-call` | Call variants (GATK/FreeBayes) |
121
+ | `/annotate` | Annotate variants (SnpEff/VEP) |
122
+ | `/pipeline` | Full pipeline: QC → align → call → annotate |
123
+ | **Comparative** | |
124
+ | `/blast` | BLAST similarity search |
125
+ | `/msa` | Multiple sequence alignment |
126
+ | `/phylo` | Phylogenetic tree construction |
127
+ | **Exploration** | |
128
+ | `/summary` | Summarize a genomic file |
129
+ | `/search` | Query databases (NCBI, Ensembl...) |
130
+ | `/explain` | Explain a variant, gene, or region |
131
+ | **Session** | |
132
+ | `/mcp` | Manage MCP servers (connect, status) |
133
+ | `/swarm` | Show background analyses |
134
+ | `/provider` | Switch AI provider |
135
+ | `/model` | Switch model |
136
+ | `/help` | Show available commands |
137
+
138
+ ## Architecture
139
+
140
+ ```
141
+ ┌─────────────────────────────────────────────┐
142
+ │ genomix-cli │
143
+ │ │
144
+ │ CLI/TUI ── Agent Loop ── Swarm Manager │
145
+ │ │ │
146
+ │ ┌────────────┼────────────┐ │
147
+ │ ▼ ▼ ▼ │
148
+ │ Tool Skills Project │
149
+ │ Registry System Manager │
150
+ │ │ │
151
+ │ ▼ │
152
+ │ MCP Servers │
153
+ │ ├── biotools: samtools, BWA, GATK, │
154
+ │ │ BLAST+, FastQC │
155
+ │ └── databases: NCBI, Ensembl, │
156
+ │ ClinVar, dbSNP │
157
+ │ │
158
+ │ AI Providers │
159
+ │ Ollama (local) │ Claude │ OpenAI │
160
+ └───────────────────────────────────────────────┘
161
+ ```
162
+
163
+ ## Configuration
164
+
165
+ ```yaml
166
+ # ~/.genomix/config.yaml
167
+ provider:
168
+ default: opencode # ollama local (default)
169
+ model: qwen3-coder:30b
170
+
171
+ # Or use Claude/OpenAI:
172
+ # provider:
173
+ # default: claude
174
+ # model: claude-sonnet-4-6
175
+ ```
176
+
177
+ API keys (if using cloud providers):
178
+ ```yaml
179
+ # ~/.genomix/secrets.yaml (mode 0600)
180
+ anthropic_api_key: "sk-ant-..."
181
+ openai_api_key: "sk-..."
182
+ ```
183
+
184
+ ## Contributing
185
+
186
+ Contributions welcome! This project is in early alpha.
187
+
188
+ - **Spec:** `docs/superpowers/specs/2026-03-21-genomix-cli-design.md`
189
+ - **Plan:** `docs/superpowers/plans/2026-03-21-genomix-cli.md`
190
+ - **Skills guide:** Create custom skills in `.genomix/skills/` following the SKILL.md format
191
+
192
+ ## License
193
+
194
+ Apache 2.0
Binary file
@@ -0,0 +1,41 @@
1
+ Output demo.gif
2
+
3
+ Set Shell zsh
4
+ Set FontSize 14
5
+ Set Width 1200
6
+ Set Height 700
7
+ Set Theme "Catppuccin Mocha"
8
+ Set Padding 20
9
+ Set TypingSpeed 50ms
10
+
11
+ # Setup
12
+ Hide
13
+ Type "source ~/Desktop/genomix/.venv/bin/activate && export PYTHONPATH=~/Desktop/genomix && cd /tmp/genomix_test"
14
+ Enter
15
+ Sleep 1s
16
+ Show
17
+
18
+ # Launch genomix
19
+ Type "python -m genomix.cli"
20
+ Enter
21
+ Sleep 8s
22
+
23
+ # Show help
24
+ Type "/help"
25
+ Enter
26
+ Sleep 3s
27
+
28
+ # Ask about a VCF file
29
+ Type "Read brca_variants.vcf and give me a clinical summary of all variants"
30
+ Enter
31
+ Sleep 20s
32
+
33
+ # Follow-up question
34
+ Type "Which of these variants are most concerning for cancer risk?"
35
+ Enter
36
+ Sleep 15s
37
+
38
+ # Exit
39
+ Type "/quit"
40
+ Enter
41
+ Sleep 1s