Project Info
natural-code bridges the gap between human thought and executable software. our mission is to make programming accessible to everyone, regardless of their technical background or experience with traditional programming languages. we've built a language-agnostic framework that transforms your ideas into working code. simply describe what you want to build using natural language—your preferred way of thinking and expressing logic—and we handle the translation to executable code in any target programming language. with recent breakthroughs in large language models, code generation has reached unprecedented levels of sophistication. natural code harnesses these capabilities to democratize software development. whether you're a seasoned developer looking to prototype faster or someone with no programming experience wanting to bring ideas to life, our tool adapts to your level and helps you create functional software.
Inspiration
We believe that the future of programming does not involve the writing of code, but is more focused on the development of logic. Pseudocode is how we abstract programs and simplify logic, and natural-code converts pseudo into working program files that are straightforward, easy to understand, concise, and efficient.
How we built it
The project has 3 main components. The CLI interface validates .n files and orchestrates code generation through the Claude Code using GROQ's openai/gpt-oss-120b model. A diff tracking system monitors file changes with MD5 hashing and respects .gitignore patterns, providing context for incremental updates. State is maintained in .state.json to track modifications between runs, enabling the AI to understand what changed and update only the changed parts so as to not use excessive resources or tokens. This also helps us better maintain context of the current state as opposed to generating new code every time.
Challenges we ran into
Balancing AI context was challenging too, little caused inconsistent updates, too much overwhelmed the model. We solved this with targeted diff tracking. Managing background processes with simultaneous output streaming and logging required careful subprocess handling. Implementing comprehensive .gitignore pattern matching proved more complex than expected, requiring support for globs, directory patterns, and edge cases.
Accomplishments we're proud of
We built a tool that integrates seamlessly into existing workflows without special tooling. The intelligent diff system helps the AI make better decisions, while the .n extension pattern makes the system truly language-agnostic. Despite coordinating AI APIs, file I/O, and subprocess management, we maintained clean, readable code with production-ready logging.
What we learned
Context quality directly determines AI output quality—our diff tracking was crucial for this. We learned how LLMs excel at pattern recognition but require careful context management. Small UX details like showing PIDs and log paths significantly improve CLI usability. State management across file operations taught us to handle edge cases carefully.

natural run
natural-code bridges the gap between human thought and executable software. our mission is to make programming accessible to everyone, regardless of their technical background or experience with traditional programming languages.
we've built a language-agnostic framework that transforms your ideas into working code. simply describe what you want to build using natural language—your preferred way of thinking and expressing logic—and we handle the translation to executable code in any target programming language.
with recent breakthroughs in large language models, code generation has reached unprecedented levels of sophistication. natural code harnesses these capabilities to democratize software development. whether you're a seasoned developer looking to prototype faster or someone with no programming experience wanting to bring ideas to life, our tool adapts to your level and helps you create functional software.
write naturally. build anything. — let the code follow your thoughts, not the other way around.
usage
nrun <filename>.n<lang>
we have came up with this custom file extension i.e
.n<lang>and then this is converted into the target language code and then executed.
setup
pip install uv (if not already installed)
git clone https://github.com/idhant297/natural-code.git
uv pip install natural-code/
internal workings
core flow
- input: write your logic in
.n<lang>files (e.g.,.npyfor python,.njsfor javascript,.ntsxfor typescript/react) - transpilation: run
nrun <filename>.n<lang>to convert natural language to executable code via llm inference - execution: the generated code runs automatically with the appropriate interpreter
change tracking
the system maintains a state of your codebase using file hashing:
- all files are hashed and stored in
.state.json - on each run, it generates a diff between current and previous states
- the transpiler receives these diffs to understand what changed
- this enables incremental updates rather than regenerating entire files
key features
- smart updates: only modified portions of code are updated, preserving manual edits
- gitignore support: respects
.gitignorepatterns when tracking changes - session logging: all transpilation runs are logged to
cli-logs/for debugging - auto-execution: automatically determines and runs the correct command for your generated code
Analysis
View
Metric
- 9
- 1
Figures cover GitHub contributors during the hackathon window. A co-authored commit counts in full for each author, so per-member totals add up to more than the whole-team figures.
Technology
- PythonIn code
- JavaClaimed
- JavaScriptClaimed
- ReactClaimed
- TypeScriptClaimed
1 of 5 appear in the indexed code. 4 claimed on Devpost could not be matched to code, which may simply mean the tool leaves no trace in the repository.
AI coding agents
- CodexConfig
Detected from committed agent config files and commit authorship. Absence of a signal is not proof an agent was unused.
Codebase size
Source size
66 KB
Source files
10
Counts recognized source files only; vendored directories, binaries and lockfiles are excluded, so this is smaller than the repository on disk.
Repository
idhantgulati/natural-code
19 files · 133 KB · @ b7334a7
Structure
Application logic
8 files · 42%Domain rules, services and shared utilities.
Supporting
Layers are inferred from where files sit in the tree, not from reading the code. A project that names its directories unconventionally will read oddly here — open the file browser to check anything the diagram implies.
Languages
- Python71%
- Markdown28%
- YAML1%
Share of indexed source by file size. Binary and vendored files are excluded.
Dependencies
pyproject.toml
pypi · 5- groq
- pathlib
- python-dotenv
- rich
- rich-cli
Declared in the repository’s manifests at the indexed commit. A declared package is not proof it is used, and runtime dependencies are listed first.
This project’s features have not been analysed yet.
Export this project's context (description, README, evidence, key source files) to chat with an AI agent elsewhere.