[FEATURE] Inline code explanation and docstring suggestions #770

Open
opened 2026-07-12 22:42:44 +00:00 by jmiller · 0 comments
Owner

Child of #763 (Native AI features in MokoGitea via the MokoAi stack).

Feature Description

In the code viewer, explain a selected function/block and suggest docstrings/comments on demand.

Proposed Solution

Add a code-view action that sends the selected snippet (with file context) to MokoAi and renders an explanation or a suggested docstring inline.

Dependencies

  • MokoConsulting/mokoai#1 (bridge auth), #3 (routing).
  • Model alias: mokoai-coder.

Notes

  • Runs as the requesting user via MokoGitea-bridge auth (no shared keys).
  • Calls the self-hosted MokoAi gateway; feature-flagged; all inference stays on-prem.
Child of #763 (Native AI features in MokoGitea via the MokoAi stack). ## Feature Description In the code viewer, explain a selected function/block and suggest docstrings/comments on demand. ## Proposed Solution Add a code-view action that sends the selected snippet (with file context) to MokoAi and renders an explanation or a suggested docstring inline. ## Dependencies - MokoConsulting/mokoai#1 (bridge auth), #3 (routing). - Model alias: mokoai-coder. ## Notes - Runs as the requesting user via MokoGitea-bridge auth (no shared keys). - Calls the self-hosted MokoAi gateway; feature-flagged; all inference stays on-prem.
Sign in to join this conversation.