DEV Community

István Döbrentei
István Döbrentei

Posted on

DevSession CLI

GitHub Copilot CLI Challenge Submission

This is a submission for the GitHub Copilot CLI Challenge

What I Built

I built DevSession, a lightweight PHP based CLI tool that helps developers track focused development sessions, with context not just time.
As developers we often know how long we worked, but not always what actually accomplished. DevSession solves this with start and end a session and then automatically summarizing:

  • how long the session lasted
  • which git commits were made
  • which files were changed
  • what the session was about

Everything runs locally, stores data in a simple JSON file, and works entirely from the terminal. No background daemons, no cloud sync and no configuration.
To me this project is about intentional work: consciously stating a session, focusing, and then getting a clear summary of what really happened.

Demo

Project repository:DevSession

  • Start a session:

  • Check status:

  • End session:

  • View today's work:

  • View history:

My Experience with GitHub Copilot CLI

I used GitHub Copilot CLI as a terminal native pair programmer throughout the project.

Instead of switching between editor, browser, and documentation, I stayed in the CLI and described what I wanted in natural language. Copilot CLI helped me move faster while keeping full control over architecture and decisions.

Designing the CLI interface

Early on, I used Copilot CLI to explore and refine the command structure, deciding which commands were essential (start, end, status, today, log). Keeping the scope intentionally small.
This helped me avoid overengineering and focus on real productivity value.

Building a PHP CLI architecture

Although PHP isn't the most common choice for CLI tools, I intentionally chose it to demonstrate that clean, framework free CLI applications are absolutely viable in PHP. With Copilot, I bootstrapped the command dispatcher, refined error-handling patterns suitable for CLI usage, iterated on a clean command-based architecture. Copilot accelerated the boilerplate without dictating design decisions.

Git integration

DevSession is git-aware, it enriches sessions with git context when available, but it is not git-dependent — it works just as well outside a git repository. Copilot CLI helped me construct git commands to list commits since a timestamp, retrieve changed files during a session and handle edge cases where git isn't available.

Overall impact

The biggest benefit of GitHub Copilot CLI wasn't just speed, it was focus. I spent less time searching documentation, recalling command syntax and context switching. I had more time to thinkn about behavior and making deliberate design choices. Copilot didn't replace decision making, it amplified it.

Thanks for reading and thanks to the DEV and GitHub teams for the challenge!

Top comments (0)