Skip to content

AI Code in less than 100 lines. Open source, beginner-friendly, production-ready.

License

Notifications You must be signed in to change notification settings

josharsh/100LinesOfAICode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

33 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

πŸ€– 100 Lines Of AI Code

License: MIT Python 3.8+ PRs Welcome

Powerful AI tools in less than 100 lines each. No bloat, just results.

Because naming variables IS hard, writing READMEs sucks, and your commit messages could use some work.


⚑ Instant Productivity Wins

Tools every developer uses daily:

Tool What It Does Why You Need It Lines
πŸ“Š Week Recap "What did I even do this week?" β†’ instant status report Friday standup panic solver 65
πŸ“ README Gen Generate professional README in 10 seconds Stop staring at blank README.md 75
πŸ’¬ PR Writer Write PR descriptions automatically Never write "fixed stuff" again 68
🏷️ Name Variable Solve the hardest problem in CS Because temp2_final is not a name 60

😊 Make Coding Fun Again

Wholesome tools that spark joy:

Tool What It Does Viral Potential Lines
πŸ’š Kind Blame Git blame but encouraging "We've all been there β˜•" 70
πŸ”₯ Commit Roaster Get roasted for your terrible commits "asdf" - Did your cat walk on your keyboard? 55
πŸ¦† Rubber Duck AI Debugging buddy that talks back! Quack quack πŸ¦† 80

πŸ—£οΈ Communication Helpers

Bridge the dev/business gap:

Tool What It Does Career Impact Lines
πŸ—£οΈ Explain to PM Translate tech to business speak Make your work understood 72
πŸ’Ό Sound Professional Make messages professional No more 3am Slack regret 65

πŸš€ Power User Tools

Stay in flow state:

Tool What It Does Time Saved Lines
πŸ’‘ SO Terminal Stack Overflow without leaving terminal Stop context switching 78

🎯 Quick Start

Get started in under 2 minutes:

# Clone the repo
git clone https://github.com/josharsh/100LinesOfAICode.git
cd 100LinesOfAICode

# Install dependencies
pip install anthropic requests

# Set your API key
export ANTHROPIC_API_KEY=your_key_here

# Try your first tool!
python week-recap/recap.py

πŸ’‘ Featured Examples

Never Forget What You Did

python week-recap/recap.py

πŸ“Š Your Week: Nov 18-22, 2025

🎯 Highlights:
β€’ Shipped user dashboard (merged PR #234)
β€’ Fixed critical login bug affecting 2.3K users
β€’ Code reviewed 12 PRs across 3 repos

πŸ’¬ Copy-Paste Ready:
"This week I shipped the user dashboard, resolved a critical
auth bug affecting 2.3K users, and reviewed 12 PRs."

βœ… Ready for your standup!

Get Roasted by Your Own Code

python roast-commits/roaster.py

πŸ† HALL OF SHAME

1. "asdf"
   πŸ‘‰ Did your cat walk on the keyboard?

2. "fix stuff"
   πŸ‘‰ Wow. Such detail. Very helpful.

3. "final FINAL v3"
   πŸ‘‰ Commitment issues much?

πŸ“Š YOUR GRADE: D+
You're better than 12% of developers!

Stop Naming Things Wrong

python name-it/namer.py

What does this variable store?
> user's email address

πŸ“ Best: userEmail (camelCase - most common)
   Alt: user_email (Python style)
   Simple: email (context-dependent)

πŸ’‘ Tip: Python uses snake_case for variables!

πŸ“– Philosophy

Why 100 Lines?

Constraint breeds creativity. When you have 100 lines:

  • Every line matters
  • No framework bloat
  • Easy to understand
  • Easy to modify
  • Actually read the code in minutes

The Truth About Frameworks

# LangChain: 10,000+ lines of abstraction
from langchain import complicated_chains

# This repo: Direct and clear
from anthropic import Anthropic
client = Anthropic()
response = client.messages.create(...)

You learn more. You understand more. You build better.

Mass Market > Technical Brilliance

The best Udemy courses aren't from MIT professors. The most popular dev tools aren't the most advanced. The most viral tools solve universal problems simply.


🀝 Contributing

We love contributions! Here's how:

Adding a New Tool

  1. Solve a real problem - Must be something developers actually complain about
  2. Keep it ≀100 lines - Constraint is the feature
  3. Make it shareable - "OMG look at this!" factor
  4. Write a great README - Sell the problem, then the solution

See CONTRIBUTING.md for detailed guidelines.

🌟 Get Started

For Developers

  1. Pick a tool that solves your problem
  2. Read the 60-100 line source code
  3. Understand exactly how it works
  4. Modify it for your needs
  5. Share what you built!

For Learners

Perfect for:

  • Understanding AI APIs without frameworks
  • Learning practical AI applications
  • Seeing production-quality minimal code
  • Building your own AI tools

For Teams

Use these as:

  • Daily productivity boosters
  • Team culture builders (Kind Blame!)
  • Communication improvers
  • Code quality maintainers

πŸ’¬ Community

  • GitHub Discussions: Ask questions, share ideas
  • Issues: Report bugs, request features
  • Twitter: Share your wins with #100LinesOfAICode
  • Discord: (coming soon!)

πŸ“œ License

MIT License - see LICENSE file.

Use them. Modify them. Ship them. Make them better.


πŸ™ Acknowledgments

  • Inspired by the #100LinesOfCode movement
  • Built for developers who hate bloat

Made for developers.

Star this repo if you:

  • Hate writing READMEs
  • Forget what you did this week
  • Struggle naming variables
  • Write "asdf" commits
  • Want to sound more professional
  • Love simple, working code

⭐ Star on GitHub

Releases

No releases published

Sponsor this project

Packages

No packages published