koder 0.5.1__tar.gz → 0.5.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. koder-0.5.1/README.md → koder-0.5.3/PKG-INFO +106 -7
  2. koder-0.5.1/PKG-INFO → koder-0.5.3/README.md +60 -53
  3. {koder-0.5.1 → koder-0.5.3}/koder_agent/__init__.py +1 -1
  4. {koder-0.5.1 → koder-0.5.3}/koder_agent/agentic/api_errors.py +13 -1
  5. {koder-0.5.1 → koder-0.5.3}/koder_agent/cli.py +13 -4
  6. {koder-0.5.1 → koder-0.5.3}/koder_agent/core/scheduler.py +18 -4
  7. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/auth/commands.py +112 -1
  8. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/onboarding.py +39 -2
  9. {koder-0.5.1 → koder-0.5.3}/koder_agent/utils/client.py +3 -1
  10. {koder-0.5.1 → koder-0.5.3}/pyproject.toml +20 -20
  11. {koder-0.5.1 → koder-0.5.3}/.claude/settings.local.json +0 -0
  12. {koder-0.5.1 → koder-0.5.3}/.gitignore +0 -0
  13. {koder-0.5.1 → koder-0.5.3}/LICENSE +0 -0
  14. {koder-0.5.1 → koder-0.5.3}/koder_agent/agentic/__init__.py +0 -0
  15. {koder-0.5.1 → koder-0.5.3}/koder_agent/agentic/agent.py +0 -0
  16. {koder-0.5.1 → koder-0.5.3}/koder_agent/agentic/approval_hooks.py +0 -0
  17. {koder-0.5.1 → koder-0.5.3}/koder_agent/agentic/hook_guardrail.py +0 -0
  18. {koder-0.5.1 → koder-0.5.3}/koder_agent/agentic/hooks.py +0 -0
  19. {koder-0.5.1 → koder-0.5.3}/koder_agent/agentic/plan_guardrail.py +0 -0
  20. {koder-0.5.1 → koder-0.5.3}/koder_agent/agentic/skill_guardrail.py +0 -0
  21. {koder-0.5.1 → koder-0.5.3}/koder_agent/auth/__init__.py +0 -0
  22. {koder-0.5.1 → koder-0.5.3}/koder_agent/auth/base.py +0 -0
  23. {koder-0.5.1 → koder-0.5.3}/koder_agent/auth/callback_server.py +0 -0
  24. {koder-0.5.1 → koder-0.5.3}/koder_agent/auth/client_integration.py +0 -0
  25. {koder-0.5.1 → koder-0.5.3}/koder_agent/auth/codex_prompts.py +0 -0
  26. {koder-0.5.1 → koder-0.5.3}/koder_agent/auth/constants.py +0 -0
  27. {koder-0.5.1 → koder-0.5.3}/koder_agent/auth/litellm_oauth.py +0 -0
  28. {koder-0.5.1 → koder-0.5.3}/koder_agent/auth/providers/__init__.py +0 -0
  29. {koder-0.5.1 → koder-0.5.3}/koder_agent/auth/providers/antigravity.py +0 -0
  30. {koder-0.5.1 → koder-0.5.3}/koder_agent/auth/providers/chatgpt.py +0 -0
  31. {koder-0.5.1 → koder-0.5.3}/koder_agent/auth/providers/claude.py +0 -0
  32. {koder-0.5.1 → koder-0.5.3}/koder_agent/auth/providers/google.py +0 -0
  33. {koder-0.5.1 → koder-0.5.3}/koder_agent/auth/secure_storage.py +0 -0
  34. {koder-0.5.1 → koder-0.5.3}/koder_agent/auth/token_storage.py +0 -0
  35. {koder-0.5.1 → koder-0.5.3}/koder_agent/auth/tool_utils.py +0 -0
  36. {koder-0.5.1 → koder-0.5.3}/koder_agent/config/__init__.py +0 -0
  37. {koder-0.5.1 → koder-0.5.3}/koder_agent/config/manager.py +0 -0
  38. {koder-0.5.1 → koder-0.5.3}/koder_agent/config/models.py +0 -0
  39. {koder-0.5.1 → koder-0.5.3}/koder_agent/core/__init__.py +0 -0
  40. {koder-0.5.1 → koder-0.5.3}/koder_agent/core/at_completer.py +0 -0
  41. {koder-0.5.1 → koder-0.5.3}/koder_agent/core/at_mentions.py +0 -0
  42. {koder-0.5.1 → koder-0.5.3}/koder_agent/core/auto_suggest.py +0 -0
  43. {koder-0.5.1 → koder-0.5.3}/koder_agent/core/bash_security.py +0 -0
  44. {koder-0.5.1 → koder-0.5.3}/koder_agent/core/file_index.py +0 -0
  45. {koder-0.5.1 → koder-0.5.3}/koder_agent/core/interactive.py +0 -0
  46. {koder-0.5.1 → koder-0.5.3}/koder_agent/core/keybindings.py +0 -0
  47. {koder-0.5.1 → koder-0.5.3}/koder_agent/core/keyboard_listener.py +0 -0
  48. {koder-0.5.1 → koder-0.5.3}/koder_agent/core/notifications.py +0 -0
  49. {koder-0.5.1 → koder-0.5.3}/koder_agent/core/security.py +0 -0
  50. {koder-0.5.1 → koder-0.5.3}/koder_agent/core/session.py +0 -0
  51. {koder-0.5.1 → koder-0.5.3}/koder_agent/core/shell_completer.py +0 -0
  52. {koder-0.5.1 → koder-0.5.3}/koder_agent/core/skill_usage.py +0 -0
  53. {koder-0.5.1 → koder-0.5.3}/koder_agent/core/status_line.py +0 -0
  54. {koder-0.5.1 → koder-0.5.3}/koder_agent/core/streaming_display.py +0 -0
  55. {koder-0.5.1 → koder-0.5.3}/koder_agent/core/terminal_reflow.py +0 -0
  56. {koder-0.5.1 → koder-0.5.3}/koder_agent/core/usage_tracker.py +0 -0
  57. {koder-0.5.1 → koder-0.5.3}/koder_agent/core/vim_mode.py +0 -0
  58. {koder-0.5.1 → koder-0.5.3}/koder_agent/data/__init__.py +0 -0
  59. {koder-0.5.1 → koder-0.5.3}/koder_agent/data/model_prices_and_context_window.json +0 -0
  60. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/__init__.py +0 -0
  61. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/add_dir_validation.py +0 -0
  62. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/agents/__init__.py +0 -0
  63. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/agents/commands.py +0 -0
  64. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/agents/definitions.py +0 -0
  65. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/agents/hooks.py +0 -0
  66. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/agents/messages.py +0 -0
  67. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/agents/models.py +0 -0
  68. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/agents/service.py +0 -0
  69. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/agents/summary.py +0 -0
  70. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/agents/teams/__init__.py +0 -0
  71. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/agents/teams/context.py +0 -0
  72. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/agents/teams/in_process.py +0 -0
  73. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/agents/teams/memory_sync.py +0 -0
  74. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/agents/teams/models.py +0 -0
  75. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/agents/teams/permission_bridge.py +0 -0
  76. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/agents/teams/routing.py +0 -0
  77. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/agents/teams/runtime.py +0 -0
  78. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/agents/teams/service.py +0 -0
  79. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/agents/teams/task_service.py +0 -0
  80. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/agents/teams/tmux_backend.py +0 -0
  81. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/auth/__init__.py +0 -0
  82. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/bootstrap.py +0 -0
  83. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/buddy.py +0 -0
  84. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/channels/__init__.py +0 -0
  85. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/channels/gate.py +0 -0
  86. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/channels/interceptor.py +0 -0
  87. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/channels/notification.py +0 -0
  88. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/channels/permissions.py +0 -0
  89. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/channels/state.py +0 -0
  90. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/channels/types.py +0 -0
  91. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/cli/__init__.py +0 -0
  92. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/cli/entrypoint.py +0 -0
  93. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/code_intelligence.py +0 -0
  94. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/__init__.py +0 -0
  95. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/advisor.py +0 -0
  96. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/agents_view.py +0 -0
  97. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/brief.py +0 -0
  98. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/buddy.py +0 -0
  99. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/builtins/__init__.py +0 -0
  100. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/builtins/config_commands.py +0 -0
  101. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/builtins/inspection_commands.py +0 -0
  102. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/builtins/plugin_commands.py +0 -0
  103. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/builtins/runtime_commands.py +0 -0
  104. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/builtins/session_commands.py +0 -0
  105. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/builtins/workflow_review_commands.py +0 -0
  106. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/builtins/workflow_state_commands.py +0 -0
  107. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/interactive.py +0 -0
  108. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/internal/__init__.py +0 -0
  109. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/internal/debug_commands.py +0 -0
  110. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/internal/diagnostic_commands.py +0 -0
  111. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/pr_comments.py +0 -0
  112. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/registry.py +0 -0
  113. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/review_context.py +0 -0
  114. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/security_review.py +0 -0
  115. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/commands/workflow_helpers.py +0 -0
  116. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/config/__init__.py +0 -0
  117. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/config/backup.py +0 -0
  118. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/config/commands.py +0 -0
  119. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/config/migration.py +0 -0
  120. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/config/schema.py +0 -0
  121. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/config/service.py +0 -0
  122. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/config/settings_bundle.py +0 -0
  123. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/cron/__init__.py +0 -0
  124. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/cron/scheduler.py +0 -0
  125. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/cron/storage.py +0 -0
  126. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/github_actions.py +0 -0
  127. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/hooks/runtime.py +0 -0
  128. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/ide.py +0 -0
  129. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/magic_docs.py +0 -0
  130. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/managed_settings.py +0 -0
  131. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/mcp/__init__.py +0 -0
  132. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/mcp/commands.py +0 -0
  133. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/memory/__init__.py +0 -0
  134. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/memory/auto_compact.py +0 -0
  135. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/memory/auto_dream.py +0 -0
  136. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/memory/budget.py +0 -0
  137. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/memory/compact.py +0 -0
  138. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/memory/extraction.py +0 -0
  139. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/memory/legacy_db.py +0 -0
  140. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/memory/memory_files.py +0 -0
  141. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/memory/micro_compact.py +0 -0
  142. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/memory/models.py +0 -0
  143. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/memory/post_compact.py +0 -0
  144. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/memory/pruning.py +0 -0
  145. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/memory/recovery.py +0 -0
  146. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/memory/retrieval.py +0 -0
  147. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/memory/session_memory.py +0 -0
  148. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/memory/transcript_store.py +0 -0
  149. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/memory/writer_lock.py +0 -0
  150. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/paths.py +0 -0
  151. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/permissions/__init__.py +0 -0
  152. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/permissions/ai_classifier.py +0 -0
  153. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/permissions/denial_log.py +0 -0
  154. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/permissions/modes.py +0 -0
  155. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/permissions/path_policy.py +0 -0
  156. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/permissions/persistence.py +0 -0
  157. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/permissions/powershell_classifier.py +0 -0
  158. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/permissions/propagation.py +0 -0
  159. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/permissions/results.py +0 -0
  160. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/permissions/rule_sources.py +0 -0
  161. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/permissions/rules.py +0 -0
  162. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/permissions/service.py +0 -0
  163. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/permissions/shell_classifier.py +0 -0
  164. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/plan/__init__.py +0 -0
  165. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/plan/mode.py +0 -0
  166. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/plugins/__init__.py +0 -0
  167. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/plugins/catalog.py +0 -0
  168. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/plugins/commands.py +0 -0
  169. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/plugins/env.py +0 -0
  170. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/plugins/lifecycle.py +0 -0
  171. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/plugins/manifest.py +0 -0
  172. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/plugins/marketplace.py +0 -0
  173. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/plugins/name_validation.py +0 -0
  174. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/plugins/options.py +0 -0
  175. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/plugins/registry.py +0 -0
  176. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/plugins/session_root.py +0 -0
  177. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/plugins/state.py +0 -0
  178. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/plugins/validator.py +0 -0
  179. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/policy_limits.py +0 -0
  180. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/pr_status.py +0 -0
  181. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/prompt_suggestion.py +0 -0
  182. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/reasoning_display.py +0 -0
  183. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/release_notes.py +0 -0
  184. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/runtime.py +0 -0
  185. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/sandbox/__init__.py +0 -0
  186. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/sandbox/backend.py +0 -0
  187. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/sandbox/policy.py +0 -0
  188. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/sandbox/registry.py +0 -0
  189. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/sandbox/sdk_backend.py +0 -0
  190. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/sandbox/smoke.py +0 -0
  191. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/sandbox/workspace.py +0 -0
  192. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/sandbox_settings.py +0 -0
  193. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/session_env.py +0 -0
  194. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/session_flow.py +0 -0
  195. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/skills/bundled.py +0 -0
  196. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/skills/discovery.py +0 -0
  197. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/state/__init__.py +0 -0
  198. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/state/actions.py +0 -0
  199. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/state/models.py +0 -0
  200. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/state/selectors.py +0 -0
  201. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/state/store.py +0 -0
  202. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/statusline_settings.py +0 -0
  203. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/statusline_setup.py +0 -0
  204. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/tasks/__init__.py +0 -0
  205. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/tasks/models.py +0 -0
  206. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/tasks/output.py +0 -0
  207. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/tasks/service.py +0 -0
  208. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/tasks/storage.py +0 -0
  209. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/tips.py +0 -0
  210. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/tools/__init__.py +0 -0
  211. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/tools/code_intelligence_ops.py +0 -0
  212. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/tools/file_ops.py +0 -0
  213. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/tools/mcp_ops.py +0 -0
  214. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/tools/registry.py +0 -0
  215. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/tools/search_ops.py +0 -0
  216. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/tools/shell.py +0 -0
  217. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/tools/shell_executor.py +0 -0
  218. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/tools/web_ops.py +0 -0
  219. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/ui/__init__.py +0 -0
  220. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/ui/app.py +0 -0
  221. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/ui/permissions/__init__.py +0 -0
  222. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/ui/permissions/dialog.py +0 -0
  223. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/ui/screens/__init__.py +0 -0
  224. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/ui/screens/main.py +0 -0
  225. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/ui/screens/plugins.py +0 -0
  226. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/ui/widgets/__init__.py +0 -0
  227. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/ui/widgets/prompt_buffer.py +0 -0
  228. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/ui/widgets/status_line.py +0 -0
  229. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/version_info.py +0 -0
  230. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/voice/__init__.py +0 -0
  231. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/voice/keyterms.py +0 -0
  232. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/voice/service.py +0 -0
  233. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/worktree/__init__.py +0 -0
  234. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/worktree/conflicts.py +0 -0
  235. {koder-0.5.1 → koder-0.5.3}/koder_agent/harness/worktree/service.py +0 -0
  236. {koder-0.5.1 → koder-0.5.3}/koder_agent/litellm_cost_map.py +0 -0
  237. {koder-0.5.1 → koder-0.5.3}/koder_agent/mcp/__init__.py +0 -0
  238. {koder-0.5.1 → koder-0.5.3}/koder_agent/mcp/elicitation.py +0 -0
  239. {koder-0.5.1 → koder-0.5.3}/koder_agent/mcp/limits.py +0 -0
  240. {koder-0.5.1 → koder-0.5.3}/koder_agent/mcp/notifications.py +0 -0
  241. {koder-0.5.1 → koder-0.5.3}/koder_agent/mcp/oauth.py +0 -0
  242. {koder-0.5.1 → koder-0.5.3}/koder_agent/mcp/project_approvals.py +0 -0
  243. {koder-0.5.1 → koder-0.5.3}/koder_agent/mcp/prompts.py +0 -0
  244. {koder-0.5.1 → koder-0.5.3}/koder_agent/mcp/reconnection.py +0 -0
  245. {koder-0.5.1 → koder-0.5.3}/koder_agent/mcp/serve.py +0 -0
  246. {koder-0.5.1 → koder-0.5.3}/koder_agent/mcp/server_config.py +0 -0
  247. {koder-0.5.1 → koder-0.5.3}/koder_agent/mcp/server_factory.py +0 -0
  248. {koder-0.5.1 → koder-0.5.3}/koder_agent/mcp/server_manager.py +0 -0
  249. {koder-0.5.1 → koder-0.5.3}/koder_agent/providers/__init__.py +0 -0
  250. {koder-0.5.1 → koder-0.5.3}/koder_agent/providers/compat.py +0 -0
  251. {koder-0.5.1 → koder-0.5.3}/koder_agent/providers/models.py +0 -0
  252. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/__init__.py +0 -0
  253. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/agent.py +0 -0
  254. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/ask_user.py +0 -0
  255. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/code_intelligence.py +0 -0
  256. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/compat.py +0 -0
  257. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/config_tool.py +0 -0
  258. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/cron.py +0 -0
  259. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/engine.py +0 -0
  260. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/file.py +0 -0
  261. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/file_state.py +0 -0
  262. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/fork_agent.py +0 -0
  263. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/mcp_resource.py +0 -0
  264. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/notebook_edit.py +0 -0
  265. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/orchestration.py +0 -0
  266. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/plan_mode.py +0 -0
  267. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/powershell.py +0 -0
  268. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/search.py +0 -0
  269. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/send_message.py +0 -0
  270. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/shell.py +0 -0
  271. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/skill.py +0 -0
  272. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/skill_context.py +0 -0
  273. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/sleep.py +0 -0
  274. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/structured_output.py +0 -0
  275. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/task.py +0 -0
  276. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/task_lifecycle.py +0 -0
  277. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/task_output.py +0 -0
  278. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/task_stop.py +0 -0
  279. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/team.py +0 -0
  280. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/todo.py +0 -0
  281. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/tool_search.py +0 -0
  282. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/web.py +0 -0
  283. {koder-0.5.1 → koder-0.5.3}/koder_agent/tools/worktree.py +0 -0
  284. {koder-0.5.1 → koder-0.5.3}/koder_agent/utils/__init__.py +0 -0
  285. {koder-0.5.1 → koder-0.5.3}/koder_agent/utils/model_deprecation.py +0 -0
  286. {koder-0.5.1 → koder-0.5.3}/koder_agent/utils/model_info.py +0 -0
  287. {koder-0.5.1 → koder-0.5.3}/koder_agent/utils/prompts.py +0 -0
  288. {koder-0.5.1 → koder-0.5.3}/koder_agent/utils/queue.py +0 -0
  289. {koder-0.5.1 → koder-0.5.3}/koder_agent/utils/sessions.py +0 -0
  290. {koder-0.5.1 → koder-0.5.3}/koder_agent/utils/terminal_theme.py +0 -0
@@ -1,24 +1,95 @@
1
+ Metadata-Version: 2.4
2
+ Name: koder
3
+ Version: 0.5.3
4
+ Summary: An intuitive AI coding assistant and interactive CLI tool that boosts developer productivity with intelligent automation and context-aware support.
5
+ Project-URL: Homepage, https://github.com/feiskyer/koder
6
+ Project-URL: Repository, https://github.com/feiskyer/koder
7
+ Author: Pengfei Ni
8
+ License-File: LICENSE
9
+ Keywords: agent,agentic,ai,copilot,litellm,openai,vibe coding
10
+ Requires-Python: >=3.10
11
+ Requires-Dist: aiosqlite>=0.22.1
12
+ Requires-Dist: anthropic>=0.104.1
13
+ Requires-Dist: apscheduler>=3.11.2
14
+ Requires-Dist: backoff>=2.2.1
15
+ Requires-Dist: beautifulsoup4>=4.14.3
16
+ Requires-Dist: boto3>=1.43.14
17
+ Requires-Dist: cryptography>=48.0.0
18
+ Requires-Dist: ddgs>=9.14.4
19
+ Requires-Dist: docker>=7.1.0
20
+ Requires-Dist: e2b-code-interpreter>=2.7.0
21
+ Requires-Dist: e2b>=2.23.1
22
+ Requires-Dist: fastapi-sso>=0.21.0
23
+ Requires-Dist: fastapi>=0.136.3
24
+ Requires-Dist: google-cloud-aiplatform>=1.153.1
25
+ Requires-Dist: httpx[socks]>=0.28.1
26
+ Requires-Dist: jsonschema>=4.26.0
27
+ Requires-Dist: litellm>=1.85.1
28
+ Requires-Dist: modal>=1.4.3
29
+ Requires-Dist: openai-agents[litellm]>=0.17.3
30
+ Requires-Dist: openai==2.38.0
31
+ Requires-Dist: orjson>=3.11.9
32
+ Requires-Dist: prompt-toolkit>=3.0.52
33
+ Requires-Dist: pydantic>=2.13.4
34
+ Requires-Dist: pyjwt>=2.13.0
35
+ Requires-Dist: pynacl>=1.6.2
36
+ Requires-Dist: python-multipart>=0.0.29
37
+ Requires-Dist: pyyaml>=6.0.3
38
+ Requires-Dist: requests>=2.34.2
39
+ Requires-Dist: rich>=15.0.0
40
+ Requires-Dist: sounddevice>=0.5.5
41
+ Requires-Dist: tiktoken>=0.13.0
42
+ Requires-Dist: vercel>=0.5.9
43
+ Requires-Dist: websockets>=16.0
44
+ Requires-Dist: whatthepatch>=1.0.7
45
+ Description-Content-Type: text/markdown
46
+
1
47
  # Koder
2
48
 
3
- [![Python](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
49
+ [![Python](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
4
50
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
5
51
  [![PyPI Downloads](https://static.pepy.tech/badge/koder)](https://pepy.tech/projects/koder)
6
52
  [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
7
53
  [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
8
54
 
9
- Koder is an experimental AI coding assistant for the terminal. It combines a streaming TUI, persistent local sessions, repository-aware tools, extensible skills, MCP integrations, and multi-agent workflows in one Python runtime.
55
+ Koder is an experimental, open-source AI coding assistant for the terminal. It combines a streaming TUI, persistent local sessions, repository-aware tools, extensible skills, MCP integrations, sandbox-aware permissions, and multi-agent workflows in one Python runtime.
10
56
 
11
57
  Status: Alpha. Koder is a learning-focused project for exploring agentic coding systems. Expect rapid iteration and occasional sharp edges.
12
58
 
59
+ ## Start Here
60
+
61
+ ```bash
62
+ uv tool install koder
63
+ export KODER_API_KEY="your-api-key"
64
+ export KODER_MODEL="gpt-4o"
65
+ koder
66
+ ```
67
+
68
+ Prefer a provider-specific key or subscription login? Jump to [Model Configuration](#model-configuration).
69
+
13
70
  ## Why Koder
14
71
 
15
- Koder is designed for developers who want a local-first coding assistant that can work across model providers without changing their workflow.
72
+ Koder is designed for developers who want a local-first coding agent they can inspect, extend, and run across model providers without changing their workflow.
16
73
 
17
74
  - Bring your own model: OpenAI, Anthropic, Google/Gemini, GitHub Copilot, Azure, OAuth-backed subscriptions, OpenRouter, and 100+ LiteLLM providers.
18
75
  - Stay in the terminal: use slash commands, file mentions, shell mode, history search, live usage output, and optional voice dictation.
19
- - Keep context local: sessions, transcripts, memories, task records, settings, skills, agents, and team state live under Koder-owned local paths.
76
+ - Keep runtime state local: sessions, transcripts, memories, task records, settings, skills, agents, and team state live under Koder-owned local paths. Model requests still go to the provider you configure.
20
77
  - Extend the runtime: add project skills, user skills, plugins, MCP servers, channels, and Magic Docs.
21
78
  - Delegate carefully: run background subagents and local teams while the main session stays responsible for integration.
79
+ - Study the system: the Python codebase is organized to make agent scheduling, provider routing, permissions, tools, and TUI behavior easy to trace.
80
+
81
+ ## How It Fits
82
+
83
+ Koder is in the same broad family as terminal-first and open-source AI coding agents. Its emphasis is different:
84
+
85
+ | If you care about... | Koder emphasizes |
86
+ |---|---|
87
+ | Provider choice | Universal `KODER_*` variables, provider-specific keys, OAuth-backed subscriptions, custom base URLs, and LiteLLM provider routing. |
88
+ | Terminal ergonomics | A persistent Rich TUI with slash commands, shell mode, file mentions, usage/cost output, voice input, and resume. |
89
+ | Local inspectability | SQLite sessions, local memory, local settings, local tokens, and documented privacy boundaries. |
90
+ | Extension experiments | Skills, verifier skills, plugins, MCP servers, channels, Magic Docs, and project instructions. |
91
+ | Multi-agent workflows | Background subagents, local teams, tmux teammates, mailbox/task records, and team memory. |
92
+ | Safety research | Permission rules, managed settings, sandbox policy, backend diagnostics, and explicit local/remote data boundaries. |
22
93
 
23
94
  ## Highlights
24
95
 
@@ -56,6 +127,8 @@ uv sync
56
127
  uv run koder
57
128
  ```
58
129
 
130
+ Requirements: Python 3.10 or newer and a model provider credential or subscription login.
131
+
59
132
  ## Quick Start
60
133
 
61
134
  Set a model credential and start the interactive TUI:
@@ -91,6 +164,14 @@ Good first commands inside the TUI:
91
164
  /help
92
165
  ```
93
166
 
167
+ Good first prompts:
168
+
169
+ ```text
170
+ Inspect this repository and explain the test command.
171
+ Find the smallest safe fix for the failing test, then run the focused test.
172
+ Review the current diff for correctness and missing verification.
173
+ ```
174
+
94
175
  ## Common Usage
95
176
 
96
177
  | Task | Command |
@@ -110,6 +191,26 @@ Good first commands inside the TUI:
110
191
 
111
192
  See the [Command Reference](docs/commands.md) for the complete slash-command catalog.
112
193
 
194
+ ## Trust Boundaries
195
+
196
+ Koder is local-first, not offline-only:
197
+
198
+ - Koder stores product state under `~/.koder/` and project `.koder/` paths by default.
199
+ - Koder does not upload sessions to a Koder-hosted service.
200
+ - Prompts, selected context, and tool results needed for a turn are sent to the model provider you configure.
201
+ - MCP servers, plugins, shell commands, and teammate processes can access whatever their local permissions allow unless constrained by Koder policy and sandbox settings.
202
+ - OAuth tokens are stored under `~/.koder/tokens/`; avoid committing secrets into project files.
203
+
204
+ Inspect the current boundary with:
205
+
206
+ ```bash
207
+ /privacy-settings
208
+ /permissions
209
+ /sandbox status
210
+ /files
211
+ /context
212
+ ```
213
+
113
214
  ## Model Configuration
114
215
 
115
216
  Koder resolves configuration in this order:
@@ -282,9 +383,7 @@ uv run koder
282
383
  Code quality and tests:
283
384
 
284
385
  ```bash
285
- uv run black .
286
- uv run ruff format
287
- uv run ruff check --fix
386
+ uv run black . && uv run ruff format && uv run ruff check --fix
288
387
  uv run pytest
289
388
  ```
290
389
 
@@ -1,70 +1,49 @@
1
- Metadata-Version: 2.4
2
- Name: koder
3
- Version: 0.5.1
4
- Summary: An intuitive AI coding assistant and interactive CLI tool that boosts developer productivity with intelligent automation and context-aware support.
5
- Project-URL: Homepage, https://github.com/feiskyer/koder
6
- Project-URL: Repository, https://github.com/feiskyer/koder
7
- Author: Pengfei Ni
8
- License-File: LICENSE
9
- Keywords: agent,agentic,ai,copilot,litellm,openai,vibe coding
10
- Requires-Python: >=3.10
11
- Requires-Dist: aiosqlite>=0.22.1
12
- Requires-Dist: anthropic>=0.100.0
13
- Requires-Dist: apscheduler>=3.11.2
14
- Requires-Dist: backoff>=2.2.1
15
- Requires-Dist: beautifulsoup4>=4.14.3
16
- Requires-Dist: boto3>=1.43.6
17
- Requires-Dist: cryptography>=48.0.0
18
- Requires-Dist: ddgs>=9.14.2
19
- Requires-Dist: docker>=7.1.0
20
- Requires-Dist: e2b-code-interpreter>=2.6.2
21
- Requires-Dist: e2b>=2.21.0
22
- Requires-Dist: fastapi-sso>=0.21.0
23
- Requires-Dist: fastapi>=0.136.1
24
- Requires-Dist: google-cloud-aiplatform>=1.151.0
25
- Requires-Dist: httpx[socks]>=0.28.1
26
- Requires-Dist: jsonschema>=4.26.0
27
- Requires-Dist: litellm>=1.83.0
28
- Requires-Dist: modal>=1.4.2
29
- Requires-Dist: openai-agents[litellm]>=0.17.0
30
- Requires-Dist: openai==2.36.0
31
- Requires-Dist: orjson>=3.11.9
32
- Requires-Dist: prompt-toolkit>=3.0.52
33
- Requires-Dist: pydantic>=2.13.4
34
- Requires-Dist: pyjwt>=2.12.1
35
- Requires-Dist: pynacl>=1.6.2
36
- Requires-Dist: python-multipart>=0.0.27
37
- Requires-Dist: pyyaml>=6.0.3
38
- Requires-Dist: requests>=2.33.1
39
- Requires-Dist: rich>=15.0.0
40
- Requires-Dist: sounddevice>=0.5.5
41
- Requires-Dist: tiktoken>=0.12.0
42
- Requires-Dist: vercel>=0.5.8
43
- Requires-Dist: websockets>=16.0
44
- Requires-Dist: whatthepatch>=1.0.7
45
- Description-Content-Type: text/markdown
46
-
47
1
  # Koder
48
2
 
49
- [![Python](https://img.shields.io/badge/python-3.9+-blue.svg)](https://www.python.org/downloads/)
3
+ [![Python](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
50
4
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
51
5
  [![PyPI Downloads](https://static.pepy.tech/badge/koder)](https://pepy.tech/projects/koder)
52
6
  [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
53
7
  [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
54
8
 
55
- Koder is an experimental AI coding assistant for the terminal. It combines a streaming TUI, persistent local sessions, repository-aware tools, extensible skills, MCP integrations, and multi-agent workflows in one Python runtime.
9
+ Koder is an experimental, open-source AI coding assistant for the terminal. It combines a streaming TUI, persistent local sessions, repository-aware tools, extensible skills, MCP integrations, sandbox-aware permissions, and multi-agent workflows in one Python runtime.
56
10
 
57
11
  Status: Alpha. Koder is a learning-focused project for exploring agentic coding systems. Expect rapid iteration and occasional sharp edges.
58
12
 
13
+ ## Start Here
14
+
15
+ ```bash
16
+ uv tool install koder
17
+ export KODER_API_KEY="your-api-key"
18
+ export KODER_MODEL="gpt-4o"
19
+ koder
20
+ ```
21
+
22
+ Prefer a provider-specific key or subscription login? Jump to [Model Configuration](#model-configuration).
23
+
59
24
  ## Why Koder
60
25
 
61
- Koder is designed for developers who want a local-first coding assistant that can work across model providers without changing their workflow.
26
+ Koder is designed for developers who want a local-first coding agent they can inspect, extend, and run across model providers without changing their workflow.
62
27
 
63
28
  - Bring your own model: OpenAI, Anthropic, Google/Gemini, GitHub Copilot, Azure, OAuth-backed subscriptions, OpenRouter, and 100+ LiteLLM providers.
64
29
  - Stay in the terminal: use slash commands, file mentions, shell mode, history search, live usage output, and optional voice dictation.
65
- - Keep context local: sessions, transcripts, memories, task records, settings, skills, agents, and team state live under Koder-owned local paths.
30
+ - Keep runtime state local: sessions, transcripts, memories, task records, settings, skills, agents, and team state live under Koder-owned local paths. Model requests still go to the provider you configure.
66
31
  - Extend the runtime: add project skills, user skills, plugins, MCP servers, channels, and Magic Docs.
67
32
  - Delegate carefully: run background subagents and local teams while the main session stays responsible for integration.
33
+ - Study the system: the Python codebase is organized to make agent scheduling, provider routing, permissions, tools, and TUI behavior easy to trace.
34
+
35
+ ## How It Fits
36
+
37
+ Koder is in the same broad family as terminal-first and open-source AI coding agents. Its emphasis is different:
38
+
39
+ | If you care about... | Koder emphasizes |
40
+ |---|---|
41
+ | Provider choice | Universal `KODER_*` variables, provider-specific keys, OAuth-backed subscriptions, custom base URLs, and LiteLLM provider routing. |
42
+ | Terminal ergonomics | A persistent Rich TUI with slash commands, shell mode, file mentions, usage/cost output, voice input, and resume. |
43
+ | Local inspectability | SQLite sessions, local memory, local settings, local tokens, and documented privacy boundaries. |
44
+ | Extension experiments | Skills, verifier skills, plugins, MCP servers, channels, Magic Docs, and project instructions. |
45
+ | Multi-agent workflows | Background subagents, local teams, tmux teammates, mailbox/task records, and team memory. |
46
+ | Safety research | Permission rules, managed settings, sandbox policy, backend diagnostics, and explicit local/remote data boundaries. |
68
47
 
69
48
  ## Highlights
70
49
 
@@ -102,6 +81,8 @@ uv sync
102
81
  uv run koder
103
82
  ```
104
83
 
84
+ Requirements: Python 3.10 or newer and a model provider credential or subscription login.
85
+
105
86
  ## Quick Start
106
87
 
107
88
  Set a model credential and start the interactive TUI:
@@ -137,6 +118,14 @@ Good first commands inside the TUI:
137
118
  /help
138
119
  ```
139
120
 
121
+ Good first prompts:
122
+
123
+ ```text
124
+ Inspect this repository and explain the test command.
125
+ Find the smallest safe fix for the failing test, then run the focused test.
126
+ Review the current diff for correctness and missing verification.
127
+ ```
128
+
140
129
  ## Common Usage
141
130
 
142
131
  | Task | Command |
@@ -156,6 +145,26 @@ Good first commands inside the TUI:
156
145
 
157
146
  See the [Command Reference](docs/commands.md) for the complete slash-command catalog.
158
147
 
148
+ ## Trust Boundaries
149
+
150
+ Koder is local-first, not offline-only:
151
+
152
+ - Koder stores product state under `~/.koder/` and project `.koder/` paths by default.
153
+ - Koder does not upload sessions to a Koder-hosted service.
154
+ - Prompts, selected context, and tool results needed for a turn are sent to the model provider you configure.
155
+ - MCP servers, plugins, shell commands, and teammate processes can access whatever their local permissions allow unless constrained by Koder policy and sandbox settings.
156
+ - OAuth tokens are stored under `~/.koder/tokens/`; avoid committing secrets into project files.
157
+
158
+ Inspect the current boundary with:
159
+
160
+ ```bash
161
+ /privacy-settings
162
+ /permissions
163
+ /sandbox status
164
+ /files
165
+ /context
166
+ ```
167
+
159
168
  ## Model Configuration
160
169
 
161
170
  Koder resolves configuration in this order:
@@ -328,9 +337,7 @@ uv run koder
328
337
  Code quality and tests:
329
338
 
330
339
  ```bash
331
- uv run black .
332
- uv run ruff format
333
- uv run ruff check --fix
340
+ uv run black . && uv run ruff format && uv run ruff check --fix
334
341
  uv run pytest
335
342
  ```
336
343
 
@@ -12,7 +12,7 @@ configure_litellm_local_model_cost_map()
12
12
  _litellm = importlib.import_module("litellm")
13
13
  install_vendored_litellm_model_cost_map(_litellm)
14
14
 
15
- __version__ = "0.3.2"
15
+ __version__ = "0.5.2"
16
16
 
17
17
 
18
18
  def main(*args, **kwargs):
@@ -10,6 +10,7 @@ class ApiErrorCategory(Enum):
10
10
  RATE_LIMIT = "rate_limit"
11
11
  OVERLOADED = "overloaded"
12
12
  AUTH = "auth"
13
+ GITHUB_COPILOT_AUTH = "github_copilot_auth"
13
14
  CONTEXT_OVERFLOW = "context_overflow"
14
15
  TIMEOUT = "timeout"
15
16
  CONNECTION = "connection"
@@ -32,6 +33,11 @@ _USER_MESSAGES = {
32
33
  ApiErrorCategory.RATE_LIMIT: "Rate limit exceeded. Waiting before retrying...",
33
34
  ApiErrorCategory.OVERLOADED: "API is overloaded (529). Waiting before retrying...",
34
35
  ApiErrorCategory.AUTH: "Authentication failed. Check your API key (KODER_API_KEY or provider-specific key).",
36
+ ApiErrorCategory.GITHUB_COPILOT_AUTH: (
37
+ "GitHub Copilot authentication expired or failed. Run "
38
+ "`koder auth login github_copilot` to complete GitHub device login again, "
39
+ "then retry the Copilot model."
40
+ ),
35
41
  ApiErrorCategory.CONTEXT_OVERFLOW: "Context window exceeded. Try /compact to reduce conversation size.",
36
42
  ApiErrorCategory.TIMEOUT: "Request timed out. Retrying...",
37
43
  ApiErrorCategory.CONNECTION: "Connection failed. Check your network and API endpoint.",
@@ -58,8 +64,14 @@ def classify_api_error(
58
64
  """Classify an API error and return a user-friendly message."""
59
65
  msg = str(error).lower()
60
66
 
67
+ if "github_copilot" in msg and (
68
+ "failed to refresh api key" in msg
69
+ or "copilot_internal/v2/token" in msg
70
+ or "github copilot api key" in msg
71
+ ):
72
+ category = ApiErrorCategory.GITHUB_COPILOT_AUTH
61
73
  # Determine category from status code first
62
- if status_code == 429:
74
+ elif status_code == 429:
63
75
  category = ApiErrorCategory.RATE_LIMIT
64
76
  elif status_code == 529:
65
77
  category = ApiErrorCategory.OVERLOADED
@@ -240,6 +240,15 @@ def create_plugin_subparsers(subparsers):
240
240
 
241
241
  def create_auth_subparsers(subparsers):
242
242
  """Create auth subcommand parsers."""
243
+ auth_provider_choices = [
244
+ "google",
245
+ "claude",
246
+ "chatgpt",
247
+ "antigravity",
248
+ "github_copilot",
249
+ "github-copilot",
250
+ "copilot",
251
+ ]
243
252
  auth_parser = subparsers.add_parser("auth", help="Manage OAuth authentication")
244
253
  auth_subparsers = auth_parser.add_subparsers(dest="auth_command", help="Auth actions")
245
254
 
@@ -247,8 +256,8 @@ def create_auth_subparsers(subparsers):
247
256
  login_parser = auth_subparsers.add_parser("login", help="Authenticate with a provider")
248
257
  login_parser.add_argument(
249
258
  "provider",
250
- choices=["google", "claude", "chatgpt", "antigravity"],
251
- help="OAuth provider (google, claude, chatgpt, antigravity)",
259
+ choices=auth_provider_choices,
260
+ help="OAuth provider (google, claude, chatgpt, antigravity, github_copilot)",
252
261
  )
253
262
  login_parser.add_argument(
254
263
  "--timeout",
@@ -264,7 +273,7 @@ def create_auth_subparsers(subparsers):
264
273
  revoke_parser = auth_subparsers.add_parser("revoke", help="Revoke OAuth tokens")
265
274
  revoke_parser.add_argument(
266
275
  "provider",
267
- choices=["google", "claude", "chatgpt", "antigravity"],
276
+ choices=auth_provider_choices,
268
277
  help="OAuth provider to revoke",
269
278
  )
270
279
 
@@ -273,7 +282,7 @@ def create_auth_subparsers(subparsers):
273
282
  status_parser.add_argument(
274
283
  "provider",
275
284
  nargs="?",
276
- choices=["google", "claude", "chatgpt", "antigravity"],
285
+ choices=auth_provider_choices,
277
286
  help="Optional: specific provider to show",
278
287
  )
279
288
 
@@ -22,6 +22,7 @@ from rich.live import Live
22
22
  from rich.text import Text
23
23
 
24
24
  from ..agentic import ApprovalHooks, create_dev_agent, get_display_hooks
25
+ from ..agentic.api_errors import ApiErrorCategory, classify_api_error
25
26
  from ..core.keyboard_listener import CancellationToken, escape_listener, iter_with_cancellation
26
27
  from ..core.session import EnhancedSQLiteSession, migrate_legacy_sessions
27
28
  from ..core.streaming_display import StreamingDisplayManager
@@ -63,6 +64,21 @@ logger = logging.getLogger(__name__)
63
64
  console = get_adaptive_console()
64
65
 
65
66
 
67
+ def _format_execution_error(error: Exception) -> str:
68
+ status_code = None
69
+ if hasattr(error, "status_code"):
70
+ status_code = error.status_code
71
+ elif hasattr(error, "response") and hasattr(error.response, "status_code"):
72
+ status_code = error.response.status_code
73
+
74
+ classified = classify_api_error(error, status_code=status_code)
75
+ if classified.category == ApiErrorCategory.UNKNOWN:
76
+ return str(error)
77
+ if classified.category == ApiErrorCategory.GITHUB_COPILOT_AUTH:
78
+ return classified.user_message
79
+ return f"{classified.user_message}\n\nDetails: {str(error)}"
80
+
81
+
66
82
  def _reasoning_stream_payload(event_data, mode: str) -> dict | None:
67
83
  """Return display payload for SDK reasoning stream events."""
68
84
 
@@ -361,9 +377,7 @@ class AgentScheduler:
361
377
  print() # Add space after response
362
378
  except Exception as e:
363
379
  # Handle execution errors gracefully
364
- response = (
365
- f"[red]Execution error: {str(e)}[/red]\n\nPlease provide new instructions."
366
- )
380
+ response = f"[red]Execution error: {_format_execution_error(e)}[/red]\n\nPlease provide new instructions."
367
381
  if render_output:
368
382
  print_reflowable(console, response)
369
383
  return response
@@ -731,7 +745,7 @@ class AgentScheduler:
731
745
 
732
746
  # Handle execution error after Live context has properly closed
733
747
  if execution_error is not None:
734
- error_msg = f"Execution error: {str(execution_error)}"
748
+ error_msg = f"Execution error: {_format_execution_error(execution_error)}"
735
749
  console.print(f"[red]{error_msg}[/red]")
736
750
  return f"{error_msg}\n\nPlease provide new instructions."
737
751
 
@@ -3,6 +3,9 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  import asyncio
6
+ import json
7
+ import numbers
8
+ import os
6
9
  import time
7
10
  from datetime import datetime
8
11
  from typing import Dict, Optional
@@ -24,12 +27,30 @@ PROVIDER_DESCRIPTIONS: Dict[str, str] = {
24
27
  "antigravity": "Antigravity (Gemini 3 + Claude models)",
25
28
  }
26
29
 
30
+ GITHUB_COPILOT_PROVIDER_ID = "github_copilot"
31
+ GITHUB_COPILOT_PROVIDER_ALIASES = {
32
+ GITHUB_COPILOT_PROVIDER_ID,
33
+ "github-copilot",
34
+ "copilot",
35
+ }
36
+
37
+
38
+ def _normalize_provider_id(provider_id: str) -> str:
39
+ provider = provider_id.strip().lower()
40
+ if provider in GITHUB_COPILOT_PROVIDER_ALIASES:
41
+ return GITHUB_COPILOT_PROVIDER_ID
42
+ return provider
43
+
27
44
 
28
45
  async def handle_login(provider_id: str, timeout: float = 300) -> bool:
46
+ provider_id = _normalize_provider_id(provider_id)
47
+ if provider_id == GITHUB_COPILOT_PROVIDER_ID:
48
+ return await handle_github_copilot_login(timeout=timeout)
49
+
29
50
  if provider_id not in SUPPORTED_PROVIDERS:
30
51
  console.print(
31
52
  f"[red]Error:[/red] Unknown provider '{provider_id}'. "
32
- f"Supported: {', '.join(SUPPORTED_PROVIDERS)}"
53
+ f"Supported: {', '.join([*SUPPORTED_PROVIDERS, GITHUB_COPILOT_PROVIDER_ID])}"
33
54
  )
34
55
  return False
35
56
 
@@ -93,6 +114,43 @@ async def handle_login(provider_id: str, timeout: float = 300) -> bool:
93
114
  return False
94
115
 
95
116
 
117
+ async def handle_github_copilot_login(timeout: float = 300) -> bool:
118
+ """Force GitHub Copilot device-flow login through LiteLLM's authenticator."""
119
+ _ = timeout
120
+
121
+ console.print("\n[bold]Authenticating with github_copilot...[/bold]\n")
122
+ try:
123
+ from litellm.llms.github_copilot.authenticator import Authenticator
124
+
125
+ def _login_and_refresh() -> tuple[str, dict]:
126
+ authenticator = Authenticator()
127
+ access_token = authenticator._login()
128
+ with open(authenticator.access_token_file, "w", encoding="utf-8") as file:
129
+ file.write(access_token)
130
+ api_key_info = authenticator._refresh_api_key()
131
+ with open(authenticator.api_key_file, "w", encoding="utf-8") as file:
132
+ json.dump(api_key_info, file)
133
+ return authenticator.token_dir, api_key_info
134
+
135
+ token_dir, api_key_info = await asyncio.to_thread(_login_and_refresh)
136
+ endpoints = api_key_info.get("endpoints") or {}
137
+ api_endpoint = endpoints.get("api") or "default"
138
+ console.print(
139
+ Panel(
140
+ "[green]Successfully authenticated![/green]\n\n"
141
+ "Provider: github_copilot\n"
142
+ f"Token cache: {token_dir}\n"
143
+ f"API endpoint: {api_endpoint}",
144
+ title="Authentication Complete",
145
+ border_style="green",
146
+ )
147
+ )
148
+ return True
149
+ except Exception as exc:
150
+ console.print(f"[red]GitHub Copilot authentication failed:[/red] {exc}")
151
+ return False
152
+
153
+
96
154
  async def _handle_manual_code_flow(auth_url: str, timeout: float) -> CallbackResult:
97
155
  import webbrowser
98
156
 
@@ -184,6 +242,14 @@ async def handle_list() -> None:
184
242
 
185
243
 
186
244
  async def handle_revoke(provider_id: str) -> bool:
245
+ provider_id = _normalize_provider_id(provider_id)
246
+ if provider_id == GITHUB_COPILOT_PROVIDER_ID:
247
+ console.print(
248
+ "[yellow]GitHub Copilot tokens are managed by LiteLLM. "
249
+ "Run `koder auth login github_copilot` to refresh the login.[/yellow]"
250
+ )
251
+ return False
252
+
187
253
  storage = get_token_storage()
188
254
  tokens = storage.load(provider_id)
189
255
  if not tokens:
@@ -202,6 +268,12 @@ async def handle_revoke(provider_id: str) -> bool:
202
268
 
203
269
 
204
270
  async def handle_status(provider_id: Optional[str] = None) -> None:
271
+ if provider_id:
272
+ provider_id = _normalize_provider_id(provider_id)
273
+ if provider_id == GITHUB_COPILOT_PROVIDER_ID:
274
+ await _print_github_copilot_status()
275
+ return
276
+
205
277
  storage = get_token_storage()
206
278
  if provider_id:
207
279
  tokens = storage.load(provider_id)
@@ -278,6 +350,42 @@ async def _print_token_details(provider_id: str, tokens, storage) -> None:
278
350
  console.print(Panel(info.strip(), title=f"[bold]{provider_id}[/bold]", border_style="blue"))
279
351
 
280
352
 
353
+ async def _print_github_copilot_status() -> None:
354
+ try:
355
+ from litellm.llms.github_copilot.authenticator import Authenticator
356
+
357
+ authenticator = Authenticator()
358
+ access_token_exists = bool(
359
+ authenticator.access_token_file and os.path.exists(authenticator.access_token_file)
360
+ )
361
+ api_key_info = None
362
+ try:
363
+ with open(authenticator.api_key_file, encoding="utf-8") as file:
364
+ api_key_info = json.load(file)
365
+ except Exception:
366
+ pass
367
+
368
+ raw_expires_at = api_key_info.get("expires_at") if isinstance(api_key_info, dict) else None
369
+ expires_at = raw_expires_at if isinstance(raw_expires_at, numbers.Real) else None
370
+ status = "[yellow]NEEDS LOGIN[/yellow]"
371
+ expires_line = "Expires: unavailable"
372
+ if expires_at:
373
+ expires = datetime.fromtimestamp(expires_at)
374
+ expires_line = f"Expires: {expires.strftime('%Y-%m-%d %H:%M:%S')}"
375
+ status = "[green]VALID[/green]" if expires_at > time.time() else "[red]EXPIRED[/red]"
376
+
377
+ info = (
378
+ f"Status: {status}\n"
379
+ f"Access token: {'present' if access_token_exists else 'missing'}\n"
380
+ f"{expires_line}\n"
381
+ f"Token cache: {authenticator.token_dir}\n\n"
382
+ "Refresh login: koder auth login github_copilot"
383
+ )
384
+ console.print(Panel(info, title="[bold]github_copilot[/bold]", border_style="blue"))
385
+ except Exception as exc:
386
+ console.print(f"[red]Unable to inspect GitHub Copilot status:[/red] {exc}")
387
+
388
+
281
389
  def show_auth_help() -> None:
282
390
  help_text = """[bold]OAuth Authentication Commands[/bold]
283
391
 
@@ -286,6 +394,9 @@ Commands:
286
394
  list List configured OAuth providers and models
287
395
  revoke <provider> Revoke OAuth tokens
288
396
  status [provider] Show OAuth token status
397
+
398
+ Providers:
399
+ google, claude, chatgpt, antigravity, github_copilot
289
400
  """
290
401
  console.print(Panel(help_text, title="koder auth", border_style="blue"))
291
402