{"id":38978153,"url":"https://github.com/cortexlinux/cortex-cli","last_synced_at":"2026-01-17T16:49:27.478Z","repository":{"id":332816725,"uuid":"1129055327","full_name":"cortexlinux/cortex-cli","owner":"cortexlinux","description":"AI-powered CLI shell: natural language to system commands, prompt-to-plan pipeline, Firejail sandbox","archived":false,"fork":false,"pushed_at":"2026-01-15T16:47:51.000Z","size":10,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-15T19:44:57.913Z","etag":null,"topics":["ai-assistant","ai-native","apt","automation","bash","chatgpt","cli","command-line","cortex-linux","devops","firejail","linux","llm","natural-language","package-manager","sandbox","shell","sysadmin","systemd","terminal"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cortexlinux.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-06T14:41:44.000Z","updated_at":"2026-01-15T16:47:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cortexlinux/cortex-cli","commit_stats":null,"previous_names":["cortexlinux/cortex-cli"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/cortexlinux/cortex-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cortexlinux%2Fcortex-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cortexlinux%2Fcortex-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cortexlinux%2Fcortex-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cortexlinux%2Fcortex-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cortexlinux","download_url":"https://codeload.github.com/cortexlinux/cortex-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cortexlinux%2Fcortex-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28511870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-assistant","ai-native","apt","automation","bash","chatgpt","cli","command-line","cortex-linux","devops","firejail","linux","llm","natural-language","package-manager","sandbox","shell","sysadmin","systemd","terminal"],"created_at":"2026-01-17T16:49:26.894Z","updated_at":"2026-01-17T16:49:27.470Z","avatar_url":"https://github.com/cortexlinux.png","language":null,"readme":"# Cortex CLI\n\n**AI-Powered Command Line Interface for Linux System Administration**\n\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)\n[![Python](https://img.shields.io/badge/python-3.11+-3776AB.svg)](https://python.org)\n\n## Overview\n\n`cortex-cli` is the core user interface for Cortex Linux. It translates natural language into safe, sandboxed system commands with explicit user confirmation before any privileged operations.\n\n## Key Features\n\n| Feature | Description |\n|---------|-------------|\n| **Natural Language** | \"install nginx\" → apt install nginx |\n| **Prompt-to-Plan** | Shows exactly what will execute before running |\n| **No Silent Sudo** | Every privileged action requires explicit confirmation |\n| **Firejail Sandbox** | Commands run in isolated environments |\n| **Audit Logging** | Complete transcript of all operations |\n\n## Example Session\n\n```\n$ cortex\nWelcome to Cortex Linux Shell\n\ncortex\u003e install nginx and configure it for reverse proxy\n\n📋 Plan:\n  1. sudo apt update\n  2. sudo apt install -y nginx\n  3. Create /etc/nginx/sites-available/reverse-proxy.conf\n  4. sudo systemctl enable --now nginx\n\n⚠️  This requires elevated privileges.\n   Commands will modify: apt packages, nginx config, systemd\n\n[Execute] [Dry-run] [Cancel] \u003e \n```\n\n## Architecture\n\n```\ncortex-cli/\n├── src/\n│   ├── cortex/\n│   │   ├── __init__.py\n│   │   ├── cli.py              # REPL entrypoint\n│   │   ├── intent/             # Intent detection\n│   │   ├── planner/            # Prompt-to-plan pipeline\n│   │   ├── adapters/           # APT, systemctl, etc.\n│   │   ├── sandbox/            # Firejail execution\n│   │   └── audit/              # Transcript logging\n├── skills/                     # Pluggable skill definitions\n├── tests/                      # Test suite\n└── docs/                       # CLI documentation\n```\n\n## Topics (from Planning)\n\nThis repository covers 10 major topics with 103 decisions and 91 tasks:\n\n- [ ] APT prompt adapters (install, remove, update, upgrade, search)\n- [ ] Audit logging, transcripts, and explainability\n- [ ] Configuration change engine (no manual file editing)\n- [ ] Cortex REPL command and shell integration\n- [ ] Privilege escalation with explicit confirmation (no silent sudo)\n- [ ] Prompt-to-plan pipeline (intent detection and tool selection)\n- [ ] Safe command construction and execution sandbox\n- [ ] Skill/plugin framework for new prompts and actions\n- [ ] System status question answering (disk, packages, ports, versions)\n- [ ] systemctl prompt adapters (start/stop/restart/enable/status)\n\n## Installation\n\n```bash\n# From Cortex repository (recommended)\nsudo apt install cortex-cli\n\n# From source\npip install -e .\n```\n\n## Configuration\n\n```bash\n# Config location\n~/.config/cortex/config.yaml\n\n# Environment variables\nCORTEX_MODEL=local          # or 'claude', 'openai'\nCORTEX_SANDBOX=firejail     # or 'none' (not recommended)\nCORTEX_LOG_LEVEL=info\n```\n\n## Related Repositories\n\n- [cortex-llm](https://github.com/cortexlinux/cortex-llm) - LLM backend\n- [cortex-security](https://github.com/cortexlinux/cortex-security) - Sandbox profiles\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n## License\n\nApache 2.0 - See [LICENSE](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcortexlinux%2Fcortex-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcortexlinux%2Fcortex-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcortexlinux%2Fcortex-cli/lists"}