koder 0.5.0__tar.gz → 0.5.2__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.0 → koder-0.5.2}/.gitignore +1 -0
  2. koder-0.5.0/README.md → koder-0.5.2/PKG-INFO +110 -10
  3. koder-0.5.0/PKG-INFO → koder-0.5.2/README.md +64 -51
  4. {koder-0.5.0 → koder-0.5.2}/koder_agent/__init__.py +1 -1
  5. {koder-0.5.0 → koder-0.5.2}/koder_agent/agentic/api_errors.py +13 -1
  6. {koder-0.5.0 → koder-0.5.2}/koder_agent/cli.py +13 -4
  7. {koder-0.5.0 → koder-0.5.2}/koder_agent/core/interactive.py +8 -4
  8. {koder-0.5.0 → koder-0.5.2}/koder_agent/core/scheduler.py +18 -4
  9. {koder-0.5.0 → koder-0.5.2}/koder_agent/core/status_line.py +6 -3
  10. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/auth/commands.py +112 -1
  11. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/builtins/runtime_commands.py +1 -2
  12. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/interactive.py +109 -105
  13. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/managed_settings.py +9 -1
  14. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/onboarding.py +39 -2
  15. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/permissions/service.py +60 -9
  16. koder-0.5.2/koder_agent/harness/sandbox/__init__.py +19 -0
  17. koder-0.5.2/koder_agent/harness/sandbox/backend.py +87 -0
  18. koder-0.5.2/koder_agent/harness/sandbox/policy.py +146 -0
  19. koder-0.5.2/koder_agent/harness/sandbox/registry.py +289 -0
  20. koder-0.5.2/koder_agent/harness/sandbox/sdk_backend.py +103 -0
  21. koder-0.5.2/koder_agent/harness/sandbox/smoke.py +160 -0
  22. koder-0.5.2/koder_agent/harness/sandbox/workspace.py +100 -0
  23. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/sandbox_settings.py +98 -20
  24. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/tools/shell_executor.py +57 -1
  25. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/agent.py +2 -1
  26. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/ask_user.py +1 -1
  27. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/code_intelligence.py +2 -1
  28. koder-0.5.2/koder_agent/tools/compat.py +44 -0
  29. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/config_tool.py +2 -2
  30. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/cron.py +2 -2
  31. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/file.py +1 -1
  32. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/mcp_resource.py +1 -2
  33. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/notebook_edit.py +1 -1
  34. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/plan_mode.py +2 -2
  35. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/powershell.py +2 -1
  36. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/search.py +2 -1
  37. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/send_message.py +2 -1
  38. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/shell.py +1 -1
  39. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/skill.py +2 -1
  40. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/sleep.py +1 -1
  41. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/structured_output.py +1 -1
  42. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/task.py +3 -1
  43. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/task_lifecycle.py +2 -1
  44. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/task_output.py +2 -2
  45. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/task_stop.py +2 -2
  46. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/team.py +2 -1
  47. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/todo.py +2 -1
  48. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/tool_search.py +1 -1
  49. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/web.py +2 -1
  50. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/worktree.py +1 -1
  51. {koder-0.5.0 → koder-0.5.2}/koder_agent/utils/client.py +3 -1
  52. {koder-0.5.0 → koder-0.5.2}/pyproject.toml +30 -25
  53. {koder-0.5.0 → koder-0.5.2}/.claude/settings.local.json +0 -0
  54. {koder-0.5.0 → koder-0.5.2}/LICENSE +0 -0
  55. {koder-0.5.0 → koder-0.5.2}/koder_agent/agentic/__init__.py +0 -0
  56. {koder-0.5.0 → koder-0.5.2}/koder_agent/agentic/agent.py +0 -0
  57. {koder-0.5.0 → koder-0.5.2}/koder_agent/agentic/approval_hooks.py +0 -0
  58. {koder-0.5.0 → koder-0.5.2}/koder_agent/agentic/hook_guardrail.py +0 -0
  59. {koder-0.5.0 → koder-0.5.2}/koder_agent/agentic/hooks.py +0 -0
  60. {koder-0.5.0 → koder-0.5.2}/koder_agent/agentic/plan_guardrail.py +0 -0
  61. {koder-0.5.0 → koder-0.5.2}/koder_agent/agentic/skill_guardrail.py +0 -0
  62. {koder-0.5.0 → koder-0.5.2}/koder_agent/auth/__init__.py +0 -0
  63. {koder-0.5.0 → koder-0.5.2}/koder_agent/auth/base.py +0 -0
  64. {koder-0.5.0 → koder-0.5.2}/koder_agent/auth/callback_server.py +0 -0
  65. {koder-0.5.0 → koder-0.5.2}/koder_agent/auth/client_integration.py +0 -0
  66. {koder-0.5.0 → koder-0.5.2}/koder_agent/auth/codex_prompts.py +0 -0
  67. {koder-0.5.0 → koder-0.5.2}/koder_agent/auth/constants.py +0 -0
  68. {koder-0.5.0 → koder-0.5.2}/koder_agent/auth/litellm_oauth.py +0 -0
  69. {koder-0.5.0 → koder-0.5.2}/koder_agent/auth/providers/__init__.py +0 -0
  70. {koder-0.5.0 → koder-0.5.2}/koder_agent/auth/providers/antigravity.py +0 -0
  71. {koder-0.5.0 → koder-0.5.2}/koder_agent/auth/providers/chatgpt.py +0 -0
  72. {koder-0.5.0 → koder-0.5.2}/koder_agent/auth/providers/claude.py +0 -0
  73. {koder-0.5.0 → koder-0.5.2}/koder_agent/auth/providers/google.py +0 -0
  74. {koder-0.5.0 → koder-0.5.2}/koder_agent/auth/secure_storage.py +0 -0
  75. {koder-0.5.0 → koder-0.5.2}/koder_agent/auth/token_storage.py +0 -0
  76. {koder-0.5.0 → koder-0.5.2}/koder_agent/auth/tool_utils.py +0 -0
  77. {koder-0.5.0 → koder-0.5.2}/koder_agent/config/__init__.py +0 -0
  78. {koder-0.5.0 → koder-0.5.2}/koder_agent/config/manager.py +0 -0
  79. {koder-0.5.0 → koder-0.5.2}/koder_agent/config/models.py +0 -0
  80. {koder-0.5.0 → koder-0.5.2}/koder_agent/core/__init__.py +0 -0
  81. {koder-0.5.0 → koder-0.5.2}/koder_agent/core/at_completer.py +0 -0
  82. {koder-0.5.0 → koder-0.5.2}/koder_agent/core/at_mentions.py +0 -0
  83. {koder-0.5.0 → koder-0.5.2}/koder_agent/core/auto_suggest.py +0 -0
  84. {koder-0.5.0 → koder-0.5.2}/koder_agent/core/bash_security.py +0 -0
  85. {koder-0.5.0 → koder-0.5.2}/koder_agent/core/file_index.py +0 -0
  86. {koder-0.5.0 → koder-0.5.2}/koder_agent/core/keybindings.py +0 -0
  87. {koder-0.5.0 → koder-0.5.2}/koder_agent/core/keyboard_listener.py +0 -0
  88. {koder-0.5.0 → koder-0.5.2}/koder_agent/core/notifications.py +0 -0
  89. {koder-0.5.0 → koder-0.5.2}/koder_agent/core/security.py +0 -0
  90. {koder-0.5.0 → koder-0.5.2}/koder_agent/core/session.py +0 -0
  91. {koder-0.5.0 → koder-0.5.2}/koder_agent/core/shell_completer.py +0 -0
  92. {koder-0.5.0 → koder-0.5.2}/koder_agent/core/skill_usage.py +0 -0
  93. {koder-0.5.0 → koder-0.5.2}/koder_agent/core/streaming_display.py +0 -0
  94. {koder-0.5.0 → koder-0.5.2}/koder_agent/core/terminal_reflow.py +0 -0
  95. {koder-0.5.0 → koder-0.5.2}/koder_agent/core/usage_tracker.py +0 -0
  96. {koder-0.5.0 → koder-0.5.2}/koder_agent/core/vim_mode.py +0 -0
  97. {koder-0.5.0 → koder-0.5.2}/koder_agent/data/__init__.py +0 -0
  98. {koder-0.5.0 → koder-0.5.2}/koder_agent/data/model_prices_and_context_window.json +0 -0
  99. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/__init__.py +0 -0
  100. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/add_dir_validation.py +0 -0
  101. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/agents/__init__.py +0 -0
  102. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/agents/commands.py +0 -0
  103. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/agents/definitions.py +0 -0
  104. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/agents/hooks.py +0 -0
  105. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/agents/messages.py +0 -0
  106. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/agents/models.py +0 -0
  107. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/agents/service.py +0 -0
  108. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/agents/summary.py +0 -0
  109. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/agents/teams/__init__.py +0 -0
  110. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/agents/teams/context.py +0 -0
  111. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/agents/teams/in_process.py +0 -0
  112. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/agents/teams/memory_sync.py +0 -0
  113. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/agents/teams/models.py +0 -0
  114. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/agents/teams/permission_bridge.py +0 -0
  115. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/agents/teams/routing.py +0 -0
  116. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/agents/teams/runtime.py +0 -0
  117. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/agents/teams/service.py +0 -0
  118. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/agents/teams/task_service.py +0 -0
  119. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/agents/teams/tmux_backend.py +0 -0
  120. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/auth/__init__.py +0 -0
  121. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/bootstrap.py +0 -0
  122. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/buddy.py +0 -0
  123. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/channels/__init__.py +0 -0
  124. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/channels/gate.py +0 -0
  125. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/channels/interceptor.py +0 -0
  126. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/channels/notification.py +0 -0
  127. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/channels/permissions.py +0 -0
  128. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/channels/state.py +0 -0
  129. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/channels/types.py +0 -0
  130. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/cli/__init__.py +0 -0
  131. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/cli/entrypoint.py +0 -0
  132. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/code_intelligence.py +0 -0
  133. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/__init__.py +0 -0
  134. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/advisor.py +0 -0
  135. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/agents_view.py +0 -0
  136. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/brief.py +0 -0
  137. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/buddy.py +0 -0
  138. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/builtins/__init__.py +0 -0
  139. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/builtins/config_commands.py +0 -0
  140. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/builtins/inspection_commands.py +0 -0
  141. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/builtins/plugin_commands.py +0 -0
  142. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/builtins/session_commands.py +0 -0
  143. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/builtins/workflow_review_commands.py +0 -0
  144. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/builtins/workflow_state_commands.py +0 -0
  145. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/internal/__init__.py +0 -0
  146. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/internal/debug_commands.py +0 -0
  147. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/internal/diagnostic_commands.py +0 -0
  148. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/pr_comments.py +0 -0
  149. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/registry.py +0 -0
  150. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/review_context.py +0 -0
  151. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/security_review.py +0 -0
  152. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/commands/workflow_helpers.py +0 -0
  153. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/config/__init__.py +0 -0
  154. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/config/backup.py +0 -0
  155. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/config/commands.py +0 -0
  156. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/config/migration.py +0 -0
  157. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/config/schema.py +0 -0
  158. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/config/service.py +0 -0
  159. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/config/settings_bundle.py +0 -0
  160. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/cron/__init__.py +0 -0
  161. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/cron/scheduler.py +0 -0
  162. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/cron/storage.py +0 -0
  163. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/github_actions.py +0 -0
  164. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/hooks/runtime.py +0 -0
  165. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/ide.py +0 -0
  166. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/magic_docs.py +0 -0
  167. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/mcp/__init__.py +0 -0
  168. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/mcp/commands.py +0 -0
  169. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/memory/__init__.py +0 -0
  170. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/memory/auto_compact.py +0 -0
  171. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/memory/auto_dream.py +0 -0
  172. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/memory/budget.py +0 -0
  173. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/memory/compact.py +0 -0
  174. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/memory/extraction.py +0 -0
  175. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/memory/legacy_db.py +0 -0
  176. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/memory/memory_files.py +0 -0
  177. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/memory/micro_compact.py +0 -0
  178. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/memory/models.py +0 -0
  179. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/memory/post_compact.py +0 -0
  180. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/memory/pruning.py +0 -0
  181. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/memory/recovery.py +0 -0
  182. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/memory/retrieval.py +0 -0
  183. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/memory/session_memory.py +0 -0
  184. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/memory/transcript_store.py +0 -0
  185. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/memory/writer_lock.py +0 -0
  186. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/paths.py +0 -0
  187. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/permissions/__init__.py +0 -0
  188. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/permissions/ai_classifier.py +0 -0
  189. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/permissions/denial_log.py +0 -0
  190. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/permissions/modes.py +0 -0
  191. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/permissions/path_policy.py +0 -0
  192. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/permissions/persistence.py +0 -0
  193. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/permissions/powershell_classifier.py +0 -0
  194. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/permissions/propagation.py +0 -0
  195. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/permissions/results.py +0 -0
  196. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/permissions/rule_sources.py +0 -0
  197. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/permissions/rules.py +0 -0
  198. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/permissions/shell_classifier.py +0 -0
  199. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/plan/__init__.py +0 -0
  200. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/plan/mode.py +0 -0
  201. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/plugins/__init__.py +0 -0
  202. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/plugins/catalog.py +0 -0
  203. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/plugins/commands.py +0 -0
  204. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/plugins/env.py +0 -0
  205. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/plugins/lifecycle.py +0 -0
  206. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/plugins/manifest.py +0 -0
  207. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/plugins/marketplace.py +0 -0
  208. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/plugins/name_validation.py +0 -0
  209. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/plugins/options.py +0 -0
  210. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/plugins/registry.py +0 -0
  211. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/plugins/session_root.py +0 -0
  212. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/plugins/state.py +0 -0
  213. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/plugins/validator.py +0 -0
  214. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/policy_limits.py +0 -0
  215. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/pr_status.py +0 -0
  216. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/prompt_suggestion.py +0 -0
  217. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/reasoning_display.py +0 -0
  218. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/release_notes.py +0 -0
  219. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/runtime.py +0 -0
  220. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/session_env.py +0 -0
  221. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/session_flow.py +0 -0
  222. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/skills/bundled.py +0 -0
  223. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/skills/discovery.py +0 -0
  224. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/state/__init__.py +0 -0
  225. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/state/actions.py +0 -0
  226. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/state/models.py +0 -0
  227. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/state/selectors.py +0 -0
  228. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/state/store.py +0 -0
  229. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/statusline_settings.py +0 -0
  230. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/statusline_setup.py +0 -0
  231. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/tasks/__init__.py +0 -0
  232. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/tasks/models.py +0 -0
  233. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/tasks/output.py +0 -0
  234. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/tasks/service.py +0 -0
  235. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/tasks/storage.py +0 -0
  236. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/tips.py +0 -0
  237. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/tools/__init__.py +0 -0
  238. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/tools/code_intelligence_ops.py +0 -0
  239. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/tools/file_ops.py +0 -0
  240. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/tools/mcp_ops.py +0 -0
  241. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/tools/registry.py +0 -0
  242. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/tools/search_ops.py +0 -0
  243. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/tools/shell.py +0 -0
  244. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/tools/web_ops.py +0 -0
  245. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/ui/__init__.py +0 -0
  246. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/ui/app.py +0 -0
  247. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/ui/permissions/__init__.py +0 -0
  248. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/ui/permissions/dialog.py +0 -0
  249. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/ui/screens/__init__.py +0 -0
  250. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/ui/screens/main.py +0 -0
  251. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/ui/screens/plugins.py +0 -0
  252. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/ui/widgets/__init__.py +0 -0
  253. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/ui/widgets/prompt_buffer.py +0 -0
  254. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/ui/widgets/status_line.py +0 -0
  255. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/version_info.py +0 -0
  256. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/voice/__init__.py +0 -0
  257. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/voice/keyterms.py +0 -0
  258. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/voice/service.py +0 -0
  259. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/worktree/__init__.py +0 -0
  260. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/worktree/conflicts.py +0 -0
  261. {koder-0.5.0 → koder-0.5.2}/koder_agent/harness/worktree/service.py +0 -0
  262. {koder-0.5.0 → koder-0.5.2}/koder_agent/litellm_cost_map.py +0 -0
  263. {koder-0.5.0 → koder-0.5.2}/koder_agent/mcp/__init__.py +0 -0
  264. {koder-0.5.0 → koder-0.5.2}/koder_agent/mcp/elicitation.py +0 -0
  265. {koder-0.5.0 → koder-0.5.2}/koder_agent/mcp/limits.py +0 -0
  266. {koder-0.5.0 → koder-0.5.2}/koder_agent/mcp/notifications.py +0 -0
  267. {koder-0.5.0 → koder-0.5.2}/koder_agent/mcp/oauth.py +0 -0
  268. {koder-0.5.0 → koder-0.5.2}/koder_agent/mcp/project_approvals.py +0 -0
  269. {koder-0.5.0 → koder-0.5.2}/koder_agent/mcp/prompts.py +0 -0
  270. {koder-0.5.0 → koder-0.5.2}/koder_agent/mcp/reconnection.py +0 -0
  271. {koder-0.5.0 → koder-0.5.2}/koder_agent/mcp/serve.py +0 -0
  272. {koder-0.5.0 → koder-0.5.2}/koder_agent/mcp/server_config.py +0 -0
  273. {koder-0.5.0 → koder-0.5.2}/koder_agent/mcp/server_factory.py +0 -0
  274. {koder-0.5.0 → koder-0.5.2}/koder_agent/mcp/server_manager.py +0 -0
  275. {koder-0.5.0 → koder-0.5.2}/koder_agent/providers/__init__.py +0 -0
  276. {koder-0.5.0 → koder-0.5.2}/koder_agent/providers/compat.py +0 -0
  277. {koder-0.5.0 → koder-0.5.2}/koder_agent/providers/models.py +0 -0
  278. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/__init__.py +0 -0
  279. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/engine.py +0 -0
  280. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/file_state.py +0 -0
  281. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/fork_agent.py +0 -0
  282. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/orchestration.py +0 -0
  283. {koder-0.5.0 → koder-0.5.2}/koder_agent/tools/skill_context.py +0 -0
  284. {koder-0.5.0 → koder-0.5.2}/koder_agent/utils/__init__.py +0 -0
  285. {koder-0.5.0 → koder-0.5.2}/koder_agent/utils/model_deprecation.py +0 -0
  286. {koder-0.5.0 → koder-0.5.2}/koder_agent/utils/model_info.py +0 -0
  287. {koder-0.5.0 → koder-0.5.2}/koder_agent/utils/prompts.py +0 -0
  288. {koder-0.5.0 → koder-0.5.2}/koder_agent/utils/queue.py +0 -0
  289. {koder-0.5.0 → koder-0.5.2}/koder_agent/utils/sessions.py +0 -0
  290. {koder-0.5.0 → koder-0.5.2}/koder_agent/utils/terminal_theme.py +0 -0
@@ -31,6 +31,7 @@ share/python-wheels/
31
31
  *.egg-info/
32
32
  .installed.cfg
33
33
  .ruff_cache
34
+ .uv-cache
34
35
  *.egg
35
36
  MANIFEST
36
37
 
@@ -1,24 +1,95 @@
1
+ Metadata-Version: 2.4
2
+ Name: koder
3
+ Version: 0.5.2
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.101.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.85.0.dev2
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.28
37
+ Requires-Dist: pyyaml>=6.0.3
38
+ Requires-Dist: requests>=2.34.0
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
+
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 Codex CLI, Claude Code, OpenCode, Gemini CLI, Aider, Cline, goose, and Continue. 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 |
@@ -106,10 +187,30 @@ Good first commands inside the TUI:
106
187
  | Check usage and cost | `/usage`, `/cost` |
107
188
  | Manage agents and teams | `/agents`, `/fork`, `/peers`, `/tasks` |
108
189
  | Manage extensions | `/skills`, `/plugin`, `/mcp`, `/channels` |
109
- | Manage permissions | `/permissions`, `/sandbox`, `/sandbox-toggle`, `/add-dir` |
190
+ | Manage permissions | `/permissions`, `/sandbox`, `/add-dir` |
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
 
@@ -301,7 +400,7 @@ uv run pytest -v -k "test_name"
301
400
  - OAuth tokens and cached provider model lists are stored under `~/.koder/tokens/`.
302
401
  - Sessions, transcripts, memories, tasks, agents, and teams are stored locally under `~/.koder/` and project `.koder/` paths.
303
402
  - Koder does not upload sessions to a Koder-hosted service. Model requests still go to the provider you configure.
304
- - Shell, file, MCP, and teammate operations are mediated by local permission and sandbox policy.
403
+ - Shell, file, MCP, and teammate operations are mediated by local permission and sandbox policy. Foreground shell commands can use a real sandbox backend when `/sandbox status` reports that backend as available.
305
404
 
306
405
  Use these commands to inspect boundaries:
307
406
 
@@ -314,7 +413,7 @@ Use these commands to inspect boundaries:
314
413
  /context
315
414
  ```
316
415
 
317
- See [Permissions and Privacy](docs/permissions-and-privacy.md) for details.
416
+ See [Sandbox Guide](docs/sandbox.md) and [Permissions and Privacy](docs/permissions-and-privacy.md) for details.
318
417
 
319
418
  ## Documentation
320
419
 
@@ -327,6 +426,7 @@ See [Permissions and Privacy](docs/permissions-and-privacy.md) for details.
327
426
  - [Workflows](docs/workflows.md) - review, planning, Git, GitHub, release, and verification workflows
328
427
  - [Skills, Plugins, and MCP](docs/extensions.md) - extending Koder with skills, plugins, MCP servers, channels, and Magic Docs
329
428
  - [Permissions and Privacy](docs/permissions-and-privacy.md) - approvals, sandbox policy, managed settings, workspace roots, and data boundaries
429
+ - [Sandbox Guide](docs/sandbox.md) - shell sandbox backends, status fields, configuration, and troubleshooting
330
430
  - [Voice Mode](docs/voice-mode.md) - voice dictation setup and provider-specific notes
331
431
  - [Command Reference](docs/commands.md) - complete slash-command catalog
332
432
 
@@ -1,65 +1,49 @@
1
- Metadata-Version: 2.4
2
- Name: koder
3
- Version: 0.5.0
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.76.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.42.34
17
- Requires-Dist: cryptography>=46.0.3
18
- Requires-Dist: ddgs>=9.10.0
19
- Requires-Dist: fastapi-sso>=0.19.0
20
- Requires-Dist: fastapi>=0.128.0
21
- Requires-Dist: google-cloud-aiplatform>=1.132.0
22
- Requires-Dist: httpx[socks]>=0.28.1
23
- Requires-Dist: jsonschema>=4.25.1
24
- Requires-Dist: litellm>=1.81.0
25
- Requires-Dist: openai-agents[litellm]>=0.7.0
26
- Requires-Dist: openai==2.15.0
27
- Requires-Dist: orjson>=3.11.5
28
- Requires-Dist: prompt-toolkit>=3.0.52
29
- Requires-Dist: pydantic>=2.12.5
30
- Requires-Dist: pyjwt>=2.10.1
31
- Requires-Dist: pynacl>=1.6.2
32
- Requires-Dist: python-multipart>=0.0.22
33
- Requires-Dist: pyyaml>=6.0.3
34
- Requires-Dist: requests>=2.32.5
35
- Requires-Dist: rich>=14.3.1
36
- Requires-Dist: sounddevice>=0.5.1
37
- Requires-Dist: tiktoken>=0.12.0
38
- Requires-Dist: websockets>=15.0.1
39
- Requires-Dist: whatthepatch>=1.0.7
40
- Description-Content-Type: text/markdown
41
-
42
1
  # Koder
43
2
 
44
- [![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/)
45
4
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
46
5
  [![PyPI Downloads](https://static.pepy.tech/badge/koder)](https://pepy.tech/projects/koder)
47
6
  [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
48
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)
49
8
 
50
- 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.
51
10
 
52
11
  Status: Alpha. Koder is a learning-focused project for exploring agentic coding systems. Expect rapid iteration and occasional sharp edges.
53
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
+
54
24
  ## Why Koder
55
25
 
56
- 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.
57
27
 
58
28
  - Bring your own model: OpenAI, Anthropic, Google/Gemini, GitHub Copilot, Azure, OAuth-backed subscriptions, OpenRouter, and 100+ LiteLLM providers.
59
29
  - Stay in the terminal: use slash commands, file mentions, shell mode, history search, live usage output, and optional voice dictation.
60
- - 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.
61
31
  - Extend the runtime: add project skills, user skills, plugins, MCP servers, channels, and Magic Docs.
62
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 Codex CLI, Claude Code, OpenCode, Gemini CLI, Aider, Cline, goose, and Continue. 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. |
63
47
 
64
48
  ## Highlights
65
49
 
@@ -97,6 +81,8 @@ uv sync
97
81
  uv run koder
98
82
  ```
99
83
 
84
+ Requirements: Python 3.10 or newer and a model provider credential or subscription login.
85
+
100
86
  ## Quick Start
101
87
 
102
88
  Set a model credential and start the interactive TUI:
@@ -132,6 +118,14 @@ Good first commands inside the TUI:
132
118
  /help
133
119
  ```
134
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
+
135
129
  ## Common Usage
136
130
 
137
131
  | Task | Command |
@@ -147,10 +141,30 @@ Good first commands inside the TUI:
147
141
  | Check usage and cost | `/usage`, `/cost` |
148
142
  | Manage agents and teams | `/agents`, `/fork`, `/peers`, `/tasks` |
149
143
  | Manage extensions | `/skills`, `/plugin`, `/mcp`, `/channels` |
150
- | Manage permissions | `/permissions`, `/sandbox`, `/sandbox-toggle`, `/add-dir` |
144
+ | Manage permissions | `/permissions`, `/sandbox`, `/add-dir` |
151
145
 
152
146
  See the [Command Reference](docs/commands.md) for the complete slash-command catalog.
153
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
+
154
168
  ## Model Configuration
155
169
 
156
170
  Koder resolves configuration in this order:
@@ -323,9 +337,7 @@ uv run koder
323
337
  Code quality and tests:
324
338
 
325
339
  ```bash
326
- uv run black .
327
- uv run ruff format
328
- uv run ruff check --fix
340
+ uv run black . && uv run ruff format && uv run ruff check --fix
329
341
  uv run pytest
330
342
  ```
331
343
 
@@ -342,7 +354,7 @@ uv run pytest -v -k "test_name"
342
354
  - OAuth tokens and cached provider model lists are stored under `~/.koder/tokens/`.
343
355
  - Sessions, transcripts, memories, tasks, agents, and teams are stored locally under `~/.koder/` and project `.koder/` paths.
344
356
  - Koder does not upload sessions to a Koder-hosted service. Model requests still go to the provider you configure.
345
- - Shell, file, MCP, and teammate operations are mediated by local permission and sandbox policy.
357
+ - Shell, file, MCP, and teammate operations are mediated by local permission and sandbox policy. Foreground shell commands can use a real sandbox backend when `/sandbox status` reports that backend as available.
346
358
 
347
359
  Use these commands to inspect boundaries:
348
360
 
@@ -355,7 +367,7 @@ Use these commands to inspect boundaries:
355
367
  /context
356
368
  ```
357
369
 
358
- See [Permissions and Privacy](docs/permissions-and-privacy.md) for details.
370
+ See [Sandbox Guide](docs/sandbox.md) and [Permissions and Privacy](docs/permissions-and-privacy.md) for details.
359
371
 
360
372
  ## Documentation
361
373
 
@@ -368,6 +380,7 @@ See [Permissions and Privacy](docs/permissions-and-privacy.md) for details.
368
380
  - [Workflows](docs/workflows.md) - review, planning, Git, GitHub, release, and verification workflows
369
381
  - [Skills, Plugins, and MCP](docs/extensions.md) - extending Koder with skills, plugins, MCP servers, channels, and Magic Docs
370
382
  - [Permissions and Privacy](docs/permissions-and-privacy.md) - approvals, sandbox policy, managed settings, workspace roots, and data boundaries
383
+ - [Sandbox Guide](docs/sandbox.md) - shell sandbox backends, status fields, configuration, and troubleshooting
371
384
  - [Voice Mode](docs/voice-mode.md) - voice dictation setup and provider-specific notes
372
385
  - [Command Reference](docs/commands.md) - complete slash-command catalog
373
386
 
@@ -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
 
@@ -281,8 +281,10 @@ class InteractivePrompt:
281
281
  self._config_service = config_service or RuntimeConfigService()
282
282
  self._voice_controller = VoiceDictationController(
283
283
  config_getter=self._config_service.load,
284
- model_provider_getter=lambda: (get_config().model.provider or "").strip().lower()
285
- or get_model_name().replace("litellm/", "").split("/", 1)[0],
284
+ model_provider_getter=lambda: (
285
+ (get_config().model.provider or "").strip().lower()
286
+ or get_model_name().replace("litellm/", "").split("/", 1)[0]
287
+ ),
286
288
  )
287
289
  self._last_space_pressed_at: Optional[float] = None
288
290
  self.history = InMemoryHistory()
@@ -752,8 +754,10 @@ class InteractivePrompt:
752
754
  return 80, 24
753
755
 
754
756
  show_status_line = Condition(
755
- lambda: self.status_line is not None
756
- and _should_show_status_line(rows=_get_terminal_size()[1])
757
+ lambda: (
758
+ self.status_line is not None
759
+ and _should_show_status_line(rows=_get_terminal_size()[1])
760
+ )
757
761
  )
758
762
  show_completion_menu = Condition(
759
763
  lambda: (
@@ -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
 
@@ -347,9 +347,12 @@ class StatusLine:
347
347
  fragments.extend(pr_fragments)
348
348
 
349
349
  if self._notice:
350
- notice = self._truncate(
351
- self._notice, max(10, columns - sum(len(t) for _, t in fragments) - 12)
352
- )
350
+ if self._notice.startswith("Voice error:"):
351
+ notice = self._notice
352
+ else:
353
+ notice = self._truncate(
354
+ self._notice, max(10, columns - sum(len(t) for _, t in fragments) - 12)
355
+ )
353
356
  if notice:
354
357
  self._append_field(fragments, "Notice: ", notice)
355
358