# What Is the License for the i-have-adhd VS Code Plugin?

> Discover the MIT License for the i-have-adhd VS Code plugin. Learn about its terms for unrestricted use, modification, and distribution of this open-source tool.

- Repository: [Ayoub Ghriss/i-have-adhd](https://github.com/ayghri/i-have-adhd)
- Tags: api-reference
- Published: 2026-08-24

---

**The i-have-adhd VS Code plugin is released under the MIT License, a permissive open-source license that permits unrestricted use, modification, and distribution as declared in the repository's `LICENSE` file and [`package.json`](https://github.com/ayghri/i-have-adhd/blob/main/package.json) metadata.**

The i-have-adhd repository by ayghri provides a Pi-compatible extension designed to enhance focus during coding sessions. While commonly referenced as a VS Code plugin due to its editor integration capabilities, the project is fundamentally a Pi extension distributed under the **MIT License**, granting developers broad rights to utilize and adapt the codebase.

## MIT License Declaration in Source Files

The repository establishes its licensing terms through two authoritative locations in the source tree.

### LICENSE File

The root-level [`LICENSE`](https://github.com/ayghri/i-have-adhd/blob/main/LICENSE) file contains the complete legal text of the MIT License. This file explicitly grants permission to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software, provided the copyright notice and permission notice are included in all copies or substantial portions.

### package.json Metadata

The [[`package.json`](https://github.com/ayghri/i-have-adhd/blob/main/package.json)](https://github.com/ayghri/i-have-adhd/blob/main/package.json) file specifies the license in the `license` field with the string value `"MIT"`. This machine-readable declaration allows automated package managers and compliance tools to identify the licensing terms without parsing the full legal text.

## What the MIT License Permits

The **MIT License** is one of the most permissive open-source licenses available. Under its terms, you can:

- Use the code for commercial or personal projects without restriction
- Modify the source code to fit specific workflow requirements
- Distribute modified versions or incorporate the code into larger works
- Sublicense the code under different terms if necessary

The sole requirement mandates that you include the original copyright notice and license text in any substantial portions or derivative works.

## Extension Architecture and Command Usage

The plugin implements ADHD-friendly coding modes through specific command interfaces defined in the TypeScript source files.

### Core Extension Implementation

The primary extension logic resides in [[`extensions/i-have-adhd.ts`](https://github.com/ayghri/i-have-adhd/blob/main/extensions/i-have-adhd.ts)](https://github.com/ayghri/i-have-adhd/blob/main/extensions/i-have-adhd.ts). This file registers the `/i-have-adhd` command handler and manages the toggle logic for enabling or disabling focus-enhancing restrictions during development sessions.

### Skill Definition and Rules

The behavioral guidelines injected during ADHD mode are defined in [[`skills/i-have-adhd/SKILL.md`](https://github.com/ayghri/i-have-adhd/blob/main/skills/i-have-adhd/SKILL.md)](https://github.com/ayghri/i-have-adhd/blob/main/skills/i-have-adhd/SKILL.md). This markdown file contains the specific rule set that the extension applies when activated, helping to minimize distractions and maintain focus.

### Programmatic Command Interface

You can interact with the extension using the Pi command structure implemented in the source:

```typescript
// Enable ADHD mode for the current session
await pi.sendCommand('/i-have-adhd on');

// Disable focus mode
await pi.sendCommand('/i-have-adhd off');

// Toggle current state without explicit arguments
await pi.sendCommand('/i-have-adhd');

```

When enabled, the extension displays a status badge (shown as "● ADHD ON") in the UI to indicate that focus-enhancing mode is active.

## Summary

- The i-have-adhd VS Code plugin is licensed under the **MIT License**, confirmed by both the `LICENSE` file and the `"license": "MIT"` field in [`package.json`](https://github.com/ayghri/i-have-adhd/blob/main/package.json).
- The license permits unrestricted use, modification, distribution, and sublicensing with minimal attribution requirements.
- Key source files include [`extensions/i-have-adhd.ts`](https://github.com/ayghri/i-have-adhd/blob/main/extensions/i-have-adhd.ts) for command handling and [`skills/i-have-adhd/SKILL.md`](https://github.com/ayghri/i-have-adhd/blob/main/skills/i-have-adhd/SKILL.md) for behavior rule definitions.
- The extension supports toggle commands via `/i-have-adhd` syntax to switch focus modes on and off programmatically.

## Frequently Asked Questions

### Is the i-have-adhd VS Code plugin open source?

Yes, the plugin is fully open source. The repository is publicly available under the MIT License, which is an OSI-approved open-source license that provides maximum freedom for users, contributors, and organizations looking to integrate focus-enhancing tools into their development environments.

### Can I modify and distribute my own version of the plugin?

Yes, the MIT License explicitly grants you the right to modify the source code and distribute your own versions. You can fork the repository, alter files such as [`extensions/i-have-adhd.ts`](https://github.com/ayghri/i-have-adhd/blob/main/extensions/i-have-adhd.ts) or [`skills/i-have-adhd/SKILL.md`](https://github.com/ayghri/i-have-adhd/blob/main/skills/i-have-adhd/SKILL.md) to customize the behavior, and distribute the modified version, provided you include the original copyright notice and license text.

### Where is the license information stored in the repository?

The license information appears in two specific locations: the `LICENSE` file in the repository root contains the complete legal text of the MIT License, while [`package.json`](https://github.com/ayghri/i-have-adhd/blob/main/package.json) contains the machine-readable `"license": "MIT"` field that automated tools and package registries use to identify the licensing terms.

### Do I need to pay royalties or obtain special permission to use this plugin?

No, the MIT License is entirely royalty-free. You can use the i-have-adhd plugin in commercial or non-commercial projects without paying any fees to the original author or obtaining additional permissions. The only legal requirement is to preserve the copyright notice and license text in any distributed copies or derivative works.