Skip to content

feat(ai): add optional backend commands#118

Open
CoderMungan wants to merge 1 commit into
ActiveMemory:mainfrom
CoderMungan:feat/issue-92-ai-backend
Open

feat(ai): add optional backend commands#118
CoderMungan wants to merge 1 commit into
ActiveMemory:mainfrom
CoderMungan:feat/issue-92-ai-backend

Conversation

@CoderMungan

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: CoderMungan <codermungan@gmail.com>
@CoderMungan CoderMungan force-pushed the feat/issue-92-ai-backend branch from 294dd07 to 791785d Compare June 19, 2026 13:16
@CoderMungan CoderMungan requested a review from bilersan as a code owner June 19, 2026 13:16
@CoderMungan

Copy link
Copy Markdown
Member Author

This PR is the full implementation of Block A: AI Backend as specified in
issue #92 (specs/ctx-ai-backend.md).

What ships:

  • internal/backend/Backend interface, Registry, and OpenAI-compatible
    HTTP client
  • internal/backend/vllm.go + openaicompat.go — vLLM and generic
    openai-compatible backends
  • internal/backend/builtin_internal.go — thin wrappers for openai,
    anthropic, ollama, lmstudio
  • internal/cli/ai/ctx ai ping and ctx ai extract commands (Option 1:
    new ctx ai top-level namespace)
  • internal/cli/setup/core/backend/ctx setup --backend <name> extension;
    templates endpoint + auth wiring into .ctxrc
  • internal/rc/.ctxrc backends: YAML table parsing and validation
  • internal/compliance/ai_boundary_test.go — deterministic-core boundary guard;
    CI fails if ctx agent / ctx status / hooks ever import internal/backend
    (structural enforcement of Invariant 2)
  • internal/cli/ai/core/run/ — validation consumer: schema-constrained
    completion → proposal artifact write (.context/*.md files are never touched
    directly)
  • docs/cli/ai.md, docs/cli/setup.md, docs/recipes/local-inference-with-vllm.md
    — CLI reference and recipe docs

Related issues and PRs:

@CoderMungan CoderMungan requested a review from Copilot June 19, 2026 13:25
@CoderMungan CoderMungan requested review from hamzaerbay and v0lkan and removed request for Copilot June 19, 2026 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant