Repository navigation
Description
Description
Explore and implement an experimental fullscreen TUI experience for Nanocoder.
Currently, Nanocoder behaves primarily like normal terminal output. The goal of this issue is to investigate whether Nanocoder can properly own the terminal viewport and provide a stable application-like interface, similar to modern terminal agents such as Claude Code and OpenCode.
This should be treated as an experimental foundation for several other UI improvements. The implementation should remain compatible with Ink where practical.
This is a relatively large change and should begin with investigation and a working prototype before attempting a complete implementation.
Use Case
A terminal AI agent should feel like a dedicated application rather than continuously appended terminal output.
The user should be able to:
- Keep the main Nanocoder interface visible.
- See the welcome experience, conversation, composer, and status information within the terminal viewport.
- Scroll the conversation without causing unrelated UI elements to disappear.
- Interact with the composer without unexpectedly moving the entire terminal.
- Resize the terminal while keeping the application usable.
- Eventually have a sticky composer and predictable conversation scrolling.
This issue provides the foundation for several other UI improvements.
Proposed Solution
Investigate an approach where Nanocoder takes control of the terminal viewport while continuing to use Ink.
The implementation should investigate:
- Fullscreen terminal rendering.
- Terminal viewport management.
- How Ink can be extended to support the required behavior.
- stdin handling and keyboard interaction.
- Mouse capture through ANSI escape sequences if required.
- Native terminal selection and copy/paste behavior.
- Focus handling and the first-click-after-focus behavior.
- Terminal cleanup/restoration when Nanocoder exits.
- Compatibility with existing CLI behavior.
Start with a small prototype that demonstrates:
- Entering the fullscreen TUI.
- Rendering the Nanocoder interface inside the viewport.
- Keeping the interface stable while typing.
- Handling terminal exit correctly.
- Resizing the terminal.
- Basic keyboard and mouse interaction.
Do not attempt to solve every UI problem in this issue.
Alternatives Considered
- Continue using normal terminal output without owning the viewport.
- Completely replace Ink with another TUI framework.
- Implement fullscreen behavior only for specific parts of Nanocoder.
- Use a hybrid approach where fullscreen mode is experimental/optional.
The preferred direction is to first determine how far we can take the current Ink architecture before considering a framework replacement.
Additional Context
This issue is intentionally exploratory. The exact implementation is open for suggestions.
Implementation Notes
This issue is related to terminal viewport ownership, stdin handling, mouse capture, and Ink behavior. Several other UI improvements depend on this work, so architectural decisions should be documented clearly.
Contribution / PR Workflow
Please do not open PRs directly against main for this UI work.
All implementation PRs related to the new UI should target: feature/new-ui
Please discuss the approach before beginning a large implementation. Suggestions and alternative approaches are welcome.
Activity
Dhirenderchoudhary commentedon Aug 26, 2026
@akramcodez I want to build TUI my web mode and semantic memory done locally will raise Pr tomorrow for sure.
akramcodez commentedon Aug 26, 2026
Thanks, @Dhirenderchoudhary, for taking interest in this one. I’d highly recommend completing web mode and semantic memory first. Hopefully, we can get them into our next release.
This is also a very high-priority, long-term feature that will need some proper discussion. We need to have a solid design in mind and a clear implementation plan before we start. I’d also be really happy if @puri-adityakumar could help with this.
will-lamerton commentedon Aug 27, 2026
Hi @akramcodez, @Dhirenderchoudhary - I believe this is already done if you run
nanocoder --alt-screen. Let me know if I'm wrong!akramcodez commentedon Aug 27, 2026
Just tested it, and it’s working really well! @will-lamerton what do you think about making it the default? I think it would be great, but I’d love to hear your opinion.
Dhirenderchoudhary commentedon Aug 27, 2026
Confirmed on main this is already done. nanocoder --alt-screen (or "alternateScreen": true in preferences).
@akramcodez can you assign me other TUI issues please as both my assigned are done.