> For the complete documentation index, see [llms.txt](https://codingmace.gitbook.io/masterward/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codingmace.gitbook.io/masterward/software/failure/automated-code-writter.md).

# Automated Code writter

## Code writer

Find code that is on Stack Overflow and using input target to write its own code

## Steps

1. Ask for input from the user what we are going to write about. From that point, we write down the main platform
2. Split up the individual elements into certain lines of code. This turning our words into pseudo-code
3. Search for the code online in StackOverflow and potentially Codeforces as those are huge places of solutions
4. Write the code and compile that it works. If not, write the errors in an extra file
5. Consider it completely and wait for user to fix it themselves
6. <https://www.interviewcake.com/data-structures-reference>

## Extra

Could improve with more sites reading from, more specific parameters, and a prebuilt knowledge of a few algorithms after time.

## Failure

The time it would take would be extensive for this project. It would be easy if getting together a few people and just picked out words to write algorithms. One person this is almost impossible.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://codingmace.gitbook.io/masterward/software/failure/automated-code-writter.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
