# \#gpt

**URL:** https://forums.swift.org/tag/gpt/807.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [DoccGPT: Self-documenting Swift code](https://forums.swift.org/t/doccgpt-self-documenting-swift-code/63943)

<div class="topic-metadata">

**Author:** [@gonzalonunez](https://forums.swift.org/u/gonzalonunez)\
**Replies:** 0\
**Last updated:** [March 24, 2023, 3:27pm UTC](https://forums.swift.org/t/doccgpt-self-documenting-swift-code/63943 "2023-03-24T15:27:11Z")

</div>

I hacked together a small experiment in fully automating the documentation of a Swift codebase by asking GPT to add DocC comments. GPT does a pretty great job at it! By pairing DoccGPT together with the Swift Package In…
