koder 0.4.13__tar.gz → 0.5.1__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.
- koder-0.5.1/.claude/settings.local.json +65 -0
- {koder-0.4.13 → koder-0.5.1}/.gitignore +6 -0
- koder-0.5.1/PKG-INFO +394 -0
- koder-0.5.1/README.md +348 -0
- koder-0.5.1/koder_agent/__init__.py +30 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/agentic/__init__.py +2 -1
- {koder-0.4.13 → koder-0.5.1}/koder_agent/agentic/agent.py +151 -39
- koder-0.5.1/koder_agent/agentic/api_errors.py +100 -0
- koder-0.5.1/koder_agent/agentic/approval_hooks.py +112 -0
- koder-0.5.1/koder_agent/agentic/hook_guardrail.py +60 -0
- koder-0.5.1/koder_agent/agentic/plan_guardrail.py +71 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/auth/client_integration.py +7 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/auth/constants.py +7 -4
- {koder-0.4.13 → koder-0.5.1}/koder_agent/auth/providers/claude.py +9 -7
- koder-0.5.1/koder_agent/auth/secure_storage.py +137 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/auth/token_storage.py +26 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/auth/tool_utils.py +2 -2
- koder-0.5.1/koder_agent/cli.py +495 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/config/__init__.py +4 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/config/manager.py +47 -5
- {koder-0.4.13 → koder-0.5.1}/koder_agent/config/models.py +25 -0
- koder-0.5.1/koder_agent/core/__init__.py +23 -0
- koder-0.5.1/koder_agent/core/at_completer.py +211 -0
- koder-0.5.1/koder_agent/core/at_mentions.py +254 -0
- koder-0.5.1/koder_agent/core/auto_suggest.py +126 -0
- koder-0.5.1/koder_agent/core/bash_security.py +334 -0
- koder-0.5.1/koder_agent/core/file_index.py +152 -0
- koder-0.5.1/koder_agent/core/interactive.py +937 -0
- koder-0.5.1/koder_agent/core/keybindings.py +125 -0
- koder-0.5.1/koder_agent/core/notifications.py +65 -0
- koder-0.5.1/koder_agent/core/scheduler.py +1180 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/core/security.py +11 -19
- {koder-0.4.13 → koder-0.5.1}/koder_agent/core/session.py +287 -18
- koder-0.5.1/koder_agent/core/shell_completer.py +90 -0
- koder-0.5.1/koder_agent/core/skill_usage.py +78 -0
- koder-0.5.1/koder_agent/core/status_line.py +380 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/core/streaming_display.py +273 -3
- koder-0.5.1/koder_agent/core/terminal_reflow.py +114 -0
- koder-0.5.1/koder_agent/core/usage_tracker.py +237 -0
- koder-0.5.1/koder_agent/core/vim_mode.py +75 -0
- koder-0.5.1/koder_agent/data/__init__.py +1 -0
- koder-0.5.1/koder_agent/data/model_prices_and_context_window.json +39957 -0
- koder-0.5.1/koder_agent/harness/__init__.py +1 -0
- koder-0.5.1/koder_agent/harness/add_dir_validation.py +92 -0
- koder-0.5.1/koder_agent/harness/agents/__init__.py +6 -0
- koder-0.5.1/koder_agent/harness/agents/commands.py +28 -0
- koder-0.5.1/koder_agent/harness/agents/definitions.py +832 -0
- koder-0.5.1/koder_agent/harness/agents/hooks.py +179 -0
- koder-0.5.1/koder_agent/harness/agents/messages.py +27 -0
- koder-0.5.1/koder_agent/harness/agents/models.py +80 -0
- koder-0.5.1/koder_agent/harness/agents/service.py +590 -0
- koder-0.5.1/koder_agent/harness/agents/summary.py +58 -0
- koder-0.5.1/koder_agent/harness/agents/teams/__init__.py +6 -0
- koder-0.5.1/koder_agent/harness/agents/teams/context.py +45 -0
- koder-0.5.1/koder_agent/harness/agents/teams/in_process.py +342 -0
- koder-0.5.1/koder_agent/harness/agents/teams/memory_sync.py +158 -0
- koder-0.5.1/koder_agent/harness/agents/teams/models.py +124 -0
- koder-0.5.1/koder_agent/harness/agents/teams/permission_bridge.py +114 -0
- koder-0.5.1/koder_agent/harness/agents/teams/routing.py +10 -0
- koder-0.5.1/koder_agent/harness/agents/teams/runtime.py +72 -0
- koder-0.5.1/koder_agent/harness/agents/teams/service.py +618 -0
- koder-0.5.1/koder_agent/harness/agents/teams/task_service.py +327 -0
- koder-0.5.1/koder_agent/harness/agents/teams/tmux_backend.py +252 -0
- koder-0.5.1/koder_agent/harness/auth/__init__.py +1 -0
- koder-0.4.13/koder_agent/auth/cli_handler.py → koder-0.5.1/koder_agent/harness/auth/commands.py +34 -177
- koder-0.5.1/koder_agent/harness/bootstrap.py +12 -0
- koder-0.5.1/koder_agent/harness/buddy.py +1096 -0
- koder-0.5.1/koder_agent/harness/channels/__init__.py +52 -0
- koder-0.5.1/koder_agent/harness/channels/gate.py +90 -0
- koder-0.5.1/koder_agent/harness/channels/interceptor.py +118 -0
- koder-0.5.1/koder_agent/harness/channels/notification.py +173 -0
- koder-0.5.1/koder_agent/harness/channels/permissions.py +168 -0
- koder-0.5.1/koder_agent/harness/channels/state.py +37 -0
- koder-0.5.1/koder_agent/harness/channels/types.py +81 -0
- koder-0.5.1/koder_agent/harness/cli/__init__.py +5 -0
- koder-0.5.1/koder_agent/harness/cli/entrypoint.py +82 -0
- koder-0.5.1/koder_agent/harness/code_intelligence.py +590 -0
- koder-0.5.1/koder_agent/harness/commands/__init__.py +5 -0
- koder-0.5.1/koder_agent/harness/commands/advisor.py +202 -0
- koder-0.5.1/koder_agent/harness/commands/agents_view.py +164 -0
- koder-0.5.1/koder_agent/harness/commands/brief.py +15 -0
- koder-0.5.1/koder_agent/harness/commands/buddy.py +60 -0
- koder-0.5.1/koder_agent/harness/commands/builtins/__init__.py +19 -0
- koder-0.5.1/koder_agent/harness/commands/builtins/config_commands.py +12 -0
- koder-0.5.1/koder_agent/harness/commands/builtins/inspection_commands.py +13 -0
- koder-0.5.1/koder_agent/harness/commands/builtins/plugin_commands.py +9 -0
- koder-0.5.1/koder_agent/harness/commands/builtins/runtime_commands.py +41 -0
- koder-0.5.1/koder_agent/harness/commands/builtins/session_commands.py +12 -0
- koder-0.5.1/koder_agent/harness/commands/builtins/workflow_review_commands.py +10 -0
- koder-0.5.1/koder_agent/harness/commands/builtins/workflow_state_commands.py +13 -0
- koder-0.5.1/koder_agent/harness/commands/interactive.py +5356 -0
- koder-0.5.1/koder_agent/harness/commands/internal/__init__.py +6 -0
- koder-0.5.1/koder_agent/harness/commands/internal/debug_commands.py +6 -0
- koder-0.5.1/koder_agent/harness/commands/internal/diagnostic_commands.py +13 -0
- koder-0.5.1/koder_agent/harness/commands/pr_comments.py +184 -0
- koder-0.5.1/koder_agent/harness/commands/registry.py +79 -0
- koder-0.5.1/koder_agent/harness/commands/review_context.py +78 -0
- koder-0.5.1/koder_agent/harness/commands/security_review.py +175 -0
- koder-0.5.1/koder_agent/harness/commands/workflow_helpers.py +50 -0
- koder-0.5.1/koder_agent/harness/config/__init__.py +13 -0
- koder-0.5.1/koder_agent/harness/config/backup.py +13 -0
- koder-0.5.1/koder_agent/harness/config/commands.py +127 -0
- koder-0.5.1/koder_agent/harness/config/migration.py +50 -0
- koder-0.5.1/koder_agent/harness/config/schema.py +46 -0
- koder-0.5.1/koder_agent/harness/config/service.py +86 -0
- koder-0.5.1/koder_agent/harness/config/settings_bundle.py +277 -0
- koder-0.5.1/koder_agent/harness/cron/__init__.py +6 -0
- koder-0.5.1/koder_agent/harness/cron/scheduler.py +140 -0
- koder-0.5.1/koder_agent/harness/cron/storage.py +70 -0
- koder-0.5.1/koder_agent/harness/github_actions.py +580 -0
- koder-0.5.1/koder_agent/harness/hooks/runtime.py +991 -0
- koder-0.5.1/koder_agent/harness/ide.py +235 -0
- koder-0.5.1/koder_agent/harness/magic_docs.py +386 -0
- koder-0.5.1/koder_agent/harness/managed_settings.py +105 -0
- koder-0.5.1/koder_agent/harness/mcp/__init__.py +1 -0
- koder-0.5.1/koder_agent/harness/mcp/commands.py +110 -0
- koder-0.5.1/koder_agent/harness/memory/__init__.py +14 -0
- koder-0.5.1/koder_agent/harness/memory/auto_compact.py +69 -0
- koder-0.5.1/koder_agent/harness/memory/auto_dream.py +341 -0
- koder-0.5.1/koder_agent/harness/memory/budget.py +34 -0
- koder-0.5.1/koder_agent/harness/memory/compact.py +397 -0
- koder-0.5.1/koder_agent/harness/memory/extraction.py +137 -0
- koder-0.5.1/koder_agent/harness/memory/legacy_db.py +35 -0
- koder-0.5.1/koder_agent/harness/memory/memory_files.py +54 -0
- koder-0.5.1/koder_agent/harness/memory/micro_compact.py +68 -0
- koder-0.5.1/koder_agent/harness/memory/models.py +28 -0
- koder-0.5.1/koder_agent/harness/memory/post_compact.py +66 -0
- koder-0.5.1/koder_agent/harness/memory/pruning.py +20 -0
- koder-0.5.1/koder_agent/harness/memory/recovery.py +57 -0
- koder-0.5.1/koder_agent/harness/memory/retrieval.py +215 -0
- koder-0.5.1/koder_agent/harness/memory/session_memory.py +120 -0
- koder-0.5.1/koder_agent/harness/memory/transcript_store.py +163 -0
- koder-0.5.1/koder_agent/harness/memory/writer_lock.py +34 -0
- koder-0.5.1/koder_agent/harness/onboarding.py +131 -0
- koder-0.5.1/koder_agent/harness/paths.py +49 -0
- koder-0.5.1/koder_agent/harness/permissions/__init__.py +17 -0
- koder-0.5.1/koder_agent/harness/permissions/ai_classifier.py +132 -0
- koder-0.5.1/koder_agent/harness/permissions/denial_log.py +32 -0
- koder-0.5.1/koder_agent/harness/permissions/modes.py +39 -0
- koder-0.5.1/koder_agent/harness/permissions/path_policy.py +234 -0
- koder-0.5.1/koder_agent/harness/permissions/persistence.py +24 -0
- koder-0.5.1/koder_agent/harness/permissions/powershell_classifier.py +154 -0
- koder-0.5.1/koder_agent/harness/permissions/propagation.py +22 -0
- koder-0.5.1/koder_agent/harness/permissions/results.py +83 -0
- koder-0.5.1/koder_agent/harness/permissions/rule_sources.py +136 -0
- koder-0.5.1/koder_agent/harness/permissions/rules.py +40 -0
- koder-0.5.1/koder_agent/harness/permissions/service.py +429 -0
- koder-0.5.1/koder_agent/harness/permissions/shell_classifier.py +357 -0
- koder-0.5.1/koder_agent/harness/plan/__init__.py +5 -0
- koder-0.5.1/koder_agent/harness/plan/mode.py +70 -0
- koder-0.5.1/koder_agent/harness/plugins/__init__.py +33 -0
- koder-0.5.1/koder_agent/harness/plugins/catalog.py +54 -0
- koder-0.5.1/koder_agent/harness/plugins/commands.py +216 -0
- koder-0.5.1/koder_agent/harness/plugins/env.py +39 -0
- koder-0.5.1/koder_agent/harness/plugins/lifecycle.py +171 -0
- koder-0.5.1/koder_agent/harness/plugins/manifest.py +171 -0
- koder-0.5.1/koder_agent/harness/plugins/marketplace.py +280 -0
- koder-0.5.1/koder_agent/harness/plugins/name_validation.py +92 -0
- koder-0.5.1/koder_agent/harness/plugins/options.py +20 -0
- koder-0.5.1/koder_agent/harness/plugins/registry.py +62 -0
- koder-0.5.1/koder_agent/harness/plugins/session_root.py +55 -0
- koder-0.5.1/koder_agent/harness/plugins/state.py +85 -0
- koder-0.5.1/koder_agent/harness/plugins/validator.py +42 -0
- koder-0.5.1/koder_agent/harness/policy_limits.py +81 -0
- koder-0.5.1/koder_agent/harness/pr_status.py +293 -0
- koder-0.5.1/koder_agent/harness/prompt_suggestion.py +384 -0
- koder-0.5.1/koder_agent/harness/reasoning_display.py +44 -0
- koder-0.5.1/koder_agent/harness/release_notes.py +135 -0
- koder-0.5.1/koder_agent/harness/runtime.py +92 -0
- koder-0.5.1/koder_agent/harness/sandbox/__init__.py +19 -0
- koder-0.5.1/koder_agent/harness/sandbox/backend.py +87 -0
- koder-0.5.1/koder_agent/harness/sandbox/policy.py +146 -0
- koder-0.5.1/koder_agent/harness/sandbox/registry.py +289 -0
- koder-0.5.1/koder_agent/harness/sandbox/sdk_backend.py +103 -0
- koder-0.5.1/koder_agent/harness/sandbox/smoke.py +160 -0
- koder-0.5.1/koder_agent/harness/sandbox/workspace.py +100 -0
- koder-0.5.1/koder_agent/harness/sandbox_settings.py +311 -0
- koder-0.5.1/koder_agent/harness/session_env.py +97 -0
- koder-0.5.1/koder_agent/harness/session_flow.py +1327 -0
- koder-0.5.1/koder_agent/harness/skills/bundled.py +149 -0
- koder-0.5.1/koder_agent/harness/skills/discovery.py +71 -0
- koder-0.5.1/koder_agent/harness/state/__init__.py +7 -0
- koder-0.5.1/koder_agent/harness/state/actions.py +15 -0
- koder-0.5.1/koder_agent/harness/state/models.py +19 -0
- koder-0.5.1/koder_agent/harness/state/selectors.py +24 -0
- koder-0.5.1/koder_agent/harness/state/store.py +27 -0
- koder-0.5.1/koder_agent/harness/statusline_settings.py +93 -0
- koder-0.5.1/koder_agent/harness/statusline_setup.py +165 -0
- koder-0.5.1/koder_agent/harness/tasks/__init__.py +8 -0
- koder-0.5.1/koder_agent/harness/tasks/models.py +78 -0
- koder-0.5.1/koder_agent/harness/tasks/output.py +17 -0
- koder-0.5.1/koder_agent/harness/tasks/service.py +88 -0
- koder-0.5.1/koder_agent/harness/tasks/storage.py +206 -0
- koder-0.5.1/koder_agent/harness/tips.py +261 -0
- koder-0.5.1/koder_agent/harness/tools/__init__.py +5 -0
- koder-0.5.1/koder_agent/harness/tools/code_intelligence_ops.py +41 -0
- koder-0.5.1/koder_agent/harness/tools/file_ops.py +95 -0
- koder-0.5.1/koder_agent/harness/tools/mcp_ops.py +151 -0
- koder-0.5.1/koder_agent/harness/tools/registry.py +253 -0
- koder-0.5.1/koder_agent/harness/tools/search_ops.py +52 -0
- koder-0.5.1/koder_agent/harness/tools/shell.py +86 -0
- koder-0.5.1/koder_agent/harness/tools/shell_executor.py +419 -0
- koder-0.5.1/koder_agent/harness/tools/web_ops.py +54 -0
- koder-0.5.1/koder_agent/harness/ui/__init__.py +5 -0
- koder-0.5.1/koder_agent/harness/ui/app.py +29 -0
- koder-0.5.1/koder_agent/harness/ui/permissions/__init__.py +5 -0
- koder-0.5.1/koder_agent/harness/ui/permissions/dialog.py +17 -0
- koder-0.5.1/koder_agent/harness/ui/screens/__init__.py +1 -0
- koder-0.5.1/koder_agent/harness/ui/screens/main.py +12 -0
- koder-0.5.1/koder_agent/harness/ui/screens/plugins.py +13 -0
- koder-0.5.1/koder_agent/harness/ui/widgets/__init__.py +1 -0
- koder-0.5.1/koder_agent/harness/ui/widgets/prompt_buffer.py +11 -0
- koder-0.5.1/koder_agent/harness/ui/widgets/status_line.py +14 -0
- koder-0.5.1/koder_agent/harness/version_info.py +42 -0
- koder-0.5.1/koder_agent/harness/voice/__init__.py +19 -0
- koder-0.5.1/koder_agent/harness/voice/keyterms.py +250 -0
- koder-0.5.1/koder_agent/harness/voice/service.py +474 -0
- koder-0.5.1/koder_agent/harness/worktree/__init__.py +12 -0
- koder-0.5.1/koder_agent/harness/worktree/conflicts.py +25 -0
- koder-0.5.1/koder_agent/harness/worktree/service.py +110 -0
- koder-0.5.1/koder_agent/litellm_cost_map.py +112 -0
- koder-0.5.1/koder_agent/mcp/__init__.py +306 -0
- koder-0.5.1/koder_agent/mcp/elicitation.py +248 -0
- koder-0.5.1/koder_agent/mcp/limits.py +44 -0
- koder-0.5.1/koder_agent/mcp/notifications.py +77 -0
- koder-0.5.1/koder_agent/mcp/oauth.py +487 -0
- koder-0.5.1/koder_agent/mcp/project_approvals.py +67 -0
- koder-0.5.1/koder_agent/mcp/prompts.py +170 -0
- koder-0.5.1/koder_agent/mcp/reconnection.py +91 -0
- koder-0.5.1/koder_agent/mcp/serve.py +109 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/mcp/server_config.py +37 -0
- koder-0.5.1/koder_agent/mcp/server_factory.py +422 -0
- koder-0.5.1/koder_agent/mcp/server_manager.py +504 -0
- koder-0.5.1/koder_agent/providers/__init__.py +6 -0
- koder-0.5.1/koder_agent/providers/compat.py +48 -0
- koder-0.5.1/koder_agent/providers/models.py +27 -0
- koder-0.5.1/koder_agent/tools/__init__.py +320 -0
- koder-0.5.1/koder_agent/tools/agent.py +197 -0
- koder-0.5.1/koder_agent/tools/ask_user.py +114 -0
- koder-0.5.1/koder_agent/tools/code_intelligence.py +48 -0
- koder-0.5.1/koder_agent/tools/compat.py +44 -0
- koder-0.5.1/koder_agent/tools/config_tool.py +116 -0
- koder-0.5.1/koder_agent/tools/cron.py +133 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/tools/engine.py +31 -2
- {koder-0.4.13 → koder-0.5.1}/koder_agent/tools/file.py +176 -39
- koder-0.5.1/koder_agent/tools/file_state.py +71 -0
- koder-0.5.1/koder_agent/tools/fork_agent.py +116 -0
- koder-0.5.1/koder_agent/tools/mcp_resource.py +84 -0
- koder-0.5.1/koder_agent/tools/notebook_edit.py +84 -0
- koder-0.5.1/koder_agent/tools/orchestration.py +113 -0
- koder-0.5.1/koder_agent/tools/plan_mode.py +89 -0
- koder-0.5.1/koder_agent/tools/powershell.py +41 -0
- koder-0.5.1/koder_agent/tools/search.py +297 -0
- koder-0.5.1/koder_agent/tools/send_message.py +182 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/tools/shell.py +1 -1
- koder-0.5.1/koder_agent/tools/skill.py +642 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/tools/skill_context.py +5 -2
- koder-0.5.1/koder_agent/tools/sleep.py +22 -0
- koder-0.5.1/koder_agent/tools/structured_output.py +33 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/tools/task.py +56 -46
- koder-0.5.1/koder_agent/tools/task_lifecycle.py +256 -0
- koder-0.5.1/koder_agent/tools/task_output.py +85 -0
- koder-0.5.1/koder_agent/tools/task_stop.py +78 -0
- koder-0.5.1/koder_agent/tools/team.py +120 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/tools/todo.py +10 -15
- koder-0.5.1/koder_agent/tools/tool_search.py +109 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/tools/web.py +16 -7
- koder-0.5.1/koder_agent/tools/worktree.py +200 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/utils/client.py +94 -21
- koder-0.5.1/koder_agent/utils/model_deprecation.py +64 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/utils/model_info.py +44 -0
- koder-0.5.1/koder_agent/utils/prompts.py +321 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/utils/terminal_theme.py +18 -0
- {koder-0.4.13 → koder-0.5.1}/pyproject.toml +37 -26
- koder-0.4.13/.research/20260126-antigravity-claude-fix-7q1/child_outputs/1.md +0 -1
- koder-0.4.13/.research/20260126-antigravity-claude-fix-7q1/child_outputs/1.result.md +0 -245
- koder-0.4.13/.research/20260126-antigravity-claude-fix-7q1/child_outputs/2.md +0 -0
- koder-0.4.13/.research/20260126-antigravity-claude-fix-7q1/child_outputs/3.md +0 -1
- koder-0.4.13/.research/20260126-antigravity-claude-fix-7q1/child_outputs/3.result.md +0 -208
- koder-0.4.13/.research/20260126-antigravity-claude-fix-7q1/final_report.md +0 -51
- koder-0.4.13/.research/20260126-antigravity-claude-fix-7q1/prompts/1.md +0 -12
- koder-0.4.13/.research/20260126-antigravity-claude-fix-7q1/prompts/2.md +0 -12
- koder-0.4.13/.research/20260126-antigravity-claude-fix-7q1/prompts/3.md +0 -10
- koder-0.4.13/.research/20260126-antigravity-claude-fix-7q1/raw/antigravity_claude_handler_retry.md +0 -136
- koder-0.4.13/.research/20260126-antigravity-claude-fix-7q1/raw/antigravity_claude_request_thinking.md +0 -287
- koder-0.4.13/.research/20260126-antigravity-claude-fix-7q1/raw/antigravity_claude_streaming_signature.md +0 -151
- koder-0.4.13/.research/20260126-antigravity-claude-fix-7q1/raw/koder_antigravity_build_request.md +0 -206
- koder-0.4.13/.research/20260126-antigravity-claude-fix-7q1/raw/koder_tool_utils_signature.md +0 -386
- koder-0.4.13/.research/20260126-antigravity-claude-fix-7q1/run_children.sh +0 -27
- koder-0.4.13/.research/20260126-antigravity-claude-fix-7q1/tasks.txt +0 -3
- koder-0.4.13/.research/20260126-antigravity-signature-zise/final_report.md +0 -57
- koder-0.4.13/PKG-INFO +0 -377
- koder-0.4.13/README.md +0 -338
- koder-0.4.13/koder_agent/__init__.py +0 -7
- koder-0.4.13/koder_agent/agentic/approval_hooks.py +0 -46
- koder-0.4.13/koder_agent/cli.py +0 -391
- koder-0.4.13/koder_agent/config/cli_handler.py +0 -279
- koder-0.4.13/koder_agent/core/__init__.py +0 -7
- koder-0.4.13/koder_agent/core/commands.py +0 -380
- koder-0.4.13/koder_agent/core/interactive.py +0 -262
- koder-0.4.13/koder_agent/core/scheduler.py +0 -524
- koder-0.4.13/koder_agent/core/status_line.py +0 -141
- koder-0.4.13/koder_agent/core/usage_tracker.py +0 -110
- koder-0.4.13/koder_agent/mcp/__init__.py +0 -36
- koder-0.4.13/koder_agent/mcp/cli_handler.py +0 -292
- koder-0.4.13/koder_agent/mcp/server_factory.py +0 -148
- koder-0.4.13/koder_agent/mcp/server_manager.py +0 -231
- koder-0.4.13/koder_agent/tools/__init__.py +0 -156
- koder-0.4.13/koder_agent/tools/search.py +0 -153
- koder-0.4.13/koder_agent/tools/skill.py +0 -403
- koder-0.4.13/koder_agent/utils/prompts.py +0 -109
- {koder-0.4.13 → koder-0.5.1}/LICENSE +0 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/agentic/hooks.py +0 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/agentic/skill_guardrail.py +0 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/auth/__init__.py +0 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/auth/base.py +0 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/auth/callback_server.py +0 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/auth/codex_prompts.py +0 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/auth/litellm_oauth.py +0 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/auth/providers/__init__.py +0 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/auth/providers/antigravity.py +0 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/auth/providers/chatgpt.py +0 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/auth/providers/google.py +0 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/core/keyboard_listener.py +0 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/utils/__init__.py +0 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/utils/queue.py +0 -0
- {koder-0.4.13 → koder-0.5.1}/koder_agent/utils/sessions.py +0 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Bash(uv run python:*)",
|
|
5
|
+
"Bash(cat:*)",
|
|
6
|
+
"Bash(python -m py_compile:*)",
|
|
7
|
+
"Bash(uv run pytest:*)",
|
|
8
|
+
"mcp__plugin_claude-code-settings_exa__get_code_context_exa",
|
|
9
|
+
"Bash(find:*)",
|
|
10
|
+
"WebFetch(domain:www.anthropic.com)",
|
|
11
|
+
"Bash(uv run ruff check:*)",
|
|
12
|
+
"mcp__firecrawl__firecrawl_scrape",
|
|
13
|
+
"Bash(uv run:*)",
|
|
14
|
+
"Bash(uv run pip:*)",
|
|
15
|
+
"Bash(KODER_MODEL=\"github_copilot/gpt-5.1-codex\" uv run koder:*)",
|
|
16
|
+
"Bash(python3:*)",
|
|
17
|
+
"Bash(timeout 90 bash -c \"KODER_MODEL=''github_copilot/gpt-5.1-codex'' uv run koder ''respond with just hello''\")",
|
|
18
|
+
"Bash(git add:*)",
|
|
19
|
+
"Bash(git commit:*)",
|
|
20
|
+
"Bash(grep:*)",
|
|
21
|
+
"Bash(xargs:*)",
|
|
22
|
+
"WebFetch(domain:github.com)",
|
|
23
|
+
"Skill(ralph-wiggum:ralph-loop)",
|
|
24
|
+
"WebFetch(domain:docs.litellm.ai)",
|
|
25
|
+
"Bash(KODER_MODEL=\"antigravity/antigravity-claude-sonnet-4-5-thinking-high\" uv run koder 'list me your tools')",
|
|
26
|
+
"Bash(KODER_MODEL=\"antigravity/antigravity-claude-sonnet-4-5-thinking-high\" uv run koder:*)",
|
|
27
|
+
"Bash(KODER_MODEL=\"antigravity/antigravity-gemini-3-flash\" uv run koder:*)",
|
|
28
|
+
"Bash(KODER_MODEL=\"antigravity/antigravity-claude-opus-4-5-thinking-high\" uv run koder:*)",
|
|
29
|
+
"Bash(export KODER_MODEL=\"chatgpt/gpt-5.2\")",
|
|
30
|
+
"Bash(timeout 60 uv run:*)",
|
|
31
|
+
"Bash(export LITELLM_LOG=DEBUG)",
|
|
32
|
+
"Bash(done)",
|
|
33
|
+
"Bash(KODER_MODEL=\"antigravity/antigravity-gemini-3-pro-high\" timeout 30 uv run koder 'say hello')",
|
|
34
|
+
"Bash(timeout 90 uv run python3:*)",
|
|
35
|
+
"Bash(KODER_MODEL=\"google/gemini-2.0-flash\" timeout 90 uv run koder:*)",
|
|
36
|
+
"Bash(timeout 60 bash -c 'KODER_MODEL=\"\"\"\"chatgpt/gpt-5.2\"\"\"\" uv run koder \"\"\"\"read the first 3 lines of pyproject.toml\"\"\"\"')",
|
|
37
|
+
"Bash(timeout 60 bash -c 'KODER_MODEL=\"\"\"\"google/gemini-2.0-flash\"\"\"\" uv run koder \"\"\"\"read the first 3 lines of pyproject.toml\"\"\"\"')",
|
|
38
|
+
"Bash(timeout 60 bash -c 'KODER_MODEL=\"\"\"\"claude/claude-sonnet-4-20250514\"\"\"\" uv run koder \"\"\"\"read the first 3 lines of pyproject.toml\"\"\"\"')",
|
|
39
|
+
"Bash(timeout 60 bash -c 'KODER_MODEL=\"\"\"\"antigravity/antigravity-gemini-2.5-flash\"\"\"\" uv run koder \"\"\"\"read the first 3 lines of pyproject.toml\"\"\"\"')",
|
|
40
|
+
"Bash(timeout 120 uv run python3:*)",
|
|
41
|
+
"Bash(timeout 60 bash -c 'KODER_MODEL=\"\"\"\"antigravity/antigravity-gemini-3-pro-high\"\"\"\" uv run koder \"\"\"\"read the first 3 lines of pyproject.toml\"\"\"\"')",
|
|
42
|
+
"WebFetch(domain:ai.google.dev)",
|
|
43
|
+
"Bash(KODER_MODEL=\"antigravity/gemini-3-pro-high\" timeout 30 uv run koder:*)",
|
|
44
|
+
"Bash(KODER_MODEL=\"antigravity/claude-opus-4-5-thinking\" timeout 60 uv run:*)",
|
|
45
|
+
"Bash(KODER_MODEL=\"antigravity/claude-opus-4-5-thinking\" timeout 45 uv run:*)",
|
|
46
|
+
"Bash(KODER_MODEL=\"antigravity/claude-sonnet-4-5\" timeout 30 uv run:*)",
|
|
47
|
+
"Bash(KODER_MODEL=\"antigravity/claude-sonnet-4-5\" timeout 60 uv run koder:*)",
|
|
48
|
+
"Bash(KODER_MODEL=\"antigravity/claude-sonnet-4-5\" timeout 120 uv run:*)",
|
|
49
|
+
"WebSearch",
|
|
50
|
+
"Bash(KODER_MODEL=\"antigravity/claude-opus-4-5-thinking\" uv run koder:*)",
|
|
51
|
+
"Bash(timeout 120 KODER_MODEL=\"antigravity/claude-opus-4-5-thinking\" uv run koder:*)",
|
|
52
|
+
"Bash(export KODER_MODEL=\"antigravity/claude-opus-4-5-thinking\")",
|
|
53
|
+
"Bash(gh pr view:*)",
|
|
54
|
+
"Bash(uv --version)",
|
|
55
|
+
"Bash(/Users/fei/Documents/agents/koder/.venv/bin/python --version)",
|
|
56
|
+
"Bash(/Users/fei/Documents/agents/koder/.venv/bin/python -c \"import sys; print\\(sys.executable\\); print\\(sys.path\\)\")"
|
|
57
|
+
],
|
|
58
|
+
"deny": [],
|
|
59
|
+
"ask": [],
|
|
60
|
+
"additionalDirectories": [
|
|
61
|
+
"/Users/fei/go/opencode-antigravity-auth",
|
|
62
|
+
"/Users/fei/go/Antigravity-Manager"
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -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
|
|
|
@@ -183,3 +184,8 @@ cython_debug/
|
|
|
183
184
|
marimo/_static/
|
|
184
185
|
marimo/_lsp/
|
|
185
186
|
__marimo__/
|
|
187
|
+
.tmp/
|
|
188
|
+
.tmp-team-members/
|
|
189
|
+
.koder/
|
|
190
|
+
/.mcp.json
|
|
191
|
+
agent-output/
|
koder-0.5.1/PKG-INFO
ADDED
|
@@ -0,0 +1,394 @@
|
|
|
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
|
+
# Koder
|
|
48
|
+
|
|
49
|
+
[](https://www.python.org/downloads/)
|
|
50
|
+
[](LICENSE)
|
|
51
|
+
[](https://pepy.tech/projects/koder)
|
|
52
|
+
[](https://github.com/psf/black)
|
|
53
|
+
[](https://github.com/astral-sh/ruff)
|
|
54
|
+
|
|
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.
|
|
56
|
+
|
|
57
|
+
Status: Alpha. Koder is a learning-focused project for exploring agentic coding systems. Expect rapid iteration and occasional sharp edges.
|
|
58
|
+
|
|
59
|
+
## Why Koder
|
|
60
|
+
|
|
61
|
+
Koder is designed for developers who want a local-first coding assistant that can work across model providers without changing their workflow.
|
|
62
|
+
|
|
63
|
+
- Bring your own model: OpenAI, Anthropic, Google/Gemini, GitHub Copilot, Azure, OAuth-backed subscriptions, OpenRouter, and 100+ LiteLLM providers.
|
|
64
|
+
- 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.
|
|
66
|
+
- Extend the runtime: add project skills, user skills, plugins, MCP servers, channels, and Magic Docs.
|
|
67
|
+
- Delegate carefully: run background subagents and local teams while the main session stays responsible for integration.
|
|
68
|
+
|
|
69
|
+
## Highlights
|
|
70
|
+
|
|
71
|
+
| Area | What You Get |
|
|
72
|
+
|---|---|
|
|
73
|
+
| Interactive TUI | Streaming output, slash completion, shell mode, file mentions, status line, reverse history search, and multi-line prompts. |
|
|
74
|
+
| Model routing | Universal `KODER_*` variables, provider-specific keys, custom base URLs, reasoning effort, and subscription-backed OAuth providers. |
|
|
75
|
+
| Durable context | SQLite sessions, named sessions, resume, export, compaction, rewind, thinkback, local memories, and AutoDream consolidation. |
|
|
76
|
+
| Coding tools | File operations, search, shell execution, git helpers, notebooks, web fetch/search, todos, and local code intelligence. |
|
|
77
|
+
| Workflows | Review, security review, advisor, planning, commit readiness, PR comments, GitHub Actions setup, release notes, and verification summaries. |
|
|
78
|
+
| Agents and teams | Project/user agents, `task_delegate`, `/fork`, `/peers`, in-process teammates, tmux teammates, mailbox routing, tasks, and team memory. |
|
|
79
|
+
| Extensions | Skills, verifier skills, plugins, MCP servers, channels, and Magic Docs. |
|
|
80
|
+
| Safety controls | Permission rules, sandbox policy, managed settings, workspace roots, privacy diagnostics, and local storage boundaries. |
|
|
81
|
+
|
|
82
|
+
## Installation
|
|
83
|
+
|
|
84
|
+
Install the published CLI with `uv`:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
uv tool install koder
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Or use `pip`:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
pip install koder
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
For local development from this repository:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
git clone https://github.com/feiskyer/koder.git
|
|
100
|
+
cd koder
|
|
101
|
+
uv sync
|
|
102
|
+
uv run koder
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Quick Start
|
|
106
|
+
|
|
107
|
+
Set a model credential and start the interactive TUI:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
export KODER_API_KEY="your-api-key"
|
|
111
|
+
export KODER_MODEL="gpt-4o"
|
|
112
|
+
koder
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Run a single prompt from the shell:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
koder "summarize the current repository"
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Use a named session when you want durable context for a project or feature:
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
koder -s billing-refactor
|
|
125
|
+
koder -s billing-refactor "continue the failing test investigation"
|
|
126
|
+
koder --resume
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
Good first commands inside the TUI:
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
/onboarding
|
|
133
|
+
/status
|
|
134
|
+
/model
|
|
135
|
+
/files
|
|
136
|
+
/permissions
|
|
137
|
+
/help
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## Common Usage
|
|
141
|
+
|
|
142
|
+
| Task | Command |
|
|
143
|
+
|---|---|
|
|
144
|
+
| Open the TUI | `koder` |
|
|
145
|
+
| Run one prompt | `koder "fix the failing test"` |
|
|
146
|
+
| Print script-friendly output | `koder --print "summarize"` |
|
|
147
|
+
| Use a named session | `koder -s my-project` |
|
|
148
|
+
| Resume previous work | `koder --resume` or `koder --continue` |
|
|
149
|
+
| Inspect runtime state | `/status`, `/summary`, `/stats`, `/doctor` |
|
|
150
|
+
| Inspect context | `/files`, `/context`, `/ctx_viz` |
|
|
151
|
+
| Review changes | `/diff`, `/review`, `/security-review` |
|
|
152
|
+
| Check usage and cost | `/usage`, `/cost` |
|
|
153
|
+
| Manage agents and teams | `/agents`, `/fork`, `/peers`, `/tasks` |
|
|
154
|
+
| Manage extensions | `/skills`, `/plugin`, `/mcp`, `/channels` |
|
|
155
|
+
| Manage permissions | `/permissions`, `/sandbox`, `/add-dir` |
|
|
156
|
+
|
|
157
|
+
See the [Command Reference](docs/commands.md) for the complete slash-command catalog.
|
|
158
|
+
|
|
159
|
+
## Model Configuration
|
|
160
|
+
|
|
161
|
+
Koder resolves configuration in this order:
|
|
162
|
+
|
|
163
|
+
1. CLI arguments
|
|
164
|
+
2. Environment variables
|
|
165
|
+
3. `~/.koder/config.yaml`
|
|
166
|
+
4. Built-in defaults
|
|
167
|
+
|
|
168
|
+
Universal environment variables work across providers:
|
|
169
|
+
|
|
170
|
+
| Variable | Purpose | Example |
|
|
171
|
+
|---|---|---|
|
|
172
|
+
| `KODER_API_KEY` | Universal API key | `sk-...` |
|
|
173
|
+
| `KODER_MODEL` | Active model | `gpt-4o`, `claude-opus-4-20250514` |
|
|
174
|
+
| `KODER_BASE_URL` | Custom OpenAI-compatible endpoint | `http://localhost:8080/v1` |
|
|
175
|
+
| `KODER_REASONING_EFFORT` | Reasoning effort | `low`, `medium`, `high` |
|
|
176
|
+
| `KODER_REASONING_DISPLAY` | Reasoning display mode | `off`, `summary`, `full` |
|
|
177
|
+
|
|
178
|
+
Provider-specific examples:
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
OPENAI_API_KEY="sk-..." KODER_MODEL="gpt-4o" koder
|
|
182
|
+
ANTHROPIC_API_KEY="..." KODER_MODEL="claude-opus-4-20250514" koder
|
|
183
|
+
GOOGLE_API_KEY="..." KODER_MODEL="gemini/gemini-2.5-pro" koder
|
|
184
|
+
KODER_BASE_URL="http://localhost:8080/v1" KODER_MODEL="openai/local-model" koder
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
Subscription-backed providers use local OAuth token stores:
|
|
188
|
+
|
|
189
|
+
```bash
|
|
190
|
+
koder auth login google
|
|
191
|
+
koder auth login claude
|
|
192
|
+
koder auth login chatgpt
|
|
193
|
+
koder auth login antigravity
|
|
194
|
+
koder auth list
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
After login, select an OAuth-backed model with its provider prefix:
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
KODER_MODEL="google/gemini-3-pro-preview" koder
|
|
201
|
+
KODER_MODEL="claude/claude-opus-4-5-20250514" koder
|
|
202
|
+
KODER_MODEL="chatgpt/gpt-5.2" koder
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
OAuth tokens and cached model lists are stored under `~/.koder/tokens/`.
|
|
206
|
+
|
|
207
|
+
## Configuration File
|
|
208
|
+
|
|
209
|
+
Persistent defaults live in `~/.koder/config.yaml`:
|
|
210
|
+
|
|
211
|
+
```yaml
|
|
212
|
+
model:
|
|
213
|
+
name: "gpt-4o"
|
|
214
|
+
provider: "openai"
|
|
215
|
+
reasoning_effort: null
|
|
216
|
+
|
|
217
|
+
cli:
|
|
218
|
+
session: null
|
|
219
|
+
stream: true
|
|
220
|
+
|
|
221
|
+
mcp_servers: []
|
|
222
|
+
|
|
223
|
+
voice:
|
|
224
|
+
enabled: false
|
|
225
|
+
provider: null
|
|
226
|
+
model: null
|
|
227
|
+
|
|
228
|
+
harness:
|
|
229
|
+
reasoning_display: "off"
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
Useful configuration commands:
|
|
233
|
+
|
|
234
|
+
```bash
|
|
235
|
+
koder config show
|
|
236
|
+
koder config edit
|
|
237
|
+
koder config export ~/koder-settings.json
|
|
238
|
+
koder config import ~/koder-settings.json --dry-run
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
See the [Configuration Guide](docs/configuration.md) for provider setup, OAuth, settings bundles, managed settings, MCP configuration, and voice routing.
|
|
242
|
+
|
|
243
|
+
## Extending Koder
|
|
244
|
+
|
|
245
|
+
Koder can be extended at the project, user, and plugin levels.
|
|
246
|
+
|
|
247
|
+
### Skills
|
|
248
|
+
|
|
249
|
+
Skills are local instruction bundles loaded on demand:
|
|
250
|
+
|
|
251
|
+
```text
|
|
252
|
+
.koder/skills/api-review/SKILL.md
|
|
253
|
+
~/.koder/skills/personal-style/SKILL.md
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
```markdown
|
|
257
|
+
---
|
|
258
|
+
name: api-review
|
|
259
|
+
description: Review API changes for compatibility and error handling
|
|
260
|
+
allowed_tools:
|
|
261
|
+
- read_file
|
|
262
|
+
- grep_search
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
Review public API changes for request shape, response shape, status codes, and migration notes.
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
Inspect skills with `/skills`. Create verifier skills with `/init-verifiers`.
|
|
269
|
+
|
|
270
|
+
### MCP Servers
|
|
271
|
+
|
|
272
|
+
MCP servers add external tools to the runtime:
|
|
273
|
+
|
|
274
|
+
```bash
|
|
275
|
+
koder mcp add filesystem "python -m mcp.server.filesystem" --scope project
|
|
276
|
+
koder mcp add api --transport http --url http://localhost:8000
|
|
277
|
+
koder mcp list
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
### Plugins And Channels
|
|
281
|
+
|
|
282
|
+
Plugins can contribute skills, commands, MCP servers, channels, and dependencies:
|
|
283
|
+
|
|
284
|
+
```bash
|
|
285
|
+
koder plugin install ./my-plugin --scope project
|
|
286
|
+
koder plugin list
|
|
287
|
+
koder --channels server:my-channel
|
|
288
|
+
koder --channels plugin:team-chat@local
|
|
289
|
+
koder /channels
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
See [Skills, Plugins, and MCP](docs/extensions.md) for the full extension model.
|
|
293
|
+
|
|
294
|
+
## Architecture
|
|
295
|
+
|
|
296
|
+
```text
|
|
297
|
+
koder_agent/
|
|
298
|
+
├── agentic/ # Agent creation, hooks, guardrails, approvals
|
|
299
|
+
├── auth/ # OAuth providers, token storage, provider-specific routing
|
|
300
|
+
├── cli.py # Main CLI entry point
|
|
301
|
+
├── config/ # YAML, environment, and settings management
|
|
302
|
+
├── core/ # Scheduler, sessions, streaming, security, TUI prompt
|
|
303
|
+
├── harness/ # Runtime commands, plugins, memory, permissions, teams, UI scaffolding
|
|
304
|
+
├── mcp/ # Model Context Protocol integration
|
|
305
|
+
├── providers/ # Provider routing metadata
|
|
306
|
+
├── tools/ # Tool implementations
|
|
307
|
+
└── utils/ # Client setup, prompts, sessions, model info, terminal theme
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
Runtime flow:
|
|
311
|
+
|
|
312
|
+
1. `cli.py` parses arguments and builds a runtime request.
|
|
313
|
+
2. `HarnessRuntime` loads permissions and dispatches interactive, prompt, and subcommand modes.
|
|
314
|
+
3. Session flow wires context, hooks, plugins, agents, slash commands, and scheduler execution.
|
|
315
|
+
4. `AgentScheduler` streams model execution and usage tracking.
|
|
316
|
+
5. Tool and permission layers validate file, shell, MCP, skill, and teammate operations.
|
|
317
|
+
6. `EnhancedSQLiteSession` persists transcripts and session metadata in `~/.koder/koder.db`.
|
|
318
|
+
|
|
319
|
+
## Development
|
|
320
|
+
|
|
321
|
+
Set up the repository:
|
|
322
|
+
|
|
323
|
+
```bash
|
|
324
|
+
uv sync
|
|
325
|
+
uv run koder
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
Code quality and tests:
|
|
329
|
+
|
|
330
|
+
```bash
|
|
331
|
+
uv run black .
|
|
332
|
+
uv run ruff format
|
|
333
|
+
uv run ruff check --fix
|
|
334
|
+
uv run pytest
|
|
335
|
+
```
|
|
336
|
+
|
|
337
|
+
Focused test examples:
|
|
338
|
+
|
|
339
|
+
```bash
|
|
340
|
+
uv run pytest tests/test_file_tools.py
|
|
341
|
+
uv run pytest -v -k "test_name"
|
|
342
|
+
```
|
|
343
|
+
|
|
344
|
+
## Security And Privacy
|
|
345
|
+
|
|
346
|
+
- API keys should live in environment variables or local user config, not project files.
|
|
347
|
+
- OAuth tokens and cached provider model lists are stored under `~/.koder/tokens/`.
|
|
348
|
+
- Sessions, transcripts, memories, tasks, agents, and teams are stored locally under `~/.koder/` and project `.koder/` paths.
|
|
349
|
+
- Koder does not upload sessions to a Koder-hosted service. Model requests still go to the provider you configure.
|
|
350
|
+
- 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.
|
|
351
|
+
|
|
352
|
+
Use these commands to inspect boundaries:
|
|
353
|
+
|
|
354
|
+
```bash
|
|
355
|
+
/privacy-settings
|
|
356
|
+
/permissions
|
|
357
|
+
/sandbox
|
|
358
|
+
/managed-settings
|
|
359
|
+
/files
|
|
360
|
+
/context
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
See [Sandbox Guide](docs/sandbox.md) and [Permissions and Privacy](docs/permissions-and-privacy.md) for details.
|
|
364
|
+
|
|
365
|
+
## Documentation
|
|
366
|
+
|
|
367
|
+
- [Feature Guide](docs/features.md) - topic map for Koder's main user-facing capabilities
|
|
368
|
+
- [Getting Started](docs/getting-started.md) - first install, provider setup, and a safe first session
|
|
369
|
+
- [Interactive TUI](docs/interactive-tui.md) - prompt controls, slash commands, mentions, shell mode, and voice input
|
|
370
|
+
- [Configuration Guide](docs/configuration.md) - config files, environment variables, providers, OAuth, and settings bundles
|
|
371
|
+
- [Sessions and Memory](docs/sessions-and-memory.md) - named sessions, resume, compaction, rewind, memory, and local storage
|
|
372
|
+
- [Agents and Teams](docs/agents-and-teams.md) - background subagents, project agents, teams, teammate modes, and team memory
|
|
373
|
+
- [Workflows](docs/workflows.md) - review, planning, Git, GitHub, release, and verification workflows
|
|
374
|
+
- [Skills, Plugins, and MCP](docs/extensions.md) - extending Koder with skills, plugins, MCP servers, channels, and Magic Docs
|
|
375
|
+
- [Permissions and Privacy](docs/permissions-and-privacy.md) - approvals, sandbox policy, managed settings, workspace roots, and data boundaries
|
|
376
|
+
- [Sandbox Guide](docs/sandbox.md) - shell sandbox backends, status fields, configuration, and troubleshooting
|
|
377
|
+
- [Voice Mode](docs/voice-mode.md) - voice dictation setup and provider-specific notes
|
|
378
|
+
- [Command Reference](docs/commands.md) - complete slash-command catalog
|
|
379
|
+
|
|
380
|
+
## Contributing
|
|
381
|
+
|
|
382
|
+
Contributions are welcome.
|
|
383
|
+
|
|
384
|
+
1. Fork the repository.
|
|
385
|
+
2. Create a feature branch: `git checkout -b feature/amazing-feature`.
|
|
386
|
+
3. Make a focused change with tests or validation.
|
|
387
|
+
4. Commit your changes: `git commit -m 'Add amazing feature'`.
|
|
388
|
+
5. Push the branch and open a pull request.
|
|
389
|
+
|
|
390
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
|
|
391
|
+
|
|
392
|
+
## License
|
|
393
|
+
|
|
394
|
+
MIT License. See [LICENSE](LICENSE) for details.
|