Skip to main content

AI-powered CLI development assistant

Project description

Cognix

Autonomous code generation powered by flow engineering.

Version License Python


Installation

pipx install cognix

or pip install cognix. Requires Python 3.9+.

For Windows binary installation, see INSTALL.md.


Quick Start

# Setup API key
echo "ANTHROPIC_API_KEY=your_key" > .env

# Run
cognix

# Generate code from a spec file (sample included)
cognix> /make @sample_spec_tetris.md

# Or describe what you want
cognix> /make "landing page with HTML and CSS"

A sample spec file sample_spec_tetris.md is included in the repository. Use it as a reference for writing your own specs.

For available commands, type /help in the CLI.

Linting with ruff is included by default. Additional linters (flake8, pylint) are auto-detected if installed.

Windows binary

Download cognix.exe from Releases. No Python installation required.


Model Configuration

Anthropic Claude (Default)

ANTHROPIC_API_KEY=sk-ant-your_key
# Supports: Sonnet 4.5 (default), Opus 4.5

OpenAI

OPENAI_API_KEY=sk-your_key
# Supports: GPT-5.2, GPT-5.2 Codex

OpenRouter

OPENAI_API_KEY=sk-or-v1-your_key
OPENAI_BASE_URL=https://openrouter.ai/api/v1

Switch models

cognix> /model

MCP Server Integration

Use Cognix from Claude Desktop, Cursor, VSCode, or any MCP-compatible tool.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "cognix": {
      "command": "cognix-mcp"
    }
  }
}

Data Storage

~/.cognix/
├── config.json            # Settings
├── memory.json            # Conversation & project memory
├── repository_data.json   # Repository analysis data
├── ui-knowledge.json      # UI knowledge base
├── sessions/              # Saved sessions
├── knowledge/             # App pattern definitions
├── rules/                 # File reference rules
├── backups/               # Automatic backups
└── impact_analysis/       # Impact analysis results

No telemetry. API calls only to configured LLM provider.


Links

GitHub: github.com/cognix-dev/cognix Issues: GitHub Issues Discussions: GitHub Discussions


License

Apache-2.0 License - see LICENSE file

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

cognix-0.2.0.tar.gz (484.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cognix-0.2.0-py3-none-any.whl (505.6 kB view details)

Uploaded Python 3

File details

Details for the file cognix-0.2.0.tar.gz.

File metadata

  • Download URL: cognix-0.2.0.tar.gz
  • Upload date:
  • Size: 484.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for cognix-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0c52757826c96661ba32a50b62204260f1948d5e147537f5479a6c473a52b9e4
MD5 25d57727d8d0197a11b00b7447d10fb0
BLAKE2b-256 068251fe6cc8b8f551fe5fbd1903d0041081577af0052c554fbccb7e6864d289

See more details on using hashes here.

File details

Details for the file cognix-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: cognix-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 505.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for cognix-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12f0cc1de1c579e1d1957df2db71f8715a4e1d0355077cbd8f0d5bdef90e6264
MD5 e271bd096774e0f326eaeb55f8b37638
BLAKE2b-256 80a3696e4f27eeca3b565b21d05f5ffb20af05e356ebd0e9f4924c1c17301bad

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