# commandcodeai/command-code architecture

> Architecture diagram of the GitHub repository commandcodeai/command-code, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/commandcodeai/command-code
- Repository: https://github.com/commandcodeai/command-code

## Overview

#### Purpose and Scope
This repository is the public landing repository for Command Code, an npm-distributed terminal coding agent. The product is described as an interactive CLI that builds and modifies software while learning a user-specific “Taste” profile from accepted, rejected, and edited output. No implementation source, package manifest, or executable entrypoint is present in this tree.

Grounding: `readme.md`

#### User Entry Points
The documented installation and runtime path is global npm installation followed by launching `cmd` from a target project directory. The published package is `command-code`; its actual CLI binary definition is external to this repository.

Grounding: `readme.md`

#### Core Agent Session
A Command Code session is terminal-based and operates in a user’s existing project. Its advertised responsibilities include full-stack project generation, feature work, bug fixes, test writing, and refactoring. Interactive session controls include slash commands, a Bash mode invoked with `!`, and file-path mention completion invoked with `@`.

Grounding: `readme.md`

#### Taste Learning Boundary
The architecture’s defining product capability is the persistent Taste layer, attributed to the `taste-1` model. User decisions—acceptance, rejection, and edits—are treated as feedback signals that update a coding-preference profile. This separates generic code generation from personalized decision-making and is intended to be portable across environments or teams.

Grounding: `readme.md`

#### Distribution and External Services
The material runtime/distribution dependency is npm, with installation via `npm i -g command-code`. Documentation, quickstart material, CLI reference, workflows, and product-specific Taste details are hosted externally at `commandcode.ai`. Community and feedback routes include Discord, GitHub issues, and the in-agent `/feedback` command.

Grounding: `readme.md`, `.github/ISSUE_TEMPLATE/1.bug_report.yml`, `.github/ISSUE_TEMPLATE/2.feature_request.yml`

#### Repository Role and Maintenance Surface
This repository primarily contains product documentation and GitHub issue-intake configuration rather than the agent runtime. The operational maintenance flow visible here is structured bug and feature reporting through GitHub issue templates; branding/media assets are stored under the Command Code GitHub assets directory.

Grounding: `readme.md`, `.github/ISSUE_TEMPLATE/config.yml`, `.github/commandcode`

Main entry points: [`readme.md`](https://github.com/commandcodeai/command-code/blob/main/readme.md) (Product README), [`.github/ISSUE_TEMPLATE/config.yml`](https://github.com/commandcodeai/command-code/blob/main/.github/ISSUE_TEMPLATE/config.yml) (Issue intake config), [`.github/ISSUE_TEMPLATE/1.bug_report.yml`](https://github.com/commandcodeai/command-code/blob/main/.github/ISSUE_TEMPLATE/1.bug_report.yml) (Bug report template), [`.github/ISSUE_TEMPLATE/2.feature_request.yml`](https://github.com/commandcodeai/command-code/blob/main/.github/ISSUE_TEMPLATE/2.feature_request.yml) (Feature request template)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_repo["Public repository"]
  node_readme["Product README<br/>documentation<br/>[readme.md]"]
  node_issue_config["Issue intake config<br/>GitHub config<br/>[config.yml]"]
  node_bug_template["Bug report template<br/>issue template<br/>[1.bug_report.yml]"]
  node_feature_template["Feature request template<br/>issue template"]
  node_brand_assets["Branding and media<br/>assets<br/>[commandcode]"]
end

subgraph group_runtime["Published product"]
  node_npm[("npm registry<br/>package distribution")]
  node_package["command-code package<br/>published npm package"]
  node_cli{{"cmd CLI session<br/>terminal agent"}}
  node_project["User project<br/>target workspace"]
  node_agent_actions["Coding actions<br/>agent capabilities"]
  node_taste[("Taste profile<br/>personalization layer")]
  node_external_docs["commandcode.ai<br/>external documentation"]
end

subgraph group_feedback["Feedback channels"]
  node_user_decisions(("User decisions<br/>feedback signals"))
  node_in_agent_feedback["/feedback command<br/>CLI feedback"]
  node_github_issues["GitHub issues<br/>issue tracker"]
end

node_readme -->|"documents install"| node_npm
node_npm -->|"distributes"| node_package
node_package -->|"installs globally"| node_cli
node_cli -->|"operates in"| node_project
node_cli -->|"performs"| node_agent_actions
node_agent_actions -->|"changes"| node_project
node_taste -->|"personalizes decisions"| node_agent_actions
node_user_decisions -->|"updates"| node_taste
node_cli -->|"collects during session"| node_user_decisions
node_cli -->|"offers"| node_in_agent_feedback
node_readme -->|"links to"| node_external_docs
node_issue_config -->|"routes to"| node_bug_template
node_issue_config -->|"routes to"| node_feature_template
node_bug_template -->|"creates"| node_github_issues
node_feature_template -->|"creates"| node_github_issues
node_readme -.->|"uses"| node_brand_assets

click node_readme "https://github.com/commandcodeai/command-code/blob/main/readme.md"
click node_issue_config "https://github.com/commandcodeai/command-code/blob/main/.github/ISSUE_TEMPLATE/config.yml"
click node_bug_template "https://github.com/commandcodeai/command-code/blob/main/.github/ISSUE_TEMPLATE/1.bug_report.yml"
click node_feature_template "https://github.com/commandcodeai/command-code/blob/main/.github/ISSUE_TEMPLATE/2.feature_request.yml"
click node_brand_assets "https://github.com/commandcodeai/command-code/tree/main/.github/commandcode"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_readme,node_issue_config,node_bug_template,node_feature_template,node_brand_assets toneBlue
class node_npm,node_package,node_cli,node_project,node_agent_actions,node_taste,node_external_docs toneAmber
class node_user_decisions,node_in_agent_feedback,node_github_issues toneMint
```

## Components

### Public repository

Documentation and issue intake; no runtime source is present.

- [Product README](https://github.com/commandcodeai/command-code/blob/main/readme.md): documentation · Documents installation, CLI use, Taste, and external resources. · `readme.md`
- [Issue intake config](https://github.com/commandcodeai/command-code/blob/main/.github/ISSUE_TEMPLATE/config.yml): GitHub config · `.github/ISSUE_TEMPLATE/config.yml`
- [Bug report template](https://github.com/commandcodeai/command-code/blob/main/.github/ISSUE_TEMPLATE/1.bug_report.yml): issue template · `.github/ISSUE_TEMPLATE/1.bug_report.yml`
- [Feature request template](https://github.com/commandcodeai/command-code/blob/main/.github/ISSUE_TEMPLATE/2.feature_request.yml): issue template · `.github/ISSUE_TEMPLATE/2.feature_request.yml`
- [Branding and media](https://github.com/commandcodeai/command-code/tree/main/.github/commandcode): assets · `.github/commandcode`

### Published product

External CLI runtime and services.

- **npm registry**: package distribution · Publishes the command-code package.
- **command-code package**: published npm package · Its CLI binary definition is outside this repository.
- **cmd CLI session**: terminal agent · Runs from a user's existing project directory.
- **User project**: target workspace · Receives generated and modified code.
- **Coding actions**: agent capabilities · Generation, features, fixes, tests, and refactoring.
- **Taste profile**: personalization layer · Persistent coding preferences powered by taste-1.
- **commandcode.ai**: external documentation · Hosts guides, reference, workflows, and Taste details.

### Feedback channels

- **User decisions**: feedback signals · Accepted, rejected, and edited output.
- **/feedback command**: CLI feedback
- **GitHub issues**: issue tracker

## Connections

- Product README → npm registry: documents install
- npm registry → command-code package: distributes
- command-code package → cmd CLI session: installs globally
- cmd CLI session → User project: operates in
- cmd CLI session → Coding actions: performs
- Coding actions → User project: changes
- Taste profile → Coding actions: personalizes decisions
- User decisions → Taste profile: updates
- cmd CLI session → User decisions: collects during session
- cmd CLI session → /feedback command: offers
- Product README → commandcode.ai: links to
- Issue intake config → Bug report template: routes to
- Issue intake config → Feature request template: routes to
- Bug report template → GitHub issues: creates
- Feature request template → GitHub issues: creates
- Product README → Branding and media: uses
