Metis
A terminal knowledge base for commands, code snippets, and SQL queries. Organize entries into knowledge bases (e.g. aws, terraform, snowflake), search with keywords or semantic similarity, and copy results straight to your clipboard.
Features
- Organize snippets into named knowledge bases
- Interactive TUI browser with arrow-key navigation (fzf-style)
- Keyword search and semantic/vector search (ChromaDB)
- Copy to clipboard or print to terminal with a single keypress
- Rich terminal output with colors and tables
- All data stored locally under
~/.metis
Installation
pip install -e .
Requires Python 3.9+.
Quick start
# Create knowledge bases
metis --kb aws
metis --kb terraform
metis --kb snowflake
# Add entries
metis add --kb aws -t "List VPC subnets" \
-c "aws ec2 describe-subnets --filters Name=vpc-id,Values=vpc-xxx" \
-d "Get all subnets in a VPC" --tags "ec2,vpc,networking"
metis add --kb terraform -t "Plan and apply" \
-c "terraform plan -out=tfplan && terraform apply tfplan" \
--tags "iac,deploy"
metis add --kb snowflake -t "Get task history" \
-c "SELECT * FROM TABLE(INFORMATION_SCHEMA.TASK_HISTORY()) ORDER BY SCHEDULED_TIME DESC LIMIT 20;" \
--tags "tasks,monitoring"
Usage
metis [OPTIONS] COMMAND [ARGS]
Global options
| Option | Description |
|---|---|
metis -V |
Show version |
metis -l / metis --list |
List all knowledge bases |
metis --kb <name> |
Create a new knowledge base |
Commands
| Command | Description |
|---|---|
metis add |
Add an entry (prompts for title and command) |
metis find [query] |
Search entries; no query opens interactive browser |
metis find -s <query> |
Semantic / vector search |
metis find -p <query> |
Search then pick an entry to copy or print |
metis ls |
List all entries |
metis ls --kb aws |
List entries in a specific knowledge base |
metis ls -p |
List then pick an entry to copy or print |
metis rm <id> |
Delete an entry by ID |
metis reindex |
Rebuild the vector search index |
Interactive browser (metis find)
Running metis find with no arguments opens a full-screen TUI:
- Knowledge base selector — pick a KB or "all"
- Entry browser — type to filter, arrows to navigate,
cto copy,pto print
| Key | Action |
|---|---|
↑ / ↓ |
Navigate entries |
→ / Enter |
Open knowledge base |
← / Backspace |
Go back to KB list |
Ctrl+K |
Toggle search mode (type to filter) |
Esc / Enter |
Exit search mode |
c |
Copy highlighted command to clipboard |
p |
Print highlighted command and exit |
q / Ctrl-C |
Quit |
Type any characters to filter entries by keyword.
Data storage
All data lives in ~/.metis/:
~/.metis/
├── metis.json # knowledge bases and entries
└── vectorstore/ # ChromaDB vector index
Development
# Install in editable mode
pip install -e .
# Lint
pip install ruff
ruff check src/
ruff format src/
License
MIT
Metadata
Release files for metis-kb 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| metis_kb-0.1.2.tar.gz | 12.8 kB | With provenance | Details for metis_kb-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| metis_kb-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for metis_kb-0.1.2-py3-none-any.whl |
Total release size: 25.7 kB
Release files / metis_kb-0.1.2.tar.gz
| Download URL | metis_kb-0.1.2.tar.gz |
|---|---|
| Size | 12.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19e58b4c2d6dee07328c83dde58bc9b4ad692d78bfe05c548c559942ffad6dfe
|
|
BLAKE2b-256 checksum How to use checksums |
30cc6395178222812799169b5b0d15d506603df4bd6837cd57a7ca113121ed2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 21, 2026.
Transparency logRelease files / metis_kb-0.1.2-py3-none-any.whl
| Download URL | metis_kb-0.1.2-py3-none-any.whl |
|---|---|
| Size | 12.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d885cefaaa3b5c80ace1d33a1f6488e88278eaa8279584eef9b45e709dd2b89f
|
|
BLAKE2b-256 checksum How to use checksums |
a42a1c603817521b796bb34a23b901e1fe78eb3beacc4213dd280d21b0e1cc19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 21, 2026.
Transparency logSecurity for metis-kb 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for metis_kb-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.