Agentic coding,
|
KnightCode is an early, npm-installed coding app with a React/OpenTUI terminal interface, repo-aware agents, approval-based tools, and a bring-your-own-key model setup.
A coding agent that lives where you already work.
KnightCode runs as an interactive OpenTUI and React app in your terminal. Start sessions from a repository, keep project context nearby, and drive the agent without switching into a hosted web app.
- Keyboard-driven React/OpenTUI terminal interface
- Session views built around local workspace context
- Themeable ANSI colors and responsive terminal layout
- Direct integration with local shells and repo tools
Review the work instead of trusting a black box.
Agent actions are shown in the terminal flow. Inspect proposed file changes, shell commands, and task progress before letting KnightCode move forward.
- Inline views for agent file operations and diffs
- Confirm or reject tool use as the agent works
- Keep edits and commands explicit in the session
- Fast terminal UI designed for keyboard use
Let the agent read, search, edit, and run checks in context.
KnightCode is built around real repositories, not isolated prompts. It can inspect files, search code, run commands, and use durable task state while you keep control of the terminal session.
- Repo-aware tools for search, edits, and shell commands
- Approval-based command execution through local shells
- Review and security-oriented prompts through agent workflows
- Use git status, diffs, logs, and checks from the session
Subagents, checklists, and durable tasks for larger work.
For more than one-shot edits, KnightCode supports agent delegation, in-session todos, and persistent task files under .knightcode so longer work can stay organized.
- Ephemeral checklists and durable task tracking
- Project rules, memories, and local context files
- Composable workflow snippets and skill support
- OpenRouter key onboarding with model selection
- Diagnostic doctor audits to verify environment
Stay in control of context, cost, and behavior.
Pick models, tune reasoning behavior, configure guardrails, and compact long conversations so the agent stays useful across extended sessions.
- Compact conversation history for longer sessions
- Control reasoning behavior from the terminal UI
- Tool-use hooks for project-specific guardrails
- Allow rules for repeated trusted command patterns
A terminal interface you can live in.
Tune the interface for long sessions with bundled themes, terminal-friendly palettes, and keyboard-first dialogs.
- Bundled themes including nord, tokyo-night, and catppuccin
- Custom theme presets and JSON settings
- Flexible sizing and scroll settings for terminal windows
- Keyboard-based theme selector dialog
Practical pieces for real repo work.
Run the coding assistant directly inside your terminal with React/OpenTUI screens and keyboard navigation.
Use your own model key during onboarding and keep provider costs tied to the account you already control.
Multi-step agents can read files, edit code, search codebases, and run shell commands with approval.
Keep rules, skills, memories, and task state close to the repository instead of isolated in a hosted chat.
Track longer work through in-session todos and persistent .knightcode task files.
Adjust theme palettes (nord, tokyo-night, catppuccin, rose-pine) and export settings as JSON presets.
Configure tool-use hooks to audit, block, or shape agent actions around your project rules.
Ask the agent to inspect status, diffs, logs, and checks through the same shell tools you use manually.
Built-in /doctor command to audit your auth status, local server connection, and git repository setup.
Review proposed edits, command output, and permission prompts as the agent works.
Summarize long chat logs to keep extended coding sessions inside the model context window.
Control reasoning levels (/reasoning) and configure execution guardrails with allowed commands (/allow).
Install the CLI. Open your repo. Start a session.
KnightCode is npm-first. No account is required: install the command, connect your model key during onboarding, and run the agent close to your local workspace.
npm i -g @knightcodeai/cliknightcodeA single global install exposes the knightcode command on macOS, Linux, and Windows.
Current onboarding is BYOK-first, with OpenRouter-backed model routing in the CLI.
Agent file edits, shell commands, and subagent work stay visible in the terminal flow.
Releases are still alpha. Use GitHub for issues, source, and implementation details.
Questions, answered.
Still curious? Open an issue on GitHub and include your OS, command, and model configuration.