Skip to content

Implement FYLIA - CLI/TUI conversational development tool for Termux#6

Draft
Copilot wants to merge 5 commits intomainfrom
copilot/add-new-feature-implementation
Draft

Implement FYLIA - CLI/TUI conversational development tool for Termux#6
Copilot wants to merge 5 commits intomainfrom
copilot/add-new-feature-implementation

Conversation

Copy link
Contributor

Copilot AI commented Jan 15, 2026

Implements the FYLIA specification from commit 272bd2d: a Python-based conversational development assistant designed for Termux on Android, using only standard library dependencies.

Core Architecture

  • CLI (cli.py) - argparse-based entry point with chat, map, test, version commands
  • TUI (tui.py) - interactive REPL with command system (/map, /stats, /refresh, /exit)
  • MapGen (mapgen.py) - AST-based Python code analyzer; extracts classes, functions, methods with line numbers
  • Patcher (patcher.py) - unified diff generation, markdown code block extraction, interactive patch application
  • MockProvider (providers/mock.py) - keyword-based response simulation for offline operation

Key Features

# Interactive conversational interface
fylia chat

# Project structure visualization
fylia map              # tree view with emoji icons
fylia map -f stats     # file/class/function/method counts
fylia map -f json      # machine-readable output

# Provider testing
fylia test -m "create a function"

The TUI recognizes file instructions in responses:

File: src/example.py
```python
def new_function():
    pass

Shows diff preview → prompts for confirmation → applies patch with backup → regenerates map.

## Implementation Notes

- **Zero external dependencies** - uses only `ast`, `difflib`, `argparse`, `pathlib` from stdlib
- **Python 3.7+** compatible for broad Termux support
- **Italian interface** per specification
- **20 passing tests** covering provider, mapgen, patcher modules

## Structure

src/fylia/
├── cli.py # CLI commands
├── tui.py # Interactive interface
├── mapgen.py # Code structure analyzer
├── patcher.py # Diff/patch management
└── providers/mock.py # Offline AI simulation

tests/
├── test_mock_provider.py
├── test_mapgen.py
└── test_patcher.py


Documentation: INSTALL.md, USAGE.md, ARCHITECTURE.md

<!-- START COPILOT CODING AGENT SUFFIX -->



<!-- START COPILOT ORIGINAL PROMPT -->



<details>

<summary>Original prompt</summary>

> Reference: https://github.com/meseb/FYLIA-/commit/272bd2d61ed79386ada71d8bbb787df71f231178


</details>



<!-- START COPILOT CODING AGENT TIPS -->
---

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs.

Copilot AI and others added 4 commits January 15, 2026 21:53
Co-authored-by: meseb <206750850+meseb@users.noreply.github.com>
Co-authored-by: meseb <206750850+meseb@users.noreply.github.com>
Co-authored-by: meseb <206750850+meseb@users.noreply.github.com>
Co-authored-by: meseb <206750850+meseb@users.noreply.github.com>
Copilot AI changed the title [WIP] Add new feature implementation based on recent commit Implement FYLIA - CLI/TUI conversational development tool for Termux Jan 15, 2026
Copilot AI requested a review from meseb January 15, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants